Browse Source

消息通知配置与商家认证

liude 1 năm trước cách đây
mục cha
commit
d174ecf953

+ 12 - 24
src/main/java/com/chelvc/cloud/admin/controller/MerchantAuthController.java

@@ -31,30 +31,6 @@ import javax.validation.constraints.Min;
 public class MerchantAuthController {
     @DubboReference
     private MerchantAuthService merchantAuthService;
-
-    /**
-     * 新增商家认证
-     *
-     * @param param 新增参数
-     * @return 商家商家认证主键
-     */
-    @PostMapping("/merchantAuth")
-    public Long addMerchantAuth(@RequestBody @Valid MerchantAuthModifyParam param) {
-        return this.merchantAuthService.addMerchantAuth(param);
-    }
-
-    /**
-     * 修改商家商家认证
-     *
-     * @param id    商家商家认证主键
-     * @param param 修改参数
-     */
-    @PutMapping("/merchantAuth/{id}")
-    public void updateMerchantAuth(@PathVariable("id") @Min(value = 1, message = "商家主键不能小于1") Long id,
-                               @RequestBody @Valid MerchantAuthModifyParam param) {
-        this.merchantAuthService.updateMerchantAuth(id, param);
-    }
-
     /**
      * 查询商家商家认证分页
      *
@@ -65,4 +41,16 @@ public class MerchantAuthController {
     public Pagination<MerchantAuthDTO> getMerchantAuthPaging(@Valid MerchantAuthPagingParam param) {
         return this.merchantAuthService.getMerchantAuthPaging(param);
     }
+
+    /**
+     * 商家认证审核
+     *
+     * @param id    商家商家认证主键
+     * @param state 0-拒绝 1-通过
+     */
+    @GetMapping("/certificationAudit/{id}")
+    public void certificationAudit(@PathVariable("id") @Min(value = 1, message = "商家主键不能小于1") Long id,
+                                   String state ) {
+        this.merchantAuthService.certificationAudit(id, state);
+    }
 }