package controller import ( "context" "36wisdom/biz/model/dto" "36wisdom/biz/service" ) type redemption struct{} var Redemption = &redemption{} type adminRedemption struct{} var AdminRedemption = &adminRedemption{} func (c *adminRedemption) List(ctx context.Context, req *dto.AdminRedemptionListReq) (*dto.AdminRedemptionListRes, error) { return service.AdminRedemption.List(ctx, req) } func (c *adminRedemption) Ship(ctx context.Context, req *dto.AdminRedemptionShipReq) (*dto.AdminRedemptionShipRes, error) { return service.AdminRedemption.Ship(ctx, req) } func (c *adminRedemption) Receive(ctx context.Context, req *dto.AdminRedemptionReceiveReq) (*dto.AdminRedemptionReceiveRes, error) { return service.AdminRedemption.Receive(ctx, req) } func (c *adminRedemption) Cancel(ctx context.Context, req *dto.AdminRedemptionCancelReq) (*dto.AdminRedemptionCancelRes, error) { return service.AdminRedemption.Cancel(ctx, req) }