core

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Core_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "core.core",
	HandlerType: (*CoreServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "initDatabase",
			Handler:    _Core_InitDatabase_Handler,
		},
		{
			MethodName: "login",
			Handler:    _Core_Login_Handler,
		},
		{
			MethodName: "changePassword",
			Handler:    _Core_ChangePassword_Handler,
		},
		{
			MethodName: "createOrUpdateUser",
			Handler:    _Core_CreateOrUpdateUser_Handler,
		},
		{
			MethodName: "getUserById",
			Handler:    _Core_GetUserById_Handler,
		},
		{
			MethodName: "getUserList",
			Handler:    _Core_GetUserList_Handler,
		},
		{
			MethodName: "deleteUser",
			Handler:    _Core_DeleteUser_Handler,
		},
		{
			MethodName: "createOrUpdateMenu",
			Handler:    _Core_CreateOrUpdateMenu_Handler,
		},
		{
			MethodName: "deleteMenu",
			Handler:    _Core_DeleteMenu_Handler,
		},
		{
			MethodName: "getMenuListByRole",
			Handler:    _Core_GetMenuListByRole_Handler,
		},
		{
			MethodName: "getMenuByPage",
			Handler:    _Core_GetMenuByPage_Handler,
		},
		{
			MethodName: "createMenuParam",
			Handler:    _Core_CreateMenuParam_Handler,
		},
		{
			MethodName: "updateMenuParam",
			Handler:    _Core_UpdateMenuParam_Handler,
		},
		{
			MethodName: "deleteMenuParam",
			Handler:    _Core_DeleteMenuParam_Handler,
		},
		{
			MethodName: "getMenuParamById",
			Handler:    _Core_GetMenuParamById_Handler,
		},
		{
			MethodName: "geMenuParamListById",
			Handler:    _Core_GeMenuParamListById_Handler,
		},
		{
			MethodName: "createOrUpdateRole",
			Handler:    _Core_CreateOrUpdateRole_Handler,
		},
		{
			MethodName: "deleteRole",
			Handler:    _Core_DeleteRole_Handler,
		},
		{
			MethodName: "getRoleById",
			Handler:    _Core_GetRoleById_Handler,
		},
		{
			MethodName: "getRoleList",
			Handler:    _Core_GetRoleList_Handler,
		},
		{
			MethodName: "setRoleStatus",
			Handler:    _Core_SetRoleStatus_Handler,
		},
		{
			MethodName: "createOrUpdateApi",
			Handler:    _Core_CreateOrUpdateApi_Handler,
		},
		{
			MethodName: "deleteApi",
			Handler:    _Core_DeleteApi_Handler,
		},
		{
			MethodName: "getApiList",
			Handler:    _Core_GetApiList_Handler,
		},
		{
			MethodName: "getMenuAuthority",
			Handler:    _Core_GetMenuAuthority_Handler,
		},
		{
			MethodName: "createOrUpdateMenuAuthority",
			Handler:    _Core_CreateOrUpdateMenuAuthority_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "core.proto",
}

Core_ServiceDesc is the grpc.ServiceDesc for Core service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterCoreServer

func RegisterCoreServer(s grpc.ServiceRegistrar, srv CoreServer)

Types

type ApiInfo

type ApiInfo struct {
	Id          uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	CreateAt    int64  `protobuf:"varint,2,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"`
	Path        string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	Group       string `protobuf:"bytes,6,opt,name=group,proto3" json:"group,omitempty"`
	Method      string `protobuf:"bytes,7,opt,name=method,proto3" json:"method,omitempty"`
	// contains filtered or unexported fields
}

api message

func (*ApiInfo) Descriptor deprecated

func (*ApiInfo) Descriptor() ([]byte, []int)

Deprecated: Use ApiInfo.ProtoReflect.Descriptor instead.

func (*ApiInfo) GetCreateAt

func (x *ApiInfo) GetCreateAt() int64

func (*ApiInfo) GetDescription

func (x *ApiInfo) GetDescription() string

func (*ApiInfo) GetGroup

func (x *ApiInfo) GetGroup() string

func (*ApiInfo) GetId

func (x *ApiInfo) GetId() uint64

func (*ApiInfo) GetMethod

func (x *ApiInfo) GetMethod() string

func (*ApiInfo) GetPath

func (x *ApiInfo) GetPath() string

func (*ApiInfo) ProtoMessage

func (*ApiInfo) ProtoMessage()

func (*ApiInfo) ProtoReflect

func (x *ApiInfo) ProtoReflect() protoreflect.Message

func (*ApiInfo) Reset

func (x *ApiInfo) Reset()

func (*ApiInfo) String

func (x *ApiInfo) String() string

type ApiListResp

type ApiListResp struct {
	Total uint64     `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Data  []*ApiInfo `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ApiListResp) Descriptor deprecated

func (*ApiListResp) Descriptor() ([]byte, []int)

Deprecated: Use ApiListResp.ProtoReflect.Descriptor instead.

func (*ApiListResp) GetData

func (x *ApiListResp) GetData() []*ApiInfo

func (*ApiListResp) GetTotal

func (x *ApiListResp) GetTotal() uint64

func (*ApiListResp) ProtoMessage

func (*ApiListResp) ProtoMessage()

func (*ApiListResp) ProtoReflect

func (x *ApiListResp) ProtoReflect() protoreflect.Message

func (*ApiListResp) Reset

func (x *ApiListResp) Reset()

func (*ApiListResp) String

func (x *ApiListResp) String() string

type ApiPageReq

type ApiPageReq struct {
	Page        *PageInfoReq `protobuf:"bytes,1,opt,name=page,proto3" json:"page,omitempty"`
	Path        string       `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Description string       `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Method      string       `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"`
	Group       string       `protobuf:"bytes,5,opt,name=group,proto3" json:"group,omitempty"`
	// contains filtered or unexported fields
}

func (*ApiPageReq) Descriptor deprecated

func (*ApiPageReq) Descriptor() ([]byte, []int)

Deprecated: Use ApiPageReq.ProtoReflect.Descriptor instead.

func (*ApiPageReq) GetDescription

