2026-08-09 10:43:45 +08:00
|
|
|
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
|
|
|
|
package server
|
|
|
|
|
|
|
|
|
|
import (
|
2026-08-09 12:41:08 +08:00
|
|
|
"bsm/full/module/ec/mall/internal/logic/staff"
|
|
|
|
|
pb "bsm/full/module/ec/mall/pb"
|
2026-08-09 20:14:57 +08:00
|
|
|
"context"
|
2026-08-09 10:43:45 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 获取工作人员列表
|
2026-08-09 20:14:57 +08:00
|
|
|
func (s *StaffServer) Fetch(ctx context.Context, in *pb.MallFetchRequest) (*pb.StaffListReply, error) {
|
2026-08-09 10:43:45 +08:00
|
|
|
return staff.Fetch(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 创建工作人员
|
2026-08-09 20:14:57 +08:00
|
|
|
func (s *StaffServer) Create(ctx context.Context, in *pb.StaffItem) (*pb.IdentityStatusReply, error) {
|
2026-08-09 10:43:45 +08:00
|
|
|
return staff.Create(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 删除工作人员
|
2026-08-09 20:14:57 +08:00
|
|
|
func (s *StaffServer) Delete(ctx context.Context, in *pb.IdentRequest) (*pb.IdentityStatusReply, error) {
|
2026-08-09 10:43:45 +08:00
|
|
|
return staff.Delete(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 获取个人信息
|
|
|
|
|
func (s *StaffServer) GetProfile(ctx context.Context, in *pb.IdentRequest) (*pb.StaffItem, error) {
|
|
|
|
|
return staff.GetProfile(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 设置个人信息
|
2026-08-09 20:14:57 +08:00
|
|
|
func (s *StaffServer) SetProfile(ctx context.Context, in *pb.StaffItem) (*pb.IdentityStatusReply, error) {
|
2026-08-09 10:43:45 +08:00
|
|
|
return staff.SetProfile(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 设置账号密码
|
2026-08-09 20:14:57 +08:00
|
|
|
func (s *StaffServer) SetPassword(ctx context.Context, in *pb.SetAccountRequest) (*pb.IdentityStatusReply, error) {
|
2026-08-09 10:43:45 +08:00
|
|
|
return staff.SetPassword(ctx, in)
|
|
|
|
|
}
|