feat: import services and standardize Go 1.26.5
This commit is contained in:
21
apps/ec/order/internal/server/coupon_server.go
Normal file
21
apps/ec/order/internal/server/coupon_server.go
Normal file
@@ -0,0 +1,21 @@
|
||||
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.apinb.com/bsm-ec/order/internal/logic/coupon"
|
||||
pb "git.apinb.com/bsm-ec/order/pb"
|
||||
)
|
||||
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user