Documentation
¶
Index ¶
- type ApiInfo
- type ApiListReq
- type ApiListResp
- type BaseIDResp
- type BaseMsg
- type BaseResp
- type BaseUUIDResp
- type BlockUserTokenBySourceReq
- type CallbackReq
- type ConfigurationInfo
- type ConfigurationListReq
- type ConfigurationListResp
- type Core
- type DepartmentInfo
- type DepartmentListReq
- type DepartmentListResp
- type DictionaryDetailInfo
- type DictionaryDetailListReq
- type DictionaryDetailListResp
- type DictionaryInfo
- type DictionaryListReq
- type DictionaryListResp
- type EmailReq
- type Empty
- type IDReq
- type IDsReq
- type MenuInfo
- type MenuInfoList
- type MenuRoleInfo
- type MenuRoleListResp
- type Meta
- type OauthLoginReq
- type OauthProviderInfo
- type OauthProviderListReq
- type OauthProviderListResp
- type OauthRedirectResp
- type PageInfoReq
- type PhoneReq
- type PositionInfo
- type PositionListReq
- type PositionListResp
- type RoleInfo
- type RoleListReq
- type RoleListResp
- type RoleMenuAuthorityReq
- type RoleMenuAuthorityResp
- type TokenInfo
- type TokenListReq
- type TokenListResp
- type UUIDReq
- type UUIDsReq
- type UserInfo
- type UserListReq
- type UserListResp
- type UsernameReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiListReq ¶
type ApiListReq = core.ApiListReq
type ApiListResp ¶
type ApiListResp = core.ApiListResp
type BaseIDResp ¶
type BaseIDResp = core.BaseIDResp
type BaseUUIDResp ¶
type BaseUUIDResp = core.BaseUUIDResp
type BlockUserTokenBySourceReq ¶
type BlockUserTokenBySourceReq = core.BlockUserTokenBySourceReq
type CallbackReq ¶
type CallbackReq = core.CallbackReq
type ConfigurationInfo ¶
type ConfigurationInfo = core.ConfigurationInfo
type ConfigurationListReq ¶
type ConfigurationListReq = core.ConfigurationListReq
type ConfigurationListResp ¶
type ConfigurationListResp = core.ConfigurationListResp
type Core ¶
type Core interface {
// API management
CreateApi(ctx context.Context, in *ApiInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
UpdateApi(ctx context.Context, in *ApiInfo, opts ...grpc.CallOption) (*BaseResp, error)
GetApiList(ctx context.Context, in *ApiListReq, opts ...grpc.CallOption) (*ApiListResp, error)
GetApiById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*ApiInfo, error)
DeleteApi(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
GetMenuAuthority(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*RoleMenuAuthorityResp, error)
CreateOrUpdateMenuAuthority(ctx context.Context, in *RoleMenuAuthorityReq, opts ...grpc.CallOption) (*BaseResp, error)
InitDatabase(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BaseResp, error)
// Configuration management
CreateConfiguration(ctx context.Context, in *ConfigurationInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
UpdateConfiguration(ctx context.Context, in *ConfigurationInfo, opts ...grpc.CallOption) (*BaseResp, error)
GetConfigurationList(ctx context.Context, in *ConfigurationListReq, opts ...grpc.CallOption) (*ConfigurationListResp, error)
GetConfigurationById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*ConfigurationInfo, error)
DeleteConfiguration(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
// Department management
CreateDepartment(ctx context.Context, in *DepartmentInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
UpdateDepartment(ctx context.Context, in *DepartmentInfo, opts ...grpc.CallOption) (*BaseResp, error)
GetDepartmentList(ctx context.Context, in *DepartmentListReq, opts ...grpc.CallOption) (*DepartmentListResp, error)
GetDepartmentById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*DepartmentInfo, error)
DeleteDepartment(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
// Dictionary management
CreateDictionary(ctx context.Context, in *DictionaryInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
UpdateDictionary(ctx context.Context, in *DictionaryInfo, opts ...grpc.CallOption) (*BaseResp, error)
GetDictionaryList(ctx context.Context, in *DictionaryListReq, opts ...grpc.CallOption) (*DictionaryListResp, error)
GetDictionaryById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*DictionaryInfo, error)
DeleteDictionary(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
// DictionaryDetail management
CreateDictionaryDetail(ctx context.Context, in *DictionaryDetailInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
UpdateDictionaryDetail(ctx context.Context, in *DictionaryDetailInfo, opts ...grpc.CallOption) (*BaseResp, error)
GetDictionaryDetailList(ctx context.Context, in *DictionaryDetailListReq, opts ...grpc.CallOption) (*DictionaryDetailListResp, error)
GetDictionaryDetailById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*DictionaryDetailInfo, error)
DeleteDictionaryDetail(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
GetDictionaryDetailByDictionaryName(ctx context.Context, in *BaseMsg, opts ...grpc.CallOption) (*DictionaryDetailListResp, error)
CreateMenu(ctx context.Context, in *MenuInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
UpdateMenu(ctx context.Context, in *MenuInfo, opts ...grpc.CallOption) (*BaseResp, error)
DeleteMenu(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
GetMenuListByRole(ctx context.Context, in *BaseMsg, opts ...grpc.CallOption) (*MenuInfoList, error)
GetMenuList(ctx context.Context, in *PageInfoReq, opts ...grpc.CallOption) (*MenuInfoList, error)
// OauthProvider management
CreateOauthProvider(ctx context.Context, in *OauthProviderInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
UpdateOauthProvider(ctx context.Context, in *OauthProviderInfo, opts ...grpc.CallOption) (*BaseResp, error)
GetOauthProviderList(ctx context.Context, in *OauthProviderListReq, opts ...grpc.CallOption) (*OauthProviderListResp, error)
GetOauthProviderById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*OauthProviderInfo, error)
DeleteOauthProvider(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
OauthLogin(ctx context.Context, in *OauthLoginReq, opts ...grpc.CallOption) (*OauthRedirectResp, error)
OauthCallback(ctx context.Context, in *CallbackReq, opts ...grpc.CallOption) (*UserInfo, error)
// Position management
CreatePosition(ctx context.Context, in *PositionInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
UpdatePosition(ctx context.Context, in *PositionInfo, opts ...grpc.CallOption) (*BaseResp, error)
GetPositionList(ctx context.Context, in *PositionListReq, opts ...grpc.CallOption) (*PositionListResp, error)
GetPositionById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*PositionInfo, error)
DeletePosition(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
// Role management
CreateRole(ctx context.Context, in *RoleInfo, opts ...grpc.CallOption) (*BaseIDResp, error)
UpdateRole(ctx context.Context, in *RoleInfo, opts ...grpc.CallOption) (*BaseResp, error)
GetRoleList(ctx context.Context, in *RoleListReq, opts ...grpc.CallOption) (*RoleListResp, error)
GetRoleById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*RoleInfo, error)
DeleteRole(ctx context.Context, in *IDsReq, opts ...grpc.CallOption) (*BaseResp, error)
// Token management
CreateToken(ctx context.Context, in *TokenInfo, opts ...grpc.CallOption) (*BaseUUIDResp, error)
DeleteToken(ctx context.Context, in *UUIDsReq, opts ...grpc.CallOption) (*BaseResp, error)
GetTokenList(ctx context.Context, in *TokenListReq, opts ...grpc.CallOption) (*TokenListResp, error)
GetTokenById(ctx context.Context, in *UUIDReq, opts ...grpc.CallOption) (*TokenInfo, error)
BlockUserAllToken(ctx context.Context, in *UUIDReq, opts ...grpc.CallOption) (*BaseResp, error)
BlockUserTokenBySource(ctx context.Context, in *BlockUserTokenBySourceReq, opts ...grpc.CallOption) (*BaseResp, error)
UpdateToken(ctx context.Context, in *TokenInfo, opts ...grpc.CallOption) (*BaseResp, error)
// User management
CreateUser(ctx context.Context, in *UserInfo, opts ...grpc.CallOption) (*BaseUUIDResp, error)
UpdateUser(ctx context.Context, in *UserInfo, opts ...grpc.CallOption) (*BaseResp, error)
GetUserList(ctx context.Context, in *UserListReq, opts ...grpc.CallOption) (*UserListResp, error)
GetUserById(ctx context.Context, in *UUIDReq, opts ...grpc.CallOption) (*UserInfo, error)
DeleteUser(ctx context.Context, in *UUIDsReq, opts ...grpc.CallOption) (*BaseResp, error)
GetUserByEmail(ctx context.Context, in *EmailReq, opts ...grpc.CallOption) (*UserInfo, error)
GetUserByPhone(ctx context.Context, in *PhoneReq, opts ...grpc.CallOption) (*UserInfo, error)
}
type DepartmentInfo ¶
type DepartmentInfo = core.DepartmentInfo
type DepartmentListReq ¶
type DepartmentListReq = core.DepartmentListReq
type DepartmentListResp ¶
type DepartmentListResp = core.DepartmentListResp
type DictionaryDetailInfo ¶
type DictionaryDetailInfo = core.DictionaryDetailInfo
type DictionaryDetailListReq ¶
type DictionaryDetailListReq = core.DictionaryDetailListReq
type DictionaryDetailListResp ¶
type DictionaryDetailListResp = core.DictionaryDetailListResp
type DictionaryInfo ¶
type DictionaryInfo = core.DictionaryInfo
type DictionaryListReq ¶
type DictionaryListReq = core.DictionaryListReq
type DictionaryListResp ¶
type DictionaryListResp = core.DictionaryListResp
type MenuInfoList ¶
type MenuInfoList = core.MenuInfoList
type MenuRoleInfo ¶
type MenuRoleInfo = core.MenuRoleInfo
type MenuRoleListResp ¶
type MenuRoleListResp = core.MenuRoleListResp
type OauthLoginReq ¶
type OauthLoginReq = core.OauthLoginReq
type OauthProviderInfo ¶
type OauthProviderInfo = core.OauthProviderInfo
type OauthProviderListReq ¶
type OauthProviderListReq = core.OauthProviderListReq
type OauthProviderListResp ¶
type OauthProviderListResp = core.OauthProviderListResp
type OauthRedirectResp ¶
type OauthRedirectResp = core.OauthRedirectResp
type PageInfoReq ¶
type PageInfoReq = core.PageInfoReq
type PositionInfo ¶
type PositionInfo = core.PositionInfo
type PositionListReq ¶
type PositionListReq = core.PositionListReq
type PositionListResp ¶
type PositionListResp = core.PositionListResp
type RoleListReq ¶
type RoleListReq = core.RoleListReq
type RoleListResp ¶
type RoleListResp = core.RoleListResp
type RoleMenuAuthorityReq ¶
type RoleMenuAuthorityReq = core.RoleMenuAuthorityReq
type RoleMenuAuthorityResp ¶
type RoleMenuAuthorityResp = core.RoleMenuAuthorityResp
type TokenListReq ¶
type TokenListReq = core.TokenListReq
type TokenListResp ¶
type TokenListResp = core.TokenListResp
type UserListReq ¶
type UserListReq = core.UserListReq
type UserListResp ¶
type UserListResp = core.UserListResp
type UsernameReq ¶
type UsernameReq = core.UsernameReq
Click to show internal directories.
Click to hide internal directories.