coreclient

package
v1.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiInfo

type ApiInfo = core.ApiInfo

type ApiListReq added in v0.2.3

type ApiListReq = core.ApiListReq

type ApiListResp

type ApiListResp = core.ApiListResp

type BaseIDResp added in v0.2.5

type BaseIDResp = core.BaseIDResp

type BaseMsg added in v0.2.4

type BaseMsg = core.BaseMsg

type BaseResp

type BaseResp = core.BaseResp

type BaseUUIDResp added in v0.2.5

type BaseUUIDResp = core.BaseUUIDResp

type CallbackReq added in v0.0.8

type CallbackReq = core.CallbackReq

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)
	// 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)
	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)
	GetUserByUsername(ctx context.Context, in *UsernameReq, opts ...grpc.CallOption) (*UserInfo, error)
	DeleteUser(ctx context.Context, in *UUIDsReq, opts ...grpc.CallOption) (*BaseResp, error)
}

func NewCore

func NewCore(cli zrpc.Client) Core

type DepartmentInfo added in v0.2.3

type DepartmentInfo = core.DepartmentInfo

type DepartmentListReq added in v0.2.3

type DepartmentListReq = core.DepartmentListReq

type DepartmentListResp added in v0.2.3

type DepartmentListResp = core.DepartmentListResp

type DictionaryDetailInfo added in v0.2.4

type DictionaryDetailInfo = core.DictionaryDetailInfo

type DictionaryDetailListReq added in v0.2.4

type DictionaryDetailListReq = core.DictionaryDetailListReq

type DictionaryDetailListResp added in v0.2.4

type DictionaryDetailListResp = core.DictionaryDetailListResp

type DictionaryInfo added in v0.0.7

type DictionaryInfo = core.DictionaryInfo

type DictionaryListReq added in v0.2.3

type DictionaryListReq = core.DictionaryListReq

type DictionaryListResp added in v0.2.4

type DictionaryListResp = core.DictionaryListResp

type Empty

type Empty = core.Empty

type IDReq

type IDReq = core.IDReq

type IDsReq added in v0.1.8

type IDsReq = core.IDsReq
type MenuInfo = core.MenuInfo
type MenuInfoList = core.MenuInfoList
type MenuRoleInfo = core.MenuRoleInfo
type MenuRoleListResp = core.MenuRoleListResp

type Meta

type Meta = core.Meta

type OauthLoginReq added in v0.0.8

type OauthLoginReq = core.OauthLoginReq

type OauthProviderInfo added in v0.2.4

type OauthProviderInfo = core.OauthProviderInfo

type OauthProviderListReq added in v0.2.4

type OauthProviderListReq = core.OauthProviderListReq

type OauthProviderListResp added in v0.2.4

type OauthProviderListResp = core.OauthProviderListResp

type OauthRedirectResp added in v0.0.8

type OauthRedirectResp = core.OauthRedirectResp

type PageInfoReq

type PageInfoReq = core.PageInfoReq

type PositionInfo added in v0.2.3

type PositionInfo = core.PositionInfo

type PositionListReq added in v0.2.3

type PositionListReq = core.PositionListReq

type PositionListResp added in v0.2.3

type PositionListResp = core.PositionListResp

type RoleInfo

type RoleInfo = core.RoleInfo

type RoleListReq added in v0.2.4

type RoleListReq = core.RoleListReq

type RoleListResp

type RoleListResp = core.RoleListResp

type RoleMenuAuthorityReq

type RoleMenuAuthorityReq = core.RoleMenuAuthorityReq

type RoleMenuAuthorityResp

type RoleMenuAuthorityResp = core.RoleMenuAuthorityResp

type TokenInfo added in v0.1.1

type TokenInfo = core.TokenInfo

type TokenListReq added in v0.1.1

type TokenListReq = core.TokenListReq

type TokenListResp added in v0.1.1

type TokenListResp = core.TokenListResp

type UUIDReq

type UUIDReq = core.UUIDReq

type UUIDsReq added in v0.2.1

type UUIDsReq = core.UUIDsReq

type UserInfo added in v0.2.4

type UserInfo = core.UserInfo

type UserListReq added in v0.2.4

type UserListReq = core.UserListReq

type UserListResp

type UserListResp = core.UserListResp

type UsernameReq added in v0.2.4

type UsernameReq = core.UsernameReq

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL