记得上下班打卡 | git大法好,push需谨慎

Commit f1762b54 authored by 张国柄's avatar 张国柄

~API:店铺认证状态;

parent 0de9bd95
package com.liquidnet.service.goblin.dto.manage.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@ApiModel(value = "GoblinStoreCertificationVo", description = "店铺认证详情")
@Data
public class GoblinStoreCertificationVo implements java.io.Serializable, Cloneable {
private static final long serialVersionUID = 5046460327295113971L;
@ApiModelProperty(position = 11, value = "店铺认证状态[1-店铺审核中|2-审核不通过|3-审核通过]")
private String certStatus;
@ApiModelProperty(position = 12, value = "拒绝原因[256]")
private String reason;
private static final GoblinStoreCertificationVo obj = new GoblinStoreCertificationVo();
public static GoblinStoreCertificationVo getNew() {
try {
return (GoblinStoreCertificationVo) obj.clone();
} catch (CloneNotSupportedException e) {
return new GoblinStoreCertificationVo();
}
}
}
...@@ -6,6 +6,7 @@ import com.liquidnet.commons.lang.util.JsonUtils; ...@@ -6,6 +6,7 @@ import com.liquidnet.commons.lang.util.JsonUtils;
import com.liquidnet.service.base.ResponseDto; import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.goblin.dto.manage.GoblinStoreMgtCertificationParam; import com.liquidnet.service.goblin.dto.manage.GoblinStoreMgtCertificationParam;
import com.liquidnet.service.goblin.dto.manage.GoblinStoreMgtCompleteParam; import com.liquidnet.service.goblin.dto.manage.GoblinStoreMgtCompleteParam;
import com.liquidnet.service.goblin.dto.manage.vo.GoblinStoreCertificationVo;
import com.liquidnet.service.goblin.service.manage.GoblinStoreMgtCertificationService; import com.liquidnet.service.goblin.service.manage.GoblinStoreMgtCertificationService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
...@@ -33,8 +34,17 @@ public class GoblinStoreMgtCertificationController { ...@@ -33,8 +34,17 @@ public class GoblinStoreMgtCertificationController {
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
@ApiOperation(value = "认证状态", notes = "查取默认店铺认证状态,响应说明[data:1-店铺审核中|2-审核不通过|3-审核通过]") @ApiOperation(value = "认证状态", notes = "查取默认店铺认证状态,响应说明[data:1-店铺审核中|2-审核不通过|3-审核通过]")
@PostMapping("status") @PostMapping("status")
public ResponseDto<String> certificationStatus() { public ResponseDto<GoblinStoreCertificationVo> certificationStatus() {
return ResponseDto.success(RandomStringUtils.random(1, "123")); GoblinStoreCertificationVo storeCertificationVo = GoblinStoreCertificationVo.getNew();
// TODO: 2021/12/27 zhanggb
String status = RandomStringUtils.random(1, "123");
storeCertificationVo.setCertStatus(status);
if (status.equals("2")) {
storeCertificationVo.setReason("这是一个原因这是一个原因这是一个原因这是一个原因");
}
return ResponseDto.success();
} }
@ApiOperationSupport(order = 2) @ApiOperationSupport(order = 2)
......
...@@ -14,11 +14,11 @@ public class GoblinStoreMgtCertificationServiceImpl implements GoblinStoreMgtCer ...@@ -14,11 +14,11 @@ public class GoblinStoreMgtCertificationServiceImpl implements GoblinStoreMgtCer
@Override @Override
public void certificationInformationProcessing(GoblinStoreMgtCertificationParam param) { public void certificationInformationProcessing(GoblinStoreMgtCertificationParam param) {
// TODO: 2021/12/27 zhanggb
} }
@Override @Override
public void certificationCompleteProcessing(GoblinStoreMgtCompleteParam param) { public void certificationCompleteProcessing(GoblinStoreMgtCompleteParam param) {
// TODO: 2021/12/27 zhanggb
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment