common.pb.go 60 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.31.0
  4. // protoc v4.25.0
  5. // source: proto/common.proto
  6. package authorization_client
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. // ------------ 公共 ------------
  20. type Base struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  25. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  26. }
  27. func (x *Base) Reset() {
  28. *x = Base{}
  29. if protoimpl.UnsafeEnabled {
  30. mi := &file_proto_common_proto_msgTypes[0]
  31. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  32. ms.StoreMessageInfo(mi)
  33. }
  34. }
  35. func (x *Base) String() string {
  36. return protoimpl.X.MessageStringOf(x)
  37. }
  38. func (*Base) ProtoMessage() {}
  39. func (x *Base) ProtoReflect() protoreflect.Message {
  40. mi := &file_proto_common_proto_msgTypes[0]
  41. if protoimpl.UnsafeEnabled && x != nil {
  42. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  43. if ms.LoadMessageInfo() == nil {
  44. ms.StoreMessageInfo(mi)
  45. }
  46. return ms
  47. }
  48. return mi.MessageOf(x)
  49. }
  50. // Deprecated: Use Base.ProtoReflect.Descriptor instead.
  51. func (*Base) Descriptor() ([]byte, []int) {
  52. return file_proto_common_proto_rawDescGZIP(), []int{0}
  53. }
  54. func (x *Base) GetKey() string {
  55. if x != nil {
  56. return x.Key
  57. }
  58. return ""
  59. }
  60. func (x *Base) GetValue() string {
  61. if x != nil {
  62. return x.Value
  63. }
  64. return ""
  65. }
  66. type Profile struct {
  67. state protoimpl.MessageState
  68. sizeCache protoimpl.SizeCache
  69. unknownFields protoimpl.UnknownFields
  70. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  71. Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
  72. Roles []*Base `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"`
  73. PhoneNumber string `protobuf:"bytes,4,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
  74. Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
  75. Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"`
  76. Birthdate int64 `protobuf:"varint,7,opt,name=birthdate,proto3" json:"birthdate,omitempty"`
  77. Bio string `protobuf:"bytes,8,opt,name=bio,proto3" json:"bio,omitempty"`
  78. Gender int32 `protobuf:"varint,9,opt,name=gender,proto3" json:"gender,omitempty"`
  79. }
  80. func (x *Profile) Reset() {
  81. *x = Profile{}
  82. if protoimpl.UnsafeEnabled {
  83. mi := &file_proto_common_proto_msgTypes[1]
  84. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  85. ms.StoreMessageInfo(mi)
  86. }
  87. }
  88. func (x *Profile) String() string {
  89. return protoimpl.X.MessageStringOf(x)
  90. }
  91. func (*Profile) ProtoMessage() {}
  92. func (x *Profile) ProtoReflect() protoreflect.Message {
  93. mi := &file_proto_common_proto_msgTypes[1]
  94. if protoimpl.UnsafeEnabled && x != nil {
  95. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  96. if ms.LoadMessageInfo() == nil {
  97. ms.StoreMessageInfo(mi)
  98. }
  99. return ms
  100. }
  101. return mi.MessageOf(x)
  102. }
  103. // Deprecated: Use Profile.ProtoReflect.Descriptor instead.
  104. func (*Profile) Descriptor() ([]byte, []int) {
  105. return file_proto_common_proto_rawDescGZIP(), []int{1}
  106. }
  107. func (x *Profile) GetId() int64 {
  108. if x != nil {
  109. return x.Id
  110. }
  111. return 0
  112. }
  113. func (x *Profile) GetUsername() string {
  114. if x != nil {
  115. return x.Username
  116. }
  117. return ""
  118. }
  119. func (x *Profile) GetRoles() []*Base {
  120. if x != nil {
  121. return x.Roles
  122. }
  123. return nil
  124. }
  125. func (x *Profile) GetPhoneNumber() string {
  126. if x != nil {
  127. return x.PhoneNumber
  128. }
  129. return ""
  130. }
  131. func (x *Profile) GetEmail() string {
  132. if x != nil {
  133. return x.Email
  134. }
  135. return ""
  136. }
  137. func (x *Profile) GetAvatar() string {
  138. if x != nil {
  139. return x.Avatar
  140. }
  141. return ""
  142. }
  143. func (x *Profile) GetBirthdate() int64 {
  144. if x != nil {
  145. return x.Birthdate
  146. }
  147. return 0
  148. }
  149. func (x *Profile) GetBio() string {
  150. if x != nil {
  151. return x.Bio
  152. }
  153. return ""
  154. }
  155. func (x *Profile) GetGender() int32 {
  156. if x != nil {
  157. return x.Gender
  158. }
  159. return 0
  160. }
  161. type LoginResponse struct {
  162. state protoimpl.MessageState
  163. sizeCache protoimpl.SizeCache
  164. unknownFields protoimpl.UnknownFields
  165. User *Profile `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
  166. Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
  167. }
  168. func (x *LoginResponse) Reset() {
  169. *x = LoginResponse{}
  170. if protoimpl.UnsafeEnabled {
  171. mi := &file_proto_common_proto_msgTypes[2]
  172. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  173. ms.StoreMessageInfo(mi)
  174. }
  175. }
  176. func (x *LoginResponse) String() string {
  177. return protoimpl.X.MessageStringOf(x)
  178. }
  179. func (*LoginResponse) ProtoMessage() {}
  180. func (x *LoginResponse) ProtoReflect() protoreflect.Message {
  181. mi := &file_proto_common_proto_msgTypes[2]
  182. if protoimpl.UnsafeEnabled && x != nil {
  183. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  184. if ms.LoadMessageInfo() == nil {
  185. ms.StoreMessageInfo(mi)
  186. }
  187. return ms
  188. }
  189. return mi.MessageOf(x)
  190. }
  191. // Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
  192. func (*LoginResponse) Descriptor() ([]byte, []int) {
  193. return file_proto_common_proto_rawDescGZIP(), []int{2}
  194. }
  195. func (x *LoginResponse) GetUser() *Profile {
  196. if x != nil {
  197. return x.User
  198. }
  199. return nil
  200. }
  201. func (x *LoginResponse) GetToken() string {
  202. if x != nil {
  203. return x.Token
  204. }
  205. return ""
  206. }
  207. // ------------ 角色列表 ------------
  208. type ListAdminRolesItems struct {
  209. state protoimpl.MessageState
  210. sizeCache protoimpl.SizeCache
  211. unknownFields protoimpl.UnknownFields
  212. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  213. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  214. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
  215. CreatedBy string `protobuf:"bytes,4,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
  216. CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  217. Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
  218. IsReserved bool `protobuf:"varint,7,opt,name=is_reserved,json=isReserved,proto3" json:"is_reserved,omitempty"`
  219. }
  220. func (x *ListAdminRolesItems) Reset() {
  221. *x = ListAdminRolesItems{}
  222. if protoimpl.UnsafeEnabled {
  223. mi := &file_proto_common_proto_msgTypes[3]
  224. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  225. ms.StoreMessageInfo(mi)
  226. }
  227. }
  228. func (x *ListAdminRolesItems) String() string {
  229. return protoimpl.X.MessageStringOf(x)
  230. }
  231. func (*ListAdminRolesItems) ProtoMessage() {}
  232. func (x *ListAdminRolesItems) ProtoReflect() protoreflect.Message {
  233. mi := &file_proto_common_proto_msgTypes[3]
  234. if protoimpl.UnsafeEnabled && x != nil {
  235. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  236. if ms.LoadMessageInfo() == nil {
  237. ms.StoreMessageInfo(mi)
  238. }
  239. return ms
  240. }
  241. return mi.MessageOf(x)
  242. }
  243. // Deprecated: Use ListAdminRolesItems.ProtoReflect.Descriptor instead.
  244. func (*ListAdminRolesItems) Descriptor() ([]byte, []int) {
  245. return file_proto_common_proto_rawDescGZIP(), []int{3}
  246. }
  247. func (x *ListAdminRolesItems) GetId() int64 {
  248. if x != nil {
  249. return x.Id
  250. }
  251. return 0
  252. }
  253. func (x *ListAdminRolesItems) GetName() string {
  254. if x != nil {
  255. return x.Name
  256. }
  257. return ""
  258. }
  259. func (x *ListAdminRolesItems) GetDescription() string {
  260. if x != nil {
  261. return x.Description
  262. }
  263. return ""
  264. }
  265. func (x *ListAdminRolesItems) GetCreatedBy() string {
  266. if x != nil {
  267. return x.CreatedBy
  268. }
  269. return ""
  270. }
  271. func (x *ListAdminRolesItems) GetCreatedAt() int64 {
  272. if x != nil {
  273. return x.CreatedAt
  274. }
  275. return 0
  276. }
  277. func (x *ListAdminRolesItems) GetStatus() string {
  278. if x != nil {
  279. return x.Status
  280. }
  281. return ""
  282. }
  283. func (x *ListAdminRolesItems) GetIsReserved() bool {
  284. if x != nil {
  285. return x.IsReserved
  286. }
  287. return false
  288. }
  289. type ListAdminRolesResponse struct {
  290. state protoimpl.MessageState
  291. sizeCache protoimpl.SizeCache
  292. unknownFields protoimpl.UnknownFields
  293. Items []*ListAdminRolesItems `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
  294. TotalCount int64 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
  295. }
  296. func (x *ListAdminRolesResponse) Reset() {
  297. *x = ListAdminRolesResponse{}
  298. if protoimpl.UnsafeEnabled {
  299. mi := &file_proto_common_proto_msgTypes[4]
  300. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  301. ms.StoreMessageInfo(mi)
  302. }
  303. }
  304. func (x *ListAdminRolesResponse) String() string {
  305. return protoimpl.X.MessageStringOf(x)
  306. }
  307. func (*ListAdminRolesResponse) ProtoMessage() {}
  308. func (x *ListAdminRolesResponse) ProtoReflect() protoreflect.Message {
  309. mi := &file_proto_common_proto_msgTypes[4]
  310. if protoimpl.UnsafeEnabled && x != nil {
  311. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  312. if ms.LoadMessageInfo() == nil {
  313. ms.StoreMessageInfo(mi)
  314. }
  315. return ms
  316. }
  317. return mi.MessageOf(x)
  318. }
  319. // Deprecated: Use ListAdminRolesResponse.ProtoReflect.Descriptor instead.
  320. func (*ListAdminRolesResponse) Descriptor() ([]byte, []int) {
  321. return file_proto_common_proto_rawDescGZIP(), []int{4}
  322. }
  323. func (x *ListAdminRolesResponse) GetItems() []*ListAdminRolesItems {
  324. if x != nil {
  325. return x.Items
  326. }
  327. return nil
  328. }
  329. func (x *ListAdminRolesResponse) GetTotalCount() int64 {
  330. if x != nil {
  331. return x.TotalCount
  332. }
  333. return 0
  334. }
  335. // ------------ 角色详情 ------------
  336. type GetAdminRoleBase struct {
  337. state protoimpl.MessageState
  338. sizeCache protoimpl.SizeCache
  339. unknownFields protoimpl.UnknownFields
  340. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  341. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  342. }
  343. func (x *GetAdminRoleBase) Reset() {
  344. *x = GetAdminRoleBase{}
  345. if protoimpl.UnsafeEnabled {
  346. mi := &file_proto_common_proto_msgTypes[5]
  347. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  348. ms.StoreMessageInfo(mi)
  349. }
  350. }
  351. func (x *GetAdminRoleBase) String() string {
  352. return protoimpl.X.MessageStringOf(x)
  353. }
  354. func (*GetAdminRoleBase) ProtoMessage() {}
  355. func (x *GetAdminRoleBase) ProtoReflect() protoreflect.Message {
  356. mi := &file_proto_common_proto_msgTypes[5]
  357. if protoimpl.UnsafeEnabled && x != nil {
  358. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  359. if ms.LoadMessageInfo() == nil {
  360. ms.StoreMessageInfo(mi)
  361. }
  362. return ms
  363. }
  364. return mi.MessageOf(x)
  365. }
  366. // Deprecated: Use GetAdminRoleBase.ProtoReflect.Descriptor instead.
  367. func (*GetAdminRoleBase) Descriptor() ([]byte, []int) {
  368. return file_proto_common_proto_rawDescGZIP(), []int{5}
  369. }
  370. func (x *GetAdminRoleBase) GetKey() string {
  371. if x != nil {
  372. return x.Key
  373. }
  374. return ""
  375. }
  376. func (x *GetAdminRoleBase) GetValue() string {
  377. if x != nil {
  378. return x.Value
  379. }
  380. return ""
  381. }
  382. type GetAdminRoleResponse struct {
  383. state protoimpl.MessageState
  384. sizeCache protoimpl.SizeCache
  385. unknownFields protoimpl.UnknownFields
  386. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  387. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  388. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
  389. CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  390. Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
  391. IsReserved bool `protobuf:"varint,6,opt,name=is_reserved,json=isReserved,proto3" json:"is_reserved,omitempty"`
  392. Users []*GetAdminRoleBase `protobuf:"bytes,7,rep,name=users,proto3" json:"users,omitempty"`
  393. Permissions []*GetAdminRoleBase `protobuf:"bytes,8,rep,name=permissions,proto3" json:"permissions,omitempty"`
  394. }
  395. func (x *GetAdminRoleResponse) Reset() {
  396. *x = GetAdminRoleResponse{}
  397. if protoimpl.UnsafeEnabled {
  398. mi := &file_proto_common_proto_msgTypes[6]
  399. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  400. ms.StoreMessageInfo(mi)
  401. }
  402. }
  403. func (x *GetAdminRoleResponse) String() string {
  404. return protoimpl.X.MessageStringOf(x)
  405. }
  406. func (*GetAdminRoleResponse) ProtoMessage() {}
  407. func (x *GetAdminRoleResponse) ProtoReflect() protoreflect.Message {
  408. mi := &file_proto_common_proto_msgTypes[6]
  409. if protoimpl.UnsafeEnabled && x != nil {
  410. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  411. if ms.LoadMessageInfo() == nil {
  412. ms.StoreMessageInfo(mi)
  413. }
  414. return ms
  415. }
  416. return mi.MessageOf(x)
  417. }
  418. // Deprecated: Use GetAdminRoleResponse.ProtoReflect.Descriptor instead.
  419. func (*GetAdminRoleResponse) Descriptor() ([]byte, []int) {
  420. return file_proto_common_proto_rawDescGZIP(), []int{6}
  421. }
  422. func (x *GetAdminRoleResponse) GetId() int64 {
  423. if x != nil {
  424. return x.Id
  425. }
  426. return 0
  427. }
  428. func (x *GetAdminRoleResponse) GetName() string {
  429. if x != nil {
  430. return x.Name
  431. }
  432. return ""
  433. }
  434. func (x *GetAdminRoleResponse) GetDescription() string {
  435. if x != nil {
  436. return x.Description
  437. }
  438. return ""
  439. }
  440. func (x *GetAdminRoleResponse) GetCreatedAt() int64 {
  441. if x != nil {
  442. return x.CreatedAt
  443. }
  444. return 0
  445. }
  446. func (x *GetAdminRoleResponse) GetStatus() string {
  447. if x != nil {
  448. return x.Status
  449. }
  450. return ""
  451. }
  452. func (x *GetAdminRoleResponse) GetIsReserved() bool {
  453. if x != nil {
  454. return x.IsReserved
  455. }
  456. return false
  457. }
  458. func (x *GetAdminRoleResponse) GetUsers() []*GetAdminRoleBase {
  459. if x != nil {
  460. return x.Users
  461. }
  462. return nil
  463. }
  464. func (x *GetAdminRoleResponse) GetPermissions() []*GetAdminRoleBase {
  465. if x != nil {
  466. return x.Permissions
  467. }
  468. return nil
  469. }
  470. type GetUnassignedAdminRolesRequest struct {
  471. state protoimpl.MessageState
  472. sizeCache protoimpl.SizeCache
  473. unknownFields protoimpl.UnknownFields
  474. UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
  475. }
  476. func (x *GetUnassignedAdminRolesRequest) Reset() {
  477. *x = GetUnassignedAdminRolesRequest{}
  478. if protoimpl.UnsafeEnabled {
  479. mi := &file_proto_common_proto_msgTypes[7]
  480. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  481. ms.StoreMessageInfo(mi)
  482. }
  483. }
  484. func (x *GetUnassignedAdminRolesRequest) String() string {
  485. return protoimpl.X.MessageStringOf(x)
  486. }
  487. func (*GetUnassignedAdminRolesRequest) ProtoMessage() {}
  488. func (x *GetUnassignedAdminRolesRequest) ProtoReflect() protoreflect.Message {
  489. mi := &file_proto_common_proto_msgTypes[7]
  490. if protoimpl.UnsafeEnabled && x != nil {
  491. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  492. if ms.LoadMessageInfo() == nil {
  493. ms.StoreMessageInfo(mi)
  494. }
  495. return ms
  496. }
  497. return mi.MessageOf(x)
  498. }
  499. // Deprecated: Use GetUnassignedAdminRolesRequest.ProtoReflect.Descriptor instead.
  500. func (*GetUnassignedAdminRolesRequest) Descriptor() ([]byte, []int) {
  501. return file_proto_common_proto_rawDescGZIP(), []int{7}
  502. }
  503. func (x *GetUnassignedAdminRolesRequest) GetUserId() int64 {
  504. if x != nil {
  505. return x.UserId
  506. }
  507. return 0
  508. }
  509. type ListAdminUsersResponse struct {
  510. state protoimpl.MessageState
  511. sizeCache protoimpl.SizeCache
  512. unknownFields protoimpl.UnknownFields
  513. Items []*GetAdminUser `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
  514. TotalCount int64 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
  515. }
  516. func (x *ListAdminUsersResponse) Reset() {
  517. *x = ListAdminUsersResponse{}
  518. if protoimpl.UnsafeEnabled {
  519. mi := &file_proto_common_proto_msgTypes[8]
  520. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  521. ms.StoreMessageInfo(mi)
  522. }
  523. }
  524. func (x *ListAdminUsersResponse) String() string {
  525. return protoimpl.X.MessageStringOf(x)
  526. }
  527. func (*ListAdminUsersResponse) ProtoMessage() {}
  528. func (x *ListAdminUsersResponse) ProtoReflect() protoreflect.Message {
  529. mi := &file_proto_common_proto_msgTypes[8]
  530. if protoimpl.UnsafeEnabled && x != nil {
  531. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  532. if ms.LoadMessageInfo() == nil {
  533. ms.StoreMessageInfo(mi)
  534. }
  535. return ms
  536. }
  537. return mi.MessageOf(x)
  538. }
  539. // Deprecated: Use ListAdminUsersResponse.ProtoReflect.Descriptor instead.
  540. func (*ListAdminUsersResponse) Descriptor() ([]byte, []int) {
  541. return file_proto_common_proto_rawDescGZIP(), []int{8}
  542. }
  543. func (x *ListAdminUsersResponse) GetItems() []*GetAdminUser {
  544. if x != nil {
  545. return x.Items
  546. }
  547. return nil
  548. }
  549. func (x *ListAdminUsersResponse) GetTotalCount() int64 {
  550. if x != nil {
  551. return x.TotalCount
  552. }
  553. return 0
  554. }
  555. // ------------ 用户详情 ------------
  556. type AdminUserProfile struct {
  557. state protoimpl.MessageState
  558. sizeCache protoimpl.SizeCache
  559. unknownFields protoimpl.UnknownFields
  560. Avatar string `protobuf:"bytes,1,opt,name=avatar,proto3" json:"avatar,omitempty"`
  561. PhoneNumber string `protobuf:"bytes,2,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
  562. Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
  563. Bio string `protobuf:"bytes,4,opt,name=bio,proto3" json:"bio,omitempty"`
  564. Birthdate int64 `protobuf:"varint,5,opt,name=birthdate,proto3" json:"birthdate,omitempty"`
  565. Gender int32 `protobuf:"varint,6,opt,name=gender,proto3" json:"gender,omitempty"`
  566. Address string `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"`
  567. Website string `protobuf:"bytes,8,opt,name=website,proto3" json:"website,omitempty"`
  568. SocialLinks []*AdminUserProfileSocialLink `protobuf:"bytes,9,rep,name=social_links,json=socialLinks,proto3" json:"social_links,omitempty"`
  569. Educations []*AdminUserProfileEducation `protobuf:"bytes,10,rep,name=educations,proto3" json:"educations,omitempty"`
  570. WorkHistories []*AdminUserProfileWorkHistory `protobuf:"bytes,11,rep,name=work_histories,json=workHistories,proto3" json:"work_histories,omitempty"`
  571. }
  572. func (x *AdminUserProfile) Reset() {
  573. *x = AdminUserProfile{}
  574. if protoimpl.UnsafeEnabled {
  575. mi := &file_proto_common_proto_msgTypes[9]
  576. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  577. ms.StoreMessageInfo(mi)
  578. }
  579. }
  580. func (x *AdminUserProfile) String() string {
  581. return protoimpl.X.MessageStringOf(x)
  582. }
  583. func (*AdminUserProfile) ProtoMessage() {}
  584. func (x *AdminUserProfile) ProtoReflect() protoreflect.Message {
  585. mi := &file_proto_common_proto_msgTypes[9]
  586. if protoimpl.UnsafeEnabled && x != nil {
  587. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  588. if ms.LoadMessageInfo() == nil {
  589. ms.StoreMessageInfo(mi)
  590. }
  591. return ms
  592. }
  593. return mi.MessageOf(x)
  594. }
  595. // Deprecated: Use AdminUserProfile.ProtoReflect.Descriptor instead.
  596. func (*AdminUserProfile) Descriptor() ([]byte, []int) {
  597. return file_proto_common_proto_rawDescGZIP(), []int{9}
  598. }
  599. func (x *AdminUserProfile) GetAvatar() string {
  600. if x != nil {
  601. return x.Avatar
  602. }
  603. return ""
  604. }
  605. func (x *AdminUserProfile) GetPhoneNumber() string {
  606. if x != nil {
  607. return x.PhoneNumber
  608. }
  609. return ""
  610. }
  611. func (x *AdminUserProfile) GetEmail() string {
  612. if x != nil {
  613. return x.Email
  614. }
  615. return ""
  616. }
  617. func (x *AdminUserProfile) GetBio() string {
  618. if x != nil {
  619. return x.Bio
  620. }
  621. return ""
  622. }
  623. func (x *AdminUserProfile) GetBirthdate() int64 {
  624. if x != nil {
  625. return x.Birthdate
  626. }
  627. return 0
  628. }
  629. func (x *AdminUserProfile) GetGender() int32 {
  630. if x != nil {
  631. return x.Gender
  632. }
  633. return 0
  634. }
  635. func (x *AdminUserProfile) GetAddress() string {
  636. if x != nil {
  637. return x.Address
  638. }
  639. return ""
  640. }
  641. func (x *AdminUserProfile) GetWebsite() string {
  642. if x != nil {
  643. return x.Website
  644. }
  645. return ""
  646. }
  647. func (x *AdminUserProfile) GetSocialLinks() []*AdminUserProfileSocialLink {
  648. if x != nil {
  649. return x.SocialLinks
  650. }
  651. return nil
  652. }
  653. func (x *AdminUserProfile) GetEducations() []*AdminUserProfileEducation {
  654. if x != nil {
  655. return x.Educations
  656. }
  657. return nil
  658. }
  659. func (x *AdminUserProfile) GetWorkHistories() []*AdminUserProfileWorkHistory {
  660. if x != nil {
  661. return x.WorkHistories
  662. }
  663. return nil
  664. }
  665. type AdminUserProfileSocialLink struct {
  666. state protoimpl.MessageState
  667. sizeCache protoimpl.SizeCache
  668. unknownFields protoimpl.UnknownFields
  669. Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
  670. Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"`
  671. }
  672. func (x *AdminUserProfileSocialLink) Reset() {
  673. *x = AdminUserProfileSocialLink{}
  674. if protoimpl.UnsafeEnabled {
  675. mi := &file_proto_common_proto_msgTypes[10]
  676. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  677. ms.StoreMessageInfo(mi)
  678. }
  679. }
  680. func (x *AdminUserProfileSocialLink) String() string {
  681. return protoimpl.X.MessageStringOf(x)
  682. }
  683. func (*AdminUserProfileSocialLink) ProtoMessage() {}
  684. func (x *AdminUserProfileSocialLink) ProtoReflect() protoreflect.Message {
  685. mi := &file_proto_common_proto_msgTypes[10]
  686. if protoimpl.UnsafeEnabled && x != nil {
  687. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  688. if ms.LoadMessageInfo() == nil {
  689. ms.StoreMessageInfo(mi)
  690. }
  691. return ms
  692. }
  693. return mi.MessageOf(x)
  694. }
  695. // Deprecated: Use AdminUserProfileSocialLink.ProtoReflect.Descriptor instead.
  696. func (*AdminUserProfileSocialLink) Descriptor() ([]byte, []int) {
  697. return file_proto_common_proto_rawDescGZIP(), []int{10}
  698. }
  699. func (x *AdminUserProfileSocialLink) GetUrl() string {
  700. if x != nil {
  701. return x.Url
  702. }
  703. return ""
  704. }
  705. func (x *AdminUserProfileSocialLink) GetPlatform() string {
  706. if x != nil {
  707. return x.Platform
  708. }
  709. return ""
  710. }
  711. type AdminUserProfileEducation struct {
  712. state protoimpl.MessageState
  713. sizeCache protoimpl.SizeCache
  714. unknownFields protoimpl.UnknownFields
  715. School string `protobuf:"bytes,1,opt,name=school,proto3" json:"school,omitempty"`
  716. Degree string `protobuf:"bytes,2,opt,name=degree,proto3" json:"degree,omitempty"`
  717. Graduated int64 `protobuf:"varint,3,opt,name=graduated,proto3" json:"graduated,omitempty"`
  718. }
  719. func (x *AdminUserProfileEducation) Reset() {
  720. *x = AdminUserProfileEducation{}
  721. if protoimpl.UnsafeEnabled {
  722. mi := &file_proto_common_proto_msgTypes[11]
  723. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  724. ms.StoreMessageInfo(mi)
  725. }
  726. }
  727. func (x *AdminUserProfileEducation) String() string {
  728. return protoimpl.X.MessageStringOf(x)
  729. }
  730. func (*AdminUserProfileEducation) ProtoMessage() {}
  731. func (x *AdminUserProfileEducation) ProtoReflect() protoreflect.Message {
  732. mi := &file_proto_common_proto_msgTypes[11]
  733. if protoimpl.UnsafeEnabled && x != nil {
  734. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  735. if ms.LoadMessageInfo() == nil {
  736. ms.StoreMessageInfo(mi)
  737. }
  738. return ms
  739. }
  740. return mi.MessageOf(x)
  741. }
  742. // Deprecated: Use AdminUserProfileEducation.ProtoReflect.Descriptor instead.
  743. func (*AdminUserProfileEducation) Descriptor() ([]byte, []int) {
  744. return file_proto_common_proto_rawDescGZIP(), []int{11}
  745. }
  746. func (x *AdminUserProfileEducation) GetSchool() string {
  747. if x != nil {
  748. return x.School
  749. }
  750. return ""
  751. }
  752. func (x *AdminUserProfileEducation) GetDegree() string {
  753. if x != nil {
  754. return x.Degree
  755. }
  756. return ""
  757. }
  758. func (x *AdminUserProfileEducation) GetGraduated() int64 {
  759. if x != nil {
  760. return x.Graduated
  761. }
  762. return 0
  763. }
  764. type AdminUserProfileWorkHistory struct {
  765. state protoimpl.MessageState
  766. sizeCache protoimpl.SizeCache
  767. unknownFields protoimpl.UnknownFields
  768. Company string `protobuf:"bytes,1,opt,name=company,proto3" json:"company,omitempty"`
  769. Position string `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"`
  770. StartDate int64 `protobuf:"varint,3,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
  771. EndDate int64 `protobuf:"varint,4,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
  772. Responsibilities string `protobuf:"bytes,5,opt,name=responsibilities,proto3" json:"responsibilities,omitempty"`
  773. }
  774. func (x *AdminUserProfileWorkHistory) Reset() {
  775. *x = AdminUserProfileWorkHistory{}
  776. if protoimpl.UnsafeEnabled {
  777. mi := &file_proto_common_proto_msgTypes[12]
  778. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  779. ms.StoreMessageInfo(mi)
  780. }
  781. }
  782. func (x *AdminUserProfileWorkHistory) String() string {
  783. return protoimpl.X.MessageStringOf(x)
  784. }
  785. func (*AdminUserProfileWorkHistory) ProtoMessage() {}
  786. func (x *AdminUserProfileWorkHistory) ProtoReflect() protoreflect.Message {
  787. mi := &file_proto_common_proto_msgTypes[12]
  788. if protoimpl.UnsafeEnabled && x != nil {
  789. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  790. if ms.LoadMessageInfo() == nil {
  791. ms.StoreMessageInfo(mi)
  792. }
  793. return ms
  794. }
  795. return mi.MessageOf(x)
  796. }
  797. // Deprecated: Use AdminUserProfileWorkHistory.ProtoReflect.Descriptor instead.
  798. func (*AdminUserProfileWorkHistory) Descriptor() ([]byte, []int) {
  799. return file_proto_common_proto_rawDescGZIP(), []int{12}
  800. }
  801. func (x *AdminUserProfileWorkHistory) GetCompany() string {
  802. if x != nil {
  803. return x.Company
  804. }
  805. return ""
  806. }
  807. func (x *AdminUserProfileWorkHistory) GetPosition() string {
  808. if x != nil {
  809. return x.Position
  810. }
  811. return ""
  812. }
  813. func (x *AdminUserProfileWorkHistory) GetStartDate() int64 {
  814. if x != nil {
  815. return x.StartDate
  816. }
  817. return 0
  818. }
  819. func (x *AdminUserProfileWorkHistory) GetEndDate() int64 {
  820. if x != nil {
  821. return x.EndDate
  822. }
  823. return 0
  824. }
  825. func (x *AdminUserProfileWorkHistory) GetResponsibilities() string {
  826. if x != nil {
  827. return x.Responsibilities
  828. }
  829. return ""
  830. }
  831. type AdminUserBase struct {
  832. state protoimpl.MessageState
  833. sizeCache protoimpl.SizeCache
  834. unknownFields protoimpl.UnknownFields
  835. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  836. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  837. }
  838. func (x *AdminUserBase) Reset() {
  839. *x = AdminUserBase{}
  840. if protoimpl.UnsafeEnabled {
  841. mi := &file_proto_common_proto_msgTypes[13]
  842. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  843. ms.StoreMessageInfo(mi)
  844. }
  845. }
  846. func (x *AdminUserBase) String() string {
  847. return protoimpl.X.MessageStringOf(x)
  848. }
  849. func (*AdminUserBase) ProtoMessage() {}
  850. func (x *AdminUserBase) ProtoReflect() protoreflect.Message {
  851. mi := &file_proto_common_proto_msgTypes[13]
  852. if protoimpl.UnsafeEnabled && x != nil {
  853. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  854. if ms.LoadMessageInfo() == nil {
  855. ms.StoreMessageInfo(mi)
  856. }
  857. return ms
  858. }
  859. return mi.MessageOf(x)
  860. }
  861. // Deprecated: Use AdminUserBase.ProtoReflect.Descriptor instead.
  862. func (*AdminUserBase) Descriptor() ([]byte, []int) {
  863. return file_proto_common_proto_rawDescGZIP(), []int{13}
  864. }
  865. func (x *AdminUserBase) GetKey() string {
  866. if x != nil {
  867. return x.Key
  868. }
  869. return ""
  870. }
  871. func (x *AdminUserBase) GetValue() string {
  872. if x != nil {
  873. return x.Value
  874. }
  875. return ""
  876. }
  877. type GetAdminUserRequest struct {
  878. state protoimpl.MessageState
  879. sizeCache protoimpl.SizeCache
  880. unknownFields protoimpl.UnknownFields
  881. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  882. }
  883. func (x *GetAdminUserRequest) Reset() {
  884. *x = GetAdminUserRequest{}
  885. if protoimpl.UnsafeEnabled {
  886. mi := &file_proto_common_proto_msgTypes[14]
  887. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  888. ms.StoreMessageInfo(mi)
  889. }
  890. }
  891. func (x *GetAdminUserRequest) String() string {
  892. return protoimpl.X.MessageStringOf(x)
  893. }
  894. func (*GetAdminUserRequest) ProtoMessage() {}
  895. func (x *GetAdminUserRequest) ProtoReflect() protoreflect.Message {
  896. mi := &file_proto_common_proto_msgTypes[14]
  897. if protoimpl.UnsafeEnabled && x != nil {
  898. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  899. if ms.LoadMessageInfo() == nil {
  900. ms.StoreMessageInfo(mi)
  901. }
  902. return ms
  903. }
  904. return mi.MessageOf(x)
  905. }
  906. // Deprecated: Use GetAdminUserRequest.ProtoReflect.Descriptor instead.
  907. func (*GetAdminUserRequest) Descriptor() ([]byte, []int) {
  908. return file_proto_common_proto_rawDescGZIP(), []int{14}
  909. }
  910. func (x *GetAdminUserRequest) GetId() int64 {
  911. if x != nil {
  912. return x.Id
  913. }
  914. return 0
  915. }
  916. type GetAdminUser struct {
  917. state protoimpl.MessageState
  918. sizeCache protoimpl.SizeCache
  919. unknownFields protoimpl.UnknownFields
  920. UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
  921. Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
  922. Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
  923. Roles []*AdminUserBase `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"`
  924. Teams []*AdminUserBase `protobuf:"bytes,5,rep,name=teams,proto3" json:"teams,omitempty"`
  925. Profile *AdminUserProfile `protobuf:"bytes,6,opt,name=profile,proto3" json:"profile,omitempty"`
  926. }
  927. func (x *GetAdminUser) Reset() {
  928. *x = GetAdminUser{}
  929. if protoimpl.UnsafeEnabled {
  930. mi := &file_proto_common_proto_msgTypes[15]
  931. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  932. ms.StoreMessageInfo(mi)
  933. }
  934. }
  935. func (x *GetAdminUser) String() string {
  936. return protoimpl.X.MessageStringOf(x)
  937. }
  938. func (*GetAdminUser) ProtoMessage() {}
  939. func (x *GetAdminUser) ProtoReflect() protoreflect.Message {
  940. mi := &file_proto_common_proto_msgTypes[15]
  941. if protoimpl.UnsafeEnabled && x != nil {
  942. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  943. if ms.LoadMessageInfo() == nil {
  944. ms.StoreMessageInfo(mi)
  945. }
  946. return ms
  947. }
  948. return mi.MessageOf(x)
  949. }
  950. // Deprecated: Use GetAdminUser.ProtoReflect.Descriptor instead.
  951. func (*GetAdminUser) Descriptor() ([]byte, []int) {
  952. return file_proto_common_proto_rawDescGZIP(), []int{15}
  953. }
  954. func (x *GetAdminUser) GetUserId() int64 {
  955. if x != nil {
  956. return x.UserId
  957. }
  958. return 0
  959. }
  960. func (x *GetAdminUser) GetUsername() string {
  961. if x != nil {
  962. return x.Username
  963. }
  964. return ""
  965. }
  966. func (x *GetAdminUser) GetStatus() string {
  967. if x != nil {
  968. return x.Status
  969. }
  970. return ""
  971. }
  972. func (x *GetAdminUser) GetRoles() []*AdminUserBase {
  973. if x != nil {
  974. return x.Roles
  975. }
  976. return nil
  977. }
  978. func (x *GetAdminUser) GetTeams() []*AdminUserBase {
  979. if x != nil {
  980. return x.Teams
  981. }
  982. return nil
  983. }
  984. func (x *GetAdminUser) GetProfile() *AdminUserProfile {
  985. if x != nil {
  986. return x.Profile
  987. }
  988. return nil
  989. }
  990. // ------------ admin user 更新 ------------
  991. type UpdateAdminUserRequest struct {
  992. state protoimpl.MessageState
  993. sizeCache protoimpl.SizeCache
  994. unknownFields protoimpl.UnknownFields
  995. UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
  996. Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
  997. Roles []*AdminUserBase `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"`
  998. Teams []*AdminUserBase `protobuf:"bytes,5,rep,name=teams,proto3" json:"teams,omitempty"`
  999. Profile *AdminUserProfile `protobuf:"bytes,6,opt,name=profile,proto3" json:"profile,omitempty"`
  1000. }
  1001. func (x *UpdateAdminUserRequest) Reset() {
  1002. *x = UpdateAdminUserRequest{}
  1003. if protoimpl.UnsafeEnabled {
  1004. mi := &file_proto_common_proto_msgTypes[16]
  1005. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1006. ms.StoreMessageInfo(mi)
  1007. }
  1008. }
  1009. func (x *UpdateAdminUserRequest) String() string {
  1010. return protoimpl.X.MessageStringOf(x)
  1011. }
  1012. func (*UpdateAdminUserRequest) ProtoMessage() {}
  1013. func (x *UpdateAdminUserRequest) ProtoReflect() protoreflect.Message {
  1014. mi := &file_proto_common_proto_msgTypes[16]
  1015. if protoimpl.UnsafeEnabled && x != nil {
  1016. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1017. if ms.LoadMessageInfo() == nil {
  1018. ms.StoreMessageInfo(mi)
  1019. }
  1020. return ms
  1021. }
  1022. return mi.MessageOf(x)
  1023. }
  1024. // Deprecated: Use UpdateAdminUserRequest.ProtoReflect.Descriptor instead.
  1025. func (*UpdateAdminUserRequest) Descriptor() ([]byte, []int) {
  1026. return file_proto_common_proto_rawDescGZIP(), []int{16}
  1027. }
  1028. func (x *UpdateAdminUserRequest) GetUserId() int64 {
  1029. if x != nil {
  1030. return x.UserId
  1031. }
  1032. return 0
  1033. }
  1034. func (x *UpdateAdminUserRequest) GetStatus() string {
  1035. if x != nil {
  1036. return x.Status
  1037. }
  1038. return ""
  1039. }
  1040. func (x *UpdateAdminUserRequest) GetRoles() []*AdminUserBase {
  1041. if x != nil {
  1042. return x.Roles
  1043. }
  1044. return nil
  1045. }
  1046. func (x *UpdateAdminUserRequest) GetTeams() []*AdminUserBase {
  1047. if x != nil {
  1048. return x.Teams
  1049. }
  1050. return nil
  1051. }
  1052. func (x *UpdateAdminUserRequest) GetProfile() *AdminUserProfile {
  1053. if x != nil {
  1054. return x.Profile
  1055. }
  1056. return nil
  1057. }
  1058. // ------------ 查询关联的角色 ------------
  1059. type GetAdminUserAssociatedRolesRequest struct {
  1060. state protoimpl.MessageState
  1061. sizeCache protoimpl.SizeCache
  1062. unknownFields protoimpl.UnknownFields
  1063. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
  1064. }
  1065. func (x *GetAdminUserAssociatedRolesRequest) Reset() {
  1066. *x = GetAdminUserAssociatedRolesRequest{}
  1067. if protoimpl.UnsafeEnabled {
  1068. mi := &file_proto_common_proto_msgTypes[17]
  1069. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1070. ms.StoreMessageInfo(mi)
  1071. }
  1072. }
  1073. func (x *GetAdminUserAssociatedRolesRequest) String() string {
  1074. return protoimpl.X.MessageStringOf(x)
  1075. }
  1076. func (*GetAdminUserAssociatedRolesRequest) ProtoMessage() {}
  1077. func (x *GetAdminUserAssociatedRolesRequest) ProtoReflect() protoreflect.Message {
  1078. mi := &file_proto_common_proto_msgTypes[17]
  1079. if protoimpl.UnsafeEnabled && x != nil {
  1080. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1081. if ms.LoadMessageInfo() == nil {
  1082. ms.StoreMessageInfo(mi)
  1083. }
  1084. return ms
  1085. }
  1086. return mi.MessageOf(x)
  1087. }
  1088. // Deprecated: Use GetAdminUserAssociatedRolesRequest.ProtoReflect.Descriptor instead.
  1089. func (*GetAdminUserAssociatedRolesRequest) Descriptor() ([]byte, []int) {
  1090. return file_proto_common_proto_rawDescGZIP(), []int{17}
  1091. }
  1092. func (x *GetAdminUserAssociatedRolesRequest) GetUsername() string {
  1093. if x != nil {
  1094. return x.Username
  1095. }
  1096. return ""
  1097. }
  1098. type GetAdminUserAssociatedRolesResponse struct {
  1099. state protoimpl.MessageState
  1100. sizeCache protoimpl.SizeCache
  1101. unknownFields protoimpl.UnknownFields
  1102. Items []*AdminUserBase `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
  1103. }
  1104. func (x *GetAdminUserAssociatedRolesResponse) Reset() {
  1105. *x = GetAdminUserAssociatedRolesResponse{}
  1106. if protoimpl.UnsafeEnabled {
  1107. mi := &file_proto_common_proto_msgTypes[18]
  1108. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1109. ms.StoreMessageInfo(mi)
  1110. }
  1111. }
  1112. func (x *GetAdminUserAssociatedRolesResponse) String() string {
  1113. return protoimpl.X.MessageStringOf(x)
  1114. }
  1115. func (*GetAdminUserAssociatedRolesResponse) ProtoMessage() {}
  1116. func (x *GetAdminUserAssociatedRolesResponse) ProtoReflect() protoreflect.Message {
  1117. mi := &file_proto_common_proto_msgTypes[18]
  1118. if protoimpl.UnsafeEnabled && x != nil {
  1119. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1120. if ms.LoadMessageInfo() == nil {
  1121. ms.StoreMessageInfo(mi)
  1122. }
  1123. return ms
  1124. }
  1125. return mi.MessageOf(x)
  1126. }
  1127. // Deprecated: Use GetAdminUserAssociatedRolesResponse.ProtoReflect.Descriptor instead.
  1128. func (*GetAdminUserAssociatedRolesResponse) Descriptor() ([]byte, []int) {
  1129. return file_proto_common_proto_rawDescGZIP(), []int{18}
  1130. }
  1131. func (x *GetAdminUserAssociatedRolesResponse) GetItems() []*AdminUserBase {
  1132. if x != nil {
  1133. return x.Items
  1134. }
  1135. return nil
  1136. }
  1137. var File_proto_common_proto protoreflect.FileDescriptor
  1138. var file_proto_common_proto_rawDesc = []byte{
  1139. 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70,
  1140. 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0x2e, 0x0a, 0x04,
  1141. 0x42, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
  1142. 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
  1143. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xf2, 0x01, 0x0a,
  1144. 0x07, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
  1145. 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72,
  1146. 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72,
  1147. 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20,
  1148. 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x42, 0x61, 0x73,
  1149. 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x6f, 0x6e,
  1150. 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
  1151. 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x65,
  1152. 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69,
  1153. 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28,
  1154. 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x69, 0x72,
  1155. 0x74, 0x68, 0x64, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x62, 0x69,
  1156. 0x72, 0x74, 0x68, 0x64, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x69, 0x6f, 0x18, 0x08,
  1157. 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x62, 0x69, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x65, 0x6e,
  1158. 0x64, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65,
  1159. 0x72, 0x22, 0x4a, 0x0a, 0x0d, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  1160. 0x73, 0x65, 0x12, 0x23, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
  1161. 0x32, 0x0f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c,
  1162. 0x65, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
  1163. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xd2, 0x01,
  1164. 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x73,
  1165. 0x49, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  1166. 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
  1167. 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73,
  1168. 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
  1169. 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x63,
  1170. 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
  1171. 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72,
  1172. 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
  1173. 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61,
  1174. 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
  1175. 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64,
  1176. 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76,
  1177. 0x65, 0x64, 0x22, 0x6c, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52,
  1178. 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x05,
  1179. 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6f,
  1180. 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x6f,
  1181. 0x6c, 0x65, 0x73, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x12,
  1182. 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02,
  1183. 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74,
  1184. 0x22, 0x3a, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x6f, 0x6c, 0x65,
  1185. 0x42, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
  1186. 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
  1187. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xa0, 0x02, 0x0a,
  1188. 0x14, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x73,
  1189. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  1190. 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
  1191. 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73,
  1192. 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
  1193. 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x63,
  1194. 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52,
  1195. 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74,
  1196. 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74,
  1197. 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65,
  1198. 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x52, 0x65, 0x73, 0x65, 0x72,
  1199. 0x76, 0x65, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x07, 0x20, 0x03,
  1200. 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x41,
  1201. 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x42, 0x61, 0x73, 0x65, 0x52, 0x05, 0x75, 0x73,
  1202. 0x65, 0x72, 0x73, 0x12, 0x3a, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
  1203. 0x6e, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
  1204. 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x42, 0x61,
  1205. 0x73, 0x65, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22,
  1206. 0x39, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64,
  1207. 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  1208. 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  1209. 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x65, 0x0a, 0x16, 0x4c, 0x69,
  1210. 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70,
  1211. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20,
  1212. 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74,
  1213. 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73,
  1214. 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
  1215. 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e,
  1216. 0x74, 0x22, 0xb5, 0x03, 0x0a, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x50,
  1217. 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72,
  1218. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x21,
  1219. 0x0a, 0x0c, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02,
  1220. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65,
  1221. 0x72, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  1222. 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x69, 0x6f, 0x18, 0x04,
  1223. 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x62, 0x69, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x69, 0x72,
  1224. 0x74, 0x68, 0x64, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x62, 0x69,
  1225. 0x72, 0x74, 0x68, 0x64, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65,
  1226. 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12,
  1227. 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
  1228. 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x65, 0x62,
  1229. 0x73, 0x69, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x77, 0x65, 0x62, 0x73,
  1230. 0x69, 0x74, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x5f, 0x6c, 0x69,
  1231. 0x6e, 0x6b, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  1232. 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66,
  1233. 0x69, 0x6c, 0x65, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x0b, 0x73,
  1234. 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x12, 0x41, 0x0a, 0x0a, 0x65, 0x64,
  1235. 0x75, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21,
  1236. 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65,
  1237. 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x45, 0x64, 0x75, 0x63, 0x61, 0x74, 0x69, 0x6f,
  1238. 0x6e, 0x52, 0x0a, 0x65, 0x64, 0x75, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x4a, 0x0a,
  1239. 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18,
  1240. 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41,
  1241. 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x57,
  1242. 0x6f, 0x72, 0x6b, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b,
  1243. 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x22, 0x4a, 0x0a, 0x1a, 0x41, 0x64, 0x6d,
  1244. 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x6f, 0x63,
  1245. 0x69, 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01,
  1246. 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61,
  1247. 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6c, 0x61,
  1248. 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0x69, 0x0a, 0x19, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73,
  1249. 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x45, 0x64, 0x75, 0x63, 0x61, 0x74, 0x69,
  1250. 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01,
  1251. 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x6f, 0x6f, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65,
  1252. 0x67, 0x72, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x67, 0x72,
  1253. 0x65, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x61, 0x64, 0x75, 0x61, 0x74, 0x65, 0x64, 0x18,
  1254. 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x67, 0x72, 0x61, 0x64, 0x75, 0x61, 0x74, 0x65, 0x64,
  1255. 0x22, 0xb9, 0x01, 0x0a, 0x1b, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72,
  1256. 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79,
  1257. 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
  1258. 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f,
  1259. 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f,
  1260. 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f,
  1261. 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72,
  1262. 0x74, 0x44, 0x61, 0x74, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x64, 0x61, 0x74,
  1263. 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x44, 0x61, 0x74, 0x65,
  1264. 0x12, 0x2a, 0x0a, 0x10, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69,
  1265. 0x74, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x73, 0x70,
  1266. 0x6f, 0x6e, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x37, 0x0a, 0x0d,
  1267. 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a,
  1268. 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12,
  1269. 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  1270. 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x25, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69,
  1271. 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02,
  1272. 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0xe9, 0x01, 0x0a,
  1273. 0x0c, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x17, 0x0a,
  1274. 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
  1275. 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61,
  1276. 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61,
  1277. 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01,
  1278. 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2b, 0x0a, 0x05, 0x72, 0x6f,
  1279. 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
  1280. 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x73, 0x65,
  1281. 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x05, 0x74, 0x65, 0x61, 0x6d, 0x73,
  1282. 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  1283. 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x73, 0x65, 0x52, 0x05, 0x74,
  1284. 0x65, 0x61, 0x6d, 0x73, 0x12, 0x32, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18,
  1285. 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41,
  1286. 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52,
  1287. 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0xd7, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64,
  1288. 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
  1289. 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01,
  1290. 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06,
  1291. 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74,
  1292. 0x61, 0x74, 0x75, 0x73, 0x12, 0x2b, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20,
  1293. 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x6d,
  1294. 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x73, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65,
  1295. 0x73, 0x12, 0x2b, 0x0a, 0x05, 0x74, 0x65, 0x61, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b,
  1296. 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55,
  1297. 0x73, 0x65, 0x72, 0x42, 0x61, 0x73, 0x65, 0x52, 0x05, 0x74, 0x65, 0x61, 0x6d, 0x73, 0x12, 0x32,
  1298. 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32,
  1299. 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73,
  1300. 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69,
  1301. 0x6c, 0x65, 0x22, 0x40, 0x0a, 0x22, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73,
  1302. 0x65, 0x72, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x6c, 0x65,
  1303. 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72,
  1304. 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72,
  1305. 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x52, 0x0a, 0x23, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e,
  1306. 0x55, 0x73, 0x65, 0x72, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x52, 0x6f,
  1307. 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x69,
  1308. 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x6d,
  1309. 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x73,
  1310. 0x65, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x42, 0x1e, 0x5a, 0x1c, 0x2e, 0x2f, 0x70, 0x72,
  1311. 0x6f, 0x74, 0x6f, 0x3b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f,
  1312. 0x6e, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  1313. }
  1314. var (
  1315. file_proto_common_proto_rawDescOnce sync.Once
  1316. file_proto_common_proto_rawDescData = file_proto_common_proto_rawDesc
  1317. )
  1318. func file_proto_common_proto_rawDescGZIP() []byte {
  1319. file_proto_common_proto_rawDescOnce.Do(func() {
  1320. file_proto_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_common_proto_rawDescData)
  1321. })
  1322. return file_proto_common_proto_rawDescData
  1323. }
  1324. var file_proto_common_proto_msgTypes = make([]protoimpl.MessageInfo, 19)
  1325. var file_proto_common_proto_goTypes = []interface{}{
  1326. (*Base)(nil), // 0: common.Base
  1327. (*Profile)(nil), // 1: common.Profile
  1328. (*LoginResponse)(nil), // 2: common.LoginResponse
  1329. (*ListAdminRolesItems)(nil), // 3: common.ListAdminRolesItems
  1330. (*ListAdminRolesResponse)(nil), // 4: common.ListAdminRolesResponse
  1331. (*GetAdminRoleBase)(nil), // 5: common.GetAdminRoleBase
  1332. (*GetAdminRoleResponse)(nil), // 6: common.GetAdminRoleResponse
  1333. (*GetUnassignedAdminRolesRequest)(nil), // 7: common.GetUnassignedAdminRolesRequest
  1334. (*ListAdminUsersResponse)(nil), // 8: common.ListAdminUsersResponse
  1335. (*AdminUserProfile)(nil), // 9: common.AdminUserProfile
  1336. (*AdminUserProfileSocialLink)(nil), // 10: common.AdminUserProfileSocialLink
  1337. (*AdminUserProfileEducation)(nil), // 11: common.AdminUserProfileEducation
  1338. (*AdminUserProfileWorkHistory)(nil), // 12: common.AdminUserProfileWorkHistory
  1339. (*AdminUserBase)(nil), // 13: common.AdminUserBase
  1340. (*GetAdminUserRequest)(nil), // 14: common.GetAdminUserRequest
  1341. (*GetAdminUser)(nil), // 15: common.GetAdminUser
  1342. (*UpdateAdminUserRequest)(nil), // 16: common.UpdateAdminUserRequest
  1343. (*GetAdminUserAssociatedRolesRequest)(nil), // 17: common.GetAdminUserAssociatedRolesRequest
  1344. (*GetAdminUserAssociatedRolesResponse)(nil), // 18: common.GetAdminUserAssociatedRolesResponse
  1345. }
  1346. var file_proto_common_proto_depIdxs = []int32{
  1347. 0, // 0: common.Profile.roles:type_name -> common.Base
  1348. 1, // 1: common.LoginResponse.user:type_name -> common.Profile
  1349. 3, // 2: common.ListAdminRolesResponse.items:type_name -> common.ListAdminRolesItems
  1350. 5, // 3: common.GetAdminRoleResponse.users:type_name -> common.GetAdminRoleBase
  1351. 5, // 4: common.GetAdminRoleResponse.permissions:type_name -> common.GetAdminRoleBase
  1352. 15, // 5: common.ListAdminUsersResponse.items:type_name -> common.GetAdminUser
  1353. 10, // 6: common.AdminUserProfile.social_links:type_name -> common.AdminUserProfileSocialLink
  1354. 11, // 7: common.AdminUserProfile.educations:type_name -> common.AdminUserProfileEducation
  1355. 12, // 8: common.AdminUserProfile.work_histories:type_name -> common.AdminUserProfileWorkHistory
  1356. 13, // 9: common.GetAdminUser.roles:type_name -> common.AdminUserBase
  1357. 13, // 10: common.GetAdminUser.teams:type_name -> common.AdminUserBase
  1358. 9, // 11: common.GetAdminUser.profile:type_name -> common.AdminUserProfile
  1359. 13, // 12: common.UpdateAdminUserRequest.roles:type_name -> common.AdminUserBase
  1360. 13, // 13: common.UpdateAdminUserRequest.teams:type_name -> common.AdminUserBase
  1361. 9, // 14: common.UpdateAdminUserRequest.profile:type_name -> common.AdminUserProfile
  1362. 13, // 15: common.GetAdminUserAssociatedRolesResponse.items:type_name -> common.AdminUserBase
  1363. 16, // [16:16] is the sub-list for method output_type
  1364. 16, // [16:16] is the sub-list for method input_type
  1365. 16, // [16:16] is the sub-list for extension type_name
  1366. 16, // [16:16] is the sub-list for extension extendee
  1367. 0, // [0:16] is the sub-list for field type_name
  1368. }
  1369. func init() { file_proto_common_proto_init() }
  1370. func file_proto_common_proto_init() {
  1371. if File_proto_common_proto != nil {
  1372. return
  1373. }
  1374. if !protoimpl.UnsafeEnabled {
  1375. file_proto_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  1376. switch v := v.(*Base); i {
  1377. case 0:
  1378. return &v.state
  1379. case 1:
  1380. return &v.sizeCache
  1381. case 2:
  1382. return &v.unknownFields
  1383. default:
  1384. return nil
  1385. }
  1386. }
  1387. file_proto_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1388. switch v := v.(*Profile); i {
  1389. case 0:
  1390. return &v.state
  1391. case 1:
  1392. return &v.sizeCache
  1393. case 2:
  1394. return &v.unknownFields
  1395. default:
  1396. return nil
  1397. }
  1398. }
  1399. file_proto_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1400. switch v := v.(*LoginResponse); i {
  1401. case 0:
  1402. return &v.state
  1403. case 1:
  1404. return &v.sizeCache
  1405. case 2:
  1406. return &v.unknownFields
  1407. default:
  1408. return nil
  1409. }
  1410. }
  1411. file_proto_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1412. switch v := v.(*ListAdminRolesItems); i {
  1413. case 0:
  1414. return &v.state
  1415. case 1:
  1416. return &v.sizeCache
  1417. case 2:
  1418. return &v.unknownFields
  1419. default:
  1420. return nil
  1421. }
  1422. }
  1423. file_proto_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1424. switch v := v.(*ListAdminRolesResponse); i {
  1425. case 0:
  1426. return &v.state
  1427. case 1:
  1428. return &v.sizeCache
  1429. case 2:
  1430. return &v.unknownFields
  1431. default:
  1432. return nil
  1433. }
  1434. }
  1435. file_proto_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1436. switch v := v.(*GetAdminRoleBase); i {
  1437. case 0:
  1438. return &v.state
  1439. case 1:
  1440. return &v.sizeCache
  1441. case 2:
  1442. return &v.unknownFields
  1443. default:
  1444. return nil
  1445. }
  1446. }
  1447. file_proto_common_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1448. switch v := v.(*GetAdminRoleResponse); i {
  1449. case 0:
  1450. return &v.state
  1451. case 1:
  1452. return &v.sizeCache
  1453. case 2:
  1454. return &v.unknownFields
  1455. default:
  1456. return nil
  1457. }
  1458. }
  1459. file_proto_common_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1460. switch v := v.(*GetUnassignedAdminRolesRequest); i {
  1461. case 0:
  1462. return &v.state
  1463. case 1:
  1464. return &v.sizeCache
  1465. case 2:
  1466. return &v.unknownFields
  1467. default:
  1468. return nil
  1469. }
  1470. }
  1471. file_proto_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1472. switch v := v.(*ListAdminUsersResponse); i {
  1473. case 0:
  1474. return &v.state
  1475. case 1:
  1476. return &v.sizeCache
  1477. case 2:
  1478. return &v.unknownFields
  1479. default:
  1480. return nil
  1481. }
  1482. }
  1483. file_proto_common_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1484. switch v := v.(*AdminUserProfile); i {
  1485. case 0:
  1486. return &v.state
  1487. case 1:
  1488. return &v.sizeCache
  1489. case 2:
  1490. return &v.unknownFields
  1491. default:
  1492. return nil
  1493. }
  1494. }
  1495. file_proto_common_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1496. switch v := v.(*AdminUserProfileSocialLink); i {
  1497. case 0:
  1498. return &v.state
  1499. case 1:
  1500. return &v.sizeCache
  1501. case 2:
  1502. return &v.unknownFields
  1503. default:
  1504. return nil
  1505. }
  1506. }
  1507. file_proto_common_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1508. switch v := v.(*AdminUserProfileEducation); i {
  1509. case 0:
  1510. return &v.state
  1511. case 1:
  1512. return &v.sizeCache
  1513. case 2:
  1514. return &v.unknownFields
  1515. default:
  1516. return nil
  1517. }
  1518. }
  1519. file_proto_common_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  1520. switch v := v.(*AdminUserProfileWorkHistory); i {
  1521. case 0:
  1522. return &v.state
  1523. case 1:
  1524. return &v.sizeCache
  1525. case 2:
  1526. return &v.unknownFields
  1527. default:
  1528. return nil
  1529. }
  1530. }
  1531. file_proto_common_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
  1532. switch v := v.(*AdminUserBase); i {
  1533. case 0:
  1534. return &v.state
  1535. case 1:
  1536. return &v.sizeCache
  1537. case 2:
  1538. return &v.unknownFields
  1539. default:
  1540. return nil
  1541. }
  1542. }
  1543. file_proto_common_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
  1544. switch v := v.(*GetAdminUserRequest); i {
  1545. case 0:
  1546. return &v.state
  1547. case 1:
  1548. return &v.sizeCache
  1549. case 2:
  1550. return &v.unknownFields
  1551. default:
  1552. return nil
  1553. }
  1554. }
  1555. file_proto_common_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
  1556. switch v := v.(*GetAdminUser); i {
  1557. case 0:
  1558. return &v.state
  1559. case 1:
  1560. return &v.sizeCache
  1561. case 2:
  1562. return &v.unknownFields
  1563. default:
  1564. return nil
  1565. }
  1566. }
  1567. file_proto_common_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
  1568. switch v := v.(*UpdateAdminUserRequest); i {
  1569. case 0:
  1570. return &v.state
  1571. case 1:
  1572. return &v.sizeCache
  1573. case 2:
  1574. return &v.unknownFields
  1575. default:
  1576. return nil
  1577. }
  1578. }
  1579. file_proto_common_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
  1580. switch v := v.(*GetAdminUserAssociatedRolesRequest); i {
  1581. case 0:
  1582. return &v.state
  1583. case 1:
  1584. return &v.sizeCache
  1585. case 2:
  1586. return &v.unknownFields
  1587. default:
  1588. return nil
  1589. }
  1590. }
  1591. file_proto_common_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
  1592. switch v := v.(*GetAdminUserAssociatedRolesResponse); i {
  1593. case 0:
  1594. return &v.state
  1595. case 1:
  1596. return &v.sizeCache
  1597. case 2:
  1598. return &v.unknownFields
  1599. default:
  1600. return nil
  1601. }
  1602. }
  1603. }
  1604. type x struct{}
  1605. out := protoimpl.TypeBuilder{
  1606. File: protoimpl.DescBuilder{
  1607. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1608. RawDescriptor: file_proto_common_proto_rawDesc,
  1609. NumEnums: 0,
  1610. NumMessages: 19,
  1611. NumExtensions: 0,
  1612. NumServices: 0,
  1613. },
  1614. GoTypes: file_proto_common_proto_goTypes,
  1615. DependencyIndexes: file_proto_common_proto_depIdxs,
  1616. MessageInfos: file_proto_common_proto_msgTypes,
  1617. }.Build()
  1618. File_proto_common_proto = out.File
  1619. file_proto_common_proto_rawDesc = nil
  1620. file_proto_common_proto_goTypes = nil
  1621. file_proto_common_proto_depIdxs = nil
  1622. }