package com.hz.his.feign.service;
|
|
import com.hx.resultTool.Result;
|
import com.hz.phis.dt.user.UserAppointmentDt;
|
import com.hz.phis.dt.user.UserDt;
|
import com.hz.phis.dt.user.card.UserCardDt;
|
import com.hz.phis.dt.user.card.UserCardUsedDt;
|
import com.hz.phis.dt.user.coupon.UserCanUseCouponDt;
|
import com.hz.phis.dt.user.coupon.UserCouponDt;
|
import com.hz.phis.dt.user.money.UserConsumeDt;
|
import com.hz.phis.dt.user.label.UserLabelDt;
|
import com.hz.phis.dt.user.project.UserProjectDt;
|
import com.hz.phis.dt.user.money.UserIncrementDt;
|
import com.hz.phis.dt.user.money.UserIntegralDt;
|
import com.hz.phis.dt.user.money.UserRechargeDt;
|
import com.hz.phis.dt.user.project.UserProjectUsedDt;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
/**
|
* 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
|
*/
|
@FeignClient(name="phis-provider",path = "/p-his-data",contextId = "user")
|
public interface SUserService {
|
|
/**
|
* 获取用户基本信息
|
* @param
|
* */
|
@PostMapping(value = "/user/info/basic")
|
Result userBasicInfo(@RequestParam("userId") String userId);
|
|
/**
|
* 获取到用户详情
|
* @param userId 预约用户标识
|
* @return UserDt
|
*/
|
@PostMapping(value = "/user/info")
|
Result userInfo(@RequestParam("userId") String userId);
|
|
/**
|
* 获取用户项目
|
*/
|
@PostMapping(value = "/user/project/list")
|
Result userProject(@RequestBody UserProjectDt userProjectDt);
|
|
/**
|
* 获取用户子项目
|
*/
|
@PostMapping(value = "/user/project/item/list")
|
Result userProjectItem(@RequestBody UserProjectDt userProjectDt);
|
|
/**
|
* 获取用户子项目使用记录
|
*/
|
@PostMapping(value = "/user/project/used")
|
Result userProjectUsed(@RequestBody UserProjectUsedDt userProjectUsedDt);
|
|
|
/**
|
* 获取用户卡包
|
*/
|
@PostMapping(value = "/user/card")
|
Result userCard(@RequestBody UserCardDt userCardDt);
|
|
/**
|
* 获取用户卡包使用记录
|
*/
|
@PostMapping(value = "/user/card/used")
|
Result userCardUsed(@RequestBody UserCardUsedDt userCardUsedDt);
|
|
|
/**
|
* 获取用户促销使用记录
|
* @param orderItemNo 子订单号
|
* */
|
@PostMapping(value = "/user/promotion/used")
|
Result userPromotionUsed(@RequestParam("orderItemNo") String orderItemNo);
|
|
|
/**
|
* 获取用户优惠券
|
* */
|
@PostMapping(value = "/user/coupon")
|
Result userCoupon(@RequestBody UserCouponDt userCouponDt);
|
|
/**
|
* 获取用户优惠券使用记录
|
* */
|
@PostMapping(value = "/user/coupon/used")
|
Result userCouponUsed(@RequestParam UserCouponDt userCouponDt);
|
|
|
/**
|
* 获取用户增值金列表
|
* */
|
@PostMapping(value = "/user/increment/list")
|
Result userIncrementList(@RequestBody UserIncrementDt userIncrementDt);
|
|
/**
|
* 获取用户增值金使用记录
|
* */
|
@PostMapping(value = "/user/increment/used")
|
Result userIncrementUsed(@RequestBody UserIncrementDt userIncrementDt);
|
|
/**
|
* 获取用户储值金列表
|
* */
|
@PostMapping(value = "/user/recharge/list")
|
Result userRechargeList(@RequestBody UserRechargeDt userRechargeDt);
|
|
/**
|
* 获取用户储值金使用记录
|
* */
|
@PostMapping(value = "/user/recharge/used")
|
Result userRechargeUsed(@RequestBody UserRechargeDt userRechargeDt);
|
|
/**
|
* 获取用户积分列表
|
* */
|
@PostMapping(value = "/user/integral/list")
|
Result userIntegralList(@RequestBody UserIntegralDt userIntegralDt);
|
|
/**
|
* 获取用户积分使用记录
|
* */
|
@PostMapping(value = "/user/integral/used")
|
Result userIntegralUsed(@RequestBody UserIntegralDt userIntegralDt);
|
|
/**
|
* 根据电话号码查询用户信息
|
* @param tel
|
* */
|
@PostMapping(value = "/user/info/tel")
|
Result findUserInfoByTel(@RequestParam("tel") String tel);
|
|
/**
|
* 获取用户拥有统计
|
* @param
|
* */
|
@PostMapping(value = "/user/have/count")
|
Result userHaveCount(@RequestParam("userId") String userId);
|
|
/**
|
* 获取用户可用优惠券
|
* @param
|
* */
|
@PostMapping(value = "/user/can/use/coupon")
|
Result userCanUseCoupon(@RequestBody UserCanUseCouponDt userCanUseCouponDt);
|
|
/**
|
* 根据电话号码或者CIQ获取指定用户
|
* */
|
@PostMapping(value = "/user/info/telOrCiq")
|
Result findUserByTelOrCiq(@RequestBody UserDt userDt);
|
|
|
/**
|
* 获取用户标签
|
* @param
|
* */
|
@PostMapping(value = "/user/label")
|
Result userLabel(@RequestBody UserLabelDt userLabelDt);
|
|
|
/**
|
* 获取用户消费数据
|
* @param
|
* */
|
@PostMapping(value = "/user/consume/count")
|
Result userConsumeCount(@RequestBody UserConsumeDt userConsumeDt);
|
|
|
/**
|
* 获取用户预约数据
|
* */
|
@PostMapping(value = "/user/appointment/list")
|
Result userAppointment(@RequestBody UserAppointmentDt userAppointmentDt);
|
|
/**
|
* 获取用户划扣记录
|
* */
|
@PostMapping(value = "/user/project/deduction/list")
|
Result userProjectDeduction(@RequestBody UserProjectDt userProjectDt);
|
|
}
|