瀏覽代碼

[update] message:1.新增tb_app_info表

kelei12399 4 月之前
父節點
當前提交
6180a2775a

+ 18 - 0
admin/src/main/java/com/flyer/foster/controller/AppInfoController.java

@@ -0,0 +1,18 @@
+package com.flyer.foster.controller;
+
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author flyer
+ * @since 2024-06-22
+ */
+@RestController
+@RequestMapping("/app-info")
+public class AppInfoController {
+
+}

+ 39 - 0
admin/src/main/java/com/flyer/foster/entity/AppInfo.java

@@ -0,0 +1,39 @@
+package com.flyer.foster.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author flyer
+ * @since 2024-06-22
+ */
+@Getter
+@Setter
+@TableName("tb_app_info")
+public class AppInfo implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 微信小程序appid
+     */
+    private String appId;
+
+    /**
+     * app_secret
+     */
+    private String appSecret;
+
+    /**
+     * 名称
+     */
+    private String name;
+
+
+}

+ 16 - 0
admin/src/main/java/com/flyer/foster/mapper/IAppInfoMapper.java

@@ -0,0 +1,16 @@
+package com.flyer.foster.mapper;
+
+import com.flyer.foster.entity.AppInfo;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author flyer
+ * @since 2024-06-22
+ */
+public interface IAppInfoMapper extends BaseMapper<AppInfo> {
+
+}

+ 16 - 0
admin/src/main/java/com/flyer/foster/service/IAppInfoService.java

@@ -0,0 +1,16 @@
+package com.flyer.foster.service;
+
+import com.flyer.foster.entity.AppInfo;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author flyer
+ * @since 2024-06-22
+ */
+public interface IAppInfoService extends IService<AppInfo> {
+
+}

+ 20 - 0
admin/src/main/java/com/flyer/foster/service/impl/AppInfoServiceImpl.java

@@ -0,0 +1,20 @@
+package com.flyer.foster.service.impl;
+
+import com.flyer.foster.entity.AppInfo;
+import com.flyer.foster.mapper.IAppInfoMapper;
+import com.flyer.foster.service.IAppInfoService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author flyer
+ * @since 2024-06-22
+ */
+@Service
+public class AppInfoServiceImpl extends ServiceImpl<IAppInfoMapper, AppInfo> implements IAppInfoService {
+
+}

+ 5 - 0
admin/src/main/resources/mapper/AppInfoMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.flyer.foster.mapper.IAppInfoMapper">
+
+</mapper>