feat: import services and standardize Go 1.26.5

This commit is contained in:
2026-08-09 10:43:45 +08:00
parent 689c74b28f
commit 86024fa81d
1456 changed files with 220765 additions and 2 deletions

View File

@@ -0,0 +1,53 @@
// Code generated by goctl. DO NOT EDIT.
// Source: delivery.proto
package server
import (
"context"
"git.apinb.com/bsm-service-ec/delivery/external/pb/delivery"
carlogic "git.apinb.com/bsm-service-ec/delivery/internal/logic/car"
"git.apinb.com/bsm-service-ec/delivery/internal/svc"
)
type CarServer struct {
svcCtx *svc.ServiceContext
delivery.UnimplementedCarServer
}
func NewCarServer(svcCtx *svc.ServiceContext) *CarServer {
return &CarServer{
svcCtx: svcCtx,
}
}
// 配送车辆列表
func (s *CarServer) CarList(ctx context.Context, in *delivery.FetchRequest) (*delivery.CarListReply, error) {
l := carlogic.NewCarListLogic(ctx, s.svcCtx)
return l.CarList(in)
}
// 添加配送车辆信息
func (s *CarServer) CarAdd(ctx context.Context, in *delivery.CarItem) (*delivery.StatusReply, error) {
l := carlogic.NewCarAddLogic(ctx, s.svcCtx)
return l.CarAdd(in)
}
// 获取配送车辆信息
func (s *CarServer) CarGet(ctx context.Context, in *delivery.IdentRequest) (*delivery.CarItem, error) {
l := carlogic.NewCarGetLogic(ctx, s.svcCtx)
return l.CarGet(in)
}
// 修改配送车辆信息
func (s *CarServer) CarSet(ctx context.Context, in *delivery.CarItem) (*delivery.StatusReply, error) {
l := carlogic.NewCarSetLogic(ctx, s.svcCtx)
return l.CarSet(in)
}
// 删除配送车辆信息
func (s *CarServer) CarDel(ctx context.Context, in *delivery.IdentRequest) (*delivery.StatusReply, error) {
l := carlogic.NewCarDelLogic(ctx, s.svcCtx)
return l.CarDel(in)
}