2026-08-09 10:43:45 +08:00
|
|
|
// Code generated by goctl. DO NOT EDIT.
|
|
|
|
|
// Source: delivery.proto
|
|
|
|
|
|
|
|
|
|
package server
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
|
2026-08-09 12:41:08 +08:00
|
|
|
"bsm/full/module/ec/delivery/external/pb/delivery"
|
|
|
|
|
teamlogic "bsm/full/module/ec/delivery/internal/logic/team"
|
|
|
|
|
"bsm/full/module/ec/delivery/internal/svc"
|
2026-08-09 10:43:45 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type TeamServer struct {
|
|
|
|
|
svcCtx *svc.ServiceContext
|
|
|
|
|
delivery.UnimplementedTeamServer
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func NewTeamServer(svcCtx *svc.ServiceContext) *TeamServer {
|
|
|
|
|
return &TeamServer{
|
|
|
|
|
svcCtx: svcCtx,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 配送团队列表
|
|
|
|
|
func (s *TeamServer) TeamList(ctx context.Context, in *delivery.FetchRequest) (*delivery.TeamListReply, error) {
|
|
|
|
|
l := teamlogic.NewTeamListLogic(ctx, s.svcCtx)
|
|
|
|
|
return l.TeamList(in)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 添加配送团队
|
|
|
|
|
func (s *TeamServer) TeamAdd(ctx context.Context, in *delivery.TeamItem) (*delivery.StatusReply, error) {
|
|
|
|
|
l := teamlogic.NewTeamAddLogic(ctx, s.svcCtx)
|
|
|
|
|
return l.TeamAdd(in)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 配送团队详情
|
|
|
|
|
func (s *TeamServer) TeamGet(ctx context.Context, in *delivery.IdentRequest) (*delivery.TeamItem, error) {
|
|
|
|
|
l := teamlogic.NewTeamGetLogic(ctx, s.svcCtx)
|
|
|
|
|
return l.TeamGet(in)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 修改配送团队信息
|
|
|
|
|
func (s *TeamServer) TeamSet(ctx context.Context, in *delivery.TeamItem) (*delivery.StatusReply, error) {
|
|
|
|
|
l := teamlogic.NewTeamSetLogic(ctx, s.svcCtx)
|
|
|
|
|
return l.TeamSet(in)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 删除配送团队
|
|
|
|
|
func (s *TeamServer) TeamDel(ctx context.Context, in *delivery.IdentRequest) (*delivery.StatusReply, error) {
|
|
|
|
|
l := teamlogic.NewTeamDelLogic(ctx, s.svcCtx)
|
|
|
|
|
return l.TeamDel(in)
|
|
|
|
|
}
|