feat:打标回调通知接口
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package com.cool.store.request.wallet;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/11/17 13:49
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class AddTagCallbackNoticeRequest {
|
||||
|
||||
@ApiModelProperty(name = "CRM门店编号", required = true)
|
||||
private String outStoreId;
|
||||
@ApiModelProperty(name = "状态1.打标成功 2.打标失败 3.处理中(打标状态)", required = true)
|
||||
private Integer status;
|
||||
@ApiModelProperty(name = "1.法人 2.非法人", required = true)
|
||||
private Integer addTagType;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.cool.store.request.wallet;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/11/17 11:20
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Data
|
||||
public class UpdatePasswordRequest {
|
||||
|
||||
@ApiModelProperty(name = "CRM门店编号", required = true)
|
||||
private String outStoreId;
|
||||
@ApiModelProperty(name = "维护类型 1.设置密码 2.修改密码", required = true)
|
||||
private Integer upholdType;
|
||||
@ApiModelProperty(name = "新支付密码(sm3加密后字符串)", required = true)
|
||||
private String newPayPwd;
|
||||
@ApiModelProperty(name = "确认新支付密码(sm3加密后字符串)", required = true)
|
||||
private String confirmPayPwd;
|
||||
@ApiModelProperty(name = "当前使用的支付密码(sm3加密后字符串),维护类型为修改密码时必填", required = false)
|
||||
private String currentPayPwd;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -3,9 +3,12 @@ package com.cool.store.response.bigdata;
|
||||
import com.cool.store.constants.CommonConstants;
|
||||
import com.cool.store.enums.ErrorCodeEnum;
|
||||
import com.cool.store.enums.ResponseCodeEnum;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import lombok.Data;
|
||||
import org.slf4j.MDC;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/4/1 10:49
|
||||
@@ -31,7 +34,19 @@ public class ApiResponse<T> {
|
||||
return new ApiResponse(ResponseCodeEnum.SUCCESS.getCode(), "ok", data);
|
||||
}
|
||||
|
||||
public static<T> ApiResponse<T> error(ErrorCodeEnum errorCodeEnum) {
|
||||
return new ApiResponse(errorCodeEnum.getCode(), errorCodeEnum.getMessage(), null);
|
||||
/**
|
||||
* 钱包系统 响应用200
|
||||
* @param data
|
||||
* @param <T>
|
||||
* @return
|
||||
*/
|
||||
public static<T> ApiResponse<T> successByWallet(T data) {
|
||||
return new ApiResponse(ResponseCodeEnum.SUCCESS_WALLET.getCode(), "ok", data);
|
||||
}
|
||||
|
||||
|
||||
public static ApiResponse fail(ErrorCodeEnum responseEnum, Object... objects){
|
||||
String message = MessageFormat.format(responseEnum.getMessage(), objects);
|
||||
return new ApiResponse(responseEnum.getCode(), message, false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user