package com.hz.his.feign.service.phis; import com.hx.resultTool.Result; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestParam; import java.math.BigDecimal; /** * @ClassName SActivityController * @Description 活动规则 * @Author Wrh * @Date 2022/8/8 17:36 * @Version 1.0 */ @FeignClient(name="phi-platform-user",path = "/p-his-data",contextId = "activity") public interface SActivityService { /** * 活动规则详情 * @param id 活动标识 * @return Result */ @PostMapping(value = "/activity/detail") Result getActivityDetail(@RequestParam("id") String id); /** * 活动规则列表 * @param shoId 门店标识 * @return Result */ @PostMapping(value = "/activity/shopId/list") Result getActivityList(@RequestParam("shoId") String shoId,@RequestParam("appId") String appId); /** * 校验用户是否符合活动规则 * @param userId 用户标识 * @param id 活动标识 * @param ordersTotal 订单总金额 * @return Result */ @PostMapping(value = "/activity/check") Result check(@RequestParam("userId") String userId,@RequestParam("id") String id, @RequestParam("ordersTotal") BigDecimal ordersTotal,@RequestParam("shopId") String shopId); }