Browse Source

吉农宝

hanfucheng 1 year ago
parent
commit
3d08c09779

+ 14 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/asking/JnbAskTypeController.java

@@ -97,4 +97,18 @@ public class JnbAskTypeController extends BaseController {
     public R remove(@PathVariable String[] ids) {
         return R.ok(jnbQuestionTypeService.deleteJnbQuestionTypeByIds(ids));
     }
+
+    /*
+    * 小程序-查询类型列表
+    *
+    * @author 韩福成
+    * @date 2024/3/4 10:31
+    */
+    @GetMapping("/typeList")
+    public TableDataInfo typeList(JnbQuestionType jnbQuestionType) {
+        startPage();
+        jnbQuestionType.setWhetherShow("Y");
+        List<JnbQuestionType> list = jnbQuestionTypeService.selectJnbQuestionTypeList(jnbQuestionType);
+        return getDataTable(list);
+    }
 }

+ 12 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/my/JnbNameAuthenticationController.java

@@ -88,4 +88,16 @@ public class JnbNameAuthenticationController extends BaseController {
     public AjaxResult remove(@PathVariable String[] ids) {
         return toAjax(jnbNameAuthenticationService.deleteJnbNameAuthenticationByIds(ids));
     }
+
+    /*
+    * 小程序-提交实名认证
+    *
+    * @author 韩福成
+    * @date 2024/3/4 14:21
+    */
+    @Log(title = "实名认证", businessType = BusinessType.INSERT)
+    @PostMapping(value = "/appletAdd")
+    public AjaxResult appletAdd(@RequestBody JnbNameAuthentication jnbNameAuthentication) {
+        return toAjax(jnbNameAuthenticationService.insertJnbNameAuthentication(jnbNameAuthentication));
+    }
 }

+ 12 - 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/my/JnbOfficialAuthenticationController.java

@@ -95,4 +95,16 @@ public class JnbOfficialAuthenticationController extends BaseController {
     public AjaxResult remove(@PathVariable String[] ids) {
         return toAjax(jnbOfficialAuthenticationService.deleteJnbOfficialAuthenticationByIds(ids));
     }
+
+    /*
+    * 小程序-官方认证提交
+    *
+    * @author 韩福成
+    * @date 2024/3/4 16:24
+    */
+    @Log(title = "官方认证", businessType = BusinessType.INSERT)
+    @PostMapping("/appletAdd")
+    public AjaxResult appletAdd(@RequestBody JnbOfficialAuthentication jnbOfficialAuthentication) {
+        return toAjax(jnbOfficialAuthenticationService.insertJnbOfficialAuthentication(jnbOfficialAuthentication));
+    }
 }