refactor: reorganize modules and add Linux build tooling

This commit is contained in:
2026-08-09 12:41:08 +08:00
parent 86024fa81d
commit 5cc5fd92ed
1461 changed files with 4054 additions and 4724 deletions

View File

@@ -0,0 +1,51 @@
// Code generated by protoc-gen-slc. DO NOT EDIT.
package server
import (
"context"
"bsm/full/module/ec/order/internal/logic/mgt"
pb "bsm/full/module/ec/order/pb"
)
type MgtServer struct {
pb.UnimplementedMgtServer
}
func NewMgtServer() *MgtServer {
return &MgtServer{}
}
// 创建订单
func (s *MgtServer) OrderCreate(ctx context.Context, in *pb.CreateOrderRequest) (*pb.StatusReply, error) {
return mgt.OrderCreate(ctx, in)
}
// 修改订单
func (s *MgtServer) OrderModify(ctx context.Context, in *pb.OrderSummaryItem) (*pb.StatusReply, error) {
return mgt.OrderModify(ctx, in)
}
// 获取一个订单的详情数据
func (s *MgtServer) OrderGet(ctx context.Context, in *pb.IdentRequest) (*pb.OrderGetReply, error) {
return mgt.OrderGet(ctx, in)
}
// 根据不同的类型获取店铺的订单列表
func (s *MgtServer) OrderListByStore(ctx context.Context, in *pb.OrderListByStoreRequest) (*pb.OrderListByStoreReply, error) {
return mgt.OrderListByStore(ctx, in)
}
// 取消订单
func (s *MgtServer) OrderCancel(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
return mgt.OrderCancel(ctx, in)
}
// 退货
func (s *MgtServer) OrderReturnable(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
return mgt.OrderReturnable(ctx, in)
}
// 订单审批
func (s *MgtServer) OrderApprove(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
return mgt.OrderApprove(ctx, in)
}