瀏覽代碼

三勾商城对接接口

tags/V1.8.1
chenjiandong 1 年之前
父節點
當前提交
659861633b
共有 5 個檔案被更改,包括 8 行新增8 行删除
  1. +1
    -1
      tuoheng-api/src/main/java/com/tuoheng/api/entity/dto/WxGetUserPointsDto.java
  2. +1
    -1
      tuoheng-api/src/main/java/com/tuoheng/api/entity/dto/WxSubUserPointsDto.java
  3. +2
    -2
      tuoheng-api/src/main/java/com/tuoheng/api/entity/request/WxGetUserPointsQuery.java
  4. +2
    -2
      tuoheng-api/src/main/java/com/tuoheng/api/entity/request/WxSubUserPointsRequest.java
  5. +2
    -2
      tuoheng-api/src/main/java/com/tuoheng/api/service/impl/WxServiceImpl.java

+ 1
- 1
tuoheng-api/src/main/java/com/tuoheng/api/entity/dto/WxGetUserPointsDto.java 查看文件

@@ -14,7 +14,7 @@ import javax.validation.constraints.NotNull;
@Accessors(chain = true)
public class WxGetUserPointsDto {

private Integer tenantId;
private String tenantCode;

private String unionId;


+ 1
- 1
tuoheng-api/src/main/java/com/tuoheng/api/entity/dto/WxSubUserPointsDto.java 查看文件

@@ -14,7 +14,7 @@ import javax.validation.constraints.NotNull;
@Accessors(chain = true)
public class WxSubUserPointsDto {

private Integer tenantId;
private String tenantCode;

private String unionId;


+ 2
- 2
tuoheng-api/src/main/java/com/tuoheng/api/entity/request/WxGetUserPointsQuery.java 查看文件

@@ -12,8 +12,8 @@ import javax.validation.constraints.NotNull;
@Data
public class WxGetUserPointsQuery {

@NotNull(message = "tenantId can not be null")
private Integer tenantId;
@NotNull(message = "tenantCode can not be null")
private String tenantCode;

@NotNull(message = "unionId can not be null")
private String unionId;

+ 2
- 2
tuoheng-api/src/main/java/com/tuoheng/api/entity/request/WxSubUserPointsRequest.java 查看文件

@@ -12,8 +12,8 @@ import javax.validation.constraints.NotNull;
@Data
public class WxSubUserPointsRequest {

@NotNull(message = "tenantId can not be null")
private Integer tenantId;
@NotNull(message = "tenantCode can not be null")
private String tenantCode;

@NotNull(message = "unionId can not be null")
private String unionId;

+ 2
- 2
tuoheng-api/src/main/java/com/tuoheng/api/service/impl/WxServiceImpl.java 查看文件

@@ -59,7 +59,7 @@ public class WxServiceImpl implements IWxService {
public JsonResult getUserPoints(WxGetUserPointsQuery wxGetUserPointsQuery){
//todo: 第三方查询用户积分接口
WxGetUserPointsDto wxGetUserPointsDto = new WxGetUserPointsDto()
.setTenantId(wxGetUserPointsQuery.getTenantId())
.setTenantCode(wxGetUserPointsQuery.getTenantCode())
.setUnionId(wxGetUserPointsQuery.getUnionId())
.setPoints(9000);
return JsonResult.success(wxGetUserPointsDto);
@@ -69,7 +69,7 @@ public class WxServiceImpl implements IWxService {
public JsonResult subUserPoints(WxSubUserPointsRequest wxSubUserPointsRequest){
//todo: 第三方消减用户积分接口
WxSubUserPointsDto wxSubUserPointsDto = new WxSubUserPointsDto()
.setTenantId(wxSubUserPointsRequest.getTenantId())
.setTenantCode(wxSubUserPointsRequest.getTenantCode())
.setUnionId(wxSubUserPointsRequest.getUnionId())
.setPoints(wxSubUserPointsRequest.getPoints())
.setOptResult(true);

Loading…
取消
儲存