56 changed files with 352 additions and 293 deletions
@ -1,23 +0,0 @@ |
|||||
package com.bnyer.img.api.dto; |
|
||||
|
|
||||
import io.swagger.annotations.ApiModel; |
|
||||
import io.swagger.annotations.ApiModelProperty; |
|
||||
import lombok.Getter; |
|
||||
import lombok.Setter; |
|
||||
|
|
||||
/** |
|
||||
* @author :WXC |
|
||||
* @Date :2023/03/31 |
|
||||
* @description : |
|
||||
*/ |
|
||||
@Getter |
|
||||
@Setter |
|
||||
@ApiModel("会员vip查询类") |
|
||||
public class QueryUserVipDto { |
|
||||
@ApiModelProperty(value="主键Id") |
|
||||
private Long id; |
|
||||
|
|
||||
@ApiModelProperty(value="vip客户端类型:10用户-抖音 20用户-快手 30用户-微信 40艺术家-微信") |
|
||||
private Integer userClientType; |
|
||||
|
|
||||
} |
|
||||
@ -0,0 +1,24 @@ |
|||||
|
package com.bnyer.img.api.remote; |
||||
|
|
||||
|
import com.bnyer.common.core.constant.ServiceNameConstants; |
||||
|
import com.bnyer.common.core.domain.R; |
||||
|
import com.bnyer.img.api.factory.RemoteWxMiniFallbackFactory; |
||||
|
import com.bnyer.img.api.vo.UserVipVo; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||
|
import org.springframework.web.bind.annotation.PathVariable; |
||||
|
|
||||
|
/** |
||||
|
* @author :WXC |
||||
|
* @description : |
||||
|
*/ |
||||
|
@FeignClient(path = "/img/mini/vip",contextId = "remoteWxMiniService", value = ServiceNameConstants.IMG_SERVICE, fallbackFactory = RemoteWxMiniFallbackFactory.class) |
||||
|
public interface RemoteUserVipService { |
||||
|
|
||||
|
/** |
||||
|
* 获取会员信息 |
||||
|
* @return |
||||
|
*/ |
||||
|
@GetMapping(value = "/queryUserVip/{id}") |
||||
|
R<UserVipVo> queryUserVip(@PathVariable(value = "id") Long id); |
||||
|
} |
||||
@ -1,27 +0,0 @@ |
|||||
package com.bnyer.img.api.remote; |
|
||||
|
|
||||
import com.bnyer.common.core.constant.ServiceNameConstants; |
|
||||
import com.bnyer.common.core.domain.R; |
|
||||
import com.bnyer.img.api.dto.QueryUserVipDto; |
|
||||
import com.bnyer.img.api.factory.RemoteWxMiniFallbackFactory; |
|
||||
import com.bnyer.img.api.vo.UserVipInfoVo; |
|
||||
import org.springframework.cloud.openfeign.FeignClient; |
|
||||
import org.springframework.web.bind.annotation.PostMapping; |
|
||||
import org.springframework.web.bind.annotation.RequestBody; |
|
||||
|
|
||||
import java.util.List; |
|
||||
|
|
||||
/** |
|
||||
* @author :WXC |
|
||||
* @description : |
|
||||
*/ |
|
||||
@FeignClient(contextId = "remoteWxMiniService", value = ServiceNameConstants.IMG_SERVICE, fallbackFactory = RemoteWxMiniFallbackFactory.class) |
|
||||
public interface RemoteWxMiniService { |
|
||||
|
|
||||
/** |
|
||||
* 获取会员列表 |
|
||||
* @return |
|
||||
*/ |
|
||||
@PostMapping(value = "/img/mini/fh/queryUserVipList") |
|
||||
R<List<UserVipInfoVo>> queryUserVipList(@RequestBody QueryUserVipDto dto); |
|
||||
} |
|
||||
@ -1,22 +1,26 @@ |
|||||
package com.bnyer.order.query; |
package com.bnyer.order.api.query; |
||||
|
|
||||
import io.swagger.annotations.ApiModelProperty; |
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Getter; |
import lombok.Getter; |
||||
import lombok.NoArgsConstructor; |
import lombok.NoArgsConstructor; |
||||
import lombok.Setter; |
import lombok.Setter; |
||||
|
|
||||
import javax.validation.constraints.NotBlank; |
import java.io.Serializable; |
||||
|
|
||||
/** |
/** |
||||
* @author :WXC |
* @author :WXC |
||||
* @Date :2023/05/09 |
* @Date :2023/03/27 |
||||
* @description : |
* @description : |
||||
*/ |
*/ |
||||
@Getter |
@Getter |
||||
@Setter |
@Setter |
||||
@NoArgsConstructor |
@NoArgsConstructor |
||||
public class VipOrderDetailsQuery { |
public class VipOrderExtQuery implements Serializable { |
||||
@NotBlank(message = "订单号不能为空") |
|
||||
|
@ApiModelProperty(value = "id") |
||||
|
private Long id; |
||||
|
|
||||
@ApiModelProperty(value="订单号") |
@ApiModelProperty(value="订单号") |
||||
private String orderNo; |
private String orderNo; |
||||
|
|
||||
} |
} |
||||
@ -1,23 +0,0 @@ |
|||||
package com.bnyer.common.core.dto; |
|
||||
|
|
||||
import io.swagger.annotations.ApiModel; |
|
||||
import io.swagger.annotations.ApiModelProperty; |
|
||||
import lombok.Getter; |
|
||||
import lombok.Setter; |
|
||||
|
|
||||
/** |
|
||||
* @author :WXC |
|
||||
* @Date :2023/03/31 |
|
||||
* @description : |
|
||||
*/ |
|
||||
@Getter |
|
||||
@Setter |
|
||||
@ApiModel("会员vip查询类") |
|
||||
public class QueryUserVipDto { |
|
||||
@ApiModelProperty(value="主键Id") |
|
||||
private Long id; |
|
||||
|
|
||||
@ApiModelProperty(value="vip客户端类型:10用户-抖音 20用户-快手 30用户-微信 40艺术家-微信") |
|
||||
private Integer userClientType; |
|
||||
|
|
||||
} |
|
||||
@ -0,0 +1,43 @@ |
|||||
|
package com.bnyer.img.controller; |
||||
|
|
||||
|
import com.bnyer.common.core.domain.R; |
||||
|
import com.bnyer.img.query.UserVipQuery; |
||||
|
import com.bnyer.img.service.UserVipService; |
||||
|
import com.bnyer.img.vo.UserVipVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.v3.oas.annotations.Operation; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @author :WXC |
||||
|
* @Date :2023/05/10 |
||||
|
* @description : |
||||
|
*/ |
||||
|
@Api(value = "【小程序】用户端接口",tags = "【小程序】用户端接口") |
||||
|
@RestController |
||||
|
@RequestMapping("/img/mini/vip") |
||||
|
@Slf4j |
||||
|
public class UserVipController { |
||||
|
|
||||
|
@Resource |
||||
|
private UserVipService userVipService; |
||||
|
|
||||
|
@Operation(summary="获取用户会员列表",description = "获取用户会员列表") |
||||
|
@PostMapping(value = "/queryUserVipList") |
||||
|
public R<List<UserVipVo>> queryUserVipList(@RequestBody UserVipQuery query){ |
||||
|
return R.ok(userVipService.queryUserVipList(query)); |
||||
|
} |
||||
|
|
||||
|
@Operation(summary="获取会员信息(单表查询)",description = "获取会员信息") |
||||
|
@GetMapping(value = "/queryUserVip/{id}") |
||||
|
public R<UserVipVo> queryUserVip(@PathVariable(value = "id") Long id){ |
||||
|
return R.ok(userVipService.queryUserVip(id)); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
@ -0,0 +1,18 @@ |
|||||
|
package com.bnyer.img.query; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModel; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Getter; |
||||
|
import lombok.Setter; |
||||
|
|
||||
|
/** |
||||
|
* @author :WXC |
||||
|
* @Date :2023/03/31 |
||||
|
* @description : |
||||
|
*/ |
||||
|
@Getter |
||||
|
@Setter |
||||
|
@ApiModel("会员查询类") |
||||
|
public class UserVipQuery { |
||||
|
|
||||
|
} |
||||
@ -1,16 +1,25 @@ |
|||||
package com.bnyer.img.service; |
package com.bnyer.img.service; |
||||
|
|
||||
import com.bnyer.common.core.dto.QueryUserVipDto; |
import com.baomidou.mybatisplus.extension.service.IService; |
||||
|
import com.bnyer.common.core.domain.UserVip; |
||||
|
import com.bnyer.img.query.UserVipQuery; |
||||
import com.bnyer.img.vo.UserVipVo; |
import com.bnyer.img.vo.UserVipVo; |
||||
|
|
||||
import java.util.List; |
import java.util.List; |
||||
|
|
||||
public interface UserVipService { |
public interface UserVipService extends IService<UserVip> { |
||||
|
|
||||
/** |
/** |
||||
* 获取小程序端会员vip列表 |
* 获取用户会员列表 |
||||
* @return - |
* @param query |
||||
|
* @return |
||||
*/ |
*/ |
||||
List<UserVipVo> queryFront(QueryUserVipDto dto); |
List<UserVipVo> queryUserVipList(UserVipQuery query); |
||||
|
|
||||
|
/** |
||||
|
* 获取会员详细信息 |
||||
|
* @param id |
||||
|
* @return |
||||
|
*/ |
||||
|
UserVipVo queryUserVip(Long id); |
||||
} |
} |
||||
|
|||||
@ -1,4 +1,4 @@ |
|||||
package com.bnyer.order.dto; |
package com.bnyer.order.bean.dto; |
||||
|
|
||||
import com.bnyer.common.core.domain.VipOrder; |
import com.bnyer.common.core.domain.VipOrder; |
||||
import com.bnyer.common.core.dto.BaseDto; |
import com.bnyer.common.core.dto.BaseDto; |
||||
@ -0,0 +1,35 @@ |
|||||
|
package com.bnyer.order.bean.query; |
||||
|
|
||||
|
import com.bnyer.common.core.exception.ServiceException; |
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Getter; |
||||
|
import lombok.NoArgsConstructor; |
||||
|
import lombok.Setter; |
||||
|
import org.apache.commons.lang3.StringUtils; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @author :WXC |
||||
|
* @Date :2023/03/27 |
||||
|
* @description : |
||||
|
*/ |
||||
|
@Getter |
||||
|
@Setter |
||||
|
@NoArgsConstructor |
||||
|
public class VipOrderExtQuery implements Serializable { |
||||
|
|
||||
|
@ApiModelProperty(value = "id") |
||||
|
private Long id; |
||||
|
|
||||
|
@ApiModelProperty(value="订单号") |
||||
|
private String orderNo; |
||||
|
|
||||
|
|
||||
|
public void valid() { |
||||
|
if (this.id == null || StringUtils.isBlank(this.orderNo)){ |
||||
|
throw new ServiceException("id 和 订单号不能同时为空"); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
@ -1,4 +1,4 @@ |
|||||
package com.bnyer.order.query; |
package com.bnyer.order.bean.query; |
||||
|
|
||||
import io.swagger.annotations.ApiModelProperty; |
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Getter; |
import lombok.Getter; |
||||
@ -1,4 +1,4 @@ |
|||||
package com.bnyer.order.vo; |
package com.bnyer.order.bean.vo; |
||||
|
|
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import io.swagger.annotations.ApiModelProperty; |
import io.swagger.annotations.ApiModelProperty; |
||||
@ -1,16 +0,0 @@ |
|||||
package com.bnyer.order.vo; |
|
||||
|
|
||||
import lombok.Getter; |
|
||||
import lombok.Setter; |
|
||||
|
|
||||
/** |
|
||||
* @author :WXC |
|
||||
* @Date :2023/03/27 |
|
||||
* @description : |
|
||||
*/ |
|
||||
@Getter |
|
||||
@Setter |
|
||||
public class VipOrderDetailsVo extends VipOrderVo{ |
|
||||
|
|
||||
|
|
||||
} |
|
||||
@ -1,4 +1,4 @@ |
|||||
package com.bnyer.pay.bo; |
package com.bnyer.pay.bean.bo; |
||||
|
|
||||
import lombok.Getter; |
import lombok.Getter; |
||||
import lombok.NoArgsConstructor; |
import lombok.NoArgsConstructor; |
||||
@ -1,4 +1,4 @@ |
|||||
package com.bnyer.pay.bo; |
package com.bnyer.pay.bean.bo; |
||||
|
|
||||
import lombok.Getter; |
import lombok.Getter; |
||||
import lombok.NoArgsConstructor; |
import lombok.NoArgsConstructor; |
||||
@ -1,4 +1,4 @@ |
|||||
package com.bnyer.pay.bo; |
package com.bnyer.pay.bean.bo; |
||||
|
|
||||
import lombok.Getter; |
import lombok.Getter; |
||||
import lombok.NoArgsConstructor; |
import lombok.NoArgsConstructor; |
||||
@ -1,4 +1,4 @@ |
|||||
package com.bnyer.pay.dto; |
package com.bnyer.pay.bean.dto; |
||||
|
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.bnyer.common.core.domain.PayInfo; |
import com.bnyer.common.core.domain.PayInfo; |
||||
@ -1,4 +1,4 @@ |
|||||
package com.bnyer.pay.dto; |
package com.bnyer.pay.bean.dto; |
||||
|
|
||||
import lombok.AllArgsConstructor; |
import lombok.AllArgsConstructor; |
||||
import lombok.Getter; |
import lombok.Getter; |
||||
@ -1,4 +1,4 @@ |
|||||
package com.bnyer.pay.dto; |
package com.bnyer.pay.bean.dto; |
||||
|
|
||||
import lombok.Getter; |
import lombok.Getter; |
||||
import lombok.NoArgsConstructor; |
import lombok.NoArgsConstructor; |
||||
@ -1,4 +1,4 @@ |
|||||
package com.bnyer.pay.dto; |
package com.bnyer.pay.bean.dto; |
||||
|
|
||||
import com.bnyer.common.core.enums.EnumPayType; |
import com.bnyer.common.core.enums.EnumPayType; |
||||
import lombok.Getter; |
import lombok.Getter; |
||||
@ -1,4 +1,4 @@ |
|||||
package com.bnyer.pay.dto; |
package com.bnyer.pay.bean.dto; |
||||
|
|
||||
import io.swagger.annotations.ApiModelProperty; |
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Getter; |
import lombok.Getter; |
||||
@ -1,4 +1,4 @@ |
|||||
package com.bnyer.pay.dto; |
package com.bnyer.pay.bean.dto; |
||||
|
|
||||
import lombok.Getter; |
import lombok.Getter; |
||||
import lombok.NoArgsConstructor; |
import lombok.NoArgsConstructor; |
||||
@ -1,4 +1,4 @@ |
|||||
package com.bnyer.pay.dto; |
package com.bnyer.pay.bean.dto; |
||||
|
|
||||
import com.bnyer.common.core.annotation.CustomParamsValidation; |
import com.bnyer.common.core.annotation.CustomParamsValidation; |
||||
import io.swagger.annotations.ApiModelProperty; |
import io.swagger.annotations.ApiModelProperty; |
||||
@ -1,4 +1,4 @@ |
|||||
package com.bnyer.pay.vo; |
package com.bnyer.pay.bean.vo; |
||||
|
|
||||
import lombok.Getter; |
import lombok.Getter; |
||||
import lombok.NoArgsConstructor; |
import lombok.NoArgsConstructor; |
||||
@ -1,4 +1,4 @@ |
|||||
package com.bnyer.pay.vo; |
package com.bnyer.pay.bean.vo; |
||||
|
|
||||
import io.swagger.annotations.ApiModelProperty; |
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.AllArgsConstructor; |
import lombok.AllArgsConstructor; |
||||
@ -1,4 +1,4 @@ |
|||||
package com.bnyer.pay.vo; |
package com.bnyer.pay.bean.vo; |
||||
|
|
||||
import io.swagger.annotations.ApiModelProperty; |
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Getter; |
import lombok.Getter; |
||||
@ -1,4 +1,4 @@ |
|||||
package com.bnyer.pay.vo; |
package com.bnyer.pay.bean.vo; |
||||
|
|
||||
import lombok.Getter; |
import lombok.Getter; |
||||
import lombok.NoArgsConstructor; |
import lombok.NoArgsConstructor; |
||||
@ -1,4 +1,4 @@ |
|||||
package com.bnyer.pay.vo; |
package com.bnyer.pay.bean.vo; |
||||
|
|
||||
/** |
/** |
||||
* @author :WXC |
* @author :WXC |
||||
@ -1,4 +1,4 @@ |
|||||
package com.bnyer.pay.vo; |
package com.bnyer.pay.bean.vo; |
||||
|
|
||||
import io.swagger.annotations.ApiModelProperty; |
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.*; |
import lombok.*; |
||||
@ -1,4 +1,4 @@ |
|||||
package com.bnyer.pay.vo; |
package com.bnyer.pay.bean.vo; |
||||
|
|
||||
import io.swagger.annotations.ApiModelProperty; |
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
import lombok.Data; |
||||
Loading…
Reference in new issue