refactor: reorganize modules and add Linux build tooling
This commit is contained in:
61
module/ec/mall/internal/server/freight_server.go
Normal file
61
module/ec/mall/internal/server/freight_server.go
Normal file
@@ -0,0 +1,61 @@
|
||||
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/ec/mall/internal/logic/freight"
|
||||
pb "bsm/full/module/ec/mall/pb"
|
||||
)
|
||||
|
||||
type FreightServer struct {
|
||||
pb.UnimplementedFreightServer
|
||||
}
|
||||
|
||||
func NewFreightServer() *FreightServer {
|
||||
return &FreightServer{}
|
||||
}
|
||||
|
||||
// 运费模板列表
|
||||
func (s *FreightServer) Fetch(ctx context.Context, in *pb.FetchRequest) (*pb.FreightReply, error) {
|
||||
return freight.Fetch(ctx, in)
|
||||
}
|
||||
|
||||
// 运费模板修改
|
||||
func (s *FreightServer) Modify(ctx context.Context, in *pb.FreightItem) (*pb.StatusReply, error) {
|
||||
return freight.Modify(ctx, in)
|
||||
}
|
||||
|
||||
// 运费模板删除
|
||||
func (s *FreightServer) Delete(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
|
||||
return freight.Delete(ctx, in)
|
||||
}
|
||||
|
||||
// 运费模板创建
|
||||
func (s *FreightServer) Create(ctx context.Context, in *pb.FreightItem) (*pb.StatusReply, error) {
|
||||
return freight.Create(ctx, in)
|
||||
}
|
||||
|
||||
// 运费模板详情
|
||||
func (s *FreightServer) Detail(ctx context.Context, in *pb.IdentRequest) (*pb.FreightItem, error) {
|
||||
return freight.Detail(ctx, in)
|
||||
}
|
||||
|
||||
// 限制区域列表
|
||||
func (s *FreightServer) DenyRegionFetch(ctx context.Context, in *pb.FetchRequest) (*pb.DenyRegionReply, error) {
|
||||
return freight.DenyRegionFetch(ctx, in)
|
||||
}
|
||||
|
||||
// 新建限制区域
|
||||
func (s *FreightServer) DenyRegionCreate(ctx context.Context, in *pb.DenyRegionItem) (*pb.StatusReply, error) {
|
||||
return freight.DenyRegionCreate(ctx, in)
|
||||
}
|
||||
|
||||
// 移除限制区域
|
||||
func (s *FreightServer) DenyRegionDelete(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
|
||||
return freight.DenyRegionDelete(ctx, in)
|
||||
}
|
||||
|
||||
// 编辑限制区域
|
||||
func (s *FreightServer) DenyRegionModify(ctx context.Context, in *pb.DenyRegionItem) (*pb.StatusReply, error) {
|
||||
return freight.DenyRegionModify(ctx, in)
|
||||
}
|
||||
Reference in New Issue
Block a user