42 lines
1.1 KiB
Go
42 lines
1.1 KiB
Go
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
|
package server
|
|
|
|
import (
|
|
"context"
|
|
"bsm/full/module/ec/market/internal/logic/supply"
|
|
pb "bsm/full/module/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)
|
|
}
|