mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-23 05:00:25 +08:00
feat:优惠券基本业务代码开发
This commit is contained in:
parent
74b3d107b3
commit
349705027c
@ -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);
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user