func (x *ApiPageReq) GetDescription() string

func (*ApiPageReq) GetGroup

func (x *ApiPageReq) GetGroup() string

func (*ApiPageReq) GetMethod

func (x *ApiPageReq) GetMethod() string

func (*ApiPageReq) GetPage

func (x *ApiPageReq) GetPage() *PageInfoReq

func (*ApiPageReq) GetPath

func (x *ApiPageReq) GetPath() string

func (*ApiPageReq) ProtoMessage

func (*ApiPageReq) ProtoMessage()

func (*ApiPageReq) ProtoReflect

func (x *ApiPageReq) ProtoReflect() protoreflect.Message

func (*ApiPageReq) Reset

func (x *ApiPageReq) Reset()

func (*ApiPageReq) String

func (x *ApiPageReq) String() string

type BaseResp

type BaseResp struct {
	Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*BaseResp) Descriptor deprecated

func (*BaseResp) Descriptor() ([]byte, []int)

Deprecated: Use BaseResp.ProtoReflect.Descriptor instead.

func (*BaseResp) GetMsg

func (x *BaseResp) GetMsg() string

func (*BaseResp) ProtoMessage

func (*BaseResp) ProtoMessage()

func (*BaseResp) ProtoReflect

func (x *BaseResp) ProtoReflect() protoreflect.Message

func (*BaseResp) Reset

func (x *BaseResp) Reset()

func (*BaseResp) String

func (x *BaseResp) String() string

type ChangePasswordReq

