|
@@ -31,30 +31,6 @@ import javax.validation.constraints.Min;
|
|
public class MerchantAuthController {
|
|
public class MerchantAuthController {
|
|
@DubboReference
|
|
@DubboReference
|
|
private MerchantAuthService merchantAuthService;
|
|
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) {
|
|
public Pagination<MerchantAuthDTO> getMerchantAuthPaging(@Valid MerchantAuthPagingParam param) {
|
|
return this.merchantAuthService.getMerchantAuthPaging(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);
|
|
|
|
+ }
|
|
}
|
|
}
|