Documentation
¶
Index ¶
- Variables
- func RegisterMenuServer(s *grpc.Server, srv MenuServer)
- func RegisterRoleServer(s *grpc.Server, srv RoleServer)
- func RegisterUserServer(s *grpc.Server, srv UserServer)
- type CheckTokenReq
- func (*CheckTokenReq) Descriptor() ([]byte, []int)deprecated
- func (x *CheckTokenReq) GetIp() string
- func (x *CheckTokenReq) GetToken() string
- func (*CheckTokenReq) ProtoMessage()
- func (x *CheckTokenReq) ProtoReflect() protoreflect.Message
- func (x *CheckTokenReq) Reset()
- func (x *CheckTokenReq) String() string
- type CheckTokenResp
- func (*CheckTokenResp) Descriptor() ([]byte, []int)deprecated
- func (x *CheckTokenResp) GetRole() int64
- func (x *CheckTokenResp) GetToken() string
- func (x *CheckTokenResp) GetUid() int64
- func (*CheckTokenResp) ProtoMessage()
- func (x *CheckTokenResp) ProtoReflect() protoreflect.Message
- func (x *CheckTokenResp) Reset()
- func (x *CheckTokenResp) String() string
- type JwtToken
- func (*JwtToken) Descriptor() ([]byte, []int)deprecated
- func (x *JwtToken) GetAccessExpire() int64
- func (x *JwtToken) GetAccessToken() string
- func (x *JwtToken) GetRefreshAfter() int64
- func (*JwtToken) ProtoMessage()
- func (x *JwtToken) ProtoReflect() protoreflect.Message
- func (x *JwtToken) Reset()
- func (x *JwtToken) String() string
- type LoginReq
- func (*LoginReq) Descriptor() ([]byte, []int)deprecated
- func (x *LoginReq) GetCode() string
- func (x *LoginReq) GetCodeID() string
- func (x *LoginReq) GetLoginType() string
- func (x *LoginReq) GetPassword() string
- func (x *LoginReq) GetPwdType() int32
- func (x *LoginReq) GetUserID() string
- func (*LoginReq) ProtoMessage()
- func (x *LoginReq) ProtoReflect() protoreflect.Message
- func (x *LoginReq) Reset()
- func (x *LoginReq) String() string
- type LoginResp
- type MenuClient
- type MenuCreateReq
- func (*MenuCreateReq) Descriptor() ([]byte, []int)deprecated
- func (x *MenuCreateReq) GetComponent() string
- func (x *MenuCreateReq) GetHideInMenu() int64
- func (x *MenuCreateReq) GetIcon() string
- func (x *MenuCreateReq) GetName() string
- func (x *MenuCreateReq) GetOrder() int64
- func (x *MenuCreateReq) GetParentID() int64
- func (x *MenuCreateReq) GetPath() string
- func (x *MenuCreateReq) GetRedirect() string
- func (x *MenuCreateReq) GetRole() int64
- func (x *MenuCreateReq) GetType() int64
- func (*MenuCreateReq) ProtoMessage()
- func (x *MenuCreateReq) ProtoReflect() protoreflect.Message
- func (x *MenuCreateReq) Reset()
- func (x *MenuCreateReq) String() string
- type MenuData
- func (*MenuData) Descriptor() ([]byte, []int)deprecated
- func (x *MenuData) GetComponent() string
- func (x *MenuData) GetCreateTime() int64
- func (x *MenuData) GetHideInMenu() int64
- func (x *MenuData) GetIcon() string
- func (x *MenuData) GetId() int64
- func (x *MenuData) GetName() string
- func (x *MenuData) GetOrder() int64
- func (x *MenuData) GetParentID() int64
- func (x *MenuData) GetPath() string
- func (x *MenuData) GetRedirect() string
- func (x *MenuData) GetType() int64
- func (*MenuData) ProtoMessage()
- func (x *MenuData) ProtoReflect() protoreflect.Message
- func (x *MenuData) Reset()
- func (x *MenuData) String() string
- type MenuDeleteReq
- type MenuIndexReq
- func (*MenuIndexReq) Descriptor() ([]byte, []int)deprecated
- func (x *MenuIndexReq) GetName() string
- func (x *MenuIndexReq) GetPath() string
- func (x *MenuIndexReq) GetRole() int64
- func (*MenuIndexReq) ProtoMessage()
- func (x *MenuIndexReq) ProtoReflect() protoreflect.Message
- func (x *MenuIndexReq) Reset()
- func (x *MenuIndexReq) String() string
- type MenuIndexResp
- type MenuServer
- type MenuUpdateReq
- func (*MenuUpdateReq) Descriptor() ([]byte, []int)deprecated
- func (x *MenuUpdateReq) GetComponent() string
- func (x *MenuUpdateReq) GetHideInMenu() int64
- func (x *MenuUpdateReq) GetIcon() string
- func (x *MenuUpdateReq) GetId() int64
- func (x *MenuUpdateReq) GetName() string
- func (x *MenuUpdateReq) GetOrder() int64
- func (x *MenuUpdateReq) GetParentID() int64
- func (x *MenuUpdateReq) GetPath() string
- func (x *MenuUpdateReq) GetRedirect() string
- func (x *MenuUpdateReq) GetType() int64
- func (*MenuUpdateReq) ProtoMessage()
- func (x *MenuUpdateReq) ProtoReflect() protoreflect.Message
- func (x *MenuUpdateReq) Reset()
- func (x *MenuUpdateReq) String() string
- type PageInfo
- type Response
- type RoleClient
- type RoleCreateReq
- func (*RoleCreateReq) Descriptor() ([]byte, []int)deprecated
- func (x *RoleCreateReq) GetName() string
- func (x *RoleCreateReq) GetRemark() string
- func (x *RoleCreateReq) GetStatus() int64
- func (*RoleCreateReq) ProtoMessage()
- func (x *RoleCreateReq) ProtoReflect() protoreflect.Message
- func (x *RoleCreateReq) Reset()
- func (x *RoleCreateReq) String() string
- type RoleDeleteReq
- type RoleIndexData
- func (*RoleIndexData) Descriptor() ([]byte, []int)deprecated
- func (x *RoleIndexData) GetCreatedTime() int64
- func (x *RoleIndexData) GetId() int64
- func (x *RoleIndexData) GetName() string
- func (x *RoleIndexData) GetRemark() string
- func (x *RoleIndexData) GetRoleMenuID() []int64
- func (x *RoleIndexData) GetStatus() int64
- func (*RoleIndexData) ProtoMessage()
- func (x *RoleIndexData) ProtoReflect() protoreflect.Message
- func (x *RoleIndexData) Reset()
- func (x *RoleIndexData) String() string
- type RoleIndexReq
- func (*RoleIndexReq) Descriptor() ([]byte, []int)deprecated
- func (x *RoleIndexReq) GetName() string
- func (x *RoleIndexReq) GetPage() *PageInfo
- func (x *RoleIndexReq) GetStatus() int64
- func (*RoleIndexReq) ProtoMessage()
- func (x *RoleIndexReq) ProtoReflect() protoreflect.Message
- func (x *RoleIndexReq) Reset()
- func (x *RoleIndexReq) String() string
- type RoleIndexResp
- func (*RoleIndexResp) Descriptor() ([]byte, []int)deprecated
- func (x *RoleIndexResp) GetList() []*RoleIndexData
- func (x *RoleIndexResp) GetTotal() int64
- func (*RoleIndexResp) ProtoMessage()
- func (x *RoleIndexResp) ProtoReflect() protoreflect.Message
- func (x *RoleIndexResp) Reset()
- func (x *RoleIndexResp) String() string
- type RoleMenuUpdateReq
- func (*RoleMenuUpdateReq) Descriptor() ([]byte, []int)deprecated
- func (x *RoleMenuUpdateReq) GetId() int64
- func (x *RoleMenuUpdateReq) GetMenuID() []int64
- func (*RoleMenuUpdateReq) ProtoMessage()
- func (x *RoleMenuUpdateReq) ProtoReflect() protoreflect.Message
- func (x *RoleMenuUpdateReq) Reset()
- func (x *RoleMenuUpdateReq) String() string
- type RoleServer
- type RoleUpdateReq
- func (*RoleUpdateReq) Descriptor() ([]byte, []int)deprecated
- func (x *RoleUpdateReq) GetId() int64
- func (x *RoleUpdateReq) GetName() string
- func (x *RoleUpdateReq) GetRemark() string
- func (x *RoleUpdateReq) GetStatus() int64
- func (*RoleUpdateReq) ProtoMessage()
- func (x *RoleUpdateReq) ProtoReflect() protoreflect.Message
- func (x *RoleUpdateReq) Reset()
- func (x *RoleUpdateReq) String() string
- type UnimplementedMenuServer
- func (*UnimplementedMenuServer) MenuCreate(context.Context, *MenuCreateReq) (*Response, error)
- func (*UnimplementedMenuServer) MenuDelete(context.Context, *MenuDeleteReq) (*Response, error)
- func (*UnimplementedMenuServer) MenuIndex(context.Context, *MenuIndexReq) (*MenuIndexResp, error)
- func (*UnimplementedMenuServer) MenuUpdate(context.Context, *MenuUpdateReq) (*Response, error)
- type UnimplementedRoleServer
- func (*UnimplementedRoleServer) RoleCreate(context.Context, *RoleCreateReq) (*Response, error)
- func (*UnimplementedRoleServer) RoleDelete(context.Context, *RoleDeleteReq) (*Response, error)
- func (*UnimplementedRoleServer) RoleIndex(context.Context, *RoleIndexReq) (*RoleIndexResp, error)
- func (*UnimplementedRoleServer) RoleMenuUpdate(context.Context, *RoleMenuUpdateReq) (*Response, error)
- func (*UnimplementedRoleServer) RoleUpdate(context.Context, *RoleUpdateReq) (*Response, error)
- type UnimplementedUserServer
- func (*UnimplementedUserServer) CheckToken(context.Context, *CheckTokenReq) (*CheckTokenResp, error)
- func (*UnimplementedUserServer) Create(context.Context, *UserCreateReq) (*UserCreateResp, error)
- func (*UnimplementedUserServer) Delete(context.Context, *UserDeleteReq) (*Response, error)
- func (*UnimplementedUserServer) Index(context.Context, *UserIndexReq) (*UserIndexResp, error)
- func (*UnimplementedUserServer) Login(context.Context, *LoginReq) (*LoginResp, error)
- func (*UnimplementedUserServer) Read(context.Context, *UserReadReq) (*UserReadResp, error)
- func (*UnimplementedUserServer) Update(context.Context, *UserUpdateReq) (*Response, error)
- type UserClient
- type UserCreateReq
- func (*UserCreateReq) Descriptor() ([]byte, []int)deprecated
- func (x *UserCreateReq) GetCity() string
- func (x *UserCreateReq) GetCountry() string
- func (x *UserCreateReq) GetHeadImgUrl() string
- func (x *UserCreateReq) GetLanguage() string
- func (x *UserCreateReq) GetLastIP() string
- func (x *UserCreateReq) GetNickName() string
- func (x *UserCreateReq) GetPassword() string
- func (x *UserCreateReq) GetProvince() string
- func (x *UserCreateReq) GetRegIP() string
- func (x *UserCreateReq) GetReqType() string
- func (x *UserCreateReq) GetRole() int64
- func (x *UserCreateReq) GetSex() int64
- func (x *UserCreateReq) GetUserName() string
- func (x *UserCreateReq) GetWechat() string
- func (*UserCreateReq) ProtoMessage()
- func (x *UserCreateReq) ProtoReflect() protoreflect.Message
- func (x *UserCreateReq) Reset()
- func (x *UserCreateReq) String() string
- type UserCreateResp
- type UserDeleteReq
- type UserIndexReq
- func (*UserIndexReq) Descriptor() ([]byte, []int)deprecated
- func (x *UserIndexReq) GetEmail() string
- func (x *UserIndexReq) GetPage() *PageInfo
- func (x *UserIndexReq) GetPhone() string
- func (x *UserIndexReq) GetUserName() string
- func (*UserIndexReq) ProtoMessage()
- func (x *UserIndexReq) ProtoReflect() protoreflect.Message
- func (x *UserIndexReq) Reset()
- func (x *UserIndexReq) String() string
- type UserIndexResp
- func (*UserIndexResp) Descriptor() ([]byte, []int)deprecated
- func (x *UserIndexResp) GetInfo() []*UserInfo
- func (x *UserIndexResp) GetTotal() int64
- func (*UserIndexResp) ProtoMessage()
- func (x *UserIndexResp) ProtoReflect() protoreflect.Message
- func (x *UserIndexResp) Reset()
- func (x *UserIndexResp) String() string
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfo) GetCity() string
- func (x *UserInfo) GetCountry() string
- func (x *UserInfo) GetCreatedTime() int64
- func (x *UserInfo) GetEmail() string
- func (x *UserInfo) GetHeadImgUrl() string
- func (x *UserInfo) GetLanguage() string
- func (x *UserInfo) GetLastIP() string
- func (x *UserInfo) GetNickName() string
- func (x *UserInfo) GetPassword() string
- func (x *UserInfo) GetPhone() string
- func (x *UserInfo) GetProvince() string
- func (x *UserInfo) GetRegIP() string
- func (x *UserInfo) GetRole() int64
- func (x *UserInfo) GetSex() int64
- func (x *UserInfo) GetUid() int64
- func (x *UserInfo) GetUserName() string
- func (x *UserInfo) GetWechat() string
- func (*UserInfo) ProtoMessage()
- func (x *UserInfo) ProtoReflect() protoreflect.Message
- func (x *UserInfo) Reset()
- func (x *UserInfo) String() string
- type UserReadReq
- type UserReadResp
- func (*UserReadResp) Descriptor() ([]byte, []int)deprecated
- func (x *UserReadResp) GetCity() string
- func (x *UserReadResp) GetCountry() string
- func (x *UserReadResp) GetCreatedTime() int64
- func (x *UserReadResp) GetEmail() string
- func (x *UserReadResp) GetHeadImgUrl() string
- func (x *UserReadResp) GetLanguage() string
- func (x *UserReadResp) GetLastIP() string
- func (x *UserReadResp) GetNickName() string
- func (x *UserReadResp) GetPhone() string
- func (x *UserReadResp) GetProvince() string
- func (x *UserReadResp) GetRegIP() string
- func (x *UserReadResp) GetRole() int64
- func (x *UserReadResp) GetSex() int64
- func (x *UserReadResp) GetUid() int64
- func (x *UserReadResp) GetUserName() string
- func (x *UserReadResp) GetWechat() string
- func (*UserReadResp) ProtoMessage()
- func (x *UserReadResp) ProtoReflect() protoreflect.Message
- func (x *UserReadResp) Reset()
- func (x *UserReadResp) String() string
- type UserServer
- type UserUpdateReq
- func (*UserUpdateReq) Descriptor() ([]byte, []int)deprecated
- func (x *UserUpdateReq) GetCity() string
- func (x *UserUpdateReq) GetCountry() string
- func (x *UserUpdateReq) GetEmail() string
- func (x *UserUpdateReq) GetHeadImgUrl() string
- func (x *UserUpdateReq) GetLanguage() string
- func (x *UserUpdateReq) GetNickName() string
- func (x *UserUpdateReq) GetPhone() string
- func (x *UserUpdateReq) GetProvince() string
- func (x *UserUpdateReq) GetRole() int64
- func (x *UserUpdateReq) GetSex() int64
- func (x *UserUpdateReq) GetUid() int64
- func (x *UserUpdateReq) GetUserName() string
- func (x *UserUpdateReq) GetWechat() string
- func (*UserUpdateReq) ProtoMessage()
- func (x *UserUpdateReq) ProtoReflect() protoreflect.Message
- func (x *UserUpdateReq) Reset()
- func (x *UserUpdateReq) String() string
Constants ¶
This section is empty.
Variables ¶
var File_proto_sys_proto protoreflect.FileDescriptor
Functions ¶
func RegisterMenuServer ¶
func RegisterMenuServer(s *grpc.Server, srv MenuServer)
func RegisterRoleServer ¶
func RegisterRoleServer(s *grpc.Server, srv RoleServer)
func RegisterUserServer ¶
func RegisterUserServer(s *grpc.Server, srv UserServer)
Types ¶
type CheckTokenReq ¶
type CheckTokenReq struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
// contains filtered or unexported fields
}
func (*CheckTokenReq) Descriptor
deprecated
func (*CheckTokenReq) Descriptor() ([]byte, []int)
Deprecated: Use CheckTokenReq.ProtoReflect.Descriptor instead.
func (*CheckTokenReq) GetIp ¶
func (x *CheckTokenReq) GetIp() string
func (*CheckTokenReq) GetToken ¶
func (x *CheckTokenReq) GetToken() string
func (*CheckTokenReq) ProtoMessage ¶
func (*CheckTokenReq) ProtoMessage()
func (*CheckTokenReq) ProtoReflect ¶
func (x *CheckTokenReq) ProtoReflect() protoreflect.Message
func (*CheckTokenReq) Reset ¶
func (x *CheckTokenReq) Reset()
func (*CheckTokenReq) String ¶
func (x *CheckTokenReq) String() string
type CheckTokenResp ¶
type CheckTokenResp struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` //如果时间不多会更新jwt,需要判断jwt是否为“” 如果不为空,则需要更新用户的token
Uid int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"`
Role int64 `protobuf:"varint,3,opt,name=role,proto3" json:"role,omitempty"`
// contains filtered or unexported fields
}
func (*CheckTokenResp) Descriptor
deprecated
func (*CheckTokenResp) Descriptor() ([]byte, []int)
Deprecated: Use CheckTokenResp.ProtoReflect.Descriptor instead.
func (*CheckTokenResp) GetRole ¶
func (x *CheckTokenResp) GetRole() int64
func (*CheckTokenResp) GetToken ¶
func (x *CheckTokenResp) GetToken() string
func (*CheckTokenResp) GetUid ¶
func (x *CheckTokenResp) GetUid() int64
func (*CheckTokenResp) ProtoMessage ¶
func (*CheckTokenResp) ProtoMessage()
func (*CheckTokenResp) ProtoReflect ¶
func (x *CheckTokenResp) ProtoReflect() protoreflect.Message
func (*CheckTokenResp) Reset ¶
func (x *CheckTokenResp) Reset()
func (*CheckTokenResp) String ¶
func (x *CheckTokenResp) String() string
type JwtToken ¶
type JwtToken struct {
AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"`
AccessExpire int64 `protobuf:"varint,2,opt,name=accessExpire,proto3" json:"accessExpire,omitempty"`
RefreshAfter int64 `protobuf:"varint,3,opt,name=refreshAfter,proto3" json:"refreshAfter,omitempty"`
// contains filtered or unexported fields
}
func (*JwtToken) Descriptor
deprecated
func (*JwtToken) GetAccessExpire ¶
func (*JwtToken) GetAccessToken ¶
func (*JwtToken) GetRefreshAfter ¶
func (*JwtToken) ProtoMessage ¶
func (*JwtToken) ProtoMessage()
func (*JwtToken) ProtoReflect ¶
func (x *JwtToken) ProtoReflect() protoreflect.Message
type LoginReq ¶
type LoginReq struct {
UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` //登录账号(支持用户名,手机号登录) 账号密码登录时需要填写
PwdType int32 `protobuf:"varint,2,opt,name=pwdType,proto3" json:"pwdType,omitempty"` //账号密码登录时需要填写.0,无密码 1,明文 2,md5加密
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` //密码,建议md5转换 密码登录时需要填写
LoginType string `protobuf:"bytes,4,opt,name=loginType,proto3" json:"loginType,omitempty"` //验证类型 sms 短信验证码 pwd 图形验证码加账号密码登录 wxopen 微信开放平台登录 wxin 微信内登录 wxmini 微信小程序
Code string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"` //验证码 微信登录填code
CodeID string `protobuf:"bytes,6,opt,name=codeID,proto3" json:"codeID,omitempty"` //验证码编号 微信登录填state
// contains filtered or unexported fields
}
func (*LoginReq) Descriptor
deprecated
func (*LoginReq) GetLoginType ¶
func (*LoginReq) GetPassword ¶
func (*LoginReq) GetPwdType ¶
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
func (*LoginReq) ProtoReflect ¶
func (x *LoginReq) ProtoReflect() protoreflect.Message
type LoginResp ¶
type LoginResp struct {
Info *UserInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
Token *JwtToken `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
// contains filtered or unexported fields
}
func (*LoginResp) Descriptor
deprecated
func (*LoginResp) ProtoMessage ¶
func (*LoginResp) ProtoMessage()
func (*LoginResp) ProtoReflect ¶
func (x *LoginResp) ProtoReflect() protoreflect.Message
type MenuClient ¶
type MenuClient interface {
MenuCreate(ctx context.Context, in *MenuCreateReq, opts ...grpc.CallOption) (*Response, error)
MenuIndex(ctx context.Context, in *MenuIndexReq, opts ...grpc.CallOption) (*MenuIndexResp, error)
MenuUpdate(ctx context.Context, in *MenuUpdateReq, opts ...grpc.CallOption) (*Response, error)
MenuDelete(ctx context.Context, in *MenuDeleteReq, opts ...grpc.CallOption) (*Response, error)
}
MenuClient is the client API for Menu 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 NewMenuClient ¶
func NewMenuClient(cc grpc.ClientConnInterface) MenuClient
type MenuCreateReq ¶
type MenuCreateReq struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
ParentID int64 `protobuf:"varint,2,opt,name=parentID,proto3" json:"parentID,omitempty"`
Type int64 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`
Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
Component string `protobuf:"bytes,5,opt,name=component,proto3" json:"component,omitempty"`
Icon string `protobuf:"bytes,6,opt,name=icon,proto3" json:"icon,omitempty"`
Redirect string `protobuf:"bytes,7,opt,name=redirect,proto3" json:"redirect,omitempty"`
Order int64 `protobuf:"varint,8,opt,name=order,proto3" json:"order,omitempty"`
HideInMenu int64 `protobuf:"varint,9,opt,name=hideInMenu,proto3" json:"hideInMenu,omitempty"`
Role int64 `protobuf:"varint,10,opt,name=role,proto3" json:"role,omitempty"`
// contains filtered or unexported fields
}
菜单相关信息
func (*MenuCreateReq) Descriptor
deprecated
func (*MenuCreateReq) Descriptor() ([]byte, []int)
Deprecated: Use MenuCreateReq.ProtoReflect.Descriptor instead.
func (*MenuCreateReq) GetComponent ¶
func (x *MenuCreateReq) GetComponent() string
func (*MenuCreateReq) GetHideInMenu ¶
func (x *MenuCreateReq) GetHideInMenu() int64
func (*MenuCreateReq) GetIcon ¶
func (x *MenuCreateReq) GetIcon() string
func (*MenuCreateReq) GetName ¶
func (x *MenuCreateReq) GetName() string
func (*MenuCreateReq) GetOrder ¶
func (x *MenuCreateReq) GetOrder() int64
func (*MenuCreateReq) GetParentID ¶
func (x *MenuCreateReq) GetParentID() int64
func (*MenuCreateReq) GetPath ¶
func (x *MenuCreateReq) GetPath() string
func (*MenuCreateReq) GetRedirect ¶
func (x *MenuCreateReq) GetRedirect() string
func (*MenuCreateReq) GetRole ¶
func (x *MenuCreateReq) GetRole() int64
func (*MenuCreateReq) GetType ¶
func (x *MenuCreateReq) GetType() int64
func (*MenuCreateReq) ProtoMessage ¶
func (*MenuCreateReq) ProtoMessage()
func (*MenuCreateReq) ProtoReflect ¶
func (x *MenuCreateReq) ProtoReflect() protoreflect.Message
func (*MenuCreateReq) Reset ¶
func (x *MenuCreateReq) Reset()
func (*MenuCreateReq) String ¶
func (x *MenuCreateReq) String() string
type MenuData ¶
type MenuData struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
ParentID int64 `protobuf:"varint,3,opt,name=parentID,proto3" json:"parentID,omitempty"`
Type int64 `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`
Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
Component string `protobuf:"bytes,6,opt,name=component,proto3" json:"component,omitempty"`
Icon string `protobuf:"bytes,7,opt,name=icon,proto3" json:"icon,omitempty"`
Redirect string `protobuf:"bytes,8,opt,name=redirect,proto3" json:"redirect,omitempty"`
CreateTime int64 `protobuf:"varint,9,opt,name=createTime,proto3" json:"createTime,omitempty"`
Order int64 `protobuf:"varint,10,opt,name=order,proto3" json:"order,omitempty"`
HideInMenu int64 `protobuf:"varint,11,opt,name=hideInMenu,proto3" json:"hideInMenu,omitempty"`
// contains filtered or unexported fields
}
func (*MenuData) Descriptor
deprecated
func (*MenuData) GetComponent ¶
func (*MenuData) GetCreateTime ¶
func (*MenuData) GetHideInMenu ¶
func (*MenuData) GetParentID ¶
func (*MenuData) GetRedirect ¶
func (*MenuData) ProtoMessage ¶
func (*MenuData) ProtoMessage()
func (*MenuData) ProtoReflect ¶
func (x *MenuData) ProtoReflect() protoreflect.Message
type MenuDeleteReq ¶
type MenuDeleteReq struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*MenuDeleteReq) Descriptor
deprecated
func (*MenuDeleteReq) Descriptor() ([]byte, []int)
Deprecated: Use MenuDeleteReq.ProtoReflect.Descriptor instead.
func (*MenuDeleteReq) GetId ¶
func (x *MenuDeleteReq) GetId() int64
func (*MenuDeleteReq) ProtoMessage ¶
func (*MenuDeleteReq) ProtoMessage()
func (*MenuDeleteReq) ProtoReflect ¶
func (x *MenuDeleteReq) ProtoReflect() protoreflect.Message
func (*MenuDeleteReq) Reset ¶
func (x *MenuDeleteReq) Reset()
func (*MenuDeleteReq) String ¶
func (x *MenuDeleteReq) String() string
type MenuIndexReq ¶
type MenuIndexReq struct {
Role int64 `protobuf:"varint,1,opt,name=role,proto3" json:"role,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
// contains filtered or unexported fields
}
func (*MenuIndexReq) Descriptor
deprecated
func (*MenuIndexReq) Descriptor() ([]byte, []int)
Deprecated: Use MenuIndexReq.ProtoReflect.Descriptor instead.
func (*MenuIndexReq) GetName ¶
func (x *MenuIndexReq) GetName() string
func (*MenuIndexReq) GetPath ¶
func (x *MenuIndexReq) GetPath() string
func (*MenuIndexReq) GetRole ¶
func (x *MenuIndexReq) GetRole() int64
func (*MenuIndexReq) ProtoMessage ¶
func (*MenuIndexReq) ProtoMessage()
func (*MenuIndexReq) ProtoReflect ¶
func (x *MenuIndexReq) ProtoReflect() protoreflect.Message
func (*MenuIndexReq) Reset ¶
func (x *MenuIndexReq) Reset()
func (*MenuIndexReq) String ¶
func (x *MenuIndexReq) String() string
type MenuIndexResp ¶
type MenuIndexResp struct {
List []*MenuData `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
// contains filtered or unexported fields
}
func (*MenuIndexResp) Descriptor
deprecated
func (*MenuIndexResp) Descriptor() ([]byte, []int)
Deprecated: Use MenuIndexResp.ProtoReflect.Descriptor instead.
func (*MenuIndexResp) GetList ¶
func (x *MenuIndexResp) GetList() []*MenuData
func (*MenuIndexResp) ProtoMessage ¶
func (*MenuIndexResp) ProtoMessage()
func (*MenuIndexResp) ProtoReflect ¶
func (x *MenuIndexResp) ProtoReflect() protoreflect.Message
func (*MenuIndexResp) Reset ¶
func (x *MenuIndexResp) Reset()
func (*MenuIndexResp) String ¶
func (x *MenuIndexResp) String() string
type MenuServer ¶
type MenuServer interface {
MenuCreate(context.Context, *MenuCreateReq) (*Response, error)
MenuIndex(context.Context, *MenuIndexReq) (*MenuIndexResp, error)
MenuUpdate(context.Context, *MenuUpdateReq) (*Response, error)
MenuDelete(context.Context, *MenuDeleteReq) (*Response, error)
// contains filtered or unexported methods
}
MenuServer is the server API for Menu service. All implementations must embed UnimplementedMenuServer for forward compatibility
type MenuUpdateReq ¶
type MenuUpdateReq struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
ParentID int64 `protobuf:"varint,3,opt,name=parentID,proto3" json:"parentID,omitempty"`
Type int64 `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`
Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
Component string `protobuf:"bytes,6,opt,name=component,proto3" json:"component,omitempty"`
Icon string `protobuf:"bytes,7,opt,name=icon,proto3" json:"icon,omitempty"`
Redirect string `protobuf:"bytes,8,opt,name=redirect,proto3" json:"redirect,omitempty"`
Order int64 `protobuf:"varint,9,opt,name=order,proto3" json:"order,omitempty"`
HideInMenu int64 `protobuf:"varint,10,opt,name=hideInMenu,proto3" json:"hideInMenu,omitempty"`
// contains filtered or unexported fields
}
func (*MenuUpdateReq) Descriptor
deprecated
func (*MenuUpdateReq) Descriptor() ([]byte, []int)
Deprecated: Use MenuUpdateReq.ProtoReflect.Descriptor instead.
func (*MenuUpdateReq) GetComponent ¶
func (x *MenuUpdateReq) GetComponent() string
func (*MenuUpdateReq) GetHideInMenu ¶
func (x *MenuUpdateReq) GetHideInMenu() int64
func (*MenuUpdateReq) GetIcon ¶
func (x *MenuUpdateReq) GetIcon() string
func (*MenuUpdateReq) GetId ¶
func (x *MenuUpdateReq) GetId() int64
func (*MenuUpdateReq) GetName ¶
func (x *MenuUpdateReq) GetName() string
func (*MenuUpdateReq) GetOrder ¶
func (x *MenuUpdateReq) GetOrder() int64
func (*MenuUpdateReq) GetParentID ¶
func (x *MenuUpdateReq) GetParentID() int64
func (*MenuUpdateReq) GetPath ¶
func (x *MenuUpdateReq) GetPath() string
func (*MenuUpdateReq) GetRedirect ¶
func (x *MenuUpdateReq) GetRedirect() string
func (*MenuUpdateReq) GetType ¶
func (x *MenuUpdateReq) GetType() int64
func (*MenuUpdateReq) ProtoMessage ¶
func (*MenuUpdateReq) ProtoMessage()
func (*MenuUpdateReq) ProtoReflect ¶
func (x *MenuUpdateReq) ProtoReflect() protoreflect.Message
func (*MenuUpdateReq) Reset ¶
func (x *MenuUpdateReq) Reset()
func (*MenuUpdateReq) String ¶
func (x *MenuUpdateReq) String() string
type PageInfo ¶
type PageInfo struct {
Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
// contains filtered or unexported fields
}
func (*PageInfo) Descriptor
deprecated
func (*PageInfo) ProtoMessage ¶
func (*PageInfo) ProtoMessage()
func (*PageInfo) ProtoReflect ¶
func (x *PageInfo) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type RoleClient ¶
type RoleClient interface {
RoleCreate(ctx context.Context, in *RoleCreateReq, opts ...grpc.CallOption) (*Response, error)
RoleIndex(ctx context.Context, in *RoleIndexReq, opts ...grpc.CallOption) (*RoleIndexResp, error)
RoleUpdate(ctx context.Context, in *RoleUpdateReq, opts ...grpc.CallOption) (*Response, error)
RoleDelete(ctx context.Context, in *RoleDeleteReq, opts ...grpc.CallOption) (*Response, error)
RoleMenuUpdate(ctx context.Context, in *RoleMenuUpdateReq, opts ...grpc.CallOption) (*Response, error)
}
RoleClient is the client API for Role 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 NewRoleClient ¶
func NewRoleClient(cc grpc.ClientConnInterface) RoleClient
type RoleCreateReq ¶
type RoleCreateReq struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 角色名称
Remark string `protobuf:"bytes,2,opt,name=remark,proto3" json:"remark,omitempty"` // 备注
Status int64 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` // 状态 1:启用,2:禁用
// contains filtered or unexported fields
}
角色相关信息
func (*RoleCreateReq) Descriptor
deprecated
func (*RoleCreateReq) Descriptor() ([]byte, []int)
Deprecated: Use RoleCreateReq.ProtoReflect.Descriptor instead.
func (*RoleCreateReq) GetName ¶
func (x *RoleCreateReq) GetName() string
func (*RoleCreateReq) GetRemark ¶
func (x *RoleCreateReq) GetRemark() string
func (*RoleCreateReq) GetStatus ¶
func (x *RoleCreateReq) GetStatus() int64
func (*RoleCreateReq) ProtoMessage ¶
func (*RoleCreateReq) ProtoMessage()
func (*RoleCreateReq) ProtoReflect ¶
func (x *RoleCreateReq) ProtoReflect() protoreflect.Message
func (*RoleCreateReq) Reset ¶
func (x *RoleCreateReq) Reset()
func (*RoleCreateReq) String ¶
func (x *RoleCreateReq) String() string
type RoleDeleteReq ¶
type RoleDeleteReq struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*RoleDeleteReq) Descriptor
deprecated
func (*RoleDeleteReq) Descriptor() ([]byte, []int)
Deprecated: Use RoleDeleteReq.ProtoReflect.Descriptor instead.
func (*RoleDeleteReq) GetId ¶
func (x *RoleDeleteReq) GetId() int64
func (*RoleDeleteReq) ProtoMessage ¶
func (*RoleDeleteReq) ProtoMessage()
func (*RoleDeleteReq) ProtoReflect ¶
func (x *RoleDeleteReq) ProtoReflect() protoreflect.Message
func (*RoleDeleteReq) Reset ¶
func (x *RoleDeleteReq) Reset()
func (*RoleDeleteReq) String ¶
func (x *RoleDeleteReq) String() string
type RoleIndexData ¶
type RoleIndexData struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"`
CreatedTime int64 `protobuf:"varint,4,opt,name=createdTime,proto3" json:"createdTime,omitempty"`
Status int64 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"`
RoleMenuID []int64 `protobuf:"varint,6,rep,packed,name=roleMenuID,proto3" json:"roleMenuID,omitempty"`
// contains filtered or unexported fields
}
func (*RoleIndexData) Descriptor
deprecated
func (*RoleIndexData) Descriptor() ([]byte, []int)
Deprecated: Use RoleIndexData.ProtoReflect.Descriptor instead.
func (*RoleIndexData) GetCreatedTime ¶
func (x *RoleIndexData) GetCreatedTime() int64
func (*RoleIndexData) GetId ¶
func (x *RoleIndexData) GetId() int64
func (*RoleIndexData) GetName ¶
func (x *RoleIndexData) GetName() string
func (*RoleIndexData) GetRemark ¶
func (x *RoleIndexData) GetRemark() string
func (*RoleIndexData) GetRoleMenuID ¶
func (x *RoleIndexData) GetRoleMenuID() []int64
func (*RoleIndexData) GetStatus ¶
func (x *RoleIndexData) GetStatus() int64
func (*RoleIndexData) ProtoMessage ¶
func (*RoleIndexData) ProtoMessage()
func (*RoleIndexData) ProtoReflect ¶
func (x *RoleIndexData) ProtoReflect() protoreflect.Message
func (*RoleIndexData) Reset ¶
func (x *RoleIndexData) Reset()
func (*RoleIndexData) String ¶
func (x *RoleIndexData) String() string
type RoleIndexReq ¶
type RoleIndexReq struct {
Page *PageInfo `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` //分页信息
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Status int64 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
func (*RoleIndexReq) Descriptor
deprecated
func (*RoleIndexReq) Descriptor() ([]byte, []int)
Deprecated: Use RoleIndexReq.ProtoReflect.Descriptor instead.
func (*RoleIndexReq) GetName ¶
func (x *RoleIndexReq) GetName() string
func (*RoleIndexReq) GetPage ¶
func (x *RoleIndexReq) GetPage() *PageInfo
func (*RoleIndexReq) GetStatus ¶
func (x *RoleIndexReq) GetStatus() int64
func (*RoleIndexReq) ProtoMessage ¶
func (*RoleIndexReq) ProtoMessage()
func (*RoleIndexReq) ProtoReflect ¶
func (x *RoleIndexReq) ProtoReflect() protoreflect.Message
func (*RoleIndexReq) Reset ¶
func (x *RoleIndexReq) Reset()
func (*RoleIndexReq) String ¶
func (x *RoleIndexReq) String() string
type RoleIndexResp ¶
type RoleIndexResp struct {
List []*RoleIndexData `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
// contains filtered or unexported fields
}
func (*RoleIndexResp) Descriptor
deprecated
func (*RoleIndexResp) Descriptor() ([]byte, []int)
Deprecated: Use RoleIndexResp.ProtoReflect.Descriptor instead.
func (*RoleIndexResp) GetList ¶
func (x *RoleIndexResp) GetList() []*RoleIndexData
func (*RoleIndexResp) GetTotal ¶
func (x *RoleIndexResp) GetTotal() int64
func (*RoleIndexResp) ProtoMessage ¶
func (*RoleIndexResp) ProtoMessage()
func (*RoleIndexResp) ProtoReflect ¶
func (x *RoleIndexResp) ProtoReflect() protoreflect.Message
func (*RoleIndexResp) Reset ¶
func (x *RoleIndexResp) Reset()
func (*RoleIndexResp) String ¶
func (x *RoleIndexResp) String() string
type RoleMenuUpdateReq ¶
type RoleMenuUpdateReq struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
MenuID []int64 `protobuf:"varint,2,rep,packed,name=menuID,proto3" json:"menuID,omitempty"`
// contains filtered or unexported fields
}
func (*RoleMenuUpdateReq) Descriptor
deprecated
func (*RoleMenuUpdateReq) Descriptor() ([]byte, []int)
Deprecated: Use RoleMenuUpdateReq.ProtoReflect.Descriptor instead.
func (*RoleMenuUpdateReq) GetId ¶
func (x *RoleMenuUpdateReq) GetId() int64
func (*RoleMenuUpdateReq) GetMenuID ¶
func (x *RoleMenuUpdateReq) GetMenuID() []int64
func (*RoleMenuUpdateReq) ProtoMessage ¶
func (*RoleMenuUpdateReq) ProtoMessage()
func (*RoleMenuUpdateReq) ProtoReflect ¶
func (x *RoleMenuUpdateReq) ProtoReflect() protoreflect.Message
func (*RoleMenuUpdateReq) Reset ¶
func (x *RoleMenuUpdateReq) Reset()
func (*RoleMenuUpdateReq) String ¶
func (x *RoleMenuUpdateReq) String() string
type RoleServer ¶
type RoleServer interface {
RoleCreate(context.Context, *RoleCreateReq) (*Response, error)
RoleIndex(context.Context, *RoleIndexReq) (*RoleIndexResp, error)
RoleUpdate(context.Context, *RoleUpdateReq) (*Response, error)
RoleDelete(context.Context, *RoleDeleteReq) (*Response, error)
RoleMenuUpdate(context.Context, *RoleMenuUpdateReq) (*Response, error)
// contains filtered or unexported methods
}
RoleServer is the server API for Role service. All implementations must embed UnimplementedRoleServer for forward compatibility
type RoleUpdateReq ¶
type RoleUpdateReq struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Remark string `protobuf:"bytes,3,opt,name=remark,proto3" json:"remark,omitempty"`
Status int64 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
func (*RoleUpdateReq) Descriptor
deprecated
func (*RoleUpdateReq) Descriptor() ([]byte, []int)
Deprecated: Use RoleUpdateReq.ProtoReflect.Descriptor instead.
func (*RoleUpdateReq) GetId ¶
func (x *RoleUpdateReq) GetId() int64
func (*RoleUpdateReq) GetName ¶
func (x *RoleUpdateReq) GetName() string
func (*RoleUpdateReq) GetRemark ¶
func (x *RoleUpdateReq) GetRemark() string
func (*RoleUpdateReq) GetStatus ¶
func (x *RoleUpdateReq) GetStatus() int64
func (*RoleUpdateReq) ProtoMessage ¶
func (*RoleUpdateReq) ProtoMessage()
func (*RoleUpdateReq) ProtoReflect ¶
func (x *RoleUpdateReq) ProtoReflect() protoreflect.Message
func (*RoleUpdateReq) Reset ¶
func (x *RoleUpdateReq) Reset()
func (*RoleUpdateReq) String ¶
func (x *RoleUpdateReq) String() string
type UnimplementedMenuServer ¶
type UnimplementedMenuServer struct {
}
UnimplementedMenuServer must be embedded to have forward compatible implementations.
func (*UnimplementedMenuServer) MenuCreate ¶
func (*UnimplementedMenuServer) MenuCreate(context.Context, *MenuCreateReq) (*Response, error)
func (*UnimplementedMenuServer) MenuDelete ¶
func (*UnimplementedMenuServer) MenuDelete(context.Context, *MenuDeleteReq) (*Response, error)
func (*UnimplementedMenuServer) MenuIndex ¶
func (*UnimplementedMenuServer) MenuIndex(context.Context, *MenuIndexReq) (*MenuIndexResp, error)
func (*UnimplementedMenuServer) MenuUpdate ¶
func (*UnimplementedMenuServer) MenuUpdate(context.Context, *MenuUpdateReq) (*Response, error)
type UnimplementedRoleServer ¶
type UnimplementedRoleServer struct {
}
UnimplementedRoleServer must be embedded to have forward compatible implementations.
func (*UnimplementedRoleServer) RoleCreate ¶
func (*UnimplementedRoleServer) RoleCreate(context.Context, *RoleCreateReq) (*Response, error)
func (*UnimplementedRoleServer) RoleDelete ¶
func (*UnimplementedRoleServer) RoleDelete(context.Context, *RoleDeleteReq) (*Response, error)
func (*UnimplementedRoleServer) RoleIndex ¶
func (*UnimplementedRoleServer) RoleIndex(context.Context, *RoleIndexReq) (*RoleIndexResp, error)
func (*UnimplementedRoleServer) RoleMenuUpdate ¶
func (*UnimplementedRoleServer) RoleMenuUpdate(context.Context, *RoleMenuUpdateReq) (*Response, error)
func (*UnimplementedRoleServer) RoleUpdate ¶
func (*UnimplementedRoleServer) RoleUpdate(context.Context, *RoleUpdateReq) (*Response, error)
type UnimplementedUserServer ¶
type UnimplementedUserServer struct {
}
UnimplementedUserServer must be embedded to have forward compatible implementations.
func (*UnimplementedUserServer) CheckToken ¶
func (*UnimplementedUserServer) CheckToken(context.Context, *CheckTokenReq) (*CheckTokenResp, error)
func (*UnimplementedUserServer) Create ¶
func (*UnimplementedUserServer) Create(context.Context, *UserCreateReq) (*UserCreateResp, error)
func (*UnimplementedUserServer) Delete ¶
func (*UnimplementedUserServer) Delete(context.Context, *UserDeleteReq) (*Response, error)
func (*UnimplementedUserServer) Index ¶
func (*UnimplementedUserServer) Index(context.Context, *UserIndexReq) (*UserIndexResp, error)
func (*UnimplementedUserServer) Read ¶
func (*UnimplementedUserServer) Read(context.Context, *UserReadReq) (*UserReadResp, error)
func (*UnimplementedUserServer) Update ¶
func (*UnimplementedUserServer) Update(context.Context, *UserUpdateReq) (*Response, error)
type UserClient ¶
type UserClient interface {
Create(ctx context.Context, in *UserCreateReq, opts ...grpc.CallOption) (*UserCreateResp, error)
Index(ctx context.Context, in *UserIndexReq, opts ...grpc.CallOption) (*UserIndexResp, error)
Update(ctx context.Context, in *UserUpdateReq, opts ...grpc.CallOption) (*Response, error)
Read(ctx context.Context, in *UserReadReq, opts ...grpc.CallOption) (*UserReadResp, error)
Delete(ctx context.Context, in *UserDeleteReq, opts ...grpc.CallOption) (*Response, error)
Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginResp, error)
CheckToken(ctx context.Context, in *CheckTokenReq, opts ...grpc.CallOption) (*CheckTokenResp, error)
}
UserClient is the client API for User 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 NewUserClient ¶
func NewUserClient(cc grpc.ClientConnInterface) UserClient
type UserCreateReq ¶
type UserCreateReq struct {
ReqType string `protobuf:"bytes,1,opt,name=reqType,proto3" json:"reqType,omitempty"` //注册方式 phone|wxopen|wxin|wxminip|password| -> phone手机号注册 wxopen 微信开放平台登录 wxin 微信内登录 wxminip 微信小程序 密码方式 password 账密方式
UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` //手机号注册时填写手机号 或者用户账号
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` //明文密码
Wechat string `protobuf:"bytes,4,opt,name=wechat,proto3" json:"wechat,omitempty"`
LastIP string `protobuf:"bytes,5,opt,name=lastIP,proto3" json:"lastIP,omitempty"`
RegIP string `protobuf:"bytes,6,opt,name=regIP,proto3" json:"regIP,omitempty"`
NickName string `protobuf:"bytes,7,opt,name=nickName,proto3" json:"nickName,omitempty"`
City string `protobuf:"bytes,8,opt,name=city,proto3" json:"city,omitempty"`
Country string `protobuf:"bytes,9,opt,name=country,proto3" json:"country,omitempty"`
Province string `protobuf:"bytes,10,opt,name=province,proto3" json:"province,omitempty"`
Language string `protobuf:"bytes,11,opt,name=language,proto3" json:"language,omitempty"`
HeadImgUrl string `protobuf:"bytes,12,opt,name=headImgUrl,proto3" json:"headImgUrl,omitempty"`
Role int64 `protobuf:"varint,13,opt,name=role,proto3" json:"role,omitempty"`
Sex int64 `protobuf:"varint,14,opt,name=sex,proto3" json:"sex,omitempty"`
// contains filtered or unexported fields
}
func (*UserCreateReq) Descriptor
deprecated
func (*UserCreateReq) Descriptor() ([]byte, []int)
Deprecated: Use UserCreateReq.ProtoReflect.Descriptor instead.
func (*UserCreateReq) GetCity ¶
func (x *UserCreateReq) GetCity() string
func (*UserCreateReq) GetCountry ¶
func (x *UserCreateReq) GetCountry() string
func (*UserCreateReq) GetHeadImgUrl ¶
func (x *UserCreateReq) GetHeadImgUrl() string
func (*UserCreateReq) GetLanguage ¶
func (x *UserCreateReq) GetLanguage() string
func (*UserCreateReq) GetLastIP ¶
func (x *UserCreateReq) GetLastIP() string
func (*UserCreateReq) GetNickName ¶
func (x *UserCreateReq) GetNickName() string
func (*UserCreateReq) GetPassword ¶
func (x *UserCreateReq) GetPassword() string
func (*UserCreateReq) GetProvince ¶
func (x *UserCreateReq) GetProvince() string
func (*UserCreateReq) GetRegIP ¶
func (x *UserCreateReq) GetRegIP() string
func (*UserCreateReq) GetReqType ¶
func (x *UserCreateReq) GetReqType() string
func (*UserCreateReq) GetRole ¶
func (x *UserCreateReq) GetRole() int64
func (*UserCreateReq) GetSex ¶
func (x *UserCreateReq) GetSex() int64
func (*UserCreateReq) GetUserName ¶
func (x *UserCreateReq) GetUserName() string
func (*UserCreateReq) GetWechat ¶
func (x *UserCreateReq) GetWechat() string
func (*UserCreateReq) ProtoMessage ¶
func (*UserCreateReq) ProtoMessage()
func (*UserCreateReq) ProtoReflect ¶
func (x *UserCreateReq) ProtoReflect() protoreflect.Message
func (*UserCreateReq) Reset ¶
func (x *UserCreateReq) Reset()
func (*UserCreateReq) String ¶
func (x *UserCreateReq) String() string
type UserCreateResp ¶
type UserCreateResp struct {
Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` //用户id
// contains filtered or unexported fields
}
func (*UserCreateResp) Descriptor
deprecated
func (*UserCreateResp) Descriptor() ([]byte, []int)
Deprecated: Use UserCreateResp.ProtoReflect.Descriptor instead.
func (*UserCreateResp) GetUid ¶
func (x *UserCreateResp) GetUid() int64
func (*UserCreateResp) ProtoMessage ¶
func (*UserCreateResp) ProtoMessage()
func (*UserCreateResp) ProtoReflect ¶
func (x *UserCreateResp) ProtoReflect() protoreflect.Message
func (*UserCreateResp) Reset ¶
func (x *UserCreateResp) Reset()
func (*UserCreateResp) String ¶
func (x *UserCreateResp) String() string
type UserDeleteReq ¶
type UserDeleteReq struct {
Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
// contains filtered or unexported fields
}
func (*UserDeleteReq) Descriptor
deprecated
func (*UserDeleteReq) Descriptor() ([]byte, []int)
Deprecated: Use UserDeleteReq.ProtoReflect.Descriptor instead.
func (*UserDeleteReq) GetUid ¶
func (x *UserDeleteReq) GetUid() int64
func (*UserDeleteReq) ProtoMessage ¶
func (*UserDeleteReq) ProtoMessage()
func (*UserDeleteReq) ProtoReflect ¶
func (x *UserDeleteReq) ProtoReflect() protoreflect.Message
func (*UserDeleteReq) Reset ¶
func (x *UserDeleteReq) Reset()
func (*UserDeleteReq) String ¶
func (x *UserDeleteReq) String() string
type UserIndexReq ¶
type UserIndexReq struct {
Page *PageInfo `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` //分页信息 只获取一个则不填 搜索的字段: uid:用户id userName:登录用户名 email:邮箱 phone:手机号
UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"`
Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
// contains filtered or unexported fields
}
func (*UserIndexReq) Descriptor
deprecated
func (*UserIndexReq) Descriptor() ([]byte, []int)
Deprecated: Use UserIndexReq.ProtoReflect.Descriptor instead.
func (*UserIndexReq) GetEmail ¶
func (x *UserIndexReq) GetEmail() string
func (*UserIndexReq) GetPage ¶
func (x *UserIndexReq) GetPage() *PageInfo
func (*UserIndexReq) GetPhone ¶
func (x *UserIndexReq) GetPhone() string
func (*UserIndexReq) GetUserName ¶
func (x *UserIndexReq) GetUserName() string
func (*UserIndexReq) ProtoMessage ¶
func (*UserIndexReq) ProtoMessage()
func (*UserIndexReq) ProtoReflect ¶
func (x *UserIndexReq) ProtoReflect() protoreflect.Message
func (*UserIndexReq) Reset ¶
func (x *UserIndexReq) Reset()
func (*UserIndexReq) String ¶
func (x *UserIndexReq) String() string
type UserIndexResp ¶
type UserIndexResp struct {
Info []*UserInfo `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"`
Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
// contains filtered or unexported fields
}
func (*UserIndexResp) Descriptor
deprecated
func (*UserIndexResp) Descriptor() ([]byte, []int)
Deprecated: Use UserIndexResp.ProtoReflect.Descriptor instead.
func (*UserIndexResp) GetInfo ¶
func (x *UserIndexResp) GetInfo() []*UserInfo
func (*UserIndexResp) GetTotal ¶
func (x *UserIndexResp) GetTotal() int64
func (*UserIndexResp) ProtoMessage ¶
func (*UserIndexResp) ProtoMessage()
func (*UserIndexResp) ProtoReflect ¶
func (x *UserIndexResp) ProtoReflect() protoreflect.Message
func (*UserIndexResp) Reset ¶
func (x *UserIndexResp) Reset()
func (*UserIndexResp) String ¶
func (x *UserIndexResp) String() string
type UserInfo ¶
type UserInfo struct {
Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"`
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"`
Wechat string `protobuf:"bytes,6,opt,name=wechat,proto3" json:"wechat,omitempty"`
LastIP string `protobuf:"bytes,7,opt,name=lastIP,proto3" json:"lastIP,omitempty"`
RegIP string `protobuf:"bytes,8,opt,name=regIP,proto3" json:"regIP,omitempty"`
NickName string `protobuf:"bytes,9,opt,name=nickName,proto3" json:"nickName,omitempty"`
City string `protobuf:"bytes,10,opt,name=city,proto3" json:"city,omitempty"`
Country string `protobuf:"bytes,11,opt,name=country,proto3" json:"country,omitempty"`
Province string `protobuf:"bytes,12,opt,name=province,proto3" json:"province,omitempty"`
Language string `protobuf:"bytes,13,opt,name=language,proto3" json:"language,omitempty"`
HeadImgUrl string `protobuf:"bytes,14,opt,name=headImgUrl,proto3" json:"headImgUrl,omitempty"`
CreatedTime int64 `protobuf:"varint,15,opt,name=createdTime,proto3" json:"createdTime,omitempty"`
Role int64 `protobuf:"varint,16,opt,name=role,proto3" json:"role,omitempty"`
Sex int64 `protobuf:"varint,17,opt,name=sex,proto3" json:"sex,omitempty"`
// contains filtered or unexported fields
}
用户属性信息
func (*UserInfo) Descriptor
deprecated
func (*UserInfo) GetCountry ¶
func (*UserInfo) GetCreatedTime ¶
func (*UserInfo) GetHeadImgUrl ¶
func (*UserInfo) GetLanguage ¶
func (*UserInfo) GetNickName ¶
func (*UserInfo) GetPassword ¶
func (*UserInfo) GetProvince ¶
func (*UserInfo) GetUserName ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) ProtoReflect ¶
func (x *UserInfo) ProtoReflect() protoreflect.Message
type UserReadReq ¶
type UserReadReq struct {
Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
// contains filtered or unexported fields
}
func (*UserReadReq) Descriptor
deprecated
func (*UserReadReq) Descriptor() ([]byte, []int)
Deprecated: Use UserReadReq.ProtoReflect.Descriptor instead.
func (*UserReadReq) GetUid ¶
func (x *UserReadReq) GetUid() int64
func (*UserReadReq) ProtoMessage ¶
func (*UserReadReq) ProtoMessage()
func (*UserReadReq) ProtoReflect ¶
func (x *UserReadReq) ProtoReflect() protoreflect.Message
func (*UserReadReq) Reset ¶
func (x *UserReadReq) Reset()
func (*UserReadReq) String ¶
func (x *UserReadReq) String() string
type UserReadResp ¶
type UserReadResp struct {
Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"`
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`
Wechat string `protobuf:"bytes,5,opt,name=wechat,proto3" json:"wechat,omitempty"`
LastIP string `protobuf:"bytes,6,opt,name=lastIP,proto3" json:"lastIP,omitempty"`
RegIP string `protobuf:"bytes,7,opt,name=regIP,proto3" json:"regIP,omitempty"`
NickName string `protobuf:"bytes,8,opt,name=nickName,proto3" json:"nickName,omitempty"`
City string `protobuf:"bytes,9,opt,name=city,proto3" json:"city,omitempty"`
Country string `protobuf:"bytes,10,opt,name=country,proto3" json:"country,omitempty"`
Province string `protobuf:"bytes,11,opt,name=province,proto3" json:"province,omitempty"`
Language string `protobuf:"bytes,12,opt,name=language,proto3" json:"language,omitempty"`
HeadImgUrl string `protobuf:"bytes,13,opt,name=headImgUrl,proto3" json:"headImgUrl,omitempty"`
CreatedTime int64 `protobuf:"varint,14,opt,name=createdTime,proto3" json:"createdTime,omitempty"`
Role int64 `protobuf:"varint,15,opt,name=role,proto3" json:"role,omitempty"`
Sex int64 `protobuf:"varint,16,opt,name=sex,proto3" json:"sex,omitempty"`
// contains filtered or unexported fields
}
func (*UserReadResp) Descriptor
deprecated
func (*UserReadResp) Descriptor() ([]byte, []int)
Deprecated: Use UserReadResp.ProtoReflect.Descriptor instead.
func (*UserReadResp) GetCity ¶
func (x *UserReadResp) GetCity() string
func (*UserReadResp) GetCountry ¶
func (x *UserReadResp) GetCountry() string
func (*UserReadResp) GetCreatedTime ¶
func (x *UserReadResp) GetCreatedTime() int64
func (*UserReadResp) GetEmail ¶
func (x *UserReadResp) GetEmail() string
func (*UserReadResp) GetHeadImgUrl ¶
func (x *UserReadResp) GetHeadImgUrl() string
func (*UserReadResp) GetLanguage ¶
func (x *UserReadResp) GetLanguage() string
func (*UserReadResp) GetLastIP ¶
func (x *UserReadResp) GetLastIP() string
func (*UserReadResp) GetNickName ¶
func (x *UserReadResp) GetNickName() string
func (*UserReadResp) GetPhone ¶
func (x *UserReadResp) GetPhone() string
func (*UserReadResp) GetProvince ¶
func (x *UserReadResp) GetProvince() string
func (*UserReadResp) GetRegIP ¶
func (x *UserReadResp) GetRegIP() string
func (*UserReadResp) GetRole ¶
func (x *UserReadResp) GetRole() int64
func (*UserReadResp) GetSex ¶
func (x *UserReadResp) GetSex() int64
func (*UserReadResp) GetUid ¶
func (x *UserReadResp) GetUid() int64
func (*UserReadResp) GetUserName ¶
func (x *UserReadResp) GetUserName() string
func (*UserReadResp) GetWechat ¶
func (x *UserReadResp) GetWechat() string
func (*UserReadResp) ProtoMessage ¶
func (*UserReadResp) ProtoMessage()
func (*UserReadResp) ProtoReflect ¶
func (x *UserReadResp) ProtoReflect() protoreflect.Message
func (*UserReadResp) Reset ¶
func (x *UserReadResp) Reset()
func (*UserReadResp) String ¶
func (x *UserReadResp) String() string
type UserServer ¶
type UserServer interface {
Create(context.Context, *UserCreateReq) (*UserCreateResp, error)
Index(context.Context, *UserIndexReq) (*UserIndexResp, error)
Update(context.Context, *UserUpdateReq) (*Response, error)
Read(context.Context, *UserReadReq) (*UserReadResp, error)
Delete(context.Context, *UserDeleteReq) (*Response, error)
Login(context.Context, *LoginReq) (*LoginResp, error)
CheckToken(context.Context, *CheckTokenReq) (*CheckTokenResp, error)
// contains filtered or unexported methods
}
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility
type UserUpdateReq ¶
type UserUpdateReq struct {
Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"`
UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"`
Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`
Wechat string `protobuf:"bytes,5,opt,name=wechat,proto3" json:"wechat,omitempty"`
NickName string `protobuf:"bytes,6,opt,name=nickName,proto3" json:"nickName,omitempty"`
City string `protobuf:"bytes,7,opt,name=city,proto3" json:"city,omitempty"`
Country string `protobuf:"bytes,8,opt,name=country,proto3" json:"country,omitempty"`
Province string `protobuf:"bytes,9,opt,name=province,proto3" json:"province,omitempty"`
Language string `protobuf:"bytes,10,opt,name=language,proto3" json:"language,omitempty"`
HeadImgUrl string `protobuf:"bytes,11,opt,name=headImgUrl,proto3" json:"headImgUrl,omitempty"`
Sex int64 `protobuf:"varint,12,opt,name=sex,proto3" json:"sex,omitempty"`
Role int64 `protobuf:"varint,13,opt,name=role,proto3" json:"role,omitempty"`
// contains filtered or unexported fields
}
func (*UserUpdateReq) Descriptor
deprecated
func (*UserUpdateReq) Descriptor() ([]byte, []int)
Deprecated: Use UserUpdateReq.ProtoReflect.Descriptor instead.
func (*UserUpdateReq) GetCity ¶
func (x *UserUpdateReq) GetCity() string
func (*UserUpdateReq) GetCountry ¶
func (x *UserUpdateReq) GetCountry() string
func (*UserUpdateReq) GetEmail ¶
func (x *UserUpdateReq) GetEmail() string
func (*UserUpdateReq) GetHeadImgUrl ¶
func (x *UserUpdateReq) GetHeadImgUrl() string
func (*UserUpdateReq) GetLanguage ¶
func (x *UserUpdateReq) GetLanguage() string
func (*UserUpdateReq) GetNickName ¶
func (x *UserUpdateReq) GetNickName() string
func (*UserUpdateReq) GetPhone ¶
func (x *UserUpdateReq) GetPhone() string
func (*UserUpdateReq) GetProvince ¶
func (x *UserUpdateReq) GetProvince() string
func (*UserUpdateReq) GetRole ¶
func (x *UserUpdateReq) GetRole() int64
func (*UserUpdateReq) GetSex ¶
func (x *UserUpdateReq) GetSex() int64
func (*UserUpdateReq) GetUid ¶
func (x *UserUpdateReq) GetUid() int64
func (*UserUpdateReq) GetUserName ¶
func (x *UserUpdateReq) GetUserName() string
func (*UserUpdateReq) GetWechat ¶
func (x *UserUpdateReq) GetWechat() string
func (*UserUpdateReq) ProtoMessage ¶
func (*UserUpdateReq) ProtoMessage()
func (*UserUpdateReq) ProtoReflect ¶
func (x *UserUpdateReq) ProtoReflect() protoreflect.Message
func (*UserUpdateReq) Reset ¶
func (x *UserUpdateReq) Reset()
func (*UserUpdateReq) String ¶
func (x *UserUpdateReq) String() string