wangrenhuang
2023-02-14 e8d58805e74fecad993713f69f004ac91ebfc340
新增打赏接口
2个文件已添加
54 ■■■■■ 已修改文件
phis-feign/src/main/java/com/hz/his/feign/service/platform/questionnaire/SPhipRewardService.java 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/phis/dt/reward/RewardRecordDto.java 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
phis-feign/src/main/java/com/hz/his/feign/service/platform/questionnaire/SPhipRewardService.java
New file
@@ -0,0 +1,30 @@
package com.hz.his.feign.service.platform.questionnaire;
import com.hx.resultTool.Result;
import com.hz.his.dto.activity.ActivityDto;
import com.hz.phis.dt.reward.RewardRecordDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import java.util.List;
/**
 * 这里这个name 需要填写 请求的服务提供者的注册到nacos Server上面的服务名,path 是请求接口前缀
 */
@FeignClient(name="phi-platform-service",path = "/phip",contextId = "phip-reward")
public interface SPhipRewardService {
    /**
     * 查询打赏商品
     */
    @PostMapping(value = "/questionnaire/reward-goods/list")
    Result rewardGoodsList();
    /**
     * 打赏
     */
    @PostMapping(value = "/questionnaire/reward")
    Result reward(List<RewardRecordDto> list);
}
phis-feign/src/main/java/com/hz/phis/dt/reward/RewardRecordDto.java
New file
@@ -0,0 +1,24 @@
package com.hz.phis.dt.reward;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import lombok.Data;
@Data
public class RewardRecordDto {
    private String goodsName;
    private String goodsId;
    private String employeeId;
    private Integer deduIntegral;
    private Integer number;
    private Integer type;
    private String commonId;
    private String userId;
}