core

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 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 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)
	CreateMenuParam(ctx context.Context, in *CreateMenuParamReq, opts ...grpc.CallOption) (*BaseResp, error)
	UpdateMenuParam(ctx context.Context, in *UpdateMenuParamReq, opts ...grpc.CallOption) (*BaseResp, error)
	DeleteMenuParam(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*BaseResp, error)
	GetMenuParamById(ctx context.Context, in *IDReq, opts ...grpc.CallOption) (*MenuParamResp, error)
	GeMenuParamListById(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)
}

func NewCore

func NewCore(cli zrpc.Client) Core

type CreateMenuParamReq

type CreateMenuParamReq = core.CreateMenuParamReq

type CreateOrUpdateMenuReq

type CreateOrUpdateMenuReq = core.CreateOrUpdateMenuReq

type CreateOrUpdateUserReq

type CreateOrUpdateUserReq = core.CreateOrUpdateUserReq

type CreatePolicyReq

type CreatePolicyReq = core.CreatePolicyReq

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 PageInfoReq

type PageInfoReq = core.PageInfoReq

type PolicyPartInfo

type PolicyPartInfo = core.PolicyPartInfo

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 UpdateMenuParamReq

type UpdateMenuParamReq = core.UpdateMenuParamReq

type UpdatePolicyReq

type UpdatePolicyReq = core.UpdatePolicyReq

type UpdateProfileReq added in v0.0.2

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