type ChangePasswordReq struct {
	Uuid        string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	OldPassword string `protobuf:"bytes,2,opt,name=old_password,json=oldPassword,proto3" json:"old_password,omitempty"`
	NewPassword string `protobuf:"bytes,3,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangePasswordReq) Descriptor deprecated

func (*ChangePasswordReq) Descriptor() ([]byte, []int)

Deprecated: Use ChangePasswordReq.ProtoReflect.Descriptor instead.

func (*ChangePasswordReq) GetNewPassword

func (x *ChangePasswordReq) GetNewPassword() string

func (*ChangePasswordReq) GetOldPassword

func (x *ChangePasswordReq) GetOldPassword() string

func (*ChangePasswordReq) GetUuid

func (x *ChangePasswordReq) GetUuid() string

func (*ChangePasswordReq) ProtoMessage

func (*ChangePasswordReq) ProtoMessage()

func (*ChangePasswordReq) ProtoReflect

func (x *ChangePasswordReq) ProtoReflect() protoreflect.Message

func (*ChangePasswordReq) Reset

func (x *ChangePasswordReq) Reset()

func (*ChangePasswordReq) String

func (x *ChangePasswordReq) String() string

type CoreClient

type CoreClient 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)
	// menu service
	//menu management
	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)
}

CoreClient is the client API for Core 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 NewCoreClient

func NewCoreClient(cc grpc.ClientConnInterface) CoreClient

type CoreServer

type CoreServer interface {
	// init
	InitDatabase(context.Context, *Empty) (*BaseResp, error)
	// user service
	Login(context.Context, *LoginReq) (*LoginResp, error)
	ChangePassword(context.Context, *ChangePasswordReq) (*BaseResp, error)
	CreateOrUpdateUser(context.Context, *CreateOrUpdateUserReq) (*BaseResp, error)
	GetUserById(context.Context, *UUIDReq) (*UserInfoResp, error)
	GetUserList(context.Context, *GetUserListReq) (*UserListResp, error)
	DeleteUser(context.Context, *IDReq) (*BaseResp, error)
	// menu service
	//menu management
	CreateOrUpdateMenu(context.Context, *CreateOrUpdateMenuReq) (*BaseResp, error)
	DeleteMenu(context.Context, *IDReq) (*BaseResp, error)
	GetMenuListByRole(context.Context, *IDReq) (*MenuInfoList, error)
	GetMenuByPage(context.Context, *PageInfoReq) (*MenuInfoList, error)
	CreateMenuParam(context.Context, *CreateMenuParamReq) (*BaseResp, error)
	UpdateMenuParam(context.Context, *UpdateMenuParamReq) (*BaseResp, error)
	DeleteMenuParam(context.Context, *IDReq) (*BaseResp, error)
	GetMenuParamById(context.Context, *IDReq) (*MenuParamResp, error)
	GeMenuParamListById(context.Context, *IDReq) (*MenuParamListResp, error)
	// role service
	CreateOrUpdateRole(context.Context, *RoleInfo) (*BaseResp, error)
	DeleteRole(context.Context, *IDReq) (*BaseResp, error)
	GetRoleById(context.Context, *IDReq) (*RoleInfo, error)
	GetRoleList(context.Context, *PageInfoReq) (*RoleListResp, error)
	SetRoleStatus(context.Context, *SetStatusReq) (*BaseResp, error)
	// api management service
	CreateOrUpdateApi(context.Context, *ApiInfo) (*BaseResp, error)
	DeleteApi(context.Context, *IDReq) (*BaseResp, error)
	GetApiList(context.Context, *ApiPageReq) (*ApiListResp, error)
	// authorization management service
	GetMenuAuthority(context.Context, *IDReq) (*RoleMenuAuthorityResp, error)
	CreateOrUpdateMenuAuthority(context.Context, *RoleMenuAuthorityReq) (*BaseResp, error)
	// contains filtered or unexported methods
}

CoreServer is the server API for Core service. All implementations must embed UnimplementedCoreServer for forward compatibility

type CreateMenuParamReq

type CreateMenuParamReq struct {
	MenuId uint64 `protobuf:"varint,1,opt,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"`
	Type   string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Key    string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	Value  string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateMenuParamReq) Descriptor deprecated

func (*CreateMenuParamReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateMenuParamReq.ProtoReflect.Descriptor instead.

func (*CreateMenuParamReq) GetKey

func (x *CreateMenuParamReq) GetKey() string

func (*CreateMenuParamReq) GetMenuId

func (x *CreateMenuParamReq) GetMenuId() uint64

func (*CreateMenuParamReq) GetType

func (x *CreateMenuParamReq) GetType() string

func (*CreateMenuParamReq) GetValue

func (x *CreateMenuParamReq) GetValue() string

func (*CreateMenuParamReq) ProtoMessage

func (*CreateMenuParamReq) ProtoMessage()

func (*CreateMenuParamReq) ProtoReflect

func (x *CreateMenuParamReq) ProtoReflect() protoreflect.Message

func (*CreateMenuParamReq) Reset

func (x *CreateMenuParamReq) Reset()

func (*CreateMenuParamReq) String

func (x *CreateMenuParamReq) String() string

type CreateOrUpdateMenuReq

type CreateOrUpdateMenuReq struct {
	Level     uint32 `protobuf:"varint,1,opt,name=level,proto3" json:"level,omitempty"`
	ParentId  uint32 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	Path      string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	Name      string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Redirect  string `protobuf:"bytes,5,opt,name=redirect,proto3" json:"redirect,omitempty"`
	Component string `protobuf:"bytes,6,opt,name=component,proto3" json:"component,omitempty"`
	OrderNo   uint32 `protobuf:"varint,7,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
	Disabled  bool   `protobuf:"varint,8,opt,name=disabled,proto3" json:"disabled,omitempty"`
	Meta      *Meta  `protobuf:"bytes,9,opt,name=meta,proto3" json:"meta,omitempty"`
	Id        uint64 `protobuf:"varint,10,opt,name=id,proto3" json:"id,omitempty"`
	MenuType  uint32 `protobuf:"varint,11,opt,name=menu_type,json=menuType,proto3" json:"menu_type,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrUpdateMenuReq) Descriptor deprecated

func (*CreateOrUpdateMenuReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateOrUpdateMenuReq.ProtoReflect.Descriptor instead.

func (*CreateOrUpdateMenuReq) GetComponent

func (x *CreateOrUpdateMenuReq) GetComponent() string

func (*CreateOrUpdateMenuReq) GetDisabled

func (x *CreateOrUpdateMenuReq) GetDisabled() bool

func (*CreateOrUpdateMenuReq) GetId

func (x *CreateOrUpdateMenuReq) GetId() uint64

func (*CreateOrUpdateMenuReq) GetLevel

func (x *CreateOrUpdateMenuReq) GetLevel() uint32

func (*CreateOrUpdateMenuReq) GetMenuType

func (x *CreateOrUpdateMenuReq) GetMenuType() uint32

func (*CreateOrUpdateMenuReq) GetMeta

func (x *CreateOrUpdateMenuReq) GetMeta() *Meta

func (*CreateOrUpdateMenuReq) GetName

func (x *CreateOrUpdateMenuReq) GetName() string

func (*CreateOrUpdateMenuReq) GetOrderNo

func (x *CreateOrUpdateMenuReq) GetOrderNo() uint32

func (*CreateOrUpdateMenuReq) GetParentId

func (x *CreateOrUpdateMenuReq) GetParentId() uint32

func (*CreateOrUpdateMenuReq) GetPath

func (x *CreateOrUpdateMenuReq) GetPath() string

func (*CreateOrUpdateMenuReq) GetRedirect

func (x *CreateOrUpdateMenuReq) GetRedirect() string

func (*CreateOrUpdateMenuReq) ProtoMessage

func (*CreateOrUpdateMenuReq) ProtoMessage()

func (*CreateOrUpdateMenuReq) ProtoReflect

func (x *CreateOrUpdateMenuReq) ProtoReflect() protoreflect.Message

func (*CreateOrUpdateMenuReq) Reset

func (x *CreateOrUpdateMenuReq) Reset()

func (*CreateOrUpdateMenuReq) String

func (x *CreateOrUpdateMenuReq) String() string

type CreateOrUpdateUserReq

type CreateOrUpdateUserReq struct {
	Id       uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Avatar   string `protobuf:"bytes,2,opt,name=avatar,proto3" json:"avatar,omitempty"`
	RoleId   uint32 `protobuf:"varint,3,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	Mobile   string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"`
	Email    string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
	Status   int32  `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"`
	Username string `protobuf:"bytes,7,opt,name=username,proto3" json:"username,omitempty"`
	Nickname string `protobuf:"bytes,8,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Password string `protobuf:"bytes,9,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrUpdateUserReq) Descriptor deprecated

func (*CreateOrUpdateUserReq) Descriptor() ([]byte, []int)

Deprecated: Use CreateOrUpdateUserReq.ProtoReflect.Descriptor instead.

func (*CreateOrUpdateUserReq) GetAvatar

func (x *CreateOrUpdateUserReq) GetAvatar() string

func (*CreateOrUpdateUserReq) GetEmail

func (x *CreateOrUpdateUserReq) GetEmail() string

func (*CreateOrUpdateUserReq) GetId

func (x *CreateOrUpdateUserReq) GetId() uint64

func (*CreateOrUpdateUserReq) GetMobile

func (x *CreateOrUpdateUserReq) GetMobile() string

func (*CreateOrUpdateUserReq) GetNickname

func (x *CreateOrUpdateUserReq) GetNickname() string

func (*CreateOrUpdateUserReq) GetPassword

func (x *CreateOrUpdateUserReq) GetPassword() string

func (*CreateOrUpdateUserReq) GetRoleId

func (x *CreateOrUpdateUserReq) GetRoleId() uint32

func (*CreateOrUpdateUserReq) GetStatus

func (x *CreateOrUpdateUserReq) GetStatus() int32

func (*CreateOrUpdateUserReq) GetUsername

func (x *CreateOrUpdateUserReq) GetUsername() string

func (*CreateOrUpdateUserReq) ProtoMessage

func (*CreateOrUpdateUserReq) ProtoMessage()

func (*CreateOrUpdateUserReq) ProtoReflect

func (x *CreateOrUpdateUserReq) ProtoReflect() protoreflect.Message

func (*CreateOrUpdateUserReq) Reset

func (x *CreateOrUpdateUserReq) Reset()

func (*CreateOrUpdateUserReq) String

func (x *CreateOrUpdateUserReq) String() string

type CreatePolicyReq

type CreatePolicyReq struct {
	RoleId uint64          `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	Info   *PolicyPartInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*CreatePolicyReq) Descriptor deprecated

func (*CreatePolicyReq) Descriptor() ([]byte, []int)

Deprecated: Use CreatePolicyReq.ProtoReflect.Descriptor instead.

func (*CreatePolicyReq) GetInfo

func (x *CreatePolicyReq) GetInfo() *PolicyPartInfo

func (*CreatePolicyReq) GetRoleId

func (x *CreatePolicyReq) GetRoleId() uint64

func (*CreatePolicyReq) ProtoMessage

func (*CreatePolicyReq) ProtoMessage()

func (*CreatePolicyReq) ProtoReflect

func (x *CreatePolicyReq) ProtoReflect() protoreflect.Message

func (*CreatePolicyReq) Reset

func (x *CreatePolicyReq) Reset()

func (*CreatePolicyReq) String

func (x *CreatePolicyReq) String() string

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

base message

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type GetUserListReq

type GetUserListReq struct {
	Page     uint64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize uint64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	Nickname string `protobuf:"bytes,4,opt,name=nickname,proto3" json:"nickname,omitempty"`
	Email    string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
	Mobile   string `protobuf:"bytes,6,opt,name=mobile,proto3" json:"mobile,omitempty"`
	RoleId   uint64 `protobuf:"varint,7,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserListReq) Descriptor deprecated

func (*GetUserListReq) Descriptor() ([]byte, []int)

Deprecated: Use GetUserListReq.ProtoReflect.Descriptor instead.

func (*GetUserListReq) GetEmail

func (x *GetUserListReq) GetEmail() string

func (*GetUserListReq) GetMobile

func (x *GetUserListReq) GetMobile() string

func (*GetUserListReq) GetNickname

func (x *GetUserListReq) GetNickname() string

func (*GetUserListReq) GetPage

func (x *GetUserListReq) GetPage() uint64

func (*GetUserListReq) GetPageSize

func (x *GetUserListReq) GetPageSize() uint64

func (*GetUserListReq) GetRoleId

func (x *GetUserListReq) GetRoleId() uint64

func (*GetUserListReq) GetUsername

func (x *GetUserListReq) GetUsername() string

func (*GetUserListReq) ProtoMessage

func (*GetUserListReq) ProtoMessage()

func (*GetUserListReq) ProtoReflect

func (x *GetUserListReq) ProtoReflect() protoreflect.Message

func (*GetUserListReq) Reset

func (x *GetUserListReq) Reset()

func (*GetUserListReq) String

func (x *GetUserListReq) String() string

type IDReq

type IDReq struct {
	ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	// contains filtered or unexported fields
}

func (*IDReq) Descriptor deprecated

func (*IDReq) Descriptor() ([]byte, []int)

Deprecated: Use IDReq.ProtoReflect.Descriptor instead.

func (*IDReq) GetID

func (x *IDReq) GetID() uint64

func (*IDReq) ProtoMessage

func (*IDReq) ProtoMessage()

func (*IDReq) ProtoReflect

func (x *IDReq) ProtoReflect() protoreflect.Message

func (*IDReq) Reset

func (x *IDReq) Reset()

func (*IDReq) String

func (x *IDReq) String() string

type LoginReq

type LoginReq struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginReq) Descriptor deprecated

func (*LoginReq) Descriptor() ([]byte, []int)

Deprecated: Use LoginReq.ProtoReflect.Descriptor instead.

func (*LoginReq) GetPassword

func (x *LoginReq) GetPassword() string

func (*LoginReq) GetUsername

func (x *LoginReq) GetUsername() string

func (*LoginReq) ProtoMessage

func (*LoginReq) ProtoMessage()

func (*LoginReq) ProtoReflect

func (x *LoginReq) ProtoReflect() protoreflect.Message

func (*LoginReq) Reset

func (x *LoginReq) Reset()

func (*LoginReq) String

func (x *LoginReq) String() string

type LoginResp

type LoginResp struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	RoleName  string `protobuf:"bytes,2,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"`
	RoleValue string `protobuf:"bytes,3,opt,name=role_value,json=roleValue,proto3" json:"role_value,omitempty"`
	RoleId    uint32 `protobuf:"varint,4,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResp) Descriptor deprecated

func (*LoginResp) Descriptor() ([]byte, []int)

Deprecated: Use LoginResp.ProtoReflect.Descriptor instead.

func (*LoginResp) GetId

func (x *LoginResp) GetId() string

func (*LoginResp) GetRoleId

func (x *LoginResp) GetRoleId() uint32

func (*LoginResp) GetRoleName

func (x *LoginResp) GetRoleName() string

func (*LoginResp) GetRoleValue

func (x *LoginResp) GetRoleValue() string

func (*LoginResp) ProtoMessage

func (*LoginResp) ProtoMessage()

func (*LoginResp) ProtoReflect

func (x *LoginResp) ProtoReflect() protoreflect.Message

func (*LoginResp) Reset

func (x *LoginResp) Reset()

func (*LoginResp) String

func (x *LoginResp) String() string
type MenuInfo struct {
	Id        uint64      `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	CreateAt  int64       `protobuf:"varint,2,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"`
	UpdateAt  int64       `protobuf:"varint,3,opt,name=update_at,json=updateAt,proto3" json:"update_at,omitempty"`
	Level     uint32      `protobuf:"varint,4,opt,name=level,proto3" json:"level,omitempty"`
	ParentId  uint32      `protobuf:"varint,5,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	Path      string      `protobuf:"bytes,6,opt,name=path,proto3" json:"path,omitempty"`
	Name      string      `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"`
	Redirect  string      `protobuf:"bytes,8,opt,name=redirect,proto3" json:"redirect,omitempty"`
	Component string      `protobuf:"bytes,9,opt,name=component,proto3" json:"component,omitempty"`
	OrderNo   uint32      `protobuf:"varint,10,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
	Disabled  bool        `protobuf:"varint,11,opt,name=disabled,proto3" json:"disabled,omitempty"`
	Meta      *Meta       `protobuf:"bytes,12,opt,name=meta,proto3" json:"meta,omitempty"`
	Children  []*MenuInfo `protobuf:"bytes,13,rep,name=children,proto3" json:"children,omitempty"`
	MenuType  uint32      `protobuf:"varint,14,opt,name=menu_type,json=menuType,proto3" json:"menu_type,omitempty"`
	// contains filtered or unexported fields
}
func (*MenuInfo) Descriptor() ([]byte, []int)

Deprecated: Use MenuInfo.ProtoReflect.Descriptor instead.

func (x *MenuInfo) GetChildren() []*MenuInfo
func (x *MenuInfo) GetComponent() string
func (x *MenuInfo) GetCreateAt() int64
func (x *MenuInfo) GetDisabled() bool
func (x *MenuInfo) GetId() uint64
func (x *MenuInfo) GetLevel() uint32
func (x *MenuInfo) GetMenuType() uint32
func (x *MenuInfo) GetMeta() *Meta
func (x *MenuInfo) GetName() string
func (x *MenuInfo) GetOrderNo() uint32
func (x *MenuInfo) GetParentId() uint32
func (x *MenuInfo) GetPath() string
func (x *MenuInfo) GetRedirect() string
func (x *MenuInfo) GetUpdateAt() int64
func (*MenuInfo) ProtoMessage()
func (x *MenuInfo) ProtoReflect() protoreflect.Message
func (x *MenuInfo) Reset()
func (x *MenuInfo) String() string
type MenuInfoList struct {
	Total uint64      `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Data  []*MenuInfo `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}
func (*MenuInfoList) Descriptor() ([]byte, []int)

Deprecated: Use MenuInfoList.ProtoReflect.Descriptor instead.

func (x *MenuInfoList) GetData() []*MenuInfo
func (x *MenuInfoList) GetTotal() uint64
func (*MenuInfoList) ProtoMessage()
func (x *MenuInfoList) ProtoReflect() protoreflect.Message
func (x *MenuInfoList) Reset()
func (x *MenuInfoList) String() string
type MenuParamListResp struct {
	Total uint64           `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Data  []*MenuParamResp `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}
func (*MenuParamListResp) Descriptor() ([]byte, []int)

Deprecated: Use MenuParamListResp.ProtoReflect.Descriptor instead.

func (x *MenuParamListResp) GetData() []*MenuParamResp
func (x *MenuParamListResp) GetTotal() uint64
func (*MenuParamListResp) ProtoMessage()
func (x *MenuParamListResp) ProtoReflect() protoreflect.Message
func (x *MenuParamListResp) Reset()
func (x *MenuParamListResp) String() string
type MenuParamResp struct {
	Id       uint64 `protobuf:"varint,5,opt,name=id,proto3" json:"id,omitempty"`
	MenuId   uint64 `protobuf:"varint,1,opt,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"`
	Type     string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Key      string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	Value    string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	CreateAt int64  `protobuf:"varint,6,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"`
	UpdateAt int64  `protobuf:"varint,7,opt,name=update_at,json=updateAt,proto3" json:"update_at,omitempty"`
	// contains filtered or unexported fields
}
func (*MenuParamResp) Descriptor() ([]byte, []int)

Deprecated: Use MenuParamResp.ProtoReflect.Descriptor instead.

func (x *MenuParamResp) GetCreateAt() int64
func (x *MenuParamResp) GetId() uint64
func (x *MenuParamResp) GetKey() string
func (x *MenuParamResp) GetMenuId() uint64
func (x *MenuParamResp) GetType() string
func (x *MenuParamResp) GetUpdateAt() int64
func (x *MenuParamResp) GetValue() string
func (*MenuParamResp) ProtoMessage()
func (x *MenuParamResp) ProtoReflect() protoreflect.Message
func (x *MenuParamResp) Reset()
func (x *MenuParamResp) String() string
type MenuRoleInfo struct {
	Id     uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	MenuId uint64 `protobuf:"varint,2,opt,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"`
	RoleId uint64 `protobuf:"varint,3,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	// contains filtered or unexported fields
}
func (*MenuRoleInfo) Descriptor() ([]byte, []int)

