feat: import services and standardize Go 1.26.5
This commit is contained in:
41
apps/ec/market/internal/server/supply_server.go
Normal file
41
apps/ec/market/internal/server/supply_server.go
Normal file
@@ -0,0 +1,41 @@
|
||||
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.apinb.com/bsm-ec/market/internal/logic/supply"
|
||||
pb "git.apinb.com/bsm-ec/market/pb"
|
||||
)
|
||||
|
||||
type SupplyServer struct {
|
||||
pb.UnimplementedSupplyServer
|
||||
}
|
||||
|
||||
func NewSupplyServer() *SupplyServer {
|
||||
return &SupplyServer{}
|
||||
}
|
||||
|
||||
// 新增供应商
|
||||
func (s *SupplyServer) Create(ctx context.Context, in *pb.MarketSupplyItem) (*pb.StatusReply, error) {
|
||||
return supply.Create(ctx, in)
|
||||
}
|
||||
|
||||
// 获取一个供应商
|
||||
func (s *SupplyServer) Get(ctx context.Context, in *pb.IdentRequest) (*pb.MarketSupplyItem, error) {
|
||||
return supply.Get(ctx, in)
|
||||
}
|
||||
|
||||
// 供应商列表
|
||||
func (s *SupplyServer) Fetch(ctx context.Context, in *pb.FetchRequest) (*pb.SupplyReply, error) {
|
||||
return supply.Fetch(ctx, in)
|
||||
}
|
||||
|
||||
// 更新供应商数据
|
||||
func (s *SupplyServer) Modify(ctx context.Context, in *pb.MarketSupplyItem) (*pb.StatusReply, error) {
|
||||
return supply.Modify(ctx, in)
|
||||
}
|
||||
|
||||
// 删除一个供应商
|
||||
func (s *SupplyServer) Delete(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
|
||||
return supply.Delete(ctx, in)
|
||||
}
|
||||
Reference in New Issue
Block a user