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

import (
	"bsm/full/module/ec/mall/internal/logic/staff"
	pb "bsm/full/module/ec/mall/pb"
	"context"
)

type StaffServer struct {
	pb.UnimplementedStaffServer
}

func NewStaffServer() *StaffServer {
	return &StaffServer{}
}

// 登录
func (s *StaffServer) Login(ctx context.Context, in *pb.LoginRequest) (*pb.LoginReply, error) {
	return staff.Login(ctx, in)
}

// 获取工作人员列表
func (s *StaffServer) Fetch(ctx context.Context, in *pb.MallFetchRequest) (*pb.StaffListReply, error) {
	return staff.Fetch(ctx, in)
}

// 创建工作人员
func (s *StaffServer) Create(ctx context.Context, in *pb.StaffItem) (*pb.IdentityStatusReply, error) {
	return staff.Create(ctx, in)
}

// 删除工作人员
func (s *StaffServer) Delete(ctx context.Context, in *pb.IdentRequest) (*pb.IdentityStatusReply, error) {
	return staff.Delete(ctx, in)
}

// 获取个人信息
func (s *StaffServer) GetProfile(ctx context.Context, in *pb.IdentRequest) (*pb.StaffItem, error) {
	return staff.GetProfile(ctx, in)
}

// 设置个人信息
func (s *StaffServer) SetProfile(ctx context.Context, in *pb.StaffItem) (*pb.IdentityStatusReply, error) {
	return staff.SetProfile(ctx, in)
}

// 设置账号密码
func (s *StaffServer) SetPassword(ctx context.Context, in *pb.SetAccountRequest) (*pb.IdentityStatusReply, error) {
	return staff.SetPassword(ctx, in)
}