Deprecated: Use MenuRoleInfo.ProtoReflect.Descriptor instead.

func (x *MenuRoleInfo) GetId() uint64
func (x *MenuRoleInfo) GetMenuId() uint64
func (x *MenuRoleInfo) GetRoleId() uint64
func (*MenuRoleInfo) ProtoMessage()
func (x *MenuRoleInfo) ProtoReflect() protoreflect.Message
func (x *MenuRoleInfo) Reset()
func (x *MenuRoleInfo) String() string
type MenuRoleListResp struct {
	Total uint64          `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Data  []*MenuRoleInfo `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}
func (*MenuRoleListResp) Descriptor() ([]byte, []int)

Deprecated: Use MenuRoleListResp.ProtoReflect.Descriptor instead.

func (x *MenuRoleListResp) GetData() []*MenuRoleInfo
func (x *MenuRoleListResp) GetTotal() uint64
func (*MenuRoleListResp) ProtoMessage()
func (x *MenuRoleListResp) ProtoReflect() protoreflect.Message
func (x *MenuRoleListResp) Reset()
func (x *MenuRoleListResp) String() string

type Meta

type Meta struct {
	KeepAlive         bool   `protobuf:"varint,1,opt,name=keep_alive,json=keepAlive,proto3" json:"keep_alive,omitempty"`
	HideMenu          bool   `protobuf:"varint,2,opt,name=hide_menu,json=hideMenu,proto3" json:"hide_menu,omitempty"`
	HideBreadcrumb    bool   `protobuf:"varint,3,opt,name=hide_breadcrumb,json=hideBreadcrumb,proto3" json:"hide_breadcrumb,omitempty"`
	CurrentActiveMenu string `protobuf:"bytes,4,opt,name=current_active_menu,json=currentActiveMenu,proto3" json:"current_active_menu,omitempty"`
	Title             string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`
	Icon              string `protobuf:"bytes,6,opt,name=icon,proto3" json:"icon,omitempty"`
	CloseTab          bool   `protobuf:"varint,7,opt,name=close_tab,json=closeTab,proto3" json:"close_tab,omitempty"`
	// contains filtered or unexported fields
}

func (*Meta) Descriptor deprecated

func (*Meta) Descriptor() ([]byte, []int)

Deprecated: Use Meta.ProtoReflect.Descriptor instead.

func (*Meta) GetCloseTab

func (x *Meta) GetCloseTab() bool

func (*Meta) GetCurrentActiveMenu

func (x *Meta) GetCurrentActiveMenu() string

func (*Meta) GetHideBreadcrumb

func (x *Meta) GetHideBreadcrumb() bool

func (*Meta) GetHideMenu

func (x *Meta) GetHideMenu() bool

func (*Meta) GetIcon

func (x *Meta) GetIcon() string

func (*Meta) GetKeepAlive

func (x *Meta) GetKeepAlive() bool

func (*Meta) GetTitle

func (x *Meta) GetTitle() string

func (*Meta) ProtoMessage

func (*Meta) ProtoMessage()

func (*Meta) ProtoReflect

func (x *Meta) ProtoReflect() protoreflect.Message

func (*Meta) Reset

func (x *Meta) Reset()

func (*Meta) String

func (x *Meta) String() string

type PageInfoReq

type PageInfoReq struct {
	Page     uint64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize uint64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

func (*PageInfoReq) Descriptor deprecated

func (*PageInfoReq) Descriptor() ([]byte, []int)

Deprecated: Use PageInfoReq.ProtoReflect.Descriptor instead.

func (*PageInfoReq) GetPage

func (x *PageInfoReq) GetPage() uint64

func (*PageInfoReq) GetPageSize

func (x *PageInfoReq) GetPageSize() uint64

func (*PageInfoReq) ProtoMessage

func (*PageInfoReq) ProtoMessage()

func (*PageInfoReq) ProtoReflect

func (x *PageInfoReq) ProtoReflect() protoreflect.Message

func (*PageInfoReq) Reset

func (x *PageInfoReq) Reset()

func (*PageInfoReq) String

func (x *PageInfoReq) String() string

type PolicyPartInfo

type PolicyPartInfo struct {
	Path   string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	// contains filtered or unexported fields
}

func (*PolicyPartInfo) Descriptor deprecated

func (*PolicyPartInfo) Descriptor() ([]byte, []int)

Deprecated: Use PolicyPartInfo.ProtoReflect.Descriptor instead.

func (*PolicyPartInfo) GetMethod

func (x *PolicyPartInfo) GetMethod() string

func (*PolicyPartInfo) GetPath

func (x *PolicyPartInfo) GetPath() string

func (*PolicyPartInfo) ProtoMessage

func (*PolicyPartInfo) ProtoMessage()

func (*PolicyPartInfo) ProtoReflect

func (x *PolicyPartInfo) ProtoReflect() protoreflect.Message

func (*PolicyPartInfo) Reset

func (x *PolicyPartInfo) Reset()

func (*PolicyPartInfo) String

func (x *PolicyPartInfo) String() string

type RoleInfo

type RoleInfo struct {
	Id            uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name          string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Value         string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	DefaultRouter string `protobuf:"bytes,4,opt,name=default_router,json=defaultRouter,proto3" json:"default_router,omitempty"`
	Status        uint32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"`
	Remark        string `protobuf:"bytes,6,opt,name=remark,proto3" json:"remark,omitempty"`
	OrderNo       uint32 `protobuf:"varint,7,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
	CreateAt      int64  `protobuf:"varint,8,opt,name=createAt,proto3" json:"createAt,omitempty"`
	// contains filtered or unexported fields
}

func (*RoleInfo) Descriptor deprecated

func (*RoleInfo) Descriptor() ([]byte, []int)

Deprecated: Use RoleInfo.ProtoReflect.Descriptor instead.

func (*RoleInfo) GetCreateAt

func (x *RoleInfo) GetCreateAt() int64

func (*RoleInfo) GetDefaultRouter

func (x *RoleInfo) GetDefaultRouter() string

func (*RoleInfo) GetId

func (x *RoleInfo) GetId() uint64

func (*RoleInfo) GetName

func (x *RoleInfo) GetName() string

func (*RoleInfo) GetOrderNo

func (x *RoleInfo) GetOrderNo() uint32

func (*RoleInfo) GetRemark

func (x *RoleInfo) GetRemark() string

func (*RoleInfo) GetStatus

func (x *RoleInfo) GetStatus() uint32

func (*RoleInfo) GetValue

func (x *RoleInfo) GetValue() string

func (*RoleInfo) ProtoMessage

func (*RoleInfo) ProtoMessage()

func (*RoleInfo) ProtoReflect

func (x *RoleInfo) ProtoReflect() protoreflect.Message

func (*RoleInfo) Reset

func (x *RoleInfo) Reset()

func (*RoleInfo) String

func (x *RoleInfo) String() string

type RoleListResp

type RoleListResp struct {
	Total uint64      `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Data  []*RoleInfo `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*RoleListResp) Descriptor deprecated

func (*RoleListResp) Descriptor() ([]byte, []int)

Deprecated: Use RoleListResp.ProtoReflect.Descriptor instead.

func (*RoleListResp) GetData

func (x *RoleListResp) GetData() []*RoleInfo

func (*RoleListResp) GetTotal

func (x *RoleListResp) GetTotal() uint64

func (*RoleListResp) ProtoMessage

func (*RoleListResp) ProtoMessage()

func (*RoleListResp) ProtoReflect

func (x *RoleListResp) ProtoReflect() protoreflect.Message

func (*RoleListResp) Reset

func (x *RoleListResp) Reset()

func (*RoleListResp) String

func (x *RoleListResp) String() string

type RoleMenuAuthorityReq

type RoleMenuAuthorityReq struct {
	RoleId uint64   `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	MenuId []uint64 `protobuf:"varint,2,rep,packed,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RoleMenuAuthorityReq) Descriptor deprecated

func (*RoleMenuAuthorityReq) Descriptor() ([]byte, []int)

Deprecated: Use RoleMenuAuthorityReq.ProtoReflect.Descriptor instead.

func (*RoleMenuAuthorityReq) GetMenuId

func (x *RoleMenuAuthorityReq) GetMenuId() []uint64

func (*RoleMenuAuthorityReq) GetRoleId

func (x *RoleMenuAuthorityReq) GetRoleId() uint64

func (*RoleMenuAuthorityReq) ProtoMessage

func (*RoleMenuAuthorityReq) ProtoMessage()

func (*RoleMenuAuthorityReq) ProtoReflect

func (x *RoleMenuAuthorityReq) ProtoReflect() protoreflect.Message

func (*RoleMenuAuthorityReq) Reset

func (x *RoleMenuAuthorityReq) Reset()

func (*RoleMenuAuthorityReq) String

func (x *RoleMenuAuthorityReq) String() string

type RoleMenuAuthorityResp

type RoleMenuAuthorityResp struct {
	MenuId []uint64 `protobuf:"varint,1,rep,packed,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"`
	// contains filtered or unexported fields
}

return the role's authorization menu's ids

func (*RoleMenuAuthorityResp) Descriptor deprecated

func (*RoleMenuAuthorityResp) Descriptor() ([]byte, []int)

Deprecated: Use RoleMenuAuthorityResp.ProtoReflect.Descriptor instead.

func (*RoleMenuAuthorityResp) GetMenuId

func (x *RoleMenuAuthorityResp) GetMenuId() []uint64

func (*RoleMenuAuthorityResp) ProtoMessage

func (*RoleMenuAuthorityResp) ProtoMessage()

func (*RoleMenuAuthorityResp) ProtoReflect

func (x *RoleMenuAuthorityResp) ProtoReflect() protoreflect.Message

func (*RoleMenuAuthorityResp) Reset

func (x *RoleMenuAuthorityResp) Reset()

func (*RoleMenuAuthorityResp) String

func (x *RoleMenuAuthorityResp) String() string

type SetStatusReq

type SetStatusReq struct {
	Id     uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Status uint32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*SetStatusReq) Descriptor deprecated

func (*SetStatusReq) Descriptor() ([]byte, []int)

Deprecated: Use SetStatusReq.ProtoReflect.Descriptor instead.

func (*SetStatusReq) GetId

func (x *SetStatusReq) GetId() uint64

func (*SetStatusReq) GetStatus

func (x *SetStatusReq) GetStatus() uint32

func (*SetStatusReq) ProtoMessage

func (*SetStatusReq) ProtoMessage()

func (*SetStatusReq) ProtoReflect

func (x *SetStatusReq) ProtoReflect() protoreflect.Message

func (*SetStatusReq) Reset

func (x *SetStatusReq) Reset()

func (*SetStatusReq) String

func (x *SetStatusReq) String() string

type UUIDReq

type UUIDReq struct {
	UUID string `protobuf:"bytes,1,opt,name=UUID,proto3" json:"UUID,omitempty"`
	// contains filtered or unexported fields
}

func (*UUIDReq) Descriptor deprecated

func (*UUIDReq) Descriptor() ([]byte, []int)

Deprecated: Use UUIDReq.ProtoReflect.Descriptor instead.

func (*UUIDReq) GetUUID

func (x *UUIDReq) GetUUID() string

func (*UUIDReq) ProtoMessage

func (*UUIDReq) ProtoMessage()

func (*UUIDReq) ProtoReflect

func (x *UUIDReq) ProtoReflect() protoreflect.Message

func (*UUIDReq) Reset

func (x *UUIDReq) Reset()

func (*UUIDReq) String

func (x *UUIDReq) String() string

type UnimplementedCoreServer

type UnimplementedCoreServer struct {
}

UnimplementedCoreServer must be embedded to have forward compatible implementations.

func (UnimplementedCoreServer) ChangePassword

func (UnimplementedCoreServer) CreateMenuParam

func (UnimplementedCoreServer) CreateOrUpdateApi

func (UnimplementedCoreServer) CreateOrUpdateApi(context.Context, *ApiInfo) (*BaseResp, error)

func (UnimplementedCoreServer) CreateOrUpdateMenu

func (UnimplementedCoreServer) CreateOrUpdateMenuAuthority

func (UnimplementedCoreServer) CreateOrUpdateMenuAuthority(context.Context, *RoleMenuAuthorityReq) (*BaseResp, error)

func (UnimplementedCoreServer) CreateOrUpdateRole

func (UnimplementedCoreServer) CreateOrUpdateRole(context.Context, *RoleInfo) (*BaseResp, error)

func (UnimplementedCoreServer) CreateOrUpdateUser

func (UnimplementedCoreServer) DeleteApi

func (UnimplementedCoreServer) DeleteMenu

func (UnimplementedCoreServer) DeleteMenuParam

func (UnimplementedCoreServer) DeleteMenuParam(context.Context, *IDReq) (*BaseResp, error)

func (UnimplementedCoreServer) DeleteRole

func (UnimplementedCoreServer) DeleteUser

func (UnimplementedCoreServer) GeMenuParamListById

func (UnimplementedCoreServer) GetApiList

func (UnimplementedCoreServer) GetMenuAuthority

func (UnimplementedCoreServer) GetMenuByPage

func (UnimplementedCoreServer) GetMenuListByRole

func (UnimplementedCoreServer) GetMenuParamById

func (UnimplementedCoreServer) GetRoleById

func (UnimplementedCoreServer) GetRoleList

func (UnimplementedCoreServer) GetUserById

func (UnimplementedCoreServer) GetUserList

func (UnimplementedCoreServer) InitDatabase

func (UnimplementedCoreServer) Login

func (UnimplementedCoreServer) SetRoleStatus

func (UnimplementedCoreServer) UpdateMenuParam

type UnsafeCoreServer

type UnsafeCoreServer interface {
	// contains filtered or unexported methods
}

UnsafeCoreServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CoreServer will result in compilation errors.

type UpdateMenuParamReq

type UpdateMenuParamReq struct {
	MenuId uint64 `protobuf:"varint,1,opt,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"`
	Type   string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Key    string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	Value  string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	Id     uint64 `protobuf:"varint,5,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateMenuParamReq) Descriptor deprecated

func (*UpdateMenuParamReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdateMenuParamReq.ProtoReflect.Descriptor instead.

func (*UpdateMenuParamReq) GetId

func (x *UpdateMenuParamReq) GetId() uint64

func (*UpdateMenuParamReq) GetKey

func (x *UpdateMenuParamReq) GetKey() string

func (*UpdateMenuParamReq) GetMenuId

func (x *UpdateMenuParamReq) GetMenuId() uint64

func (*UpdateMenuParamReq) GetType

func (x *UpdateMenuParamReq) GetType() string

func (*UpdateMenuParamReq) GetValue

func (x *UpdateMenuParamReq) GetValue() string

func (*UpdateMenuParamReq) ProtoMessage

func (*UpdateMenuParamReq) ProtoMessage()

func (*UpdateMenuParamReq) ProtoReflect

func (x *UpdateMenuParamReq) ProtoReflect() protoreflect.Message

func (*UpdateMenuParamReq) Reset

func (x *UpdateMenuParamReq) Reset()

func (*UpdateMenuParamReq) String

func (x *UpdateMenuParamReq) String() string

type UpdatePolicyReq

type UpdatePolicyReq struct {
	RoleId uint64            `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	Rules  []*PolicyPartInfo `protobuf:"bytes,2,rep,name=rules,proto3" json:"rules,omitempty"`
	// contains filtered or unexported fields
}

casbin

func (*UpdatePolicyReq) Descriptor deprecated

func (*UpdatePolicyReq) Descriptor() ([]byte, []int)

Deprecated: Use UpdatePolicyReq.ProtoReflect.Descriptor instead.

func (*UpdatePolicyReq) GetRoleId

func (x *UpdatePolicyReq) GetRoleId() uint64

func (*UpdatePolicyReq) GetRules

func (x *UpdatePolicyReq) GetRules() []*PolicyPartInfo

func (*UpdatePolicyReq) ProtoMessage

func (*UpdatePolicyReq) ProtoMessage()

func (*UpdatePolicyReq) ProtoReflect

func (x *UpdatePolicyReq) ProtoReflect() protoreflect.Message

func (*UpdatePolicyReq) Reset

func (x *UpdatePolicyReq) Reset()

func (*UpdatePolicyReq) String

func (x *UpdatePolicyReq) String() string

type UserInfoResp

type UserInfoResp struct {
	Id        uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Avatar    string `protobuf:"bytes,2,opt,name=avatar,proto3" json:"avatar,omitempty"`
	RoleId    uint32 `protobuf:"varint,3,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
	Mobile    string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"`
	Email     string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
	Status    int32  `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"`
	Username  string `protobuf:"bytes,7,opt,name=username,proto3" json:"username,omitempty"`
	UUID      string `protobuf:"bytes,8,opt,name=UUID,proto3" json:"UUID,omitempty"`
	Nickname  string `protobuf:"bytes,9,opt,name=nickname,proto3" json:"nickname,omitempty"`
	RoleName  string `protobuf:"bytes,10,opt,name=roleName,proto3" json:"roleName,omitempty"`
	CreateAt  int64  `protobuf:"varint,11,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty"`
	UpdateAt  int64  `protobuf:"varint,12,opt,name=update_at,json=updateAt,proto3" json:"update_at,omitempty"`
	RoleValue string `protobuf:"bytes,13,opt,name=roleValue,proto3" json:"roleValue,omitempty"`
	// contains filtered or unexported fields
}

func (*UserInfoResp) Descriptor deprecated

func (*UserInfoResp) Descriptor() ([]byte, []int)

Deprecated: Use UserInfoResp.ProtoReflect.Descriptor instead.

func (*UserInfoResp) GetAvatar

func (x *UserInfoResp) GetAvatar() string

func (*UserInfoResp) GetCreateAt

func (x *UserInfoResp) GetCreateAt() int64

func (*UserInfoResp) GetEmail

func (x *UserInfoResp) GetEmail() string

func (*UserInfoResp) GetId

func (x *UserInfoResp) GetId() uint64

func (*UserInfoResp) GetMobile

func (x *UserInfoResp) GetMobile() string

func (*UserInfoResp) GetNickname

func (x *UserInfoResp) GetNickname() string

func (*UserInfoResp) GetRoleId

func (x *UserInfoResp) GetRoleId() uint32

func (*UserInfoResp) GetRoleName

func (x *UserInfoResp) GetRoleName() string

func (*UserInfoResp) GetRoleValue

func (x *UserInfoResp) GetRoleValue() string

func (*UserInfoResp) GetStatus

func (x *UserInfoResp) GetStatus() int32

func (*UserInfoResp) GetUUID

func (x *UserInfoResp) GetUUID() string

func (*UserInfoResp) GetUpdateAt

func (x *UserInfoResp) GetUpdateAt() int64

func (*UserInfoResp) GetUsername

func (x *UserInfoResp) GetUsername() string

func (*UserInfoResp) ProtoMessage

func (*UserInfoResp) ProtoMessage()

func (*UserInfoResp) ProtoReflect

func (x *UserInfoResp) ProtoReflect() protoreflect.Message

func (*UserInfoResp) Reset

func (x *UserInfoResp) Reset()

func (*UserInfoResp) String

func (x *UserInfoResp) String() string

type UserListResp

type UserListResp struct {
	Total uint32          `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Data  []*UserInfoResp `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UserListResp) Descriptor deprecated

func (*UserListResp) Descriptor() ([]byte, []int)

Deprecated: Use UserListResp.ProtoReflect.Descriptor instead.

func (*UserListResp) GetData

func (x *UserListResp) GetData() []*UserInfoResp

func (*UserListResp) GetTotal

func (x *UserListResp) GetTotal() uint32

func (*UserListResp) ProtoMessage

func (*UserListResp) ProtoMessage()

func (*UserListResp) ProtoReflect

func (x *UserListResp) ProtoReflect() protoreflect.Message

func (*UserListResp) Reset

func (x *UserListResp) Reset()

func (*UserListResp) String

func (x *UserListResp) String() string

Jump to

Keyboard shortcuts

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