// Code generated by protoc-gen-slc. DO NOT EDIT.
package server

import (
	"bsm/full/module/ec/market/internal/logic/agency"
	pb "bsm/full/module/ec/market/pb"
	"context"
)

type AgencyServer struct {
	pb.UnimplementedAgencyServer
}

func NewAgencyServer() *AgencyServer {
	return &AgencyServer{}
}

// 登录
func (s *AgencyServer) Login(ctx context.Context, in *pb.LoginRequest) (*pb.MarketLoginReply, error) {
	return agency.Login(ctx, in)
}

// 新增代理商
func (s *AgencyServer) Create(ctx context.Context, in *pb.MarketAgenctyItem) (*pb.IdentityStatusReply, 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.MarketFetchRequest) (*pb.AgencyReply, error) {
	return agency.Fetch(ctx, in)
}

// 更新代理商数据
func (s *AgencyServer) Modify(ctx context.Context, in *pb.MarketAgenctyItem) (*pb.IdentityStatusReply, error) {
	return agency.Modify(ctx, in)
}

// 删除一个代理商
func (s *AgencyServer) Delete(ctx context.Context, in *pb.IdentRequest) (*pb.IdentityStatusReply, error) {
	return agency.Delete(ctx, in)
}

// 更新密码
func (s *AgencyServer) SetPassword(ctx context.Context, in *pb.SetPasswordRequest) (*pb.IdentityStatusReply, error) {
	return agency.SetPassword(ctx, in)
}

// 待审核
func (s *AgencyServer) Pending(ctx context.Context, in *pb.MarketFetchRequest) (*pb.AgencyReply, error) {
	return agency.Pending(ctx, in)
}

// 审核
func (s *AgencyServer) Approve(ctx context.Context, in *pb.ApproveRequest) (*pb.IdentityStatusReply, error) {
	return agency.Approve(ctx, in)
}
