| | |
| | | package com.dsh.course.feignClient.activity; |
| | | |
| | | import com.dsh.course.feignClient.activity.model.HuiminAgreementQuery; |
| | | import com.dsh.course.feignClient.activity.model.THuiminAgreement; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | /** |
| | | * @author mitao |
| | |
| | | */ |
| | | @FeignClient(value = "mb-cloud-activity") |
| | | public interface HuiminAgreementClient { |
| | | @PostMapping("/tHuiminAgreement/save") |
| | | void insert(THuiminAgreement tHuiminAgreement); |
| | | /** |
| | | * 根据当前用户类型查询惠民卡协议 |
| | | * @param objectType |
| | | * @param operatorId |
| | | * @return |
| | | */ |
| | | @PostMapping("/base/tHuiminAgreement/selectByObjectType") |
| | | THuiminAgreement selectByObjectType(@RequestBody HuiminAgreementQuery query); |
| | | |
| | | /** |
| | | * 保存惠民卡协议 |
| | | * @param tHuiminAgreement |
| | | */ |
| | | @PostMapping("/base/tHuiminAgreement/save") |
| | | void insert(@RequestBody THuiminAgreement tHuiminAgreement); |
| | | |
| | | } |