aeus-admin/pb/organize.pb.go

1643 lines
46 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.6
// protoc v5.29.3
// source: organize.proto
package pb
import (
_ "git.nobla.cn/golang/aeus/pkg/proto/rest"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
_ "google.golang.org/protobuf/types/descriptorpb"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Menu 菜单模型定义
type Menu struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
ParentId int64 `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
Uri string `protobuf:"bytes,5,opt,name=uri,proto3" json:"uri,omitempty"`
ViewPath string `protobuf:"bytes,6,opt,name=view_path,json=viewPath,proto3" json:"view_path,omitempty"`
Icon string `protobuf:"bytes,7,opt,name=icon,proto3" json:"icon,omitempty"`
Hidden bool `protobuf:"varint,8,opt,name=hidden,proto3" json:"hidden,omitempty"`
Public bool `protobuf:"varint,9,opt,name=public,proto3" json:"public,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Menu) Reset() {
*x = Menu{}
mi := &file_organize_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Menu) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Menu) ProtoMessage() {}
func (x *Menu) ProtoReflect() protoreflect.Message {
mi := &file_organize_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Menu.ProtoReflect.Descriptor instead.
func (*Menu) Descriptor() ([]byte, []int) {
return file_organize_proto_rawDescGZIP(), []int{0}
}
func (x *Menu) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *Menu) GetParentId() int64 {
if x != nil {
return x.ParentId
}
return 0
}
func (x *Menu) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Menu) GetLabel() string {
if x != nil {
return x.Label
}
return ""
}
func (x *Menu) GetUri() string {
if x != nil {
return x.Uri
}
return ""
}
func (x *Menu) GetViewPath() string {
if x != nil {
return x.ViewPath
}
return ""
}
func (x *Menu) GetIcon() string {
if x != nil {
return x.Icon
}
return ""
}
func (x *Menu) GetHidden() bool {
if x != nil {
return x.Hidden
}
return false
}
func (x *Menu) GetPublic() bool {
if x != nil {
return x.Public
}
return false
}
// Role 角色模型定义
type Role struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Label string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Role) Reset() {
*x = Role{}
mi := &file_organize_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Role) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Role) ProtoMessage() {}
func (x *Role) ProtoReflect() protoreflect.Message {
mi := &file_organize_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Role.ProtoReflect.Descriptor instead.
func (*Role) Descriptor() ([]byte, []int) {
return file_organize_proto_rawDescGZIP(), []int{1}
}
func (x *Role) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *Role) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Role) GetLabel() string {
if x != nil {
return x.Label
}
return ""
}
func (x *Role) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
// Permission 权限模型定义
type Permission struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
MenuId int64 `protobuf:"varint,2,opt,name=menu_id,json=menuId,proto3" json:"menu_id,omitempty"`
Permission string `protobuf:"bytes,3,opt,name=permission,proto3" json:"permission,omitempty"`
Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Permission) Reset() {
*x = Permission{}
mi := &file_organize_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Permission) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Permission) ProtoMessage() {}
func (x *Permission) ProtoReflect() protoreflect.Message {
mi := &file_organize_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Permission.ProtoReflect.Descriptor instead.
func (*Permission) Descriptor() ([]byte, []int) {
return file_organize_proto_rawDescGZIP(), []int{2}
}
func (x *Permission) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *Permission) GetMenuId() int64 {
if x != nil {
return x.MenuId
}
return 0
}
func (x *Permission) GetPermission() string {
if x != nil {
return x.Permission
}
return ""
}
func (x *Permission) GetLabel() string {
if x != nil {
return x.Label
}
return ""
}
// RolePermission 角色权限关联表
type RolePermission struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"`
PermissionId int64 `protobuf:"varint,3,opt,name=permission_id,json=permissionId,proto3" json:"permission_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RolePermission) Reset() {
*x = RolePermission{}
mi := &file_organize_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RolePermission) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RolePermission) ProtoMessage() {}
func (x *RolePermission) ProtoReflect() protoreflect.Message {
mi := &file_organize_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RolePermission.ProtoReflect.Descriptor instead.
func (*RolePermission) Descriptor() ([]byte, []int) {
return file_organize_proto_rawDescGZIP(), []int{3}
}
func (x *RolePermission) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *RolePermission) GetRole() string {
if x != nil {
return x.Role
}
return ""
}
func (x *RolePermission) GetPermissionId() int64 {
if x != nil {
return x.PermissionId
}
return 0
}
// User 用户模型定义
type User struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
CreatedAt int64 `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt int64 `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
Uid string `protobuf:"bytes,4,opt,name=uid,proto3" json:"uid,omitempty"`
Username string `protobuf:"bytes,5,opt,name=username,proto3" json:"username,omitempty"`
Role string `protobuf:"bytes,6,opt,name=role,proto3" json:"role,omitempty"`
Admin bool `protobuf:"varint,7,opt,name=admin,proto3" json:"admin,omitempty"`
DeptId int64 `protobuf:"varint,8,opt,name=dept_id,json=deptId,proto3" json:"dept_id,omitempty"`
Tag string `protobuf:"bytes,9,opt,name=tag,proto3" json:"tag,omitempty"`
Password string `protobuf:"bytes,10,opt,name=password,proto3" json:"password,omitempty"`
Email string `protobuf:"bytes,11,opt,name=email,proto3" json:"email,omitempty"`
Avatar string `protobuf:"bytes,12,opt,name=avatar,proto3" json:"avatar,omitempty"`
Gender string `protobuf:"bytes,13,opt,name=gender,proto3" json:"gender,omitempty"`
Description string `protobuf:"bytes,14,opt,name=description,proto3" json:"description,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *User) Reset() {
*x = User{}
mi := &file_organize_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *User) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*User) ProtoMessage() {}
func (x *User) ProtoReflect() protoreflect.Message {
mi := &file_organize_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use User.ProtoReflect.Descriptor instead.
func (*User) Descriptor() ([]byte, []int) {
return file_organize_proto_rawDescGZIP(), []int{4}
}
func (x *User) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *User) GetCreatedAt() int64 {
if x != nil {
return x.CreatedAt
}
return 0
}
func (x *User) GetUpdatedAt() int64 {
if x != nil {
return x.UpdatedAt
}
return 0
}
func (x *User) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
func (x *User) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *User) GetRole() string {
if x != nil {
return x.Role
}
return ""
}
func (x *User) GetAdmin() bool {
if x != nil {
return x.Admin
}
return false
}
func (x *User) GetDeptId() int64 {
if x != nil {
return x.DeptId
}
return 0
}
func (x *User) GetTag() string {
if x != nil {
return x.Tag
}
return ""
}
func (x *User) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
func (x *User) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (x *User) GetAvatar() string {
if x != nil {
return x.Avatar
}
return ""
}
func (x *User) GetGender() string {
if x != nil {
return x.Gender
}
return ""
}
func (x *User) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
// Department 部门模型定义
type Department struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
CreatedAt int64 `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt int64 `protobuf:"varint,3,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
ParentId int64 `protobuf:"varint,4,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Department) Reset() {
*x = Department{}
mi := &file_organize_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Department) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Department) ProtoMessage() {}
func (x *Department) ProtoReflect() protoreflect.Message {
mi := &file_organize_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Department.ProtoReflect.Descriptor instead.
func (*Department) Descriptor() ([]byte, []int) {
return file_organize_proto_rawDescGZIP(), []int{5}
}
func (x *Department) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *Department) GetCreatedAt() int64 {
if x != nil {
return x.CreatedAt
}
return 0
}
func (x *Department) GetUpdatedAt() int64 {
if x != nil {
return x.UpdatedAt
}
return 0
}
func (x *Department) GetParentId() int64 {
if x != nil {
return x.ParentId
}
return 0
}
func (x *Department) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Department) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
type PermissionItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PermissionItem) Reset() {
*x = PermissionItem{}
mi := &file_organize_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PermissionItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PermissionItem) ProtoMessage() {}
func (x *PermissionItem) ProtoReflect() protoreflect.Message {
mi := &file_organize_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PermissionItem.ProtoReflect.Descriptor instead.
func (*PermissionItem) Descriptor() ([]byte, []int) {
return file_organize_proto_rawDescGZIP(), []int{6}
}
func (x *PermissionItem) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
func (x *PermissionItem) GetLabel() string {
if x != nil {
return x.Label
}
return ""
}
// MenuItem 菜单数据
type MenuItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Icon string `protobuf:"bytes,3,opt,name=icon,proto3" json:"icon,omitempty"`
Hidden bool `protobuf:"varint,4,opt,name=hidden,proto3" json:"hidden,omitempty"`
Public bool `protobuf:"varint,5,opt,name=public,proto3" json:"public,omitempty"`
Route string `protobuf:"bytes,6,opt,name=route,proto3" json:"route,omitempty"`
Permissions []*PermissionItem `protobuf:"bytes,7,rep,name=permissions,proto3" json:"permissions,omitempty"`
Children []*MenuItem `protobuf:"bytes,8,rep,name=children,proto3" json:"children,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MenuItem) Reset() {
*x = MenuItem{}
mi := &file_organize_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *MenuItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MenuItem) ProtoMessage() {}
func (x *MenuItem) ProtoReflect() protoreflect.Message {
mi := &file_organize_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MenuItem.ProtoReflect.Descriptor instead.
func (*MenuItem) Descriptor() ([]byte, []int) {
return file_organize_proto_rawDescGZIP(), []int{7}
}
func (x *MenuItem) GetLabel() string {
if x != nil {
return x.Label
}
return ""
}
func (x *MenuItem) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *MenuItem) GetIcon() string {
if x != nil {
return x.Icon
}
return ""
}
func (x *MenuItem) GetHidden() bool {
if x != nil {
return x.Hidden
}
return false
}
func (x *MenuItem) GetPublic() bool {
if x != nil {
return x.Public
}
return false
}
func (x *MenuItem) GetRoute() string {
if x != nil {
return x.Route
}
return ""
}
func (x *MenuItem) GetPermissions() []*PermissionItem {
if x != nil {
return x.Permissions
}
return nil
}
func (x *MenuItem) GetChildren() []*MenuItem {
if x != nil {
return x.Children
}
return nil
}
// 获取菜单的请求
type GetMenuRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Permission bool `protobuf:"varint,1,opt,name=permission,proto3" json:"permission,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetMenuRequest) Reset() {
*x = GetMenuRequest{}
mi := &file_organize_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetMenuRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetMenuRequest) ProtoMessage() {}
func (x *GetMenuRequest) ProtoReflect() protoreflect.Message {
mi := &file_organize_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetMenuRequest.ProtoReflect.Descriptor instead.
func (*GetMenuRequest) Descriptor() ([]byte, []int) {
return file_organize_proto_rawDescGZIP(), []int{8}
}
func (x *GetMenuRequest) GetPermission() bool {
if x != nil {
return x.Permission
}
return false
}
// 获取菜单的响应
type GetMenuResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Data []*MenuItem `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetMenuResponse) Reset() {
*x = GetMenuResponse{}
mi := &file_organize_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetMenuResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetMenuResponse) ProtoMessage() {}
func (x *GetMenuResponse) ProtoReflect() protoreflect.Message {
mi := &file_organize_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetMenuResponse.ProtoReflect.Descriptor instead.
func (*GetMenuResponse) Descriptor() ([]byte, []int) {
return file_organize_proto_rawDescGZIP(), []int{9}
}
func (x *GetMenuResponse) GetData() []*MenuItem {
if x != nil {
return x.Data
}
return nil
}
// 获取用户信息
type GetProfileRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetProfileRequest) Reset() {
*x = GetProfileRequest{}
mi := &file_organize_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetProfileRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetProfileRequest) ProtoMessage() {}
func (x *GetProfileRequest) ProtoReflect() protoreflect.Message {
mi := &file_organize_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetProfileRequest.ProtoReflect.Descriptor instead.
func (*GetProfileRequest) Descriptor() ([]byte, []int) {
return file_organize_proto_rawDescGZIP(), []int{10}
}
func (x *GetProfileRequest) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
// 获取用户信息
type GetProfileResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
Role string `protobuf:"bytes,3,opt,name=role,proto3" json:"role,omitempty"`
Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"`
Admin bool `protobuf:"varint,6,opt,name=admin,proto3" json:"admin,omitempty"`
Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetProfileResponse) Reset() {
*x = GetProfileResponse{}
mi := &file_organize_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetProfileResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetProfileResponse) ProtoMessage() {}
func (x *GetProfileResponse) ProtoReflect() protoreflect.Message {
mi := &file_organize_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetProfileResponse.ProtoReflect.Descriptor instead.
func (*GetProfileResponse) Descriptor() ([]byte, []int) {
return file_organize_proto_rawDescGZIP(), []int{11}
}
func (x *GetProfileResponse) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
func (x *GetProfileResponse) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *GetProfileResponse) GetRole() string {
if x != nil {
return x.Role
}
return ""
}
func (x *GetProfileResponse) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (x *GetProfileResponse) GetAvatar() string {
if x != nil {
return x.Avatar
}
return ""
}
func (x *GetProfileResponse) GetAdmin() bool {
if x != nil {
return x.Admin
}
return false
}
func (x *GetProfileResponse) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
type ResetPasswordRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,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"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ResetPasswordRequest) Reset() {
*x = ResetPasswordRequest{}
mi := &file_organize_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ResetPasswordRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResetPasswordRequest) ProtoMessage() {}
func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message {
mi := &file_organize_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.
func (*ResetPasswordRequest) Descriptor() ([]byte, []int) {
return file_organize_proto_rawDescGZIP(), []int{12}
}
func (x *ResetPasswordRequest) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
func (x *ResetPasswordRequest) GetOldPassword() string {
if x != nil {
return x.OldPassword
}
return ""
}
func (x *ResetPasswordRequest) GetNewPassword() string {
if x != nil {
return x.NewPassword
}
return ""
}
type ResetPasswordResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ResetPasswordResponse) Reset() {
*x = ResetPasswordResponse{}
mi := &file_organize_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ResetPasswordResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResetPasswordResponse) ProtoMessage() {}
func (x *ResetPasswordResponse) ProtoReflect() protoreflect.Message {
mi := &file_organize_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ResetPasswordResponse.ProtoReflect.Descriptor instead.
func (*ResetPasswordResponse) Descriptor() ([]byte, []int) {
return file_organize_proto_rawDescGZIP(), []int{13}
}
func (x *ResetPasswordResponse) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
type UpdateProfileRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"`
Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateProfileRequest) Reset() {
*x = UpdateProfileRequest{}
mi := &file_organize_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateProfileRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateProfileRequest) ProtoMessage() {}
func (x *UpdateProfileRequest) ProtoReflect() protoreflect.Message {
mi := &file_organize_proto_msgTypes[14]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateProfileRequest.ProtoReflect.Descriptor instead.
func (*UpdateProfileRequest) Descriptor() ([]byte, []int) {
return file_organize_proto_rawDescGZIP(), []int{14}
}
func (x *UpdateProfileRequest) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
func (x *UpdateProfileRequest) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *UpdateProfileRequest) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (x *UpdateProfileRequest) GetAvatar() string {
if x != nil {
return x.Avatar
}
return ""
}
func (x *UpdateProfileRequest) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
type UpdateProfileResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateProfileResponse) Reset() {
*x = UpdateProfileResponse{}
mi := &file_organize_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateProfileResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateProfileResponse) ProtoMessage() {}
func (x *UpdateProfileResponse) ProtoReflect() protoreflect.Message {
mi := &file_organize_proto_msgTypes[15]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use UpdateProfileResponse.ProtoReflect.Descriptor instead.
func (*UpdateProfileResponse) Descriptor() ([]byte, []int) {
return file_organize_proto_rawDescGZIP(), []int{15}
}
func (x *UpdateProfileResponse) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
type LoginRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *LoginRequest) Reset() {
*x = LoginRequest{}
mi := &file_organize_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *LoginRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LoginRequest) ProtoMessage() {}
func (x *LoginRequest) ProtoReflect() protoreflect.Message {
mi := &file_organize_proto_msgTypes[16]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) Descriptor() ([]byte, []int) {
return file_organize_proto_rawDescGZIP(), []int{16}
}
func (x *LoginRequest) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *LoginRequest) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
func (x *LoginRequest) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
type LoginResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
Expires int64 `protobuf:"varint,4,opt,name=expires,proto3" json:"expires,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *LoginResponse) Reset() {
*x = LoginResponse{}
mi := &file_organize_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *LoginResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LoginResponse) ProtoMessage() {}
func (x *LoginResponse) ProtoReflect() protoreflect.Message {
mi := &file_organize_proto_msgTypes[17]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) Descriptor() ([]byte, []int) {
return file_organize_proto_rawDescGZIP(), []int{17}
}
func (x *LoginResponse) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
func (x *LoginResponse) GetUsername() string {
if x != nil {
return x.Username
}
return ""
}
func (x *LoginResponse) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
func (x *LoginResponse) GetExpires() int64 {
if x != nil {
return x.Expires
}
return 0
}
type LogoutRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *LogoutRequest) Reset() {
*x = LogoutRequest{}
mi := &file_organize_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *LogoutRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LogoutRequest) ProtoMessage() {}
func (x *LogoutRequest) ProtoReflect() protoreflect.Message {
mi := &file_organize_proto_msgTypes[18]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead.
func (*LogoutRequest) Descriptor() ([]byte, []int) {
return file_organize_proto_rawDescGZIP(), []int{18}
}
func (x *LogoutRequest) GetToken() string {
if x != nil {
return x.Token
}
return ""
}
type LogoutResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *LogoutResponse) Reset() {
*x = LogoutResponse{}
mi := &file_organize_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *LogoutResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LogoutResponse) ProtoMessage() {}
func (x *LogoutResponse) ProtoReflect() protoreflect.Message {
mi := &file_organize_proto_msgTypes[19]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LogoutResponse.ProtoReflect.Descriptor instead.
func (*LogoutResponse) Descriptor() ([]byte, []int) {
return file_organize_proto_rawDescGZIP(), []int{19}
}
func (x *LogoutResponse) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
var File_organize_proto protoreflect.FileDescriptor
const file_organize_proto_rawDesc = "" +
"\n" +
"\x0eorganize.proto\x12\borganize\x1a\x0faeus/rest.proto\x1a\x17validate/validate.proto\x1a google/protobuf/descriptor.proto\x1a\x1cgoogle/api/annotations.proto\"\xe8\x02\n" +
"\x04Menu\x12 \n" +
"\x02id\x18\x01 \x01(\x03B\x10\xb2\xb9\x19\f\n" +
"\n" +
"primaryKeyR\x02id\x12\x1b\n" +
"\tparent_id\x18\x02 \x01(\x03R\bparentId\x12.\n" +
"\x04name\x18\x03 \x01(\tB\x1a\xfaB\x04r\x02\x18<\xb2\xb9\x19\x0f\n" +
"\rindex;size:60R\x04name\x12+\n" +
"\x05label\x18\x04 \x01(\tB\x15\xfaB\x04r\x02\x18x\xb2\xb9\x19\n" +
"\n" +
"\bsize:120R\x05label\x12(\n" +
"\x03uri\x18\x05 \x01(\tB\x16\xfaB\x05r\x03\x18\x80\x04\xb2\xb9\x19\n" +
"\n" +
"\bsize:512R\x03uri\x123\n" +
"\tview_path\x18\x06 \x01(\tB\x16\xfaB\x05r\x03\x18\x80\x04\xb2\xb9\x19\n" +
"\n" +
"\bsize:512R\bviewPath\x12(\n" +
"\x04icon\x18\a \x01(\tB\x14\xfaB\x04r\x02\x18<\xb2\xb9\x19\t\n" +
"\asize:60R\x04icon\x12\x16\n" +
"\x06hidden\x18\b \x01(\bR\x06hidden\x12\x16\n" +
"\x06public\x18\t \x01(\bR\x06public:\v\xba\xb9\x19\a\n" +
"\x05menus\"\xcc\x01\n" +
"\x04Role\x12 \n" +
"\x02id\x18\x01 \x01(\x03B\x10\xb2\xb9\x19\f\n" +
"\n" +
"primaryKeyR\x02id\x12.\n" +
"\x04name\x18\x02 \x01(\tB\x1a\xfaB\x04r\x02\x18<\xb2\xb9\x19\x0f\n" +
"\rindex;size:60R\x04name\x12*\n" +
"\x05label\x18\x03 \x01(\tB\x14\xfaB\x04r\x02\x18<\xb2\xb9\x19\t\n" +
"\asize:60R\x05label\x129\n" +
"\vdescription\x18\x04 \x01(\tB\x17\xfaB\x05r\x03\x18\x80\b\xb2\xb9\x19\v\n" +
"\tsize:1024R\vdescription:\v\xba\xb9\x19\a\n" +
"\x05roles\"\xcf\x01\n" +
"\n" +
"Permission\x12 \n" +
"\x02id\x18\x01 \x01(\x03B\x10\xb2\xb9\x19\f\n" +
"\n" +
"primaryKeyR\x02id\x12$\n" +
"\amenu_id\x18\x02 \x01(\x03B\v\xb2\xb9\x19\a\n" +
"\x05indexR\x06menuId\x12:\n" +
"\n" +
"permission\x18\x03 \x01(\tB\x1a\xfaB\x04r\x02\x18<\xb2\xb9\x19\x0f\n" +
"\rindex;size:60R\n" +
"permission\x12*\n" +
"\x05label\x18\x04 \x01(\tB\x14\xfaB\x04r\x02\x18<\xb2\xb9\x19\t\n" +
"\asize:60R\x05label:\x11\xba\xb9\x19\r\n" +
"\vpermissions\"\x99\x01\n" +
"\x0eRolePermission\x12 \n" +
"\x02id\x18\x01 \x01(\x03B\x10\xb2\xb9\x19\f\n" +
"\n" +
"primaryKeyR\x02id\x12(\n" +
"\x04role\x18\x02 \x01(\tB\x14\xfaB\x04r\x02\x18<\xb2\xb9\x19\t\n" +
"\asize:60R\x04role\x12#\n" +
"\rpermission_id\x18\x03 \x01(\x03R\fpermissionId:\x16\xba\xb9\x19\x12\n" +
"\x10role_permissions\"\xf6\x04\n" +
"\x04User\x12 \n" +
"\x02id\x18\x01 \x01(\x03B\x10\xb2\xb9\x19\f\n" +
"\n" +
"primaryKeyR\x02id\x12\x1d\n" +
"\n" +
"created_at\x18\x02 \x01(\x03R\tcreatedAt\x12\x1d\n" +
"\n" +
"updated_at\x18\x03 \x01(\x03R\tupdatedAt\x12.\n" +
"\x03uid\x18\x04 \x01(\tB\x1c\xfaB\x06r\x04\x10\x05\x18\x14\xb2\xb9\x19\x0f\n" +
"\rindex;size:20R\x03uid\x122\n" +
"\busername\x18\x05 \x01(\tB\x16\xfaB\x06r\x04\x10\x05\x18\x14\xb2\xb9\x19\t\n" +
"\asize:20R\busername\x12(\n" +
"\x04role\x18\x06 \x01(\tB\x14\xfaB\x04r\x02\x18<\xb2\xb9\x19\t\n" +
"\asize:60R\x04role\x12\x14\n" +
"\x05admin\x18\a \x01(\bR\x05admin\x121\n" +
"\adept_id\x18\b \x01(\x03B\x18\xb2\xb9\x19\x14\n" +
"\x12not null;default:0R\x06deptId\x12&\n" +
"\x03tag\x18\t \x01(\tB\x14\xfaB\x04r\x02\x18<\xb2\xb9\x19\t\n" +
"\asize:60R\x03tag\x120\n" +
"\bpassword\x18\n" +
" \x01(\tB\x14\xfaB\x04r\x02\x18<\xb2\xb9\x19\t\n" +
"\asize:60R\bpassword\x12*\n" +
"\x05email\x18\v \x01(\tB\x14\xfaB\x04r\x02\x18<\xb2\xb9\x19\t\n" +
"\asize:60R\x05email\x12/\n" +
"\x06avatar\x18\f \x01(\tB\x17\xfaB\x05r\x03\x18\x80\b\xb2\xb9\x19\v\n" +
"\tsize:1024R\x06avatar\x128\n" +
"\x06gender\x18\r \x01(\tB \xfaB\x04r\x02\x18\x14\xb2\xb9\x19\x15\n" +
"\x13size:20;default:manR\x06gender\x129\n" +
"\vdescription\x18\x0e \x01(\tB\x17\xfaB\x05r\x03\x18\x80\b\xb2\xb9\x19\v\n" +
"\tsize:1024R\vdescription:\v\xba\xb9\x19\a\n" +
"\x05users\"\x81\x02\n" +
"\n" +
"Department\x12 \n" +
"\x02id\x18\x01 \x01(\x03B\x10\xb2\xb9\x19\f\n" +
"\n" +
"primaryKeyR\x02id\x12\x1d\n" +
"\n" +
"created_at\x18\x02 \x01(\x03R\tcreatedAt\x12\x1d\n" +
"\n" +
"updated_at\x18\x03 \x01(\x03R\tupdatedAt\x12\x1b\n" +
"\tparent_id\x18\x04 \x01(\x03R\bparentId\x12(\n" +
"\x04name\x18\x05 \x01(\tB\x14\xfaB\x04r\x02\x18\x14\xb2\xb9\x19\t\n" +
"\asize:20R\x04name\x129\n" +
"\vdescription\x18\x06 \x01(\tB\x17\xfaB\x05r\x03\x18\x80\b\xb2\xb9\x19\v\n" +
"\tsize:1024R\vdescription:\x11\xba\xb9\x19\r\n" +
"\vdepartments\"<\n" +
"\x0ePermissionItem\x12\x14\n" +
"\x05value\x18\x01 \x01(\tR\x05value\x12\x14\n" +
"\x05label\x18\x02 \x01(\tR\x05label\"\xfa\x01\n" +
"\bMenuItem\x12\x14\n" +
"\x05label\x18\x01 \x01(\tR\x05label\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n" +
"\x04icon\x18\x03 \x01(\tR\x04icon\x12\x16\n" +
"\x06hidden\x18\x04 \x01(\bR\x06hidden\x12\x16\n" +
"\x06public\x18\x05 \x01(\bR\x06public\x12\x14\n" +
"\x05route\x18\x06 \x01(\tR\x05route\x12:\n" +
"\vpermissions\x18\a \x03(\v2\x18.organize.PermissionItemR\vpermissions\x12.\n" +
"\bchildren\x18\b \x03(\v2\x12.organize.MenuItemR\bchildren\"0\n" +
"\x0eGetMenuRequest\x12\x1e\n" +
"\n" +
"permission\x18\x01 \x01(\bR\n" +
"permission\"9\n" +
"\x0fGetMenuResponse\x12&\n" +
"\x04data\x18\x01 \x03(\v2\x12.organize.MenuItemR\x04data\"%\n" +
"\x11GetProfileRequest\x12\x10\n" +
"\x03uid\x18\x01 \x01(\tR\x03uid\"\xbc\x01\n" +
"\x12GetProfileResponse\x12\x10\n" +
"\x03uid\x18\x01 \x01(\tR\x03uid\x12\x1a\n" +
"\busername\x18\x02 \x01(\tR\busername\x12\x12\n" +
"\x04role\x18\x03 \x01(\tR\x04role\x12\x14\n" +
"\x05email\x18\x04 \x01(\tR\x05email\x12\x16\n" +
"\x06avatar\x18\x05 \x01(\tR\x06avatar\x12\x14\n" +
"\x05admin\x18\x06 \x01(\bR\x05admin\x12 \n" +
"\vdescription\x18\a \x01(\tR\vdescription\"n\n" +
"\x14ResetPasswordRequest\x12\x10\n" +
"\x03uid\x18\x01 \x01(\tR\x03uid\x12!\n" +
"\fold_password\x18\x02 \x01(\tR\voldPassword\x12!\n" +
"\fnew_password\x18\x03 \x01(\tR\vnewPassword\")\n" +
"\x15ResetPasswordResponse\x12\x10\n" +
"\x03uid\x18\x01 \x01(\tR\x03uid\"\x94\x01\n" +
"\x14UpdateProfileRequest\x12\x10\n" +
"\x03uid\x18\x01 \x01(\tR\x03uid\x12\x1a\n" +
"\busername\x18\x02 \x01(\tR\busername\x12\x14\n" +
"\x05email\x18\x04 \x01(\tR\x05email\x12\x16\n" +
"\x06avatar\x18\x05 \x01(\tR\x06avatar\x12 \n" +
"\vdescription\x18\a \x01(\tR\vdescription\")\n" +
"\x15UpdateProfileResponse\x12\x10\n" +
"\x03uid\x18\x01 \x01(\tR\x03uid\"\\\n" +
"\fLoginRequest\x12\x1a\n" +
"\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" +
"\bpassword\x18\x02 \x01(\tR\bpassword\x12\x14\n" +
"\x05token\x18\x03 \x01(\tR\x05token\"m\n" +
"\rLoginResponse\x12\x10\n" +
"\x03uid\x18\x01 \x01(\tR\x03uid\x12\x1a\n" +
"\busername\x18\x02 \x01(\tR\busername\x12\x14\n" +
"\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n" +
"\aexpires\x18\x04 \x01(\x03R\aexpires\"%\n" +
"\rLogoutRequest\x12\x14\n" +
"\x05token\x18\x01 \x01(\tR\x05token\"\"\n" +
"\x0eLogoutResponse\x12\x10\n" +
"\x03uid\x18\x01 \x01(\tR\x03uid2a\n" +
"\vMenuService\x12R\n" +
"\bGetMenus\x12\x18.organize.GetMenuRequest\x1a\x19.organize.GetMenuResponse\"\x11\x82\xd3\xe4\x93\x02\v\x12\t/api/menu2\xcf\x02\n" +
"\x0eProfileService\x12^\n" +
"\n" +
"GetProfile\x12\x1b.organize.GetProfileRequest\x1a\x1c.organize.GetProfileResponse\"\x15\x82\xd3\xe4\x93\x02\x0f\x12\r/user/profile\x12j\n" +
"\rUpdateProfile\x12\x1e.organize.UpdateProfileRequest\x1a\x1f.organize.UpdateProfileResponse\"\x18\x82\xd3\xe4\x93\x02\x12:\x01*\x1a\r/user/profile\x12q\n" +
"\rResetPassword\x12\x1e.organize.ResetPasswordRequest\x1a\x1f.organize.ResetPasswordResponse\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/user/reset-password2\xbd\x01\n" +
"\vAuthService\x12T\n" +
"\x05Login\x12\x16.organize.LoginRequest\x1a\x17.organize.LoginResponse\"\x1a\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/passport/login\x12X\n" +
"\x06Logout\x12\x17.organize.LogoutRequest\x1a\x18.organize.LogoutResponse\"\x1b\x82\xd3\xe4\x93\x02\x15:\x01*\"\x10/passport/logoutB&Z$git.nobla.cn/golang/aeis-admin/pb;pbb\x06proto3"
var (
file_organize_proto_rawDescOnce sync.Once
file_organize_proto_rawDescData []byte
)
func file_organize_proto_rawDescGZIP() []byte {
file_organize_proto_rawDescOnce.Do(func() {
file_organize_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_organize_proto_rawDesc), len(file_organize_proto_rawDesc)))
})
return file_organize_proto_rawDescData
}
var file_organize_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
var file_organize_proto_goTypes = []any{
(*Menu)(nil), // 0: organize.Menu
(*Role)(nil), // 1: organize.Role
(*Permission)(nil), // 2: organize.Permission
(*RolePermission)(nil), // 3: organize.RolePermission
(*User)(nil), // 4: organize.User
(*Department)(nil), // 5: organize.Department
(*PermissionItem)(nil), // 6: organize.PermissionItem
(*MenuItem)(nil), // 7: organize.MenuItem
(*GetMenuRequest)(nil), // 8: organize.GetMenuRequest
(*GetMenuResponse)(nil), // 9: organize.GetMenuResponse
(*GetProfileRequest)(nil), // 10: organize.GetProfileRequest
(*GetProfileResponse)(nil), // 11: organize.GetProfileResponse
(*ResetPasswordRequest)(nil), // 12: organize.ResetPasswordRequest
(*ResetPasswordResponse)(nil), // 13: organize.ResetPasswordResponse
(*UpdateProfileRequest)(nil), // 14: organize.UpdateProfileRequest
(*UpdateProfileResponse)(nil), // 15: organize.UpdateProfileResponse
(*LoginRequest)(nil), // 16: organize.LoginRequest
(*LoginResponse)(nil), // 17: organize.LoginResponse
(*LogoutRequest)(nil), // 18: organize.LogoutRequest
(*LogoutResponse)(nil), // 19: organize.LogoutResponse
}
var file_organize_proto_depIdxs = []int32{
6, // 0: organize.MenuItem.permissions:type_name -> organize.PermissionItem
7, // 1: organize.MenuItem.children:type_name -> organize.MenuItem
7, // 2: organize.GetMenuResponse.data:type_name -> organize.MenuItem
8, // 3: organize.MenuService.GetMenus:input_type -> organize.GetMenuRequest
10, // 4: organize.ProfileService.GetProfile:input_type -> organize.GetProfileRequest
14, // 5: organize.ProfileService.UpdateProfile:input_type -> organize.UpdateProfileRequest
12, // 6: organize.ProfileService.ResetPassword:input_type -> organize.ResetPasswordRequest
16, // 7: organize.AuthService.Login:input_type -> organize.LoginRequest
18, // 8: organize.AuthService.Logout:input_type -> organize.LogoutRequest
9, // 9: organize.MenuService.GetMenus:output_type -> organize.GetMenuResponse
11, // 10: organize.ProfileService.GetProfile:output_type -> organize.GetProfileResponse
15, // 11: organize.ProfileService.UpdateProfile:output_type -> organize.UpdateProfileResponse
13, // 12: organize.ProfileService.ResetPassword:output_type -> organize.ResetPasswordResponse
17, // 13: organize.AuthService.Login:output_type -> organize.LoginResponse
19, // 14: organize.AuthService.Logout:output_type -> organize.LogoutResponse
9, // [9:15] is the sub-list for method output_type
3, // [3:9] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_organize_proto_init() }
func file_organize_proto_init() {
if File_organize_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_organize_proto_rawDesc), len(file_organize_proto_rawDesc)),
NumEnums: 0,
NumMessages: 20,
NumExtensions: 0,
NumServices: 3,
},
GoTypes: file_organize_proto_goTypes,
DependencyIndexes: file_organize_proto_depIdxs,
MessageInfos: file_organize_proto_msgTypes,
}.Build()
File_organize_proto = out.File
file_organize_proto_goTypes = nil
file_organize_proto_depIdxs = nil
}