Documentation ¶
Index ¶
- Variables
- func RegisterApiServer(s grpc.ServiceRegistrar, srv ApiServer)
- func RegisterCommonServer(s grpc.ServiceRegistrar, srv CommonServer)
- func RegisterLogServer(s grpc.ServiceRegistrar, srv LogServer)
- func RegisterMenuServer(s grpc.ServiceRegistrar, srv MenuServer)
- func RegisterRoleServer(s grpc.ServiceRegistrar, srv RoleServer)
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type ApiClient
- type ApiCreateReq
- func (*ApiCreateReq) Descriptor() ([]byte, []int)deprecated
- func (x *ApiCreateReq) GetBusinessType() int64
- func (x *ApiCreateReq) GetGroup() string
- func (x *ApiCreateReq) GetMethod() int64
- func (x *ApiCreateReq) GetName() string
- func (x *ApiCreateReq) GetRoute() string
- func (*ApiCreateReq) ProtoMessage()
- func (x *ApiCreateReq) ProtoReflect() protoreflect.Message
- func (x *ApiCreateReq) Reset()
- func (x *ApiCreateReq) String() string
- type ApiData
- func (*ApiData) Descriptor() ([]byte, []int)deprecated
- func (x *ApiData) GetBusinessType() int64
- func (x *ApiData) GetGroup() string
- func (x *ApiData) GetId() int64
- func (x *ApiData) GetMethod() int64
- func (x *ApiData) GetName() string
- func (x *ApiData) GetRoute() string
- func (*ApiData) ProtoMessage()
- func (x *ApiData) ProtoReflect() protoreflect.Message
- func (x *ApiData) Reset()
- func (x *ApiData) String() string
- type ApiDeleteReq
- type ApiIndexReq
- func (*ApiIndexReq) Descriptor() ([]byte, []int)deprecated
- func (x *ApiIndexReq) GetGroup() string
- func (x *ApiIndexReq) GetMethod() int64
- func (x *ApiIndexReq) GetName() string
- func (x *ApiIndexReq) GetPage() *PageInfo
- func (x *ApiIndexReq) GetRoute() string
- func (*ApiIndexReq) ProtoMessage()
- func (x *ApiIndexReq) ProtoReflect() protoreflect.Message
- func (x *ApiIndexReq) Reset()
- func (x *ApiIndexReq) String() string
- type ApiIndexResp
- func (*ApiIndexResp) Descriptor() ([]byte, []int)deprecated
- func (x *ApiIndexResp) GetList() []*ApiData
- func (x *ApiIndexResp) GetTotal() int64
- func (*ApiIndexResp) ProtoMessage()
- func (x *ApiIndexResp) ProtoReflect() protoreflect.Message
- func (x *ApiIndexResp) Reset()
- func (x *ApiIndexResp) String() string
- type ApiServer
- type ApiUpdateReq
- func (*ApiUpdateReq) Descriptor() ([]byte, []int)deprecated
- func (x *ApiUpdateReq) GetGroup() string
- func (x *ApiUpdateReq) GetId() int64
- func (x *ApiUpdateReq) GetMethod() int64
- func (x *ApiUpdateReq) GetName() string
- func (x *ApiUpdateReq) GetRoute() string
- func (*ApiUpdateReq) ProtoMessage()
- func (x *ApiUpdateReq) ProtoReflect() protoreflect.Message
- func (x *ApiUpdateReq) Reset()
- func (x *ApiUpdateReq) String() string
- 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 CommonClient
- type CommonServer
- type ConfigResp
- type DateRange
- 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 LogClient
- type LogServer
- type LoginLogCreateReq
- func (*LoginLogCreateReq) Descriptor() ([]byte, []int)deprecated
- func (x *LoginLogCreateReq) GetBrowser() string
- func (x *LoginLogCreateReq) GetCode() int64
- func (x *LoginLogCreateReq) GetIpAddr() string
- func (x *LoginLogCreateReq) GetLoginLocation() string
- func (x *LoginLogCreateReq) GetMsg() string
- func (x *LoginLogCreateReq) GetOs() string
- func (x *LoginLogCreateReq) GetUid() int64
- func (x *LoginLogCreateReq) GetUserName() string
- func (*LoginLogCreateReq) ProtoMessage()
- func (x *LoginLogCreateReq) ProtoReflect() protoreflect.Message
- func (x *LoginLogCreateReq) Reset()
- func (x *LoginLogCreateReq) String() string
- type LoginLogIndexData
- func (*LoginLogIndexData) Descriptor() ([]byte, []int)deprecated
- func (x *LoginLogIndexData) GetBrowser() string
- func (x *LoginLogIndexData) GetCode() int64
- func (x *LoginLogIndexData) GetCreatedTime() int64
- func (x *LoginLogIndexData) GetIpAddr() string
- func (x *LoginLogIndexData) GetLoginLocation() string
- func (x *LoginLogIndexData) GetMsg() string
- func (x *LoginLogIndexData) GetOs() string
- func (x *LoginLogIndexData) GetUid() int64
- func (x *LoginLogIndexData) GetUserName() string
- func (*LoginLogIndexData) ProtoMessage()
- func (x *LoginLogIndexData) ProtoReflect() protoreflect.Message
- func (x *LoginLogIndexData) Reset()
- func (x *LoginLogIndexData) String() string
- type LoginLogIndexReq
- func (*LoginLogIndexReq) Descriptor() ([]byte, []int)deprecated
- func (x *LoginLogIndexReq) GetDate() *DateRange
- func (x *LoginLogIndexReq) GetIpAddr() string
- func (x *LoginLogIndexReq) GetLoginLocation() string
- func (x *LoginLogIndexReq) GetPage() *PageInfo
- func (*LoginLogIndexReq) ProtoMessage()
- func (x *LoginLogIndexReq) ProtoReflect() protoreflect.Message
- func (x *LoginLogIndexReq) Reset()
- func (x *LoginLogIndexReq) String() string
- type LoginLogIndexResp
- func (*LoginLogIndexResp) Descriptor() ([]byte, []int)deprecated
- func (x *LoginLogIndexResp) GetInfo() []*LoginLogIndexData
- func (x *LoginLogIndexResp) GetTotal() int64
- func (*LoginLogIndexResp) ProtoMessage()
- func (x *LoginLogIndexResp) ProtoReflect() protoreflect.Message
- func (x *LoginLogIndexResp) Reset()
- func (x *LoginLogIndexResp) 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 Map
- 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 OperLogCreateReq
- func (*OperLogCreateReq) Descriptor() ([]byte, []int)deprecated
- func (x *OperLogCreateReq) GetBusinessType() int64
- func (x *OperLogCreateReq) GetCode() int64
- func (x *OperLogCreateReq) GetMsg() string
- func (x *OperLogCreateReq) GetOperIpAddr() string
- func (x *OperLogCreateReq) GetOperLocation() string
- func (x *OperLogCreateReq) GetOperName() string
- func (x *OperLogCreateReq) GetOperUserName() string
- func (x *OperLogCreateReq) GetReq() string
- func (x *OperLogCreateReq) GetResp() string
- func (x *OperLogCreateReq) GetRoute() string
- func (x *OperLogCreateReq) GetUid() int64
- func (x *OperLogCreateReq) GetUri() string
- func (*OperLogCreateReq) ProtoMessage()
- func (x *OperLogCreateReq) ProtoReflect() protoreflect.Message
- func (x *OperLogCreateReq) Reset()
- func (x *OperLogCreateReq) String() string
- type OperLogIndexData
- func (*OperLogIndexData) Descriptor() ([]byte, []int)deprecated
- func (x *OperLogIndexData) GetBusinessType() int64
- func (x *OperLogIndexData) GetCode() int64
- func (x *OperLogIndexData) GetCreatedTime() int64
- func (x *OperLogIndexData) GetMsg() string
- func (x *OperLogIndexData) GetOperIpAddr() string
- func (x *OperLogIndexData) GetOperLocation() string
- func (x *OperLogIndexData) GetOperName() string
- func (x *OperLogIndexData) GetOperUserName() string
- func (x *OperLogIndexData) GetReq() string
- func (x *OperLogIndexData) GetResp() string
- func (x *OperLogIndexData) GetUid() int64
- func (x *OperLogIndexData) GetUri() string
- func (*OperLogIndexData) ProtoMessage()
- func (x *OperLogIndexData) ProtoReflect() protoreflect.Message
- func (x *OperLogIndexData) Reset()
- func (x *OperLogIndexData) String() string
- type OperLogIndexReq
- func (*OperLogIndexReq) Descriptor() ([]byte, []int)deprecated
- func (x *OperLogIndexReq) GetBusinessType() int64
- func (x *OperLogIndexReq) GetOperName() string
- func (x *OperLogIndexReq) GetOperUserName() string
- func (x *OperLogIndexReq) GetPage() *PageInfo
- func (*OperLogIndexReq) ProtoMessage()
- func (x *OperLogIndexReq) ProtoReflect() protoreflect.Message
- func (x *OperLogIndexReq) Reset()
- func (x *OperLogIndexReq) String() string
- type OperLogIndexResp
- func (*OperLogIndexResp) Descriptor() ([]byte, []int)deprecated
- func (x *OperLogIndexResp) GetInfo() []*OperLogIndexData
- func (x *OperLogIndexResp) GetTotal() int64
- func (*OperLogIndexResp) ProtoMessage()
- func (x *OperLogIndexResp) ProtoReflect() protoreflect.Message
- func (x *OperLogIndexResp) Reset()
- func (x *OperLogIndexResp) 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 UnimplementedApiServer
- func (UnimplementedApiServer) ApiCreate(context.Context, *ApiCreateReq) (*Response, error)
- func (UnimplementedApiServer) ApiDelete(context.Context, *ApiDeleteReq) (*Response, error)
- func (UnimplementedApiServer) ApiIndex(context.Context, *ApiIndexReq) (*ApiIndexResp, error)
- func (UnimplementedApiServer) ApiUpdate(context.Context, *ApiUpdateReq) (*Response, error)
- type UnimplementedCommonServer
- type UnimplementedLogServer
- func (UnimplementedLogServer) LoginLogCreate(context.Context, *LoginLogCreateReq) (*Response, error)
- func (UnimplementedLogServer) LoginLogIndex(context.Context, *LoginLogIndexReq) (*LoginLogIndexResp, error)
- func (UnimplementedLogServer) OperLogCreate(context.Context, *OperLogCreateReq) (*Response, error)
- func (UnimplementedLogServer) OperLogIndex(context.Context, *OperLogIndexReq) (*OperLogIndexResp, error)
- 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 UnsafeApiServer
- type UnsafeCommonServer
- type UnsafeLogServer
- type UnsafeMenuServer
- type UnsafeRoleServer
- type UnsafeUserServer
- 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 Api_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sys.Api", HandlerType: (*ApiServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "apiCreate", Handler: _Api_ApiCreate_Handler, }, { MethodName: "apiIndex", Handler: _Api_ApiIndex_Handler, }, { MethodName: "apiUpdate", Handler: _Api_ApiUpdate_Handler, }, { MethodName: "apiDelete", Handler: _Api_ApiDelete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/sys.proto", }
Api_ServiceDesc is the grpc.ServiceDesc for Api service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Common_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sys.Common", HandlerType: (*CommonServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "config", Handler: _Common_Config_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/sys.proto", }
Common_ServiceDesc is the grpc.ServiceDesc for Common service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_sys_proto protoreflect.FileDescriptor
var Log_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sys.Log", HandlerType: (*LogServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "loginLogIndex", Handler: _Log_LoginLogIndex_Handler, }, { MethodName: "operLogIndex", Handler: _Log_OperLogIndex_Handler, }, { MethodName: "loginLogCreate", Handler: _Log_LoginLogCreate_Handler, }, { MethodName: "operLogCreate", Handler: _Log_OperLogCreate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/sys.proto", }
Log_ServiceDesc is the grpc.ServiceDesc for Log service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Menu_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sys.Menu", HandlerType: (*MenuServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "menuCreate", Handler: _Menu_MenuCreate_Handler, }, { MethodName: "menuIndex", Handler: _Menu_MenuIndex_Handler, }, { MethodName: "menuUpdate", Handler: _Menu_MenuUpdate_Handler, }, { MethodName: "menuDelete", Handler: _Menu_MenuDelete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/sys.proto", }
Menu_ServiceDesc is the grpc.ServiceDesc for Menu service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Role_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sys.Role", HandlerType: (*RoleServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "roleCreate", Handler: _Role_RoleCreate_Handler, }, { MethodName: "roleIndex", Handler: _Role_RoleIndex_Handler, }, { MethodName: "roleUpdate", Handler: _Role_RoleUpdate_Handler, }, { MethodName: "roleDelete", Handler: _Role_RoleDelete_Handler, }, { MethodName: "roleMenuUpdate", Handler: _Role_RoleMenuUpdate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/sys.proto", }
Role_ServiceDesc is the grpc.ServiceDesc for Role service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sys.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "create", Handler: _User_Create_Handler, }, { MethodName: "index", Handler: _User_Index_Handler, }, { MethodName: "update", Handler: _User_Update_Handler, }, { MethodName: "read", Handler: _User_Read_Handler, }, { MethodName: "delete", Handler: _User_Delete_Handler, }, { MethodName: "login", Handler: _User_Login_Handler, }, { MethodName: "checkToken", Handler: _User_CheckToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/sys.proto", }
User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterApiServer ¶ added in v0.3.1
func RegisterApiServer(s grpc.ServiceRegistrar, srv ApiServer)
func RegisterCommonServer ¶ added in v0.3.0
func RegisterCommonServer(s grpc.ServiceRegistrar, srv CommonServer)
func RegisterLogServer ¶ added in v0.3.1
func RegisterLogServer(s grpc.ServiceRegistrar, srv LogServer)
func RegisterMenuServer ¶
func RegisterMenuServer(s grpc.ServiceRegistrar, srv MenuServer)
func RegisterRoleServer ¶
func RegisterRoleServer(s grpc.ServiceRegistrar, srv RoleServer)
func RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type ApiClient ¶ added in v0.3.1
type ApiClient interface { ApiCreate(ctx context.Context, in *ApiCreateReq, opts ...grpc.CallOption) (*Response, error) ApiIndex(ctx context.Context, in *ApiIndexReq, opts ...grpc.CallOption) (*ApiIndexResp, error) ApiUpdate(ctx context.Context, in *ApiUpdateReq, opts ...grpc.CallOption) (*Response, error) ApiDelete(ctx context.Context, in *ApiDeleteReq, opts ...grpc.CallOption) (*Response, error) }
ApiClient is the client API for Api 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 NewApiClient ¶ added in v0.3.1
func NewApiClient(cc grpc.ClientConnInterface) ApiClient
type ApiCreateReq ¶ added in v0.3.1
type ApiCreateReq struct { Route string `protobuf:"bytes,1,opt,name=route,proto3" json:"route,omitempty"` // 接口路由 Method int64 `protobuf:"varint,2,opt,name=method,proto3" json:"method,omitempty"` // 接口请求方式: POST GET Group string `protobuf:"bytes,3,opt,name=group,proto3" json:"group,omitempty"` // 接口分组 Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // 接口名称 BusinessType int64 `protobuf:"varint,5,opt,name=businessType,proto3" json:"businessType,omitempty"` // 业务类型(1新增 2修改 3删除 4查询 5其它) // contains filtered or unexported fields }
接口相关信息
func (*ApiCreateReq) Descriptor
deprecated
added in
v0.3.1
func (*ApiCreateReq) Descriptor() ([]byte, []int)
Deprecated: Use ApiCreateReq.ProtoReflect.Descriptor instead.
func (*ApiCreateReq) GetBusinessType ¶ added in v0.3.1
func (x *ApiCreateReq) GetBusinessType() int64
func (*ApiCreateReq) GetGroup ¶ added in v0.3.1
func (x *ApiCreateReq) GetGroup() string
func (*ApiCreateReq) GetMethod ¶ added in v0.3.1
func (x *ApiCreateReq) GetMethod() int64
func (*ApiCreateReq) GetName ¶ added in v0.3.1
func (x *ApiCreateReq) GetName() string
func (*ApiCreateReq) GetRoute ¶ added in v0.3.1
func (x *ApiCreateReq) GetRoute() string
func (*ApiCreateReq) ProtoMessage ¶ added in v0.3.1
func (*ApiCreateReq) ProtoMessage()
func (*ApiCreateReq) ProtoReflect ¶ added in v0.3.1
func (x *ApiCreateReq) ProtoReflect() protoreflect.Message
func (*ApiCreateReq) Reset ¶ added in v0.3.1
func (x *ApiCreateReq) Reset()
func (*ApiCreateReq) String ¶ added in v0.3.1
func (x *ApiCreateReq) String() string
type ApiData ¶ added in v0.3.1
type ApiData struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 接口编号 Route string `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"` // 接口路由 Method int64 `protobuf:"varint,3,opt,name=method,proto3" json:"method,omitempty"` // 接口请求方式: POST GET Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"` // 接口分组 Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // 接口名称 BusinessType int64 `protobuf:"varint,6,opt,name=businessType,proto3" json:"businessType,omitempty"` // 业务类型(1新增 2修改 3删除 4查询 5其它) // contains filtered or unexported fields }
func (*ApiData) Descriptor
deprecated
added in
v0.3.1
func (*ApiData) GetBusinessType ¶ added in v0.3.1
func (*ApiData) ProtoMessage ¶ added in v0.3.1
func (*ApiData) ProtoMessage()
func (*ApiData) ProtoReflect ¶ added in v0.3.1
func (x *ApiData) ProtoReflect() protoreflect.Message
type ApiDeleteReq ¶ added in v0.3.1
type ApiDeleteReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 接口编号 // contains filtered or unexported fields }
func (*ApiDeleteReq) Descriptor
deprecated
added in
v0.3.1
func (*ApiDeleteReq) Descriptor() ([]byte, []int)
Deprecated: Use ApiDeleteReq.ProtoReflect.Descriptor instead.
func (*ApiDeleteReq) GetId ¶ added in v0.3.1
func (x *ApiDeleteReq) GetId() int64
func (*ApiDeleteReq) ProtoMessage ¶ added in v0.3.1
func (*ApiDeleteReq) ProtoMessage()
func (*ApiDeleteReq) ProtoReflect ¶ added in v0.3.1
func (x *ApiDeleteReq) ProtoReflect() protoreflect.Message
func (*ApiDeleteReq) Reset ¶ added in v0.3.1
func (x *ApiDeleteReq) Reset()
func (*ApiDeleteReq) String ¶ added in v0.3.1
func (x *ApiDeleteReq) String() string
type ApiIndexReq ¶ added in v0.3.1
type ApiIndexReq struct { Page *PageInfo `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` // 分页信息 Route string `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"` // 接口路由 Method int64 `protobuf:"varint,3,opt,name=method,proto3" json:"method,omitempty"` // 接口请求方式: POST GET Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"` // 接口分组 Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // 接口名称 // contains filtered or unexported fields }
func (*ApiIndexReq) Descriptor
deprecated
added in
v0.3.1
func (*ApiIndexReq) Descriptor() ([]byte, []int)
Deprecated: Use ApiIndexReq.ProtoReflect.Descriptor instead.
func (*ApiIndexReq) GetGroup ¶ added in v0.3.1
func (x *ApiIndexReq) GetGroup() string
func (*ApiIndexReq) GetMethod ¶ added in v0.3.1
func (x *ApiIndexReq) GetMethod() int64
func (*ApiIndexReq) GetName ¶ added in v0.3.1
func (x *ApiIndexReq) GetName() string
func (*ApiIndexReq) GetPage ¶ added in v0.3.1
func (x *ApiIndexReq) GetPage() *PageInfo
func (*ApiIndexReq) GetRoute ¶ added in v0.3.1
func (x *ApiIndexReq) GetRoute() string
func (*ApiIndexReq) ProtoMessage ¶ added in v0.3.1
func (*ApiIndexReq) ProtoMessage()
func (*ApiIndexReq) ProtoReflect ¶ added in v0.3.1
func (x *ApiIndexReq) ProtoReflect() protoreflect.Message
func (*ApiIndexReq) Reset ¶ added in v0.3.1
func (x *ApiIndexReq) Reset()
func (*ApiIndexReq) String ¶ added in v0.3.1
func (x *ApiIndexReq) String() string
type ApiIndexResp ¶ added in v0.3.1
type ApiIndexResp struct { List []*ApiData `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 (*ApiIndexResp) Descriptor
deprecated
added in
v0.3.1
func (*ApiIndexResp) Descriptor() ([]byte, []int)
Deprecated: Use ApiIndexResp.ProtoReflect.Descriptor instead.
func (*ApiIndexResp) GetList ¶ added in v0.3.1
func (x *ApiIndexResp) GetList() []*ApiData
func (*ApiIndexResp) GetTotal ¶ added in v0.3.1
func (x *ApiIndexResp) GetTotal() int64
func (*ApiIndexResp) ProtoMessage ¶ added in v0.3.1
func (*ApiIndexResp) ProtoMessage()
func (*ApiIndexResp) ProtoReflect ¶ added in v0.3.1
func (x *ApiIndexResp) ProtoReflect() protoreflect.Message
func (*ApiIndexResp) Reset ¶ added in v0.3.1
func (x *ApiIndexResp) Reset()
func (*ApiIndexResp) String ¶ added in v0.3.1
func (x *ApiIndexResp) String() string
type ApiServer ¶ added in v0.3.1
type ApiServer interface { ApiCreate(context.Context, *ApiCreateReq) (*Response, error) ApiIndex(context.Context, *ApiIndexReq) (*ApiIndexResp, error) ApiUpdate(context.Context, *ApiUpdateReq) (*Response, error) ApiDelete(context.Context, *ApiDeleteReq) (*Response, error) // contains filtered or unexported methods }
ApiServer is the server API for Api service. All implementations must embed UnimplementedApiServer for forward compatibility
type ApiUpdateReq ¶ added in v0.3.1
type ApiUpdateReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 接口编号 Route string `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"` // 接口路由 Method int64 `protobuf:"varint,3,opt,name=method,proto3" json:"method,omitempty"` // 接口请求方式: POST GET Group string `protobuf:"bytes,4,opt,name=group,proto3" json:"group,omitempty"` // 接口分组 Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // 接口名称 // contains filtered or unexported fields }
func (*ApiUpdateReq) Descriptor
deprecated
added in
v0.3.1
func (*ApiUpdateReq) Descriptor() ([]byte, []int)
Deprecated: Use ApiUpdateReq.ProtoReflect.Descriptor instead.
func (*ApiUpdateReq) GetGroup ¶ added in v0.3.1
func (x *ApiUpdateReq) GetGroup() string
func (*ApiUpdateReq) GetId ¶ added in v0.3.1
func (x *ApiUpdateReq) GetId() int64
func (*ApiUpdateReq) GetMethod ¶ added in v0.3.1
func (x *ApiUpdateReq) GetMethod() int64
func (*ApiUpdateReq) GetName ¶ added in v0.3.1
func (x *ApiUpdateReq) GetName() string
func (*ApiUpdateReq) GetRoute ¶ added in v0.3.1
func (x *ApiUpdateReq) GetRoute() string
func (*ApiUpdateReq) ProtoMessage ¶ added in v0.3.1
func (*ApiUpdateReq) ProtoMessage()
func (*ApiUpdateReq) ProtoReflect ¶ added in v0.3.1
func (x *ApiUpdateReq) ProtoReflect() protoreflect.Message
func (*ApiUpdateReq) Reset ¶ added in v0.3.1
func (x *ApiUpdateReq) Reset()
func (*ApiUpdateReq) String ¶ added in v0.3.1
func (x *ApiUpdateReq) String() string
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 CommonClient ¶ added in v0.3.0
type CommonClient interface {
Config(ctx context.Context, in *Response, opts ...grpc.CallOption) (*ConfigResp, error)
}
CommonClient is the client API for Common 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 NewCommonClient ¶ added in v0.3.0
func NewCommonClient(cc grpc.ClientConnInterface) CommonClient
type CommonServer ¶ added in v0.3.0
type CommonServer interface { Config(context.Context, *Response) (*ConfigResp, error) // contains filtered or unexported methods }
CommonServer is the server API for Common service. All implementations must embed UnimplementedCommonServer for forward compatibility
type ConfigResp ¶ added in v0.3.0
type ConfigResp struct { Map *Map `protobuf:"bytes,1,opt,name=map,proto3" json:"map,omitempty"` //设备地图相关配置 // contains filtered or unexported fields }
func (*ConfigResp) Descriptor
deprecated
added in
v0.3.0
func (*ConfigResp) Descriptor() ([]byte, []int)
Deprecated: Use ConfigResp.ProtoReflect.Descriptor instead.
func (*ConfigResp) GetMap ¶ added in v0.3.0
func (x *ConfigResp) GetMap() *Map
func (*ConfigResp) ProtoMessage ¶ added in v0.3.0
func (*ConfigResp) ProtoMessage()
func (*ConfigResp) ProtoReflect ¶ added in v0.3.0
func (x *ConfigResp) ProtoReflect() protoreflect.Message
func (*ConfigResp) Reset ¶ added in v0.3.0
func (x *ConfigResp) Reset()
func (*ConfigResp) String ¶ added in v0.3.0
func (x *ConfigResp) String() string
type DateRange ¶ added in v0.3.1
type DateRange struct { Start string `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` End string `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` // contains filtered or unexported fields }
func (*DateRange) Descriptor
deprecated
added in
v0.3.1
func (*DateRange) ProtoMessage ¶ added in v0.3.1
func (*DateRange) ProtoMessage()
func (*DateRange) ProtoReflect ¶ added in v0.3.1
func (x *DateRange) ProtoReflect() protoreflect.Message
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 LogClient ¶ added in v0.3.1
type LogClient interface { LoginLogIndex(ctx context.Context, in *LoginLogIndexReq, opts ...grpc.CallOption) (*LoginLogIndexResp, error) OperLogIndex(ctx context.Context, in *OperLogIndexReq, opts ...grpc.CallOption) (*OperLogIndexResp, error) LoginLogCreate(ctx context.Context, in *LoginLogCreateReq, opts ...grpc.CallOption) (*Response, error) OperLogCreate(ctx context.Context, in *OperLogCreateReq, opts ...grpc.CallOption) (*Response, error) }
LogClient is the client API for Log 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 NewLogClient ¶ added in v0.3.1
func NewLogClient(cc grpc.ClientConnInterface) LogClient
type LogServer ¶ added in v0.3.1
type LogServer interface { LoginLogIndex(context.Context, *LoginLogIndexReq) (*LoginLogIndexResp, error) OperLogIndex(context.Context, *OperLogIndexReq) (*OperLogIndexResp, error) LoginLogCreate(context.Context, *LoginLogCreateReq) (*Response, error) OperLogCreate(context.Context, *OperLogCreateReq) (*Response, error) // contains filtered or unexported methods }
LogServer is the server API for Log service. All implementations must embed UnimplementedLogServer for forward compatibility
type LoginLogCreateReq ¶ added in v0.3.1
type LoginLogCreateReq struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // 用户id UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` // 登录账号 IpAddr string `protobuf:"bytes,3,opt,name=ipAddr,proto3" json:"ipAddr,omitempty"` // 登录IP地址 LoginLocation string `protobuf:"bytes,4,opt,name=loginLocation,proto3" json:"loginLocation,omitempty"` // 登录地点 Browser string `protobuf:"bytes,5,opt,name=browser,proto3" json:"browser,omitempty"` // 浏览器 Os string `protobuf:"bytes,6,opt,name=os,proto3" json:"os,omitempty"` // 操作系统 Code int64 `protobuf:"varint,7,opt,name=code,proto3" json:"code,omitempty"` // 登录状态(200成功 其它失败) Msg string `protobuf:"bytes,8,opt,name=msg,proto3" json:"msg,omitempty"` // 提示消息 // contains filtered or unexported fields }
func (*LoginLogCreateReq) Descriptor
deprecated
added in
v0.3.1
func (*LoginLogCreateReq) Descriptor() ([]byte, []int)
Deprecated: Use LoginLogCreateReq.ProtoReflect.Descriptor instead.
func (*LoginLogCreateReq) GetBrowser ¶ added in v0.3.1
func (x *LoginLogCreateReq) GetBrowser() string
func (*LoginLogCreateReq) GetCode ¶ added in v0.3.1
func (x *LoginLogCreateReq) GetCode() int64
func (*LoginLogCreateReq) GetIpAddr ¶ added in v0.3.1
func (x *LoginLogCreateReq) GetIpAddr() string
func (*LoginLogCreateReq) GetLoginLocation ¶ added in v0.3.1
func (x *LoginLogCreateReq) GetLoginLocation() string
func (*LoginLogCreateReq) GetMsg ¶ added in v0.3.1
func (x *LoginLogCreateReq) GetMsg() string
func (*LoginLogCreateReq) GetOs ¶ added in v0.3.1
func (x *LoginLogCreateReq) GetOs() string
func (*LoginLogCreateReq) GetUid ¶ added in v0.3.1
func (x *LoginLogCreateReq) GetUid() int64
func (*LoginLogCreateReq) GetUserName ¶ added in v0.3.1
func (x *LoginLogCreateReq) GetUserName() string
func (*LoginLogCreateReq) ProtoMessage ¶ added in v0.3.1
func (*LoginLogCreateReq) ProtoMessage()
func (*LoginLogCreateReq) ProtoReflect ¶ added in v0.3.1
func (x *LoginLogCreateReq) ProtoReflect() protoreflect.Message
func (*LoginLogCreateReq) Reset ¶ added in v0.3.1
func (x *LoginLogCreateReq) Reset()
func (*LoginLogCreateReq) String ¶ added in v0.3.1
func (x *LoginLogCreateReq) String() string
type LoginLogIndexData ¶ added in v0.3.1
type LoginLogIndexData struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // 用户id UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"` // 登录账号 IpAddr string `protobuf:"bytes,3,opt,name=ipAddr,proto3" json:"ipAddr,omitempty"` // 登录IP地址 LoginLocation string `protobuf:"bytes,4,opt,name=loginLocation,proto3" json:"loginLocation,omitempty"` // 登录地点 Browser string `protobuf:"bytes,5,opt,name=browser,proto3" json:"browser,omitempty"` // 浏览器 Os string `protobuf:"bytes,6,opt,name=os,proto3" json:"os,omitempty"` // 操作系统 Code int64 `protobuf:"varint,7,opt,name=code,proto3" json:"code,omitempty"` // 登录状态(200成功 其它失败) Msg string `protobuf:"bytes,8,opt,name=msg,proto3" json:"msg,omitempty"` // 提示消息 CreatedTime int64 `protobuf:"varint,9,opt,name=createdTime,proto3" json:"createdTime,omitempty"` // 登录时间 // contains filtered or unexported fields }
func (*LoginLogIndexData) Descriptor
deprecated
added in
v0.3.1
func (*LoginLogIndexData) Descriptor() ([]byte, []int)
Deprecated: Use LoginLogIndexData.ProtoReflect.Descriptor instead.
func (*LoginLogIndexData) GetBrowser ¶ added in v0.3.1
func (x *LoginLogIndexData) GetBrowser() string
func (*LoginLogIndexData) GetCode ¶ added in v0.3.1
func (x *LoginLogIndexData) GetCode() int64
func (*LoginLogIndexData) GetCreatedTime ¶ added in v0.3.1
func (x *LoginLogIndexData) GetCreatedTime() int64
func (*LoginLogIndexData) GetIpAddr ¶ added in v0.3.1
func (x *LoginLogIndexData) GetIpAddr() string
func (*LoginLogIndexData) GetLoginLocation ¶ added in v0.3.1
func (x *LoginLogIndexData) GetLoginLocation() string
func (*LoginLogIndexData) GetMsg ¶ added in v0.3.1
func (x *LoginLogIndexData) GetMsg() string
func (*LoginLogIndexData) GetOs ¶ added in v0.3.1
func (x *LoginLogIndexData) GetOs() string
func (*LoginLogIndexData) GetUid ¶ added in v0.3.1
func (x *LoginLogIndexData) GetUid() int64
func (*LoginLogIndexData) GetUserName ¶ added in v0.3.1
func (x *LoginLogIndexData) GetUserName() string
func (*LoginLogIndexData) ProtoMessage ¶ added in v0.3.1
func (*LoginLogIndexData) ProtoMessage()
func (*LoginLogIndexData) ProtoReflect ¶ added in v0.3.1
func (x *LoginLogIndexData) ProtoReflect() protoreflect.Message
func (*LoginLogIndexData) Reset ¶ added in v0.3.1
func (x *LoginLogIndexData) Reset()
func (*LoginLogIndexData) String ¶ added in v0.3.1
func (x *LoginLogIndexData) String() string
type LoginLogIndexReq ¶ added in v0.3.1
type LoginLogIndexReq struct { Page *PageInfo `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` // 分页信息 只获取一个则不填 IpAddr string `protobuf:"bytes,2,opt,name=ipAddr,proto3" json:"ipAddr,omitempty"` // 登录IP地址 LoginLocation string `protobuf:"bytes,3,opt,name=loginLocation,proto3" json:"loginLocation,omitempty"` // 登录地点 Date *DateRange `protobuf:"bytes,4,opt,name=date,proto3" json:"date,omitempty"` // 时间范围 // contains filtered or unexported fields }
func (*LoginLogIndexReq) Descriptor
deprecated
added in
v0.3.1
func (*LoginLogIndexReq) Descriptor() ([]byte, []int)
Deprecated: Use LoginLogIndexReq.ProtoReflect.Descriptor instead.
func (*LoginLogIndexReq) GetDate ¶ added in v0.3.1
func (x *LoginLogIndexReq) GetDate() *DateRange
func (*LoginLogIndexReq) GetIpAddr ¶ added in v0.3.1
func (x *LoginLogIndexReq) GetIpAddr() string
func (*LoginLogIndexReq) GetLoginLocation ¶ added in v0.3.1
func (x *LoginLogIndexReq) GetLoginLocation() string
func (*LoginLogIndexReq) GetPage ¶ added in v0.3.1
func (x *LoginLogIndexReq) GetPage() *PageInfo
func (*LoginLogIndexReq) ProtoMessage ¶ added in v0.3.1
func (*LoginLogIndexReq) ProtoMessage()
func (*LoginLogIndexReq) ProtoReflect ¶ added in v0.3.1
func (x *LoginLogIndexReq) ProtoReflect() protoreflect.Message
func (*LoginLogIndexReq) Reset ¶ added in v0.3.1
func (x *LoginLogIndexReq) Reset()
func (*LoginLogIndexReq) String ¶ added in v0.3.1
func (x *LoginLogIndexReq) String() string
type LoginLogIndexResp ¶ added in v0.3.1
type LoginLogIndexResp struct { Info []*LoginLogIndexData `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 (*LoginLogIndexResp) Descriptor
deprecated
added in
v0.3.1
func (*LoginLogIndexResp) Descriptor() ([]byte, []int)
Deprecated: Use LoginLogIndexResp.ProtoReflect.Descriptor instead.
func (*LoginLogIndexResp) GetInfo ¶ added in v0.3.1
func (x *LoginLogIndexResp) GetInfo() []*LoginLogIndexData
func (*LoginLogIndexResp) GetTotal ¶ added in v0.3.1
func (x *LoginLogIndexResp) GetTotal() int64
func (*LoginLogIndexResp) ProtoMessage ¶ added in v0.3.1
func (*LoginLogIndexResp) ProtoMessage()
func (*LoginLogIndexResp) ProtoReflect ¶ added in v0.3.1
func (x *LoginLogIndexResp) ProtoReflect() protoreflect.Message
func (*LoginLogIndexResp) Reset ¶ added in v0.3.1
func (x *LoginLogIndexResp) Reset()
func (*LoginLogIndexResp) String ¶ added in v0.3.1
func (x *LoginLogIndexResp) String() string
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 Map ¶ added in v0.3.0
type Map struct { Mode string `protobuf:"bytes,1,opt,name=mode,proto3" json:"mode,omitempty"` //坐标系 默认百度坐标系 AccessKey string `protobuf:"bytes,2,opt,name=accessKey,proto3" json:"accessKey,omitempty"` //设备地图key // contains filtered or unexported fields }
func (*Map) Descriptor
deprecated
added in
v0.3.0
func (*Map) GetAccessKey ¶ added in v0.3.0
func (*Map) ProtoMessage ¶ added in v0.3.0
func (*Map) ProtoMessage()
func (*Map) ProtoReflect ¶ added in v0.3.0
func (x *Map) 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 OperLogCreateReq ¶ added in v0.3.1
type OperLogCreateReq struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` //用户id OperUserName string `protobuf:"bytes,2,opt,name=operUserName,proto3" json:"operUserName,omitempty"` //操作人员名称 OperName string `protobuf:"bytes,3,opt,name=operName,proto3" json:"operName,omitempty"` //操作名称 BusinessType int64 `protobuf:"varint,4,opt,name=businessType,proto3" json:"businessType,omitempty"` //业务类型(1新增 2修改 3删除 4查询) Uri string `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"` //请求地址 Route string `protobuf:"bytes,6,opt,name=route,proto3" json:"route,omitempty"` //接口路由 OperIpAddr string `protobuf:"bytes,7,opt,name=operIpAddr,proto3" json:"operIpAddr,omitempty"` //操作主机地址 OperLocation string `protobuf:"bytes,8,opt,name=operLocation,proto3" json:"operLocation,omitempty"` //操作地点 Req string `protobuf:"bytes,9,opt,name=req,proto3" json:"req,omitempty"` //请求参数 Resp string `protobuf:"bytes,10,opt,name=resp,proto3" json:"resp,omitempty"` //返回参数 Code int64 `protobuf:"varint,11,opt,name=code,proto3" json:"code,omitempty"` //返回状态(200成功 其它失败) Msg string `protobuf:"bytes,12,opt,name=msg,proto3" json:"msg,omitempty"` //提示消息 // contains filtered or unexported fields }
func (*OperLogCreateReq) Descriptor
deprecated
added in
v0.3.1
func (*OperLogCreateReq) Descriptor() ([]byte, []int)
Deprecated: Use OperLogCreateReq.ProtoReflect.Descriptor instead.
func (*OperLogCreateReq) GetBusinessType ¶ added in v0.3.1
func (x *OperLogCreateReq) GetBusinessType() int64
func (*OperLogCreateReq) GetCode ¶ added in v0.3.1
func (x *OperLogCreateReq) GetCode() int64
func (*OperLogCreateReq) GetMsg ¶ added in v0.3.1
func (x *OperLogCreateReq) GetMsg() string
func (*OperLogCreateReq) GetOperIpAddr ¶ added in v0.3.1
func (x *OperLogCreateReq) GetOperIpAddr() string
func (*OperLogCreateReq) GetOperLocation ¶ added in v0.3.1
func (x *OperLogCreateReq) GetOperLocation() string
func (*OperLogCreateReq) GetOperName ¶ added in v0.3.1
func (x *OperLogCreateReq) GetOperName() string
func (*OperLogCreateReq) GetOperUserName ¶ added in v0.3.1
func (x *OperLogCreateReq) GetOperUserName() string
func (*OperLogCreateReq) GetReq ¶ added in v0.3.1
func (x *OperLogCreateReq) GetReq() string
func (*OperLogCreateReq) GetResp ¶ added in v0.3.1
func (x *OperLogCreateReq) GetResp() string
func (*OperLogCreateReq) GetRoute ¶ added in v0.3.1
func (x *OperLogCreateReq) GetRoute() string
func (*OperLogCreateReq) GetUid ¶ added in v0.3.1
func (x *OperLogCreateReq) GetUid() int64
func (*OperLogCreateReq) GetUri ¶ added in v0.3.1
func (x *OperLogCreateReq) GetUri() string
func (*OperLogCreateReq) ProtoMessage ¶ added in v0.3.1
func (*OperLogCreateReq) ProtoMessage()
func (*OperLogCreateReq) ProtoReflect ¶ added in v0.3.1
func (x *OperLogCreateReq) ProtoReflect() protoreflect.Message
func (*OperLogCreateReq) Reset ¶ added in v0.3.1
func (x *OperLogCreateReq) Reset()
func (*OperLogCreateReq) String ¶ added in v0.3.1
func (x *OperLogCreateReq) String() string
type OperLogIndexData ¶ added in v0.3.1
type OperLogIndexData struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` //用户id OperUserName string `protobuf:"bytes,2,opt,name=operUserName,proto3" json:"operUserName,omitempty"` //操作人员名称 OperName string `protobuf:"bytes,3,opt,name=operName,proto3" json:"operName,omitempty"` //操作名称 BusinessType int64 `protobuf:"varint,4,opt,name=businessType,proto3" json:"businessType,omitempty"` //业务类型(1新增 2修改 3删除 4查询) Uri string `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"` //请求地址 OperIpAddr string `protobuf:"bytes,6,opt,name=operIpAddr,proto3" json:"operIpAddr,omitempty"` //操作主机地址 OperLocation string `protobuf:"bytes,7,opt,name=operLocation,proto3" json:"operLocation,omitempty"` //操作地点 Req string `protobuf:"bytes,8,opt,name=req,proto3" json:"req,omitempty"` //请求参数 Resp string `protobuf:"bytes,9,opt,name=resp,proto3" json:"resp,omitempty"` //返回参数 Code int64 `protobuf:"varint,10,opt,name=code,proto3" json:"code,omitempty"` //登录状态(200成功 其它失败) Msg string `protobuf:"bytes,11,opt,name=msg,proto3" json:"msg,omitempty"` //提示消息 CreatedTime int64 `protobuf:"varint,12,opt,name=createdTime,proto3" json:"createdTime,omitempty"` //操作时间 // contains filtered or unexported fields }
func (*OperLogIndexData) Descriptor
deprecated
added in
v0.3.1
func (*OperLogIndexData) Descriptor() ([]byte, []int)
Deprecated: Use OperLogIndexData.ProtoReflect.Descriptor instead.
func (*OperLogIndexData) GetBusinessType ¶ added in v0.3.1
func (x *OperLogIndexData) GetBusinessType() int64
func (*OperLogIndexData) GetCode ¶ added in v0.3.1
func (x *OperLogIndexData) GetCode() int64
func (*OperLogIndexData) GetCreatedTime ¶ added in v0.3.1
func (x *OperLogIndexData) GetCreatedTime() int64
func (*OperLogIndexData) GetMsg ¶ added in v0.3.1
func (x *OperLogIndexData) GetMsg() string
func (*OperLogIndexData) GetOperIpAddr ¶ added in v0.3.1
func (x *OperLogIndexData) GetOperIpAddr() string
func (*OperLogIndexData) GetOperLocation ¶ added in v0.3.1
func (x *OperLogIndexData) GetOperLocation() string
func (*OperLogIndexData) GetOperName ¶ added in v0.3.1
func (x *OperLogIndexData) GetOperName() string
func (*OperLogIndexData) GetOperUserName ¶ added in v0.3.1
func (x *OperLogIndexData) GetOperUserName() string
func (*OperLogIndexData) GetReq ¶ added in v0.3.1
func (x *OperLogIndexData) GetReq() string
func (*OperLogIndexData) GetResp ¶ added in v0.3.1
func (x *OperLogIndexData) GetResp() string
func (*OperLogIndexData) GetUid ¶ added in v0.3.1
func (x *OperLogIndexData) GetUid() int64
func (*OperLogIndexData) GetUri ¶ added in v0.3.1
func (x *OperLogIndexData) GetUri() string
func (*OperLogIndexData) ProtoMessage ¶ added in v0.3.1
func (*OperLogIndexData) ProtoMessage()
func (*OperLogIndexData) ProtoReflect ¶ added in v0.3.1
func (x *OperLogIndexData) ProtoReflect() protoreflect.Message
func (*OperLogIndexData) Reset ¶ added in v0.3.1
func (x *OperLogIndexData) Reset()
func (*OperLogIndexData) String ¶ added in v0.3.1
func (x *OperLogIndexData) String() string
type OperLogIndexReq ¶ added in v0.3.1
type OperLogIndexReq struct { Page *PageInfo `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"` //分页信息 只获取一个则不填 OperName string `protobuf:"bytes,2,opt,name=operName,proto3" json:"operName,omitempty"` //按操作名称查找 OperUserName string `protobuf:"bytes,3,opt,name=operUserName,proto3" json:"operUserName,omitempty"` //按操作人员名称查找 BusinessType int64 `protobuf:"varint,4,opt,name=businessType,proto3" json:"businessType,omitempty"` //按业务类型(1新增 2修改 3删除 4查询)查找 // contains filtered or unexported fields }
func (*OperLogIndexReq) Descriptor
deprecated
added in
v0.3.1
func (*OperLogIndexReq) Descriptor() ([]byte, []int)
Deprecated: Use OperLogIndexReq.ProtoReflect.Descriptor instead.
func (*OperLogIndexReq) GetBusinessType ¶ added in v0.3.1
func (x *OperLogIndexReq) GetBusinessType() int64
func (*OperLogIndexReq) GetOperName ¶ added in v0.3.1
func (x *OperLogIndexReq) GetOperName() string
func (*OperLogIndexReq) GetOperUserName ¶ added in v0.3.1
func (x *OperLogIndexReq) GetOperUserName() string
func (*OperLogIndexReq) GetPage ¶ added in v0.3.1
func (x *OperLogIndexReq) GetPage() *PageInfo
func (*OperLogIndexReq) ProtoMessage ¶ added in v0.3.1
func (*OperLogIndexReq) ProtoMessage()
func (*OperLogIndexReq) ProtoReflect ¶ added in v0.3.1
func (x *OperLogIndexReq) ProtoReflect() protoreflect.Message
func (*OperLogIndexReq) Reset ¶ added in v0.3.1
func (x *OperLogIndexReq) Reset()
func (*OperLogIndexReq) String ¶ added in v0.3.1
func (x *OperLogIndexReq) String() string
type OperLogIndexResp ¶ added in v0.3.1
type OperLogIndexResp struct { Info []*OperLogIndexData `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 (*OperLogIndexResp) Descriptor
deprecated
added in
v0.3.1
func (*OperLogIndexResp) Descriptor() ([]byte, []int)
Deprecated: Use OperLogIndexResp.ProtoReflect.Descriptor instead.
func (*OperLogIndexResp) GetInfo ¶ added in v0.3.1
func (x *OperLogIndexResp) GetInfo() []*OperLogIndexData
func (*OperLogIndexResp) GetTotal ¶ added in v0.3.1
func (x *OperLogIndexResp) GetTotal() int64
func (*OperLogIndexResp) ProtoMessage ¶ added in v0.3.1
func (*OperLogIndexResp) ProtoMessage()
func (*OperLogIndexResp) ProtoReflect ¶ added in v0.3.1
func (x *OperLogIndexResp) ProtoReflect() protoreflect.Message
func (*OperLogIndexResp) Reset ¶ added in v0.3.1
func (x *OperLogIndexResp) Reset()
func (*OperLogIndexResp) String ¶ added in v0.3.1
func (x *OperLogIndexResp) 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 UnimplementedApiServer ¶ added in v0.3.1
type UnimplementedApiServer struct { }
UnimplementedApiServer must be embedded to have forward compatible implementations.
func (UnimplementedApiServer) ApiCreate ¶ added in v0.3.1
func (UnimplementedApiServer) ApiCreate(context.Context, *ApiCreateReq) (*Response, error)
func (UnimplementedApiServer) ApiDelete ¶ added in v0.3.1
func (UnimplementedApiServer) ApiDelete(context.Context, *ApiDeleteReq) (*Response, error)
func (UnimplementedApiServer) ApiIndex ¶ added in v0.3.1
func (UnimplementedApiServer) ApiIndex(context.Context, *ApiIndexReq) (*ApiIndexResp, error)
func (UnimplementedApiServer) ApiUpdate ¶ added in v0.3.1
func (UnimplementedApiServer) ApiUpdate(context.Context, *ApiUpdateReq) (*Response, error)
type UnimplementedCommonServer ¶ added in v0.3.0
type UnimplementedCommonServer struct { }
UnimplementedCommonServer must be embedded to have forward compatible implementations.
func (UnimplementedCommonServer) Config ¶ added in v0.3.0
func (UnimplementedCommonServer) Config(context.Context, *Response) (*ConfigResp, error)
type UnimplementedLogServer ¶ added in v0.3.1
type UnimplementedLogServer struct { }
UnimplementedLogServer must be embedded to have forward compatible implementations.
func (UnimplementedLogServer) LoginLogCreate ¶ added in v0.3.1
func (UnimplementedLogServer) LoginLogCreate(context.Context, *LoginLogCreateReq) (*Response, error)
func (UnimplementedLogServer) LoginLogIndex ¶ added in v0.3.1
func (UnimplementedLogServer) LoginLogIndex(context.Context, *LoginLogIndexReq) (*LoginLogIndexResp, error)
func (UnimplementedLogServer) OperLogCreate ¶ added in v0.3.1
func (UnimplementedLogServer) OperLogCreate(context.Context, *OperLogCreateReq) (*Response, error)
func (UnimplementedLogServer) OperLogIndex ¶ added in v0.3.1
func (UnimplementedLogServer) OperLogIndex(context.Context, *OperLogIndexReq) (*OperLogIndexResp, error)
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 UnsafeApiServer ¶ added in v0.3.1
type UnsafeApiServer interface {
// contains filtered or unexported methods
}
UnsafeApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ApiServer will result in compilation errors.
type UnsafeCommonServer ¶ added in v0.3.0
type UnsafeCommonServer interface {
// contains filtered or unexported methods
}
UnsafeCommonServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CommonServer will result in compilation errors.
type UnsafeLogServer ¶ added in v0.3.1
type UnsafeLogServer interface {
// contains filtered or unexported methods
}
UnsafeLogServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LogServer will result in compilation errors.
type UnsafeMenuServer ¶ added in v0.3.0
type UnsafeMenuServer interface {
// contains filtered or unexported methods
}
UnsafeMenuServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MenuServer will result in compilation errors.
type UnsafeRoleServer ¶ added in v0.3.0
type UnsafeRoleServer interface {
// contains filtered or unexported methods
}
UnsafeRoleServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RoleServer will result in compilation errors.
type UnsafeUserServer ¶ added in v0.3.0
type UnsafeUserServer interface {
// contains filtered or unexported methods
}
UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.
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