Files

42 lines
1.1 KiB
Go
Raw Permalink Normal View History

// Code generated by protoc-gen-slc. DO NOT EDIT.
package server
import (
"bsm/full/module/ec/market/internal/logic/supply"
pb "bsm/full/module/ec/market/pb"
"context"
)
type SupplyServer struct {
pb.UnimplementedSupplyServer
}
func NewSupplyServer() *SupplyServer {
return &SupplyServer{}
}
// 新增供应商
func (s *SupplyServer) Create(ctx context.Context, in *pb.MarketSupplyItem) (*pb.IdentityStatusReply, 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.MarketFetchRequest) (*pb.SupplyReply, error) {
return supply.Fetch(ctx, in)
}
// 更新供应商数据
func (s *SupplyServer) Modify(ctx context.Context, in *pb.MarketSupplyItem) (*pb.IdentityStatusReply, error) {
return supply.Modify(ctx, in)
}
// 删除一个供应商
func (s *SupplyServer) Delete(ctx context.Context, in *pb.IdentRequest) (*pb.IdentityStatusReply, error) {
return supply.Delete(ctx, in)
}