Documentation ¶
Index ¶
- Variables
- func NewEmployeeServiceHandler(srv EmployeeServiceHandler, opts ...http1.HandleOption) http.Handler
- func RegisterEmployeeServiceServer(s grpc.ServiceRegistrar, srv EmployeeServiceServer)
- type CaptchaImgReply
- func (*CaptchaImgReply) Descriptor() ([]byte, []int)deprecated
- func (x *CaptchaImgReply) GetCaptchaId() string
- func (x *CaptchaImgReply) GetImgBytes() string
- func (*CaptchaImgReply) ProtoMessage()
- func (x *CaptchaImgReply) ProtoReflect() protoreflect.Message
- func (x *CaptchaImgReply) Reset()
- func (x *CaptchaImgReply) String() string
- type CaptchaImgReq
- func (*CaptchaImgReq) Descriptor() ([]byte, []int)deprecated
- func (x *CaptchaImgReq) GetImgHeight() uint32
- func (x *CaptchaImgReq) GetImgWidth() uint32
- func (*CaptchaImgReq) ProtoMessage()
- func (x *CaptchaImgReq) ProtoReflect() protoreflect.Message
- func (x *CaptchaImgReq) Reset()
- func (x *CaptchaImgReq) String() string
- type CaptchaReq
- func (*CaptchaReq) Descriptor() ([]byte, []int)deprecated
- func (x *CaptchaReq) GetCaptcha() string
- func (x *CaptchaReq) GetCaptchaId() string
- func (x *CaptchaReq) GetChallenge() string
- func (x *CaptchaReq) GetTk() string
- func (x *CaptchaReq) GetTo() string
- func (*CaptchaReq) ProtoMessage()
- func (x *CaptchaReq) ProtoReflect() protoreflect.Message
- func (x *CaptchaReq) Reset()
- func (x *CaptchaReq) String() string
- type Employee
- func (*Employee) Descriptor() ([]byte, []int)deprecated
- func (x *Employee) GetAccount() string
- func (x *Employee) GetAvatar() string
- func (x *Employee) GetBirthday() *timestamppb.Timestamp
- func (x *Employee) GetCreateTime() *timestamppb.Timestamp
- func (x *Employee) GetEmail() string
- func (x *Employee) GetId() int64
- func (x *Employee) GetIdCard() string
- func (x *Employee) GetLastIp() string
- func (x *Employee) GetLastTime() *timestamppb.Timestamp
- func (x *Employee) GetMobile() string
- func (x *Employee) GetName() string
- func (x *Employee) GetNickName() string
- func (x *Employee) GetRole() string
- func (x *Employee) GetSex() string
- func (x *Employee) GetUpdateTime() *timestamppb.Timestamp
- func (x *Employee) GetUuid() string
- func (*Employee) ProtoMessage()
- func (x *Employee) ProtoReflect() protoreflect.Message
- func (x *Employee) Reset()
- func (x *Employee) String() string
- type EmployeeDeleteOption
- func (*EmployeeDeleteOption) Descriptor() ([]byte, []int)deprecated
- func (x *EmployeeDeleteOption) GetIds() []int64
- func (*EmployeeDeleteOption) ProtoMessage()
- func (x *EmployeeDeleteOption) ProtoReflect() protoreflect.Message
- func (x *EmployeeDeleteOption) Reset()
- func (x *EmployeeDeleteOption) String() string
- type EmployeeGetOption
- type EmployeeList
- func (*EmployeeList) Descriptor() ([]byte, []int)deprecated
- func (x *EmployeeList) GetList() []*Employee
- func (x *EmployeeList) GetPage() uint32
- func (x *EmployeeList) GetPageSize() uint32
- func (x *EmployeeList) GetTotal() int64
- func (*EmployeeList) ProtoMessage()
- func (x *EmployeeList) ProtoReflect() protoreflect.Message
- func (x *EmployeeList) Reset()
- func (x *EmployeeList) String() string
- type EmployeeListOption
- func (*EmployeeListOption) Descriptor() ([]byte, []int)deprecated
- func (x *EmployeeListOption) GetCreateTime() string
- func (x *EmployeeListOption) GetEmail() string
- func (x *EmployeeListOption) GetMeta() *comm.ListOption
- func (x *EmployeeListOption) GetMobile() string
- func (x *EmployeeListOption) GetName() string
- func (x *EmployeeListOption) GetRole() int64
- func (x *EmployeeListOption) GetSex() string
- func (x *EmployeeListOption) GetTag() string
- func (x *EmployeeListOption) GetType() string
- func (*EmployeeListOption) ProtoMessage()
- func (x *EmployeeListOption) ProtoReflect() protoreflect.Message
- func (x *EmployeeListOption) Reset()
- func (x *EmployeeListOption) String() string
- type EmployeeLogin
- func (*EmployeeLogin) Descriptor() ([]byte, []int)deprecated
- func (x *EmployeeLogin) GetAccount() string
- func (x *EmployeeLogin) GetCaptcha() string
- func (x *EmployeeLogin) GetCaptchaId() string
- func (x *EmployeeLogin) GetCode() string
- func (x *EmployeeLogin) GetPassword() string
- func (*EmployeeLogin) ProtoMessage()
- func (x *EmployeeLogin) ProtoReflect() protoreflect.Message
- func (x *EmployeeLogin) Reset()
- func (x *EmployeeLogin) String() string
- type EmployeeLoginRes
- func (*EmployeeLoginRes) Descriptor() ([]byte, []int)deprecated
- func (x *EmployeeLoginRes) GetEmployee() *Employee
- func (x *EmployeeLoginRes) GetExpirationTime() int64
- func (x *EmployeeLoginRes) GetRole() string
- func (x *EmployeeLoginRes) GetToken() string
- func (*EmployeeLoginRes) ProtoMessage()
- func (x *EmployeeLoginRes) ProtoReflect() protoreflect.Message
- func (x *EmployeeLoginRes) Reset()
- func (x *EmployeeLoginRes) String() string
- type EmployeeOption
- func (*EmployeeOption) Descriptor() ([]byte, []int)deprecated
- func (x *EmployeeOption) GetAccount() string
- func (x *EmployeeOption) GetAvatar() string
- func (x *EmployeeOption) GetBirthday() *timestamppb.Timestamp
- func (x *EmployeeOption) GetEmail() string
- func (x *EmployeeOption) GetId() int64
- func (x *EmployeeOption) GetIdCard() string
- func (x *EmployeeOption) GetMobile() string
- func (x *EmployeeOption) GetName() string
- func (x *EmployeeOption) GetNickName() string
- func (x *EmployeeOption) GetPassword() string
- func (x *EmployeeOption) GetRole() string
- func (x *EmployeeOption) GetSex() string
- func (*EmployeeOption) ProtoMessage()
- func (x *EmployeeOption) ProtoReflect() protoreflect.Message
- func (x *EmployeeOption) Reset()
- func (x *EmployeeOption) String() string
- type EmployeeServiceClient
- type EmployeeServiceHandler
- type EmployeeServiceServer
- type UnimplementedEmployeeServiceServer
- func (UnimplementedEmployeeServiceServer) Captcha(context.Context, *CaptchaReq) (*comm.NullReply, error)
- func (UnimplementedEmployeeServiceServer) CaptchaImg(context.Context, *CaptchaImgReq) (*CaptchaImgReply, error)
- func (UnimplementedEmployeeServiceServer) Create(context.Context, *EmployeeOption) (*Employee, error)
- func (UnimplementedEmployeeServiceServer) Delete(context.Context, *EmployeeDeleteOption) (*comm.NullReply, error)
- func (UnimplementedEmployeeServiceServer) Get(context.Context, *EmployeeGetOption) (*Employee, error)
- func (UnimplementedEmployeeServiceServer) List(context.Context, *EmployeeListOption) (*EmployeeList, error)
- func (UnimplementedEmployeeServiceServer) Login(context.Context, *EmployeeLogin) (*EmployeeLoginRes, error)
- func (UnimplementedEmployeeServiceServer) LoginForCode(context.Context, *EmployeeLogin) (*EmployeeLoginRes, error)
- func (UnimplementedEmployeeServiceServer) Logout(context.Context, *comm.NullReq) (*comm.NullReply, error)
- func (UnimplementedEmployeeServiceServer) Update(context.Context, *EmployeeOption) (*Employee, error)
- func (UnimplementedEmployeeServiceServer) UserInfo(context.Context, *comm.NullReq) (*Employee, error)
- type UnsafeEmployeeServiceServer
Constants ¶
This section is empty.
Variables ¶
var EmployeeService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "admin.v1.EmployeeService", HandlerType: (*EmployeeServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _EmployeeService_Login_Handler, }, { MethodName: "LoginForCode", Handler: _EmployeeService_LoginForCode_Handler, }, { MethodName: "Logout", Handler: _EmployeeService_Logout_Handler, }, { MethodName: "UserInfo", Handler: _EmployeeService_UserInfo_Handler, }, { MethodName: "Captcha", Handler: _EmployeeService_Captcha_Handler, }, { MethodName: "CaptchaImg", Handler: _EmployeeService_CaptchaImg_Handler, }, { MethodName: "List", Handler: _EmployeeService_List_Handler, }, { MethodName: "Get", Handler: _EmployeeService_Get_Handler, }, { MethodName: "Create", Handler: _EmployeeService_Create_Handler, }, { MethodName: "Update", Handler: _EmployeeService_Update_Handler, }, { MethodName: "Delete", Handler: _EmployeeService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/admin/v1/employee.proto", }
EmployeeService_ServiceDesc is the grpc.ServiceDesc for EmployeeService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_admin_v1_employee_proto protoreflect.FileDescriptor
Functions ¶
func NewEmployeeServiceHandler ¶
func NewEmployeeServiceHandler(srv EmployeeServiceHandler, opts ...http1.HandleOption) http.Handler
func RegisterEmployeeServiceServer ¶
func RegisterEmployeeServiceServer(s grpc.ServiceRegistrar, srv EmployeeServiceServer)
Types ¶
type CaptchaImgReply ¶
type CaptchaImgReply struct { CaptchaId string `protobuf:"bytes,2,opt,name=captcha_id,json=captchaId,proto3" json:"captcha_id,omitempty"` ImgBytes string `protobuf:"bytes,1,opt,name=img_bytes,json=imgBytes,proto3" json:"img_bytes,omitempty"` // contains filtered or unexported fields }
func (*CaptchaImgReply) Descriptor
deprecated
func (*CaptchaImgReply) Descriptor() ([]byte, []int)
Deprecated: Use CaptchaImgReply.ProtoReflect.Descriptor instead.
func (*CaptchaImgReply) GetCaptchaId ¶
func (x *CaptchaImgReply) GetCaptchaId() string
func (*CaptchaImgReply) GetImgBytes ¶
func (x *CaptchaImgReply) GetImgBytes() string
func (*CaptchaImgReply) ProtoMessage ¶
func (*CaptchaImgReply) ProtoMessage()
func (*CaptchaImgReply) ProtoReflect ¶
func (x *CaptchaImgReply) ProtoReflect() protoreflect.Message
func (*CaptchaImgReply) Reset ¶
func (x *CaptchaImgReply) Reset()
func (*CaptchaImgReply) String ¶
func (x *CaptchaImgReply) String() string
type CaptchaImgReq ¶
type CaptchaImgReq struct { ImgHeight uint32 `protobuf:"varint,1,opt,name=img_height,json=imgHeight,proto3" json:"img_height,omitempty"` ImgWidth uint32 `protobuf:"varint,2,opt,name=img_width,json=imgWidth,proto3" json:"img_width,omitempty"` // contains filtered or unexported fields }
func (*CaptchaImgReq) Descriptor
deprecated
func (*CaptchaImgReq) Descriptor() ([]byte, []int)
Deprecated: Use CaptchaImgReq.ProtoReflect.Descriptor instead.
func (*CaptchaImgReq) GetImgHeight ¶
func (x *CaptchaImgReq) GetImgHeight() uint32
func (*CaptchaImgReq) GetImgWidth ¶
func (x *CaptchaImgReq) GetImgWidth() uint32
func (*CaptchaImgReq) ProtoMessage ¶
func (*CaptchaImgReq) ProtoMessage()
func (*CaptchaImgReq) ProtoReflect ¶
func (x *CaptchaImgReq) ProtoReflect() protoreflect.Message
func (*CaptchaImgReq) Reset ¶
func (x *CaptchaImgReq) Reset()
func (*CaptchaImgReq) String ¶
func (x *CaptchaImgReq) String() string
type CaptchaReq ¶
type CaptchaReq struct { //接收对象 email To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"` //本地验证码 Captcha string `protobuf:"bytes,2,opt,name=captcha,proto3" json:"captcha,omitempty"` //本地验证码 CaptchaId string `protobuf:"bytes,3,opt,name=captcha_id,json=captchaId,proto3" json:"captcha_id,omitempty"` //极验 Challenge string `protobuf:"bytes,4,opt,name=challenge,proto3" json:"challenge,omitempty"` //极验 Tk string `protobuf:"bytes,5,opt,name=tk,proto3" json:"tk,omitempty"` // contains filtered or unexported fields }
短信验证码
func (*CaptchaReq) Descriptor
deprecated
func (*CaptchaReq) Descriptor() ([]byte, []int)
Deprecated: Use CaptchaReq.ProtoReflect.Descriptor instead.
func (*CaptchaReq) GetCaptcha ¶
func (x *CaptchaReq) GetCaptcha() string
func (*CaptchaReq) GetCaptchaId ¶
func (x *CaptchaReq) GetCaptchaId() string
func (*CaptchaReq) GetChallenge ¶
func (x *CaptchaReq) GetChallenge() string
func (*CaptchaReq) GetTk ¶
func (x *CaptchaReq) GetTk() string
func (*CaptchaReq) GetTo ¶
func (x *CaptchaReq) GetTo() string
func (*CaptchaReq) ProtoMessage ¶
func (*CaptchaReq) ProtoMessage()
func (*CaptchaReq) ProtoReflect ¶
func (x *CaptchaReq) ProtoReflect() protoreflect.Message
func (*CaptchaReq) Reset ¶
func (x *CaptchaReq) Reset()
func (*CaptchaReq) String ¶
func (x *CaptchaReq) String() string
type Employee ¶
type Employee struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` // 姓名 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // 账户 Account string `protobuf:"bytes,4,opt,name=account,proto3" json:"account,omitempty"` // 昵称 NickName string `protobuf:"bytes,5,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` // 角色 Role string `protobuf:"bytes,6,opt,name=role,proto3" json:"role,omitempty"` // 邮箱 Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` // 手机 Mobile string `protobuf:"bytes,8,opt,name=mobile,proto3" json:"mobile,omitempty"` // 身份证 IdCard string `protobuf:"bytes,9,opt,name=id_card,json=idCard,proto3" json:"id_card,omitempty"` // 性别 Sex string `protobuf:"bytes,11,opt,name=sex,proto3" json:"sex,omitempty"` //生日 Birthday *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=birthday,proto3" json:"birthday,omitempty"` //最后登录ip LastIp string `protobuf:"bytes,13,opt,name=last_ip,json=lastIp,proto3" json:"last_ip,omitempty"` //最后登录时间 LastTime *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=last_time,json=lastTime,proto3" json:"last_time,omitempty"` //创建时间 CreateTime *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` //更新时间 UpdateTime *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` //头像 Avatar string `protobuf:"bytes,17,opt,name=avatar,proto3" json:"avatar,omitempty"` // contains filtered or unexported fields }
用户信息
func (*Employee) Descriptor
deprecated
func (*Employee) GetAccount ¶
func (*Employee) GetBirthday ¶
func (x *Employee) GetBirthday() *timestamppb.Timestamp
func (*Employee) GetCreateTime ¶
func (x *Employee) GetCreateTime() *timestamppb.Timestamp
func (*Employee) GetLastTime ¶
func (x *Employee) GetLastTime() *timestamppb.Timestamp
func (*Employee) GetNickName ¶
func (*Employee) GetUpdateTime ¶
func (x *Employee) GetUpdateTime() *timestamppb.Timestamp
func (*Employee) ProtoMessage ¶
func (*Employee) ProtoMessage()
func (*Employee) ProtoReflect ¶
func (x *Employee) ProtoReflect() protoreflect.Message
type EmployeeDeleteOption ¶
type EmployeeDeleteOption struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*EmployeeDeleteOption) Descriptor
deprecated
func (*EmployeeDeleteOption) Descriptor() ([]byte, []int)
Deprecated: Use EmployeeDeleteOption.ProtoReflect.Descriptor instead.
func (*EmployeeDeleteOption) GetIds ¶
func (x *EmployeeDeleteOption) GetIds() []int64
func (*EmployeeDeleteOption) ProtoMessage ¶
func (*EmployeeDeleteOption) ProtoMessage()
func (*EmployeeDeleteOption) ProtoReflect ¶
func (x *EmployeeDeleteOption) ProtoReflect() protoreflect.Message
func (*EmployeeDeleteOption) Reset ¶
func (x *EmployeeDeleteOption) Reset()
func (*EmployeeDeleteOption) String ¶
func (x *EmployeeDeleteOption) String() string
type EmployeeGetOption ¶
type EmployeeGetOption struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*EmployeeGetOption) Descriptor
deprecated
func (*EmployeeGetOption) Descriptor() ([]byte, []int)
Deprecated: Use EmployeeGetOption.ProtoReflect.Descriptor instead.
func (*EmployeeGetOption) GetId ¶
func (x *EmployeeGetOption) GetId() int64
func (*EmployeeGetOption) ProtoMessage ¶
func (*EmployeeGetOption) ProtoMessage()
func (*EmployeeGetOption) ProtoReflect ¶
func (x *EmployeeGetOption) ProtoReflect() protoreflect.Message
func (*EmployeeGetOption) Reset ¶
func (x *EmployeeGetOption) Reset()
func (*EmployeeGetOption) String ¶
func (x *EmployeeGetOption) String() string
type EmployeeList ¶
type EmployeeList struct { //用户列表 List []*Employee `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` Page uint32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` PageSize uint32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*EmployeeList) Descriptor
deprecated
func (*EmployeeList) Descriptor() ([]byte, []int)
Deprecated: Use EmployeeList.ProtoReflect.Descriptor instead.
func (*EmployeeList) GetList ¶
func (x *EmployeeList) GetList() []*Employee
func (*EmployeeList) GetPage ¶
func (x *EmployeeList) GetPage() uint32
func (*EmployeeList) GetPageSize ¶
func (x *EmployeeList) GetPageSize() uint32
func (*EmployeeList) GetTotal ¶
func (x *EmployeeList) GetTotal() int64
func (*EmployeeList) ProtoMessage ¶
func (*EmployeeList) ProtoMessage()
func (*EmployeeList) ProtoReflect ¶
func (x *EmployeeList) ProtoReflect() protoreflect.Message
func (*EmployeeList) Reset ¶
func (x *EmployeeList) Reset()
func (*EmployeeList) String ¶
func (x *EmployeeList) String() string
type EmployeeListOption ¶
type EmployeeListOption struct { //名称昵称筛选 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` //标签筛选 Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` //邮箱筛选 Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` //手机筛选 Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"` //性别筛选 Sex string `protobuf:"bytes,5,opt,name=sex,proto3" json:"sex,omitempty"` //角色筛选 Role int64 `protobuf:"varint,6,opt,name=role,proto3" json:"role,omitempty"` //用户类型筛选 Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"` //创建时间筛选 CreateTime string `protobuf:"bytes,8,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` Meta *comm.ListOption `protobuf:"bytes,100,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*EmployeeListOption) Descriptor
deprecated
func (*EmployeeListOption) Descriptor() ([]byte, []int)
Deprecated: Use EmployeeListOption.ProtoReflect.Descriptor instead.
func (*EmployeeListOption) GetCreateTime ¶
func (x *EmployeeListOption) GetCreateTime() string
func (*EmployeeListOption) GetEmail ¶
func (x *EmployeeListOption) GetEmail() string
func (*EmployeeListOption) GetMeta ¶
func (x *EmployeeListOption) GetMeta() *comm.ListOption
func (*EmployeeListOption) GetMobile ¶
func (x *EmployeeListOption) GetMobile() string
func (*EmployeeListOption) GetName ¶
func (x *EmployeeListOption) GetName() string
func (*EmployeeListOption) GetRole ¶
func (x *EmployeeListOption) GetRole() int64
func (*EmployeeListOption) GetSex ¶
func (x *EmployeeListOption) GetSex() string
func (*EmployeeListOption) GetTag ¶
func (x *EmployeeListOption) GetTag() string
func (*EmployeeListOption) GetType ¶
func (x *EmployeeListOption) GetType() string
func (*EmployeeListOption) ProtoMessage ¶
func (*EmployeeListOption) ProtoMessage()
func (*EmployeeListOption) ProtoReflect ¶
func (x *EmployeeListOption) ProtoReflect() protoreflect.Message
func (*EmployeeListOption) Reset ¶
func (x *EmployeeListOption) Reset()
func (*EmployeeListOption) String ¶
func (x *EmployeeListOption) String() string
type EmployeeLogin ¶
type EmployeeLogin struct { // 账户 Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // 密码 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // 验证码 Captcha string `protobuf:"bytes,3,opt,name=captcha,proto3" json:"captcha,omitempty"` // 验证码id CaptchaId string `protobuf:"bytes,4,opt,name=captcha_id,json=captchaId,proto3" json:"captcha_id,omitempty"` // 短信、邮箱 验证码 Code string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
用户登录
func (*EmployeeLogin) Descriptor
deprecated
func (*EmployeeLogin) Descriptor() ([]byte, []int)
Deprecated: Use EmployeeLogin.ProtoReflect.Descriptor instead.
func (*EmployeeLogin) GetAccount ¶
func (x *EmployeeLogin) GetAccount() string
func (*EmployeeLogin) GetCaptcha ¶
func (x *EmployeeLogin) GetCaptcha() string
func (*EmployeeLogin) GetCaptchaId ¶
func (x *EmployeeLogin) GetCaptchaId() string
func (*EmployeeLogin) GetCode ¶
func (x *EmployeeLogin) GetCode() string
func (*EmployeeLogin) GetPassword ¶
func (x *EmployeeLogin) GetPassword() string
func (*EmployeeLogin) ProtoMessage ¶
func (*EmployeeLogin) ProtoMessage()
func (*EmployeeLogin) ProtoReflect ¶
func (x *EmployeeLogin) ProtoReflect() protoreflect.Message
func (*EmployeeLogin) Reset ¶
func (x *EmployeeLogin) Reset()
func (*EmployeeLogin) String ¶
func (x *EmployeeLogin) String() string
type EmployeeLoginRes ¶
type EmployeeLoginRes struct { // jwt token Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // 角色 Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` // 过期时间 字符串时间戳 ExpirationTime int64 `protobuf:"varint,3,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` // 用户信息 Employee *Employee `protobuf:"bytes,4,opt,name=employee,proto3" json:"employee,omitempty"` // contains filtered or unexported fields }
登录返回
func (*EmployeeLoginRes) Descriptor
deprecated
func (*EmployeeLoginRes) Descriptor() ([]byte, []int)
Deprecated: Use EmployeeLoginRes.ProtoReflect.Descriptor instead.
func (*EmployeeLoginRes) GetEmployee ¶
func (x *EmployeeLoginRes) GetEmployee() *Employee
func (*EmployeeLoginRes) GetExpirationTime ¶
func (x *EmployeeLoginRes) GetExpirationTime() int64
func (*EmployeeLoginRes) GetRole ¶
func (x *EmployeeLoginRes) GetRole() string
func (*EmployeeLoginRes) GetToken ¶
func (x *EmployeeLoginRes) GetToken() string
func (*EmployeeLoginRes) ProtoMessage ¶
func (*EmployeeLoginRes) ProtoMessage()
func (*EmployeeLoginRes) ProtoReflect ¶
func (x *EmployeeLoginRes) ProtoReflect() protoreflect.Message
func (*EmployeeLoginRes) Reset ¶
func (x *EmployeeLoginRes) Reset()
func (*EmployeeLoginRes) String ¶
func (x *EmployeeLoginRes) String() string
type EmployeeOption ¶
type EmployeeOption struct { // 姓名 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 账户 Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` // 昵称 NickName string `protobuf:"bytes,4,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` // 角色 Role string `protobuf:"bytes,5,opt,name=role,proto3" json:"role,omitempty"` // 邮箱 Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` // 手机 Mobile string `protobuf:"bytes,7,opt,name=mobile,proto3" json:"mobile,omitempty"` // 身份证 IdCard string `protobuf:"bytes,8,opt,name=id_card,json=idCard,proto3" json:"id_card,omitempty"` // 密码 Password string `protobuf:"bytes,9,opt,name=password,proto3" json:"password,omitempty"` // 性别 Sex string `protobuf:"bytes,10,opt,name=sex,proto3" json:"sex,omitempty"` // 生日 Birthday *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=birthday,proto3" json:"birthday,omitempty"` // id Id int64 `protobuf:"varint,12,opt,name=id,proto3" json:"id,omitempty"` // 头像 Avatar string `protobuf:"bytes,13,opt,name=avatar,proto3" json:"avatar,omitempty"` // contains filtered or unexported fields }
func (*EmployeeOption) Descriptor
deprecated
func (*EmployeeOption) Descriptor() ([]byte, []int)
Deprecated: Use EmployeeOption.ProtoReflect.Descriptor instead.
func (*EmployeeOption) GetAccount ¶
func (x *EmployeeOption) GetAccount() string
func (*EmployeeOption) GetAvatar ¶
func (x *EmployeeOption) GetAvatar() string
func (*EmployeeOption) GetBirthday ¶
func (x *EmployeeOption) GetBirthday() *timestamppb.Timestamp
func (*EmployeeOption) GetEmail ¶
func (x *EmployeeOption) GetEmail() string
func (*EmployeeOption) GetId ¶
func (x *EmployeeOption) GetId() int64
func (*EmployeeOption) GetIdCard ¶
func (x *EmployeeOption) GetIdCard() string
func (*EmployeeOption) GetMobile ¶
func (x *EmployeeOption) GetMobile() string
func (*EmployeeOption) GetName ¶
func (x *EmployeeOption) GetName() string
func (*EmployeeOption) GetNickName ¶
func (x *EmployeeOption) GetNickName() string
func (*EmployeeOption) GetPassword ¶
func (x *EmployeeOption) GetPassword() string
func (*EmployeeOption) GetRole ¶
func (x *EmployeeOption) GetRole() string
func (*EmployeeOption) GetSex ¶
func (x *EmployeeOption) GetSex() string
func (*EmployeeOption) ProtoMessage ¶
func (*EmployeeOption) ProtoMessage()
func (*EmployeeOption) ProtoReflect ¶
func (x *EmployeeOption) ProtoReflect() protoreflect.Message
func (*EmployeeOption) Reset ¶
func (x *EmployeeOption) Reset()
func (*EmployeeOption) String ¶
func (x *EmployeeOption) String() string
type EmployeeServiceClient ¶
type EmployeeServiceClient interface { //常规账户登录接口 Login(ctx context.Context, in *EmployeeLogin, opts ...grpc.CallOption) (*EmployeeLoginRes, error) //验证码登录 LoginForCode(ctx context.Context, in *EmployeeLogin, opts ...grpc.CallOption) (*EmployeeLoginRes, error) //登出 Logout(ctx context.Context, in *comm.NullReq, opts ...grpc.CallOption) (*comm.NullReply, error) //当前登录用户信息 UserInfo(ctx context.Context, in *comm.NullReq, opts ...grpc.CallOption) (*Employee, error) //发送短信/邮箱验证码 Captcha(ctx context.Context, in *CaptchaReq, opts ...grpc.CallOption) (*comm.NullReply, error) //图片验证码 CaptchaImg(ctx context.Context, in *CaptchaImgReq, opts ...grpc.CallOption) (*CaptchaImgReply, error) //账户列表 List(ctx context.Context, in *EmployeeListOption, opts ...grpc.CallOption) (*EmployeeList, error) //获取账户信息 Get(ctx context.Context, in *EmployeeGetOption, opts ...grpc.CallOption) (*Employee, error) //新建一个账户 Create(ctx context.Context, in *EmployeeOption, opts ...grpc.CallOption) (*Employee, error) //更新一个账户 Update(ctx context.Context, in *EmployeeOption, opts ...grpc.CallOption) (*Employee, error) //删除一个账户 Delete(ctx context.Context, in *EmployeeDeleteOption, opts ...grpc.CallOption) (*comm.NullReply, error) }
EmployeeServiceClient is the client API for EmployeeService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEmployeeServiceClient ¶
func NewEmployeeServiceClient(cc grpc.ClientConnInterface) EmployeeServiceClient
type EmployeeServiceHandler ¶
type EmployeeServiceHandler interface { Captcha(context.Context, *CaptchaReq) (*comm.NullReply, error) CaptchaImg(context.Context, *CaptchaImgReq) (*CaptchaImgReply, error) Create(context.Context, *EmployeeOption) (*Employee, error) Delete(context.Context, *EmployeeDeleteOption) (*comm.NullReply, error) Get(context.Context, *EmployeeGetOption) (*Employee, error) List(context.Context, *EmployeeListOption) (*EmployeeList, error) Login(context.Context, *EmployeeLogin) (*EmployeeLoginRes, error) LoginForCode(context.Context, *EmployeeLogin) (*EmployeeLoginRes, error) Logout(context.Context, *comm.NullReq) (*comm.NullReply, error) Update(context.Context, *EmployeeOption) (*Employee, error) UserInfo(context.Context, *comm.NullReq) (*Employee, error) }
type EmployeeServiceServer ¶
type EmployeeServiceServer interface { //常规账户登录接口 Login(context.Context, *EmployeeLogin) (*EmployeeLoginRes, error) //验证码登录 LoginForCode(context.Context, *EmployeeLogin) (*EmployeeLoginRes, error) //登出 Logout(context.Context, *comm.NullReq) (*comm.NullReply, error) //当前登录用户信息 UserInfo(context.Context, *comm.NullReq) (*Employee, error) //发送短信/邮箱验证码 Captcha(context.Context, *CaptchaReq) (*comm.NullReply, error) //图片验证码 CaptchaImg(context.Context, *CaptchaImgReq) (*CaptchaImgReply, error) //账户列表 List(context.Context, *EmployeeListOption) (*EmployeeList, error) //获取账户信息 Get(context.Context, *EmployeeGetOption) (*Employee, error) //新建一个账户 Create(context.Context, *EmployeeOption) (*Employee, error) //更新一个账户 Update(context.Context, *EmployeeOption) (*Employee, error) //删除一个账户 Delete(context.Context, *EmployeeDeleteOption) (*comm.NullReply, error) // contains filtered or unexported methods }
EmployeeServiceServer is the server API for EmployeeService service. All implementations must embed UnimplementedEmployeeServiceServer for forward compatibility
type UnimplementedEmployeeServiceServer ¶
type UnimplementedEmployeeServiceServer struct { }
UnimplementedEmployeeServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedEmployeeServiceServer) Captcha ¶
func (UnimplementedEmployeeServiceServer) Captcha(context.Context, *CaptchaReq) (*comm.NullReply, error)
func (UnimplementedEmployeeServiceServer) CaptchaImg ¶
func (UnimplementedEmployeeServiceServer) CaptchaImg(context.Context, *CaptchaImgReq) (*CaptchaImgReply, error)
func (UnimplementedEmployeeServiceServer) Create ¶
func (UnimplementedEmployeeServiceServer) Create(context.Context, *EmployeeOption) (*Employee, error)
func (UnimplementedEmployeeServiceServer) Delete ¶
func (UnimplementedEmployeeServiceServer) Delete(context.Context, *EmployeeDeleteOption) (*comm.NullReply, error)
func (UnimplementedEmployeeServiceServer) Get ¶
func (UnimplementedEmployeeServiceServer) Get(context.Context, *EmployeeGetOption) (*Employee, error)
func (UnimplementedEmployeeServiceServer) List ¶
func (UnimplementedEmployeeServiceServer) List(context.Context, *EmployeeListOption) (*EmployeeList, error)
func (UnimplementedEmployeeServiceServer) Login ¶
func (UnimplementedEmployeeServiceServer) Login(context.Context, *EmployeeLogin) (*EmployeeLoginRes, error)
func (UnimplementedEmployeeServiceServer) LoginForCode ¶
func (UnimplementedEmployeeServiceServer) LoginForCode(context.Context, *EmployeeLogin) (*EmployeeLoginRes, error)
func (UnimplementedEmployeeServiceServer) Update ¶
func (UnimplementedEmployeeServiceServer) Update(context.Context, *EmployeeOption) (*Employee, error)
type UnsafeEmployeeServiceServer ¶
type UnsafeEmployeeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeEmployeeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EmployeeServiceServer will result in compilation errors.