feat: import services and standardize Go 1.26.5
This commit is contained in:
61
apps/ec/market/internal/server/agency_server.go
Normal file
61
apps/ec/market/internal/server/agency_server.go
Normal file
@@ -0,0 +1,61 @@
|
||||
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"git.apinb.com/bsm-ec/market/internal/logic/agency"
|
||||
pb "git.apinb.com/bsm-ec/market/pb"
|
||||
)
|
||||
|
||||
type AgencyServer struct {
|
||||
pb.UnimplementedAgencyServer
|
||||
}
|
||||
|
||||
func NewAgencyServer() *AgencyServer {
|
||||
return &AgencyServer{}
|
||||
}
|
||||
|
||||
// 登录
|
||||
func (s *AgencyServer) Login(ctx context.Context, in *pb.LoginRequest) (*pb.LoginReply, error) {
|
||||
return agency.Login(ctx, in)
|
||||
}
|
||||
|
||||
// 新增代理商
|
||||
func (s *AgencyServer) Create(ctx context.Context, in *pb.MarketAgenctyItem) (*pb.StatusReply, error) {
|
||||
return agency.Create(ctx, in)
|
||||
}
|
||||
|
||||
// 获取一个代理商
|
||||
func (s *AgencyServer) Get(ctx context.Context, in *pb.IdentRequest) (*pb.MarketAgenctyItem, error) {
|
||||
return agency.Get(ctx, in)
|
||||
}
|
||||
|
||||
// 代理商列表
|
||||
func (s *AgencyServer) Fetch(ctx context.Context, in *pb.FetchRequest) (*pb.AgencyReply, error) {
|
||||
return agency.Fetch(ctx, in)
|
||||
}
|
||||
|
||||
// 更新代理商数据
|
||||
func (s *AgencyServer) Modify(ctx context.Context, in *pb.MarketAgenctyItem) (*pb.StatusReply, error) {
|
||||
return agency.Modify(ctx, in)
|
||||
}
|
||||
|
||||
// 删除一个代理商
|
||||
func (s *AgencyServer) Delete(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, error) {
|
||||
return agency.Delete(ctx, in)
|
||||
}
|
||||
|
||||
// 更新密码
|
||||
func (s *AgencyServer) SetPassword(ctx context.Context, in *pb.SetPasswordRequest) (*pb.StatusReply, error) {
|
||||
return agency.SetPassword(ctx, in)
|
||||
}
|
||||
|
||||
// 待审核
|
||||
func (s *AgencyServer) Pending(ctx context.Context, in *pb.FetchRequest) (*pb.AgencyReply, error) {
|
||||
return agency.Pending(ctx, in)
|
||||
}
|
||||
|
||||
// 审核
|
||||
func (s *AgencyServer) Approve(ctx context.Context, in *pb.ApproveRequest) (*pb.StatusReply, error) {
|
||||
return agency.Approve(ctx, in)
|
||||
}
|
||||
Reference in New Issue
Block a user