Browse Source

多小程序管理-新增一个客服电话和备案号

三七 2 weeks ago
parent
commit
766c5348ba

+ 8 - 0
fs-service/src/main/java/com/fs/course/domain/FsCoursePlaySourceConfig.java

@@ -109,4 +109,12 @@ public class FsCoursePlaySourceConfig {
      * 商户支付配置id
      */
     private Long merchantConfigId;
+    /**
+    * 客服电话
+    */
+    private Long customerNum;
+    /**
+    * 备案号
+    */
+    private String recordNumber;
 }

+ 8 - 0
fs-service/src/main/java/com/fs/course/param/FsCoursePlaySourceConfigCreateParam.java

@@ -57,4 +57,12 @@ public class FsCoursePlaySourceConfigCreateParam {
 
     @ApiModelProperty("小程序状态:0正常,1半封禁,2封禁")
     private Integer status;
+    /**
+    * 客服电话
+    */
+    private Long customerNum;
+    /**
+    * 备案号
+    */
+    private String recordNumber;
 }

+ 8 - 0
fs-service/src/main/java/com/fs/course/param/FsCoursePlaySourceConfigEditParam.java

@@ -58,4 +58,12 @@ public class FsCoursePlaySourceConfigEditParam {
 
     @ApiModelProperty("商户支付配置id")
     private Long merchantConfigId;
+    /**
+    * 客服电话
+    */
+    private Long customerNum;
+    /**
+    * 备案号
+    */
+    private String recordNumber;
 }

+ 9 - 0
fs-service/src/main/java/com/fs/course/vo/FsCoursePlaySourceConfigVO.java

@@ -67,4 +67,13 @@ public class FsCoursePlaySourceConfigVO {
 
     @ApiModelProperty("小程序支付配置id")
     private Long merchantConfigId;
+
+    /**
+     * 客服电话
+     */
+    private Long customerNum;
+    /**
+     * 备案号
+     */
+    private String recordNumber;
 }

+ 18 - 0
fs-user-app/src/main/java/com/fs/app/controller/SysConfigController.java

@@ -1,10 +1,13 @@
 package com.fs.app.controller;
 
 import com.fs.common.core.domain.R;
+import com.fs.course.domain.FsCoursePlaySourceConfig;
+import com.fs.course.service.impl.FsCoursePlaySourceConfigServiceImpl;
 import com.fs.his.param.FsDiagnosisListDParam;
 import com.fs.system.service.ISysConfigService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
@@ -16,6 +19,9 @@ public class SysConfigController {
     @Autowired
     private ISysConfigService sysConfigService;
 
+    @Autowired
+    private FsCoursePlaySourceConfigServiceImpl selectConfigByKey;
+
 
     //获取APP推广信息
     @GetMapping("/getAppPromotion")
@@ -23,4 +29,16 @@ public class SysConfigController {
         String selectConfigByKey = sysConfigService.selectConfigByKey("app.config");
         return R.ok().put("data", selectConfigByKey);
     }
+
+    /**
+    * 根据appid 获取小程序的客服电话和备案号
+    */
+
+    @GetMapping("/getMiniCustomerNumAndRecordNum/{appId}")
+    public R getMiniCustomerNumAndRecordNum(@PathVariable("appId") String appId){
+        FsCoursePlaySourceConfig fsCoursePlaySourceConfig = selectConfigByKey.selectCoursePlaySourceConfigByAppId(appId);
+
+        return R.ok().put("recordNumber", fsCoursePlaySourceConfig.getRecordNumber()).put("customerNum",fsCoursePlaySourceConfig.getCustomerNum());
+    }
 }
+