coreclient

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 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 ApiListResp

type ApiListResp = core.ApiListResp

type ApiPageReq

type ApiPageReq = core.ApiPageReq

type BaseResp

type BaseResp = core.BaseResp

type CallbackReq added in v0.0.8

type CallbackReq = core.CallbackReq

type ChangePasswordReq

type ChangePasswordReq = core.ChangePasswordReq

type Core

type Core interface {
	//  init
	InitDatabase(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*BaseResp, error)
	// user service
	Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginResp, error)
	ChangePassword(ctx context.Context, in *ChangePasswordReq, opts ...grpc.CallOption) (*BaseResp, error)
	CreateOrUpdateUser(ctx context.Context, in *CreateOrUpdateUserReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetUserById(ctx context.Context, in *UUIDReq, opts ...grpc.CallOption) (*UserInfoResp, error)
	GetUserList(ctx context.Context, in *GetUserListReq, opts ...grpc.CallOption) (*UserListResp, error)
	DeleteUser(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
	UpdateProfile(ctx context.Context, in *UpdateProfileReq, opts ...grpc.CallOption) (*BaseResp, error)
	// menu service
	CreateOrUpdateMenu(ctx context.Context, in *CreateOrUpdateMenuReq, opts ...grpc.CallOption) (*BaseResp, error)
	DeleteMenu(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetMenuListByRole(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*MenuInfoList, error)
	GetMenuByPage(ctx context.Context, in *PageInfoReq, opts ...grpc.CallOption) (*MenuInfoList, error)
	CreateOrUpdateMenuParam(ctx context.Context, in *CreateOrUpdateMenuParamReq, opts ...grpc.CallOption) (*BaseResp, error)
	DeleteMenuParam(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
	GeMenuParamListByMenuId(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*MenuParamListResp, error)
	// role service
	CreateOrUpdateRole(ctx context.Context, in *RoleInfo, opts ...grpc.CallOption) (*BaseResp, error)
	DeleteRole(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetRoleById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*RoleInfo, error)
	GetRoleList(ctx context.Context, in *PageInfoReq, opts ...grpc.CallOption) (*RoleListResp, error)
	SetRoleStatus(ctx context.Context, in *SetStatusReq, opts ...grpc.CallOption) (*BaseResp, error)
	// api management service
	CreateOrUpdateApi(ctx context.Context, in *ApiInfo, opts ...grpc.CallOption) (*BaseResp, error)
	DeleteApi(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetApiList(ctx context.Context, in *ApiPageReq, opts ...grpc.CallOption) (*ApiListResp, error)
	// authorization management service
	GetMenuAuthority(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*RoleMenuAuthorityResp, error)
	CreateOrUpdateMenuAuthority(ctx context.Context, in *RoleMenuAuthorityReq, opts ...grpc.CallOption) (*BaseResp, error)
	// dictionary management service
	CreateOrUpdateDictionary(ctx context.Context, in *DictionaryInfo, opts ...grpc.CallOption) (*BaseResp, error)
	DeleteDictionary(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetDictionaryList(ctx context.Context, in *DictionaryPageReq, opts ...grpc.CallOption) (*DictionaryList, error)
	GetDetailByDictionaryName(ctx context.Context, in *DictionaryDetailReq, opts ...grpc.CallOption) (*DictionaryDetailList, error)
	CreateOrUpdateDictionaryDetail(ctx context.Context, in *DictionaryDetail, opts ...grpc.CallOption) (*BaseResp, error)
	DeleteDictionaryDetail(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
	// oauth management
	CreateOrUpdateProvider(ctx context.Context, in *ProviderInfo, opts ...grpc.CallOption) (*BaseResp, error)
	DeleteProvider(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetProviderList(ctx context.Context, in *PageInfoReq, opts ...grpc.CallOption) (*ProviderListResp, error)
	OauthLogin(ctx context.Context, in *OauthLoginReq, opts ...grpc.CallOption) (*OauthRedirectResp, error)
	OauthCallback(ctx context.Context, in *CallbackReq, opts ...grpc.CallOption) (*LoginResp, error)
}

func NewCore

func NewCore(cli zrpc.Client) Core

type CreateOrUpdateMenuParamReq

type CreateOrUpdateMenuParamReq = core.CreateOrUpdateMenuParamReq

type CreateOrUpdateMenuReq

type CreateOrUpdateMenuReq = core.CreateOrUpdateMenuReq

type CreateOrUpdateUserReq

type CreateOrUpdateUserReq = core.CreateOrUpdateUserReq

type CreatePolicyReq

type CreatePolicyReq = core.CreatePolicyReq

type DictionaryDetail added in v0.0.7

type DictionaryDetail = core.DictionaryDetail

type DictionaryDetailList added in v0.0.7

type DictionaryDetailList = core.DictionaryDetailList

type DictionaryDetailReq added in v0.0.7

type DictionaryDetailReq = core.DictionaryDetailReq

type DictionaryInfo added in v0.0.7

type DictionaryInfo = core.DictionaryInfo

type DictionaryList added in v0.0.7

type DictionaryList = core.DictionaryList

type DictionaryPageReq added in v0.0.7

type DictionaryPageReq = core.DictionaryPageReq

type Empty

type Empty = core.Empty

type GetUserListReq

type GetUserListReq = core.GetUserListReq

type IDReq

type IDReq = core.IDReq

type LoginReq

type LoginReq = core.LoginReq

type LoginResp

type LoginResp = core.LoginResp
type MenuInfo = core.MenuInfo
type MenuInfoList = core.MenuInfoList
type MenuParamListResp = core.MenuParamListResp
type MenuParamResp = core.MenuParamResp
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 OauthRedirectResp added in v0.0.8

type OauthRedirectResp = core.OauthRedirectResp

type PageInfoReq

type PageInfoReq = core.PageInfoReq

type PolicyPartInfo

type PolicyPartInfo = core.PolicyPartInfo

type ProviderInfo added in v0.0.8

type ProviderInfo = core.ProviderInfo

type ProviderListResp added in v0.0.8

type ProviderListResp = core.ProviderListResp

type RoleInfo

type RoleInfo = core.RoleInfo

type RoleListResp

type RoleListResp = core.RoleListResp

type RoleMenuAuthorityReq

type RoleMenuAuthorityReq = core.RoleMenuAuthorityReq

type RoleMenuAuthorityResp

type RoleMenuAuthorityResp = core.RoleMenuAuthorityResp

type SetStatusReq

type SetStatusReq = core.SetStatusReq

type UUIDReq

type UUIDReq = core.UUIDReq

type UpdatePolicyReq

type UpdatePolicyReq = core.UpdatePolicyReq

type UpdateProfileReq

type UpdateProfileReq = core.UpdateProfileReq

type UserInfoResp

type UserInfoResp = core.UserInfoResp

type UserListResp

type UserListResp = core.UserListResp

Jump to

Keyboard shortcuts

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