feat:优惠券基本业务代码开发

This commit is contained in:
dongtiandexue 2021-07-13 23:20:01 +08:00
parent 74b3d107b3
commit 349705027c

View File

@ -0,0 +1,32 @@
package com.youlai.mall.sms.api.app;
import com.youlai.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
/**
* @author huawei
* @desc 优惠券领券记录APP端Feign接口
* @email huawei_code@163.com
* @date 2021/3/17
*/
@FeignClient(value = "mall-sms")
public interface CouponRecordFeignService {
@GetMapping("/api.app/v1/coupon_record/list")
Result list();
@GetMapping("/api.app/v1/coupon_record/{id}/detail")
Result detail(@PathVariable("id") String id);
@PostMapping("/api.app/v1/coupon_record")
Result add(@RequestParam("couponId") String couponId);
@PostMapping("/api.app/v1/coupon_record/push")
Result add(@RequestParam("couponType") Integer couponType,
@RequestParam("userId") Long userId);
}