2026-08-09 10:43:45 +08:00
|
|
|
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
|
|
|
|
package server
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
2026-08-09 12:41:08 +08:00
|
|
|
"bsm/full/module/ec/order/internal/logic/coupon"
|
|
|
|
|
pb "bsm/full/module/ec/order/pb"
|
2026-08-09 10:43:45 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type CouponServer struct {
|
|
|
|
|
pb.UnimplementedCouponServer
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func NewCouponServer() *CouponServer {
|
|
|
|
|
return &CouponServer{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 按状态获取优惠卷
|
|
|
|
|
func (s *CouponServer) ByStatus(ctx context.Context, in *pb.Status) (*pb.CouponListReply, error) {
|
|
|
|
|
return coupon.ByStatus(ctx, in)
|
|
|
|
|
}
|