github.com/infraboard/keyauth@v0.8.1/apps/user/user.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.27.1
     4  // 	protoc        v3.19.1
     5  // source: apps/user/pb/user.proto
     6  
     7  package user
     8  
     9  import (
    10  	department "github.com/infraboard/keyauth/apps/department"
    11  	types "github.com/infraboard/keyauth/apps/user/types"
    12  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    13  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    14  	reflect "reflect"
    15  	sync "sync"
    16  )
    17  
    18  const (
    19  	// Verify that this generated code is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    21  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    22  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    23  )
    24  
    25  type Password struct {
    26  	state         protoimpl.MessageState
    27  	sizeCache     protoimpl.SizeCache
    28  	unknownFields protoimpl.UnknownFields
    29  
    30  	// hash过后的密码
    31  	// @gotags: bson:"password" json:"password,omitempty"
    32  	Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty" bson:"password"`
    33  	// 密码创建时间
    34  	// @gotags: bson:"create_at" json:"create_at,omitempty"
    35  	CreateAt int64 `protobuf:"varint,2,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty" bson:"create_at"`
    36  	// 密码更新时间
    37  	// @gotags: bson:"update_at" json:"update_at,omitempty"
    38  	UpdateAt int64 `protobuf:"varint,3,opt,name=update_at,json=updateAt,proto3" json:"update_at,omitempty" bson:"update_at"`
    39  	// 密码需要被重置
    40  	// @gotags: bson:"need_reset" json:"need_reset"
    41  	NeedReset bool `protobuf:"varint,4,opt,name=need_reset,json=needReset,proto3" json:"need_reset" bson:"need_reset"`
    42  	// 需要重置的原因
    43  	// @gotags: bson:"reset_reason" json:"reset_reason"
    44  	ResetReason string `protobuf:"bytes,5,opt,name=reset_reason,json=resetReason,proto3" json:"reset_reason" bson:"reset_reason"`
    45  	// 历史密码
    46  	// @gotags: bson:"history" json:"history,omitempty"
    47  	History []string `protobuf:"bytes,6,rep,name=history,proto3" json:"history,omitempty" bson:"history"`
    48  	// 是否过期
    49  	// @gotags: bson:"-" json:"is_expired"
    50  	IsExpired bool `protobuf:"varint,7,opt,name=is_expired,json=isExpired,proto3" json:"is_expired" bson:"-"`
    51  }
    52  
    53  func (x *Password) Reset() {
    54  	*x = Password{}
    55  	if protoimpl.UnsafeEnabled {
    56  		mi := &file_apps_user_pb_user_proto_msgTypes[0]
    57  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    58  		ms.StoreMessageInfo(mi)
    59  	}
    60  }
    61  
    62  func (x *Password) String() string {
    63  	return protoimpl.X.MessageStringOf(x)
    64  }
    65  
    66  func (*Password) ProtoMessage() {}
    67  
    68  func (x *Password) ProtoReflect() protoreflect.Message {
    69  	mi := &file_apps_user_pb_user_proto_msgTypes[0]
    70  	if protoimpl.UnsafeEnabled && x != nil {
    71  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    72  		if ms.LoadMessageInfo() == nil {
    73  			ms.StoreMessageInfo(mi)
    74  		}
    75  		return ms
    76  	}
    77  	return mi.MessageOf(x)
    78  }
    79  
    80  // Deprecated: Use Password.ProtoReflect.Descriptor instead.
    81  func (*Password) Descriptor() ([]byte, []int) {
    82  	return file_apps_user_pb_user_proto_rawDescGZIP(), []int{0}
    83  }
    84  
    85  func (x *Password) GetPassword() string {
    86  	if x != nil {
    87  		return x.Password
    88  	}
    89  	return ""
    90  }
    91  
    92  func (x *Password) GetCreateAt() int64 {
    93  	if x != nil {
    94  		return x.CreateAt
    95  	}
    96  	return 0
    97  }
    98  
    99  func (x *Password) GetUpdateAt() int64 {
   100  	if x != nil {
   101  		return x.UpdateAt
   102  	}
   103  	return 0
   104  }
   105  
   106  func (x *Password) GetNeedReset() bool {
   107  	if x != nil {
   108  		return x.NeedReset
   109  	}
   110  	return false
   111  }
   112  
   113  func (x *Password) GetResetReason() string {
   114  	if x != nil {
   115  		return x.ResetReason
   116  	}
   117  	return ""
   118  }
   119  
   120  func (x *Password) GetHistory() []string {
   121  	if x != nil {
   122  		return x.History
   123  	}
   124  	return nil
   125  }
   126  
   127  func (x *Password) GetIsExpired() bool {
   128  	if x != nil {
   129  		return x.IsExpired
   130  	}
   131  	return false
   132  }
   133  
   134  // Status 用户状态
   135  type Status struct {
   136  	state         protoimpl.MessageState
   137  	sizeCache     protoimpl.SizeCache
   138  	unknownFields protoimpl.UnknownFields
   139  
   140  	// 是否冻结
   141  	// @gotags: bson:"locked" json:"locked"
   142  	Locked bool `protobuf:"varint,1,opt,name=locked,proto3" json:"locked" bson:"locked"`
   143  	// 冻结时间
   144  	// @gotags: bson:"locked_time" json:"locked_time,omitempty"
   145  	LockedTime int64 `protobuf:"varint,2,opt,name=locked_time,json=lockedTime,proto3" json:"locked_time,omitempty" bson:"locked_time"`
   146  	// 冻结原因
   147  	// @gotags: bson:"locked_reson" json:"locked_reson,omitempty"
   148  	LockedReson string `protobuf:"bytes,3,opt,name=locked_reson,json=lockedReson,proto3" json:"locked_reson,omitempty" bson:"locked_reson"`
   149  	// 解冻时间
   150  	// @gotags: bson:"unlock_time" json:"unlock_time,omitempty"
   151  	UnlockTime int64 `protobuf:"varint,4,opt,name=unlock_time,json=unlockTime,proto3" json:"unlock_time,omitempty" bson:"unlock_time"`
   152  }
   153  
   154  func (x *Status) Reset() {
   155  	*x = Status{}
   156  	if protoimpl.UnsafeEnabled {
   157  		mi := &file_apps_user_pb_user_proto_msgTypes[1]
   158  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   159  		ms.StoreMessageInfo(mi)
   160  	}
   161  }
   162  
   163  func (x *Status) String() string {
   164  	return protoimpl.X.MessageStringOf(x)
   165  }
   166  
   167  func (*Status) ProtoMessage() {}
   168  
   169  func (x *Status) ProtoReflect() protoreflect.Message {
   170  	mi := &file_apps_user_pb_user_proto_msgTypes[1]
   171  	if protoimpl.UnsafeEnabled && x != nil {
   172  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   173  		if ms.LoadMessageInfo() == nil {
   174  			ms.StoreMessageInfo(mi)
   175  		}
   176  		return ms
   177  	}
   178  	return mi.MessageOf(x)
   179  }
   180  
   181  // Deprecated: Use Status.ProtoReflect.Descriptor instead.
   182  func (*Status) Descriptor() ([]byte, []int) {
   183  	return file_apps_user_pb_user_proto_rawDescGZIP(), []int{1}
   184  }
   185  
   186  func (x *Status) GetLocked() bool {
   187  	if x != nil {
   188  		return x.Locked
   189  	}
   190  	return false
   191  }
   192  
   193  func (x *Status) GetLockedTime() int64 {
   194  	if x != nil {
   195  		return x.LockedTime
   196  	}
   197  	return 0
   198  }
   199  
   200  func (x *Status) GetLockedReson() string {
   201  	if x != nil {
   202  		return x.LockedReson
   203  	}
   204  	return ""
   205  }
   206  
   207  func (x *Status) GetUnlockTime() int64 {
   208  	if x != nil {
   209  		return x.UnlockTime
   210  	}
   211  	return 0
   212  }
   213  
   214  // User info
   215  type User struct {
   216  	state         protoimpl.MessageState
   217  	sizeCache     protoimpl.SizeCache
   218  	unknownFields protoimpl.UnknownFields
   219  
   220  	// 用户所属部门
   221  	// @gotags: bson:"department_id" json:"department_id" validate:"lte=200"
   222  	DepartmentId string `protobuf:"bytes,1,opt,name=department_id,json=departmentId,proto3" json:"department_id" bson:"department_id" validate:"lte=200"`
   223  	// 用户账号名称
   224  	// @gotags: bson:"_id" json:"account" validate:"required,lte=60"
   225  	Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account" bson:"_id" validate:"required,lte=60"`
   226  	// 创建方式
   227  	// @gotags: bson:"create_type" json:"create_type"
   228  	CreateType CreateType `protobuf:"varint,3,opt,name=create_type,json=createType,proto3,enum=infraboard.keyauth.user.CreateType" json:"create_type" bson:"create_type"`
   229  	// 用户创建的时间
   230  	// @gotags: bson:"create_at" json:"create_at,omitempty"
   231  	CreateAt int64 `protobuf:"varint,4,opt,name=create_at,json=createAt,proto3" json:"create_at,omitempty" bson:"create_at"`
   232  	// 修改时间
   233  	// @gotags: bson:"update_at" json:"update_at,omitempty"
   234  	UpdateAt int64 `protobuf:"varint,5,opt,name=update_at,json=updateAt,proto3" json:"update_at,omitempty" bson:"update_at"`
   235  	// 如果是子账号和服务账号 都需要继承主用户Domain
   236  	// @gotags: bson:"domain" json:"domain,omitempty"
   237  	Domain string `protobuf:"bytes,6,opt,name=domain,proto3" json:"domain,omitempty" bson:"domain"`
   238  	// 是否是主账号
   239  	// @gotags: bson:"type"  json:"type"
   240  	Type types.UserType `protobuf:"varint,7,opt,name=type,proto3,enum=infraboard.keyauth.user.UserType" json:"type" bson:"type"`
   241  	// 数据
   242  	// @gotags: bson:"profile" json:"profile"
   243  	Profile *Profile `protobuf:"bytes,8,opt,name=profile,proto3" json:"profile" bson:"profile"`
   244  	// 用户的角色(当携带Namesapce查询时会有)
   245  	// @gotags: bson:"-" json:"roles,omitempty"
   246  	Roles []string `protobuf:"bytes,9,rep,name=roles,proto3" json:"roles,omitempty" bson:"-"`
   247  	// 用户多久未登录时(天), 冻结改用户, 防止僵尸用户的账号被利用
   248  	// @gotags: bson:"expires_days" json:"expires_days"
   249  	ExpiresDays int32 `protobuf:"varint,10,opt,name=expires_days,json=expiresDays,proto3" json:"expires_days" bson:"expires_days"`
   250  	// 用户描述
   251  	// @gotags: json:"description"
   252  	Description string `protobuf:"bytes,11,opt,name=description,proto3" json:"description"`
   253  	// 用户是否初始化
   254  	// @gotags: bson:"is_initialized" json:"is_initialized"
   255  	IsInitialized bool `protobuf:"varint,12,opt,name=is_initialized,json=isInitialized,proto3" json:"is_initialized" bson:"is_initialized"`
   256  	// 密码相关信息
   257  	// @gotags: bson:"password" json:"password"
   258  	HashedPassword *Password `protobuf:"bytes,13,opt,name=hashed_password,json=hashedPassword,proto3" json:"password" bson:"password"`
   259  	// 用户状态
   260  	// @gotags: bson:"status" json:"status"
   261  	Status *Status `protobuf:"bytes,14,opt,name=status,proto3" json:"status" bson:"status"`
   262  	// 部门
   263  	// @gotags: bson:"-" json:"department,omitempty"
   264  	Department *department.Department `protobuf:"bytes,15,opt,name=department,proto3" json:"department,omitempty" bson:"-"`
   265  }
   266  
   267  func (x *User) Reset() {
   268  	*x = User{}
   269  	if protoimpl.UnsafeEnabled {
   270  		mi := &file_apps_user_pb_user_proto_msgTypes[2]
   271  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   272  		ms.StoreMessageInfo(mi)
   273  	}
   274  }
   275  
   276  func (x *User) String() string {
   277  	return protoimpl.X.MessageStringOf(x)
   278  }
   279  
   280  func (*User) ProtoMessage() {}
   281  
   282  func (x *User) ProtoReflect() protoreflect.Message {
   283  	mi := &file_apps_user_pb_user_proto_msgTypes[2]
   284  	if protoimpl.UnsafeEnabled && x != nil {
   285  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   286  		if ms.LoadMessageInfo() == nil {
   287  			ms.StoreMessageInfo(mi)
   288  		}
   289  		return ms
   290  	}
   291  	return mi.MessageOf(x)
   292  }
   293  
   294  // Deprecated: Use User.ProtoReflect.Descriptor instead.
   295  func (*User) Descriptor() ([]byte, []int) {
   296  	return file_apps_user_pb_user_proto_rawDescGZIP(), []int{2}
   297  }
   298  
   299  func (x *User) GetDepartmentId() string {
   300  	if x != nil {
   301  		return x.DepartmentId
   302  	}
   303  	return ""
   304  }
   305  
   306  func (x *User) GetAccount() string {
   307  	if x != nil {
   308  		return x.Account
   309  	}
   310  	return ""
   311  }
   312  
   313  func (x *User) GetCreateType() CreateType {
   314  	if x != nil {
   315  		return x.CreateType
   316  	}
   317  	return CreateType_USER_REGISTRY
   318  }
   319  
   320  func (x *User) GetCreateAt() int64 {
   321  	if x != nil {
   322  		return x.CreateAt
   323  	}
   324  	return 0
   325  }
   326  
   327  func (x *User) GetUpdateAt() int64 {
   328  	if x != nil {
   329  		return x.UpdateAt
   330  	}
   331  	return 0
   332  }
   333  
   334  func (x *User) GetDomain() string {
   335  	if x != nil {
   336  		return x.Domain
   337  	}
   338  	return ""
   339  }
   340  
   341  func (x *User) GetType() types.UserType {
   342  	if x != nil {
   343  		return x.Type
   344  	}
   345  	return types.UserType(0)
   346  }
   347  
   348  func (x *User) GetProfile() *Profile {
   349  	if x != nil {
   350  		return x.Profile
   351  	}
   352  	return nil
   353  }
   354  
   355  func (x *User) GetRoles() []string {
   356  	if x != nil {
   357  		return x.Roles
   358  	}
   359  	return nil
   360  }
   361  
   362  func (x *User) GetExpiresDays() int32 {
   363  	if x != nil {
   364  		return x.ExpiresDays
   365  	}
   366  	return 0
   367  }
   368  
   369  func (x *User) GetDescription() string {
   370  	if x != nil {
   371  		return x.Description
   372  	}
   373  	return ""
   374  }
   375  
   376  func (x *User) GetIsInitialized() bool {
   377  	if x != nil {
   378  		return x.IsInitialized
   379  	}
   380  	return false
   381  }
   382  
   383  func (x *User) GetHashedPassword() *Password {
   384  	if x != nil {
   385  		return x.HashedPassword
   386  	}
   387  	return nil
   388  }
   389  
   390  func (x *User) GetStatus() *Status {
   391  	if x != nil {
   392  		return x.Status
   393  	}
   394  	return nil
   395  }
   396  
   397  func (x *User) GetDepartment() *department.Department {
   398  	if x != nil {
   399  		return x.Department
   400  	}
   401  	return nil
   402  }
   403  
   404  type Set struct {
   405  	state         protoimpl.MessageState
   406  	sizeCache     protoimpl.SizeCache
   407  	unknownFields protoimpl.UnknownFields
   408  
   409  	// @gotags: bson:"total" json:"total"
   410  	Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total" bson:"total"`
   411  	// @gotags: bson:"items" json:"items"
   412  	Items []*User `protobuf:"bytes,2,rep,name=items,proto3" json:"items" bson:"items"`
   413  }
   414  
   415  func (x *Set) Reset() {
   416  	*x = Set{}
   417  	if protoimpl.UnsafeEnabled {
   418  		mi := &file_apps_user_pb_user_proto_msgTypes[3]
   419  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   420  		ms.StoreMessageInfo(mi)
   421  	}
   422  }
   423  
   424  func (x *Set) String() string {
   425  	return protoimpl.X.MessageStringOf(x)
   426  }
   427  
   428  func (*Set) ProtoMessage() {}
   429  
   430  func (x *Set) ProtoReflect() protoreflect.Message {
   431  	mi := &file_apps_user_pb_user_proto_msgTypes[3]
   432  	if protoimpl.UnsafeEnabled && x != nil {
   433  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   434  		if ms.LoadMessageInfo() == nil {
   435  			ms.StoreMessageInfo(mi)
   436  		}
   437  		return ms
   438  	}
   439  	return mi.MessageOf(x)
   440  }
   441  
   442  // Deprecated: Use Set.ProtoReflect.Descriptor instead.
   443  func (*Set) Descriptor() ([]byte, []int) {
   444  	return file_apps_user_pb_user_proto_rawDescGZIP(), []int{3}
   445  }
   446  
   447  func (x *Set) GetTotal() int64 {
   448  	if x != nil {
   449  		return x.Total
   450  	}
   451  	return 0
   452  }
   453  
   454  func (x *Set) GetItems() []*User {
   455  	if x != nil {
   456  		return x.Items
   457  	}
   458  	return nil
   459  }
   460  
   461  var File_apps_user_pb_user_proto protoreflect.FileDescriptor
   462  
   463  var file_apps_user_pb_user_proto_rawDesc = []byte{
   464  	0x0a, 0x17, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x70, 0x62, 0x2f, 0x75,
   465  	0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x69, 0x6e, 0x66, 0x72, 0x61,
   466  	0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x75, 0x73,
   467  	0x65, 0x72, 0x1a, 0x23, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d,
   468  	0x65, 0x6e, 0x74, 0x2f, 0x70, 0x62, 0x2f, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e,
   469  	0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x75, 0x73,
   470  	0x65, 0x72, 0x2f, 0x70, 0x62, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   471  	0x6f, 0x1a, 0x1a, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x70, 0x62, 0x2f,
   472  	0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x61,
   473  	0x70, 0x70, 0x73, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x70, 0x62, 0x2f, 0x65, 0x6e, 0x75, 0x6d,
   474  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdb, 0x01, 0x0a, 0x08, 0x50, 0x61, 0x73, 0x73, 0x77,
   475  	0x6f, 0x72, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18,
   476  	0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12,
   477  	0x1b, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01,
   478  	0x28, 0x03, 0x52, 0x08, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x1b, 0x0a, 0x09,
   479  	0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
   480  	0x08, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x65, 0x65,
   481  	0x64, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x6e,
   482  	0x65, 0x65, 0x64, 0x52, 0x65, 0x73, 0x65, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x65,
   483  	0x74, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
   484  	0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x68,
   485  	0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x68, 0x69,
   486  	0x73, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x65, 0x78, 0x70, 0x69,
   487  	0x72, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x45, 0x78, 0x70,
   488  	0x69, 0x72, 0x65, 0x64, 0x22, 0x85, 0x01, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12,
   489  	0x16, 0x0a, 0x06, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52,
   490  	0x06, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x6c, 0x6f, 0x63, 0x6b, 0x65,
   491  	0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6c, 0x6f,
   492  	0x63, 0x6b, 0x65, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x6f, 0x63, 0x6b,
   493  	0x65, 0x64, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
   494  	0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x75,
   495  	0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03,
   496  	0x52, 0x0a, 0x75, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xa2, 0x05, 0x0a,
   497  	0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d,
   498  	0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x65,
   499  	0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63,
   500  	0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63,
   501  	0x6f, 0x75, 0x6e, 0x74, 0x12, 0x44, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74,
   502  	0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x69, 0x6e, 0x66, 0x72,
   503  	0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x75,
   504  	0x73, 0x65, 0x72, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a,
   505  	0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x72,
   506  	0x65, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x63,
   507  	0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74,
   508  	0x65, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x70, 0x64, 0x61,
   509  	0x74, 0x65, 0x41, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x06,
   510  	0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x35, 0x0a, 0x04,
   511  	0x74, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x69, 0x6e, 0x66,
   512  	0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e,
   513  	0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74,
   514  	0x79, 0x70, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x08,
   515  	0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72,
   516  	0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x50,
   517  	0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12,
   518  	0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05,
   519  	0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73,
   520  	0x5f, 0x64, 0x61, 0x79, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x65, 0x78, 0x70,
   521  	0x69, 0x72, 0x65, 0x73, 0x44, 0x61, 0x79, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63,
   522  	0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64,
   523  	0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x73,
   524  	0x5f, 0x69, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x18, 0x0c, 0x20, 0x01,
   525  	0x28, 0x08, 0x52, 0x0d, 0x69, 0x73, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x6c, 0x69, 0x7a, 0x65,
   526  	0x64, 0x12, 0x4a, 0x0a, 0x0f, 0x68, 0x61, 0x73, 0x68, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x73, 0x73,
   527  	0x77, 0x6f, 0x72, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x69, 0x6e, 0x66,
   528  	0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e,
   529  	0x75, 0x73, 0x65, 0x72, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x52, 0x0e, 0x68,
   530  	0x61, 0x73, 0x68, 0x65, 0x64, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x37, 0x0a,
   531  	0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
   532  	0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75,
   533  	0x74, 0x68, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06,
   534  	0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x49, 0x0a, 0x0a, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74,
   535  	0x6d, 0x65, 0x6e, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x69, 0x6e, 0x66,
   536  	0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e,
   537  	0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x44, 0x65, 0x70, 0x61, 0x72,
   538  	0x74, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e,
   539  	0x74, 0x22, 0x50, 0x0a, 0x03, 0x53, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61,
   540  	0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x12, 0x33,
   541  	0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e,
   542  	0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75,
   543  	0x74, 0x68, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x69, 0x74,
   544  	0x65, 0x6d, 0x73, 0x42, 0x29, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
   545  	0x6d, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x6b, 0x65, 0x79,
   546  	0x61, 0x75, 0x74, 0x68, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x62, 0x06,
   547  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   548  }
   549  
   550  var (
   551  	file_apps_user_pb_user_proto_rawDescOnce sync.Once
   552  	file_apps_user_pb_user_proto_rawDescData = file_apps_user_pb_user_proto_rawDesc
   553  )
   554  
   555  func file_apps_user_pb_user_proto_rawDescGZIP() []byte {
   556  	file_apps_user_pb_user_proto_rawDescOnce.Do(func() {
   557  		file_apps_user_pb_user_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_user_pb_user_proto_rawDescData)
   558  	})
   559  	return file_apps_user_pb_user_proto_rawDescData
   560  }
   561  
   562  var file_apps_user_pb_user_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   563  var file_apps_user_pb_user_proto_goTypes = []interface{}{
   564  	(*Password)(nil),              // 0: infraboard.keyauth.user.Password
   565  	(*Status)(nil),                // 1: infraboard.keyauth.user.Status
   566  	(*User)(nil),                  // 2: infraboard.keyauth.user.User
   567  	(*Set)(nil),                   // 3: infraboard.keyauth.user.Set
   568  	(CreateType)(0),               // 4: infraboard.keyauth.user.CreateType
   569  	(types.UserType)(0),           // 5: infraboard.keyauth.user.UserType
   570  	(*Profile)(nil),               // 6: infraboard.keyauth.user.Profile
   571  	(*department.Department)(nil), // 7: infraboard.keyauth.department.Department
   572  }
   573  var file_apps_user_pb_user_proto_depIdxs = []int32{
   574  	4, // 0: infraboard.keyauth.user.User.create_type:type_name -> infraboard.keyauth.user.CreateType
   575  	5, // 1: infraboard.keyauth.user.User.type:type_name -> infraboard.keyauth.user.UserType
   576  	6, // 2: infraboard.keyauth.user.User.profile:type_name -> infraboard.keyauth.user.Profile
   577  	0, // 3: infraboard.keyauth.user.User.hashed_password:type_name -> infraboard.keyauth.user.Password
   578  	1, // 4: infraboard.keyauth.user.User.status:type_name -> infraboard.keyauth.user.Status
   579  	7, // 5: infraboard.keyauth.user.User.department:type_name -> infraboard.keyauth.department.Department
   580  	2, // 6: infraboard.keyauth.user.Set.items:type_name -> infraboard.keyauth.user.User
   581  	7, // [7:7] is the sub-list for method output_type
   582  	7, // [7:7] is the sub-list for method input_type
   583  	7, // [7:7] is the sub-list for extension type_name
   584  	7, // [7:7] is the sub-list for extension extendee
   585  	0, // [0:7] is the sub-list for field type_name
   586  }
   587  
   588  func init() { file_apps_user_pb_user_proto_init() }
   589  func file_apps_user_pb_user_proto_init() {
   590  	if File_apps_user_pb_user_proto != nil {
   591  		return
   592  	}
   593  	file_apps_user_pb_request_proto_init()
   594  	file_apps_user_pb_enum_proto_init()
   595  	if !protoimpl.UnsafeEnabled {
   596  		file_apps_user_pb_user_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   597  			switch v := v.(*Password); i {
   598  			case 0:
   599  				return &v.state
   600  			case 1:
   601  				return &v.sizeCache
   602  			case 2:
   603  				return &v.unknownFields
   604  			default:
   605  				return nil
   606  			}
   607  		}
   608  		file_apps_user_pb_user_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   609  			switch v := v.(*Status); i {
   610  			case 0:
   611  				return &v.state
   612  			case 1:
   613  				return &v.sizeCache
   614  			case 2:
   615  				return &v.unknownFields
   616  			default:
   617  				return nil
   618  			}
   619  		}
   620  		file_apps_user_pb_user_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   621  			switch v := v.(*User); i {
   622  			case 0:
   623  				return &v.state
   624  			case 1:
   625  				return &v.sizeCache
   626  			case 2:
   627  				return &v.unknownFields
   628  			default:
   629  				return nil
   630  			}
   631  		}
   632  		file_apps_user_pb_user_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   633  			switch v := v.(*Set); i {
   634  			case 0:
   635  				return &v.state
   636  			case 1:
   637  				return &v.sizeCache
   638  			case 2:
   639  				return &v.unknownFields
   640  			default:
   641  				return nil
   642  			}
   643  		}
   644  	}
   645  	type x struct{}
   646  	out := protoimpl.TypeBuilder{
   647  		File: protoimpl.DescBuilder{
   648  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   649  			RawDescriptor: file_apps_user_pb_user_proto_rawDesc,
   650  			NumEnums:      0,
   651  			NumMessages:   4,
   652  			NumExtensions: 0,
   653  			NumServices:   0,
   654  		},
   655  		GoTypes:           file_apps_user_pb_user_proto_goTypes,
   656  		DependencyIndexes: file_apps_user_pb_user_proto_depIdxs,
   657  		MessageInfos:      file_apps_user_pb_user_proto_msgTypes,
   658  	}.Build()
   659  	File_apps_user_pb_user_proto = out.File
   660  	file_apps_user_pb_user_proto_rawDesc = nil
   661  	file_apps_user_pb_user_proto_goTypes = nil
   662  	file_apps_user_pb_user_proto_depIdxs = nil
   663  }