refactor: reorganize modules and add Linux build tooling
This commit is contained in:
51
module/ec/mall/internal/server/staff_server.go
Normal file
51
module/ec/mall/internal/server/staff_server.go
Normal file
@@ -0,0 +1,51 @@
|
||||
// Code generated by protoc-gen-slc. DO NOT EDIT.
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"bsm/full/module/ec/mall/internal/logic/staff"
|
||||
pb "bsm/full/module/ec/mall/pb"
|
||||
)
|
||||
|
||||
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.FetchRequest) (*pb.StaffListReply, error) {
|
||||
return staff.Fetch(ctx, in)
|
||||
}
|
||||
|
||||
// 创建工作人员
|
||||
func (s *StaffServer) Create(ctx context.Context, in *pb.StaffItem) (*pb.StatusReply, error) {
|
||||
return staff.Create(ctx, in)
|
||||
}
|
||||
|
||||
// 删除工作人员
|
||||
func (s *StaffServer) Delete(ctx context.Context, in *pb.IdentRequest) (*pb.StatusReply, 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.StatusReply, error) {
|
||||
return staff.SetProfile(ctx, in)
|
||||
}
|
||||
|
||||
// 设置账号密码
|
||||
func (s *StaffServer) SetPassword(ctx context.Context, in *pb.SetAccountRequest) (*pb.StatusReply, error) {
|
||||
return staff.SetPassword(ctx, in)
|
||||
}
|
||||
Reference in New Issue
Block a user