admin_user_service.pb.go 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151
  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/admin_user_service.proto
  6. package authorization_service
  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. type GetAdminUserRequest struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  24. }
  25. func (x *GetAdminUserRequest) Reset() {
  26. *x = GetAdminUserRequest{}
  27. if protoimpl.UnsafeEnabled {
  28. mi := &file_proto_admin_user_service_proto_msgTypes[0]
  29. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  30. ms.StoreMessageInfo(mi)
  31. }
  32. }
  33. func (x *GetAdminUserRequest) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*GetAdminUserRequest) ProtoMessage() {}
  37. func (x *GetAdminUserRequest) ProtoReflect() protoreflect.Message {
  38. mi := &file_proto_admin_user_service_proto_msgTypes[0]
  39. if protoimpl.UnsafeEnabled && x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use GetAdminUserRequest.ProtoReflect.Descriptor instead.
  49. func (*GetAdminUserRequest) Descriptor() ([]byte, []int) {
  50. return file_proto_admin_user_service_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *GetAdminUserRequest) GetId() int64 {
  53. if x != nil {
  54. return x.Id
  55. }
  56. return 0
  57. }
  58. type GetAdminUserResponse struct {
  59. state protoimpl.MessageState
  60. sizeCache protoimpl.SizeCache
  61. unknownFields protoimpl.UnknownFields
  62. Data *AdminUser `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  63. }
  64. func (x *GetAdminUserResponse) Reset() {
  65. *x = GetAdminUserResponse{}
  66. if protoimpl.UnsafeEnabled {
  67. mi := &file_proto_admin_user_service_proto_msgTypes[1]
  68. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  69. ms.StoreMessageInfo(mi)
  70. }
  71. }
  72. func (x *GetAdminUserResponse) String() string {
  73. return protoimpl.X.MessageStringOf(x)
  74. }
  75. func (*GetAdminUserResponse) ProtoMessage() {}
  76. func (x *GetAdminUserResponse) ProtoReflect() protoreflect.Message {
  77. mi := &file_proto_admin_user_service_proto_msgTypes[1]
  78. if protoimpl.UnsafeEnabled && x != nil {
  79. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  80. if ms.LoadMessageInfo() == nil {
  81. ms.StoreMessageInfo(mi)
  82. }
  83. return ms
  84. }
  85. return mi.MessageOf(x)
  86. }
  87. // Deprecated: Use GetAdminUserResponse.ProtoReflect.Descriptor instead.
  88. func (*GetAdminUserResponse) Descriptor() ([]byte, []int) {
  89. return file_proto_admin_user_service_proto_rawDescGZIP(), []int{1}
  90. }
  91. func (x *GetAdminUserResponse) GetData() *AdminUser {
  92. if x != nil {
  93. return x.Data
  94. }
  95. return nil
  96. }
  97. // ------------ 创建账号 ------------
  98. type CreateAdminUserRequest struct {
  99. state protoimpl.MessageState
  100. sizeCache protoimpl.SizeCache
  101. unknownFields protoimpl.UnknownFields
  102. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
  103. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
  104. PhoneNumber string `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
  105. Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
  106. Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"`
  107. Roles []int64 `protobuf:"varint,6,rep,packed,name=roles,proto3" json:"roles,omitempty"`
  108. Teams []int64 `protobuf:"varint,7,rep,packed,name=teams,proto3" json:"teams,omitempty"`
  109. }
  110. func (x *CreateAdminUserRequest) Reset() {
  111. *x = CreateAdminUserRequest{}
  112. if protoimpl.UnsafeEnabled {
  113. mi := &file_proto_admin_user_service_proto_msgTypes[2]
  114. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  115. ms.StoreMessageInfo(mi)
  116. }
  117. }
  118. func (x *CreateAdminUserRequest) String() string {
  119. return protoimpl.X.MessageStringOf(x)
  120. }
  121. func (*CreateAdminUserRequest) ProtoMessage() {}
  122. func (x *CreateAdminUserRequest) ProtoReflect() protoreflect.Message {
  123. mi := &file_proto_admin_user_service_proto_msgTypes[2]
  124. if protoimpl.UnsafeEnabled && x != nil {
  125. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  126. if ms.LoadMessageInfo() == nil {
  127. ms.StoreMessageInfo(mi)
  128. }
  129. return ms
  130. }
  131. return mi.MessageOf(x)
  132. }
  133. // Deprecated: Use CreateAdminUserRequest.ProtoReflect.Descriptor instead.
  134. func (*CreateAdminUserRequest) Descriptor() ([]byte, []int) {
  135. return file_proto_admin_user_service_proto_rawDescGZIP(), []int{2}
  136. }
  137. func (x *CreateAdminUserRequest) GetUsername() string {
  138. if x != nil {
  139. return x.Username
  140. }
  141. return ""
  142. }
  143. func (x *CreateAdminUserRequest) GetPassword() string {
  144. if x != nil {
  145. return x.Password
  146. }
  147. return ""
  148. }
  149. func (x *CreateAdminUserRequest) GetPhoneNumber() string {
  150. if x != nil {
  151. return x.PhoneNumber
  152. }
  153. return ""
  154. }
  155. func (x *CreateAdminUserRequest) GetEmail() string {
  156. if x != nil {
  157. return x.Email
  158. }
  159. return ""
  160. }
  161. func (x *CreateAdminUserRequest) GetAvatar() string {
  162. if x != nil {
  163. return x.Avatar
  164. }
  165. return ""
  166. }
  167. func (x *CreateAdminUserRequest) GetRoles() []int64 {
  168. if x != nil {
  169. return x.Roles
  170. }
  171. return nil
  172. }
  173. func (x *CreateAdminUserRequest) GetTeams() []int64 {
  174. if x != nil {
  175. return x.Teams
  176. }
  177. return nil
  178. }
  179. type CreateAdminUserResponse struct {
  180. state protoimpl.MessageState
  181. sizeCache protoimpl.SizeCache
  182. unknownFields protoimpl.UnknownFields
  183. }
  184. func (x *CreateAdminUserResponse) Reset() {
  185. *x = CreateAdminUserResponse{}
  186. if protoimpl.UnsafeEnabled {
  187. mi := &file_proto_admin_user_service_proto_msgTypes[3]
  188. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  189. ms.StoreMessageInfo(mi)
  190. }
  191. }
  192. func (x *CreateAdminUserResponse) String() string {
  193. return protoimpl.X.MessageStringOf(x)
  194. }
  195. func (*CreateAdminUserResponse) ProtoMessage() {}
  196. func (x *CreateAdminUserResponse) ProtoReflect() protoreflect.Message {
  197. mi := &file_proto_admin_user_service_proto_msgTypes[3]
  198. if protoimpl.UnsafeEnabled && x != nil {
  199. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  200. if ms.LoadMessageInfo() == nil {
  201. ms.StoreMessageInfo(mi)
  202. }
  203. return ms
  204. }
  205. return mi.MessageOf(x)
  206. }
  207. // Deprecated: Use CreateAdminUserResponse.ProtoReflect.Descriptor instead.
  208. func (*CreateAdminUserResponse) Descriptor() ([]byte, []int) {
  209. return file_proto_admin_user_service_proto_rawDescGZIP(), []int{3}
  210. }
  211. type UpdateAdminUserRequest struct {
  212. state protoimpl.MessageState
  213. sizeCache protoimpl.SizeCache
  214. unknownFields protoimpl.UnknownFields
  215. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  216. PhoneNumber string `protobuf:"bytes,2,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
  217. Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
  218. Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"`
  219. Roles []int64 `protobuf:"varint,5,rep,packed,name=roles,proto3" json:"roles,omitempty"`
  220. Teams []int64 `protobuf:"varint,6,rep,packed,name=teams,proto3" json:"teams,omitempty"`
  221. }
  222. func (x *UpdateAdminUserRequest) Reset() {
  223. *x = UpdateAdminUserRequest{}
  224. if protoimpl.UnsafeEnabled {
  225. mi := &file_proto_admin_user_service_proto_msgTypes[4]
  226. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  227. ms.StoreMessageInfo(mi)
  228. }
  229. }
  230. func (x *UpdateAdminUserRequest) String() string {
  231. return protoimpl.X.MessageStringOf(x)
  232. }
  233. func (*UpdateAdminUserRequest) ProtoMessage() {}
  234. func (x *UpdateAdminUserRequest) ProtoReflect() protoreflect.Message {
  235. mi := &file_proto_admin_user_service_proto_msgTypes[4]
  236. if protoimpl.UnsafeEnabled && x != nil {
  237. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  238. if ms.LoadMessageInfo() == nil {
  239. ms.StoreMessageInfo(mi)
  240. }
  241. return ms
  242. }
  243. return mi.MessageOf(x)
  244. }
  245. // Deprecated: Use UpdateAdminUserRequest.ProtoReflect.Descriptor instead.
  246. func (*UpdateAdminUserRequest) Descriptor() ([]byte, []int) {
  247. return file_proto_admin_user_service_proto_rawDescGZIP(), []int{4}
  248. }
  249. func (x *UpdateAdminUserRequest) GetId() int64 {
  250. if x != nil {
  251. return x.Id
  252. }
  253. return 0
  254. }
  255. func (x *UpdateAdminUserRequest) GetPhoneNumber() string {
  256. if x != nil {
  257. return x.PhoneNumber
  258. }
  259. return ""
  260. }
  261. func (x *UpdateAdminUserRequest) GetEmail() string {
  262. if x != nil {
  263. return x.Email
  264. }
  265. return ""
  266. }
  267. func (x *UpdateAdminUserRequest) GetAvatar() string {
  268. if x != nil {
  269. return x.Avatar
  270. }
  271. return ""
  272. }
  273. func (x *UpdateAdminUserRequest) GetRoles() []int64 {
  274. if x != nil {
  275. return x.Roles
  276. }
  277. return nil
  278. }
  279. func (x *UpdateAdminUserRequest) GetTeams() []int64 {
  280. if x != nil {
  281. return x.Teams
  282. }
  283. return nil
  284. }
  285. type UpdateAdminUserResponse struct {
  286. state protoimpl.MessageState
  287. sizeCache protoimpl.SizeCache
  288. unknownFields protoimpl.UnknownFields
  289. }
  290. func (x *UpdateAdminUserResponse) Reset() {
  291. *x = UpdateAdminUserResponse{}
  292. if protoimpl.UnsafeEnabled {
  293. mi := &file_proto_admin_user_service_proto_msgTypes[5]
  294. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  295. ms.StoreMessageInfo(mi)
  296. }
  297. }
  298. func (x *UpdateAdminUserResponse) String() string {
  299. return protoimpl.X.MessageStringOf(x)
  300. }
  301. func (*UpdateAdminUserResponse) ProtoMessage() {}
  302. func (x *UpdateAdminUserResponse) ProtoReflect() protoreflect.Message {
  303. mi := &file_proto_admin_user_service_proto_msgTypes[5]
  304. if protoimpl.UnsafeEnabled && x != nil {
  305. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  306. if ms.LoadMessageInfo() == nil {
  307. ms.StoreMessageInfo(mi)
  308. }
  309. return ms
  310. }
  311. return mi.MessageOf(x)
  312. }
  313. // Deprecated: Use UpdateAdminUserResponse.ProtoReflect.Descriptor instead.
  314. func (*UpdateAdminUserResponse) Descriptor() ([]byte, []int) {
  315. return file_proto_admin_user_service_proto_rawDescGZIP(), []int{5}
  316. }
  317. // ------------ 取消列表 ------------
  318. type ListAdminUsersRequest struct {
  319. state protoimpl.MessageState
  320. sizeCache protoimpl.SizeCache
  321. unknownFields protoimpl.UnknownFields
  322. Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
  323. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  324. Keyword string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"`
  325. Status StatusEnum `protobuf:"varint,4,opt,name=status,proto3,enum=base_service.StatusEnum" json:"status,omitempty"`
  326. }
  327. func (x *ListAdminUsersRequest) Reset() {
  328. *x = ListAdminUsersRequest{}
  329. if protoimpl.UnsafeEnabled {
  330. mi := &file_proto_admin_user_service_proto_msgTypes[6]
  331. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  332. ms.StoreMessageInfo(mi)
  333. }
  334. }
  335. func (x *ListAdminUsersRequest) String() string {
  336. return protoimpl.X.MessageStringOf(x)
  337. }
  338. func (*ListAdminUsersRequest) ProtoMessage() {}
  339. func (x *ListAdminUsersRequest) ProtoReflect() protoreflect.Message {
  340. mi := &file_proto_admin_user_service_proto_msgTypes[6]
  341. if protoimpl.UnsafeEnabled && x != nil {
  342. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  343. if ms.LoadMessageInfo() == nil {
  344. ms.StoreMessageInfo(mi)
  345. }
  346. return ms
  347. }
  348. return mi.MessageOf(x)
  349. }
  350. // Deprecated: Use ListAdminUsersRequest.ProtoReflect.Descriptor instead.
  351. func (*ListAdminUsersRequest) Descriptor() ([]byte, []int) {
  352. return file_proto_admin_user_service_proto_rawDescGZIP(), []int{6}
  353. }
  354. func (x *ListAdminUsersRequest) GetPage() int32 {
  355. if x != nil {
  356. return x.Page
  357. }
  358. return 0
  359. }
  360. func (x *ListAdminUsersRequest) GetPageSize() int32 {
  361. if x != nil {
  362. return x.PageSize
  363. }
  364. return 0
  365. }
  366. func (x *ListAdminUsersRequest) GetKeyword() string {
  367. if x != nil {
  368. return x.Keyword
  369. }
  370. return ""
  371. }
  372. func (x *ListAdminUsersRequest) GetStatus() StatusEnum {
  373. if x != nil {
  374. return x.Status
  375. }
  376. return StatusEnum_UNKNOWN
  377. }
  378. type ListAdminUsersResponse struct {
  379. state protoimpl.MessageState
  380. sizeCache protoimpl.SizeCache
  381. unknownFields protoimpl.UnknownFields
  382. Items []*AdminUser `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
  383. TotalCount int64 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
  384. }
  385. func (x *ListAdminUsersResponse) Reset() {
  386. *x = ListAdminUsersResponse{}
  387. if protoimpl.UnsafeEnabled {
  388. mi := &file_proto_admin_user_service_proto_msgTypes[7]
  389. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  390. ms.StoreMessageInfo(mi)
  391. }
  392. }
  393. func (x *ListAdminUsersResponse) String() string {
  394. return protoimpl.X.MessageStringOf(x)
  395. }
  396. func (*ListAdminUsersResponse) ProtoMessage() {}
  397. func (x *ListAdminUsersResponse) ProtoReflect() protoreflect.Message {
  398. mi := &file_proto_admin_user_service_proto_msgTypes[7]
  399. if protoimpl.UnsafeEnabled && x != nil {
  400. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  401. if ms.LoadMessageInfo() == nil {
  402. ms.StoreMessageInfo(mi)
  403. }
  404. return ms
  405. }
  406. return mi.MessageOf(x)
  407. }
  408. // Deprecated: Use ListAdminUsersResponse.ProtoReflect.Descriptor instead.
  409. func (*ListAdminUsersResponse) Descriptor() ([]byte, []int) {
  410. return file_proto_admin_user_service_proto_rawDescGZIP(), []int{7}
  411. }
  412. func (x *ListAdminUsersResponse) GetItems() []*AdminUser {
  413. if x != nil {
  414. return x.Items
  415. }
  416. return nil
  417. }
  418. func (x *ListAdminUsersResponse) GetTotalCount() int64 {
  419. if x != nil {
  420. return x.TotalCount
  421. }
  422. return 0
  423. }
  424. // ------------ 删除用户【管理员】 ------------
  425. type DeleteAdminUserRequest struct {
  426. state protoimpl.MessageState
  427. sizeCache protoimpl.SizeCache
  428. unknownFields protoimpl.UnknownFields
  429. UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
  430. }
  431. func (x *DeleteAdminUserRequest) Reset() {
  432. *x = DeleteAdminUserRequest{}
  433. if protoimpl.UnsafeEnabled {
  434. mi := &file_proto_admin_user_service_proto_msgTypes[8]
  435. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  436. ms.StoreMessageInfo(mi)
  437. }
  438. }
  439. func (x *DeleteAdminUserRequest) String() string {
  440. return protoimpl.X.MessageStringOf(x)
  441. }
  442. func (*DeleteAdminUserRequest) ProtoMessage() {}
  443. func (x *DeleteAdminUserRequest) ProtoReflect() protoreflect.Message {
  444. mi := &file_proto_admin_user_service_proto_msgTypes[8]
  445. if protoimpl.UnsafeEnabled && x != nil {
  446. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  447. if ms.LoadMessageInfo() == nil {
  448. ms.StoreMessageInfo(mi)
  449. }
  450. return ms
  451. }
  452. return mi.MessageOf(x)
  453. }
  454. // Deprecated: Use DeleteAdminUserRequest.ProtoReflect.Descriptor instead.
  455. func (*DeleteAdminUserRequest) Descriptor() ([]byte, []int) {
  456. return file_proto_admin_user_service_proto_rawDescGZIP(), []int{8}
  457. }
  458. func (x *DeleteAdminUserRequest) GetUserId() int64 {
  459. if x != nil {
  460. return x.UserId
  461. }
  462. return 0
  463. }
  464. type DeleteAdminUserResponse struct {
  465. state protoimpl.MessageState
  466. sizeCache protoimpl.SizeCache
  467. unknownFields protoimpl.UnknownFields
  468. }
  469. func (x *DeleteAdminUserResponse) Reset() {
  470. *x = DeleteAdminUserResponse{}
  471. if protoimpl.UnsafeEnabled {
  472. mi := &file_proto_admin_user_service_proto_msgTypes[9]
  473. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  474. ms.StoreMessageInfo(mi)
  475. }
  476. }
  477. func (x *DeleteAdminUserResponse) String() string {
  478. return protoimpl.X.MessageStringOf(x)
  479. }
  480. func (*DeleteAdminUserResponse) ProtoMessage() {}
  481. func (x *DeleteAdminUserResponse) ProtoReflect() protoreflect.Message {
  482. mi := &file_proto_admin_user_service_proto_msgTypes[9]
  483. if protoimpl.UnsafeEnabled && x != nil {
  484. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  485. if ms.LoadMessageInfo() == nil {
  486. ms.StoreMessageInfo(mi)
  487. }
  488. return ms
  489. }
  490. return mi.MessageOf(x)
  491. }
  492. // Deprecated: Use DeleteAdminUserResponse.ProtoReflect.Descriptor instead.
  493. func (*DeleteAdminUserResponse) Descriptor() ([]byte, []int) {
  494. return file_proto_admin_user_service_proto_rawDescGZIP(), []int{9}
  495. }
  496. // ------------ 启用禁用用户【管理员】 ------------
  497. type ToggleAdminUserRequest struct {
  498. state protoimpl.MessageState
  499. sizeCache protoimpl.SizeCache
  500. unknownFields protoimpl.UnknownFields
  501. UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
  502. Status StatusEnum `protobuf:"varint,2,opt,name=status,proto3,enum=base_service.StatusEnum" json:"status,omitempty"`
  503. }
  504. func (x *ToggleAdminUserRequest) Reset() {
  505. *x = ToggleAdminUserRequest{}
  506. if protoimpl.UnsafeEnabled {
  507. mi := &file_proto_admin_user_service_proto_msgTypes[10]
  508. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  509. ms.StoreMessageInfo(mi)
  510. }
  511. }
  512. func (x *ToggleAdminUserRequest) String() string {
  513. return protoimpl.X.MessageStringOf(x)
  514. }
  515. func (*ToggleAdminUserRequest) ProtoMessage() {}
  516. func (x *ToggleAdminUserRequest) ProtoReflect() protoreflect.Message {
  517. mi := &file_proto_admin_user_service_proto_msgTypes[10]
  518. if protoimpl.UnsafeEnabled && x != nil {
  519. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  520. if ms.LoadMessageInfo() == nil {
  521. ms.StoreMessageInfo(mi)
  522. }
  523. return ms
  524. }
  525. return mi.MessageOf(x)
  526. }
  527. // Deprecated: Use ToggleAdminUserRequest.ProtoReflect.Descriptor instead.
  528. func (*ToggleAdminUserRequest) Descriptor() ([]byte, []int) {
  529. return file_proto_admin_user_service_proto_rawDescGZIP(), []int{10}
  530. }
  531. func (x *ToggleAdminUserRequest) GetUserId() int64 {
  532. if x != nil {
  533. return x.UserId
  534. }
  535. return 0
  536. }
  537. func (x *ToggleAdminUserRequest) GetStatus() StatusEnum {
  538. if x != nil {
  539. return x.Status
  540. }
  541. return StatusEnum_UNKNOWN
  542. }
  543. type ToggleAdminUserResponse struct {
  544. state protoimpl.MessageState
  545. sizeCache protoimpl.SizeCache
  546. unknownFields protoimpl.UnknownFields
  547. }
  548. func (x *ToggleAdminUserResponse) Reset() {
  549. *x = ToggleAdminUserResponse{}
  550. if protoimpl.UnsafeEnabled {
  551. mi := &file_proto_admin_user_service_proto_msgTypes[11]
  552. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  553. ms.StoreMessageInfo(mi)
  554. }
  555. }
  556. func (x *ToggleAdminUserResponse) String() string {
  557. return protoimpl.X.MessageStringOf(x)
  558. }
  559. func (*ToggleAdminUserResponse) ProtoMessage() {}
  560. func (x *ToggleAdminUserResponse) ProtoReflect() protoreflect.Message {
  561. mi := &file_proto_admin_user_service_proto_msgTypes[11]
  562. if protoimpl.UnsafeEnabled && x != nil {
  563. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  564. if ms.LoadMessageInfo() == nil {
  565. ms.StoreMessageInfo(mi)
  566. }
  567. return ms
  568. }
  569. return mi.MessageOf(x)
  570. }
  571. // Deprecated: Use ToggleAdminUserResponse.ProtoReflect.Descriptor instead.
  572. func (*ToggleAdminUserResponse) Descriptor() ([]byte, []int) {
  573. return file_proto_admin_user_service_proto_rawDescGZIP(), []int{11}
  574. }
  575. type RetrieveEnabledUsersRequest struct {
  576. state protoimpl.MessageState
  577. sizeCache protoimpl.SizeCache
  578. unknownFields protoimpl.UnknownFields
  579. }
  580. func (x *RetrieveEnabledUsersRequest) Reset() {
  581. *x = RetrieveEnabledUsersRequest{}
  582. if protoimpl.UnsafeEnabled {
  583. mi := &file_proto_admin_user_service_proto_msgTypes[12]
  584. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  585. ms.StoreMessageInfo(mi)
  586. }
  587. }
  588. func (x *RetrieveEnabledUsersRequest) String() string {
  589. return protoimpl.X.MessageStringOf(x)
  590. }
  591. func (*RetrieveEnabledUsersRequest) ProtoMessage() {}
  592. func (x *RetrieveEnabledUsersRequest) ProtoReflect() protoreflect.Message {
  593. mi := &file_proto_admin_user_service_proto_msgTypes[12]
  594. if protoimpl.UnsafeEnabled && x != nil {
  595. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  596. if ms.LoadMessageInfo() == nil {
  597. ms.StoreMessageInfo(mi)
  598. }
  599. return ms
  600. }
  601. return mi.MessageOf(x)
  602. }
  603. // Deprecated: Use RetrieveEnabledUsersRequest.ProtoReflect.Descriptor instead.
  604. func (*RetrieveEnabledUsersRequest) Descriptor() ([]byte, []int) {
  605. return file_proto_admin_user_service_proto_rawDescGZIP(), []int{12}
  606. }
  607. type RetrieveEnabledUsersResponse struct {
  608. state protoimpl.MessageState
  609. sizeCache protoimpl.SizeCache
  610. unknownFields protoimpl.UnknownFields
  611. Users []*AdminUser `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
  612. }
  613. func (x *RetrieveEnabledUsersResponse) Reset() {
  614. *x = RetrieveEnabledUsersResponse{}
  615. if protoimpl.UnsafeEnabled {
  616. mi := &file_proto_admin_user_service_proto_msgTypes[13]
  617. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  618. ms.StoreMessageInfo(mi)
  619. }
  620. }
  621. func (x *RetrieveEnabledUsersResponse) String() string {
  622. return protoimpl.X.MessageStringOf(x)
  623. }
  624. func (*RetrieveEnabledUsersResponse) ProtoMessage() {}
  625. func (x *RetrieveEnabledUsersResponse) ProtoReflect() protoreflect.Message {
  626. mi := &file_proto_admin_user_service_proto_msgTypes[13]
  627. if protoimpl.UnsafeEnabled && x != nil {
  628. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  629. if ms.LoadMessageInfo() == nil {
  630. ms.StoreMessageInfo(mi)
  631. }
  632. return ms
  633. }
  634. return mi.MessageOf(x)
  635. }
  636. // Deprecated: Use RetrieveEnabledUsersResponse.ProtoReflect.Descriptor instead.
  637. func (*RetrieveEnabledUsersResponse) Descriptor() ([]byte, []int) {
  638. return file_proto_admin_user_service_proto_rawDescGZIP(), []int{13}
  639. }
  640. func (x *RetrieveEnabledUsersResponse) GetUsers() []*AdminUser {
  641. if x != nil {
  642. return x.Users
  643. }
  644. return nil
  645. }
  646. var File_proto_admin_user_service_proto protoreflect.FileDescriptor
  647. var file_proto_admin_user_service_proto_rawDesc = []byte{
  648. 0x0a, 0x1e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73,
  649. 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  650. 0x12, 0x12, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72,
  651. 0x76, 0x69, 0x63, 0x65, 0x1a, 0x18, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x61, 0x73, 0x65,
  652. 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x25,
  653. 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65,
  654. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  655. 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0x43, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69,
  656. 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a,
  657. 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61,
  658. 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e,
  659. 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xcd, 0x01, 0x0a, 0x16, 0x43,
  660. 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65,
  661. 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d,
  662. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d,
  663. 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20,
  664. 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x21, 0x0a,
  665. 0x0c, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20,
  666. 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72,
  667. 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
  668. 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72,
  669. 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x14,
  670. 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x03, 0x52, 0x05, 0x72,
  671. 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x65, 0x61, 0x6d, 0x73, 0x18, 0x07, 0x20,
  672. 0x03, 0x28, 0x03, 0x52, 0x05, 0x74, 0x65, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x43, 0x72,
  673. 0x65, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73,
  674. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa5, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
  675. 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  676. 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64,
  677. 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72,
  678. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d,
  679. 0x62, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01,
  680. 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61,
  681. 0x74, 0x61, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61,
  682. 0x72, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x03,
  683. 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x65, 0x61, 0x6d, 0x73,
  684. 0x18, 0x06, 0x20, 0x03, 0x28, 0x03, 0x52, 0x05, 0x74, 0x65, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a,
  685. 0x17, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72,
  686. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x94, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73,
  687. 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
  688. 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
  689. 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73,
  690. 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53,
  691. 0x69, 0x7a, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03,
  692. 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x30, 0x0a,
  693. 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e,
  694. 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x61,
  695. 0x74, 0x75, 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22,
  696. 0x68, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72,
  697. 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x69, 0x74, 0x65,
  698. 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f,
  699. 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65,
  700. 0x72, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61,
  701. 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x74,
  702. 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x31, 0x0a, 0x16, 0x44, 0x65, 0x6c,
  703. 0x65, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
  704. 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01,
  705. 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x19, 0x0a, 0x17,
  706. 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52,
  707. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 0x0a, 0x16, 0x54, 0x6f, 0x67, 0x67, 0x6c,
  708. 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  709. 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  710. 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x74,
  711. 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x62, 0x61, 0x73,
  712. 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
  713. 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x19, 0x0a, 0x17,
  714. 0x54, 0x6f, 0x67, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52,
  715. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x0a, 0x1b, 0x52, 0x65, 0x74, 0x72, 0x69,
  716. 0x65, 0x76, 0x65, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52,
  717. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4d, 0x0a, 0x1c, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65,
  718. 0x76, 0x65, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65,
  719. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18,
  720. 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72,
  721. 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05,
  722. 0x75, 0x73, 0x65, 0x72, 0x73, 0x32, 0x89, 0x06, 0x0a, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55,
  723. 0x73, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x61, 0x0a, 0x0c, 0x47, 0x65,
  724. 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x27, 0x2e, 0x61, 0x64, 0x6d,
  725. 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
  726. 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
  727. 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72,
  728. 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69,
  729. 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a,
  730. 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12,
  731. 0x29, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72,
  732. 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73,
  733. 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x61, 0x64, 0x6d,
  734. 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
  735. 0x4c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65,
  736. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
  737. 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x61, 0x64, 0x6d, 0x69,
  738. 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43,
  739. 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65,
  740. 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73,
  741. 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
  742. 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  743. 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x0f, 0x54, 0x6f, 0x67, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x6d, 0x69,
  744. 0x6e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73,
  745. 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x54, 0x6f, 0x67, 0x67, 0x6c,
  746. 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  747. 0x74, 0x1a, 0x2b, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73,
  748. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x54, 0x6f, 0x67, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x6d,
  749. 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a,
  750. 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65,
  751. 0x72, 0x12, 0x2a, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73,
  752. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x64, 0x6d,
  753. 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e,
  754. 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
  755. 0x63, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73,
  756. 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x0f, 0x55, 0x70,
  757. 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x2a, 0x2e,
  758. 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
  759. 0x63, 0x65, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73,
  760. 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x61, 0x64, 0x6d, 0x69,
  761. 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x55,
  762. 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65,
  763. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x14, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65,
  764. 0x76, 0x65, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x2f,
  765. 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76,
  766. 0x69, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x45, 0x6e, 0x61, 0x62,
  767. 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  768. 0x30, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72,
  769. 0x76, 0x69, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x45, 0x6e, 0x61,
  770. 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  771. 0x65, 0x42, 0x1f, 0x5a, 0x1d, 0x2e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x61, 0x75, 0x74,
  772. 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
  773. 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  774. }
  775. var (
  776. file_proto_admin_user_service_proto_rawDescOnce sync.Once
  777. file_proto_admin_user_service_proto_rawDescData = file_proto_admin_user_service_proto_rawDesc
  778. )
  779. func file_proto_admin_user_service_proto_rawDescGZIP() []byte {
  780. file_proto_admin_user_service_proto_rawDescOnce.Do(func() {
  781. file_proto_admin_user_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_admin_user_service_proto_rawDescData)
  782. })
  783. return file_proto_admin_user_service_proto_rawDescData
  784. }
  785. var file_proto_admin_user_service_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
  786. var file_proto_admin_user_service_proto_goTypes = []interface{}{
  787. (*GetAdminUserRequest)(nil), // 0: admin_user_service.GetAdminUserRequest
  788. (*GetAdminUserResponse)(nil), // 1: admin_user_service.GetAdminUserResponse
  789. (*CreateAdminUserRequest)(nil), // 2: admin_user_service.CreateAdminUserRequest
  790. (*CreateAdminUserResponse)(nil), // 3: admin_user_service.CreateAdminUserResponse
  791. (*UpdateAdminUserRequest)(nil), // 4: admin_user_service.UpdateAdminUserRequest
  792. (*UpdateAdminUserResponse)(nil), // 5: admin_user_service.UpdateAdminUserResponse
  793. (*ListAdminUsersRequest)(nil), // 6: admin_user_service.ListAdminUsersRequest
  794. (*ListAdminUsersResponse)(nil), // 7: admin_user_service.ListAdminUsersResponse
  795. (*DeleteAdminUserRequest)(nil), // 8: admin_user_service.DeleteAdminUserRequest
  796. (*DeleteAdminUserResponse)(nil), // 9: admin_user_service.DeleteAdminUserResponse
  797. (*ToggleAdminUserRequest)(nil), // 10: admin_user_service.ToggleAdminUserRequest
  798. (*ToggleAdminUserResponse)(nil), // 11: admin_user_service.ToggleAdminUserResponse
  799. (*RetrieveEnabledUsersRequest)(nil), // 12: admin_user_service.RetrieveEnabledUsersRequest
  800. (*RetrieveEnabledUsersResponse)(nil), // 13: admin_user_service.RetrieveEnabledUsersResponse
  801. (*AdminUser)(nil), // 14: base_service.AdminUser
  802. (StatusEnum)(0), // 15: base_service.StatusEnum
  803. }
  804. var file_proto_admin_user_service_proto_depIdxs = []int32{
  805. 14, // 0: admin_user_service.GetAdminUserResponse.data:type_name -> base_service.AdminUser
  806. 15, // 1: admin_user_service.ListAdminUsersRequest.status:type_name -> base_service.StatusEnum
  807. 14, // 2: admin_user_service.ListAdminUsersResponse.items:type_name -> base_service.AdminUser
  808. 15, // 3: admin_user_service.ToggleAdminUserRequest.status:type_name -> base_service.StatusEnum
  809. 14, // 4: admin_user_service.RetrieveEnabledUsersResponse.users:type_name -> base_service.AdminUser
  810. 0, // 5: admin_user_service.AdminUserService.GetAdminUser:input_type -> admin_user_service.GetAdminUserRequest
  811. 6, // 6: admin_user_service.AdminUserService.ListAdminUsers:input_type -> admin_user_service.ListAdminUsersRequest
  812. 2, // 7: admin_user_service.AdminUserService.CreateAdminUser:input_type -> admin_user_service.CreateAdminUserRequest
  813. 10, // 8: admin_user_service.AdminUserService.ToggleAdminUser:input_type -> admin_user_service.ToggleAdminUserRequest
  814. 8, // 9: admin_user_service.AdminUserService.DeleteAdminUser:input_type -> admin_user_service.DeleteAdminUserRequest
  815. 4, // 10: admin_user_service.AdminUserService.UpdateAdminUser:input_type -> admin_user_service.UpdateAdminUserRequest
  816. 12, // 11: admin_user_service.AdminUserService.RetrieveEnabledUsers:input_type -> admin_user_service.RetrieveEnabledUsersRequest
  817. 1, // 12: admin_user_service.AdminUserService.GetAdminUser:output_type -> admin_user_service.GetAdminUserResponse
  818. 7, // 13: admin_user_service.AdminUserService.ListAdminUsers:output_type -> admin_user_service.ListAdminUsersResponse
  819. 3, // 14: admin_user_service.AdminUserService.CreateAdminUser:output_type -> admin_user_service.CreateAdminUserResponse
  820. 11, // 15: admin_user_service.AdminUserService.ToggleAdminUser:output_type -> admin_user_service.ToggleAdminUserResponse
  821. 9, // 16: admin_user_service.AdminUserService.DeleteAdminUser:output_type -> admin_user_service.DeleteAdminUserResponse
  822. 5, // 17: admin_user_service.AdminUserService.UpdateAdminUser:output_type -> admin_user_service.UpdateAdminUserResponse
  823. 13, // 18: admin_user_service.AdminUserService.RetrieveEnabledUsers:output_type -> admin_user_service.RetrieveEnabledUsersResponse
  824. 12, // [12:19] is the sub-list for method output_type
  825. 5, // [5:12] is the sub-list for method input_type
  826. 5, // [5:5] is the sub-list for extension type_name
  827. 5, // [5:5] is the sub-list for extension extendee
  828. 0, // [0:5] is the sub-list for field type_name
  829. }
  830. func init() { file_proto_admin_user_service_proto_init() }
  831. func file_proto_admin_user_service_proto_init() {
  832. if File_proto_admin_user_service_proto != nil {
  833. return
  834. }
  835. file_proto_base_service_proto_init()
  836. if !protoimpl.UnsafeEnabled {
  837. file_proto_admin_user_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  838. switch v := v.(*GetAdminUserRequest); i {
  839. case 0:
  840. return &v.state
  841. case 1:
  842. return &v.sizeCache
  843. case 2:
  844. return &v.unknownFields
  845. default:
  846. return nil
  847. }
  848. }
  849. file_proto_admin_user_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  850. switch v := v.(*GetAdminUserResponse); i {
  851. case 0:
  852. return &v.state
  853. case 1:
  854. return &v.sizeCache
  855. case 2:
  856. return &v.unknownFields
  857. default:
  858. return nil
  859. }
  860. }
  861. file_proto_admin_user_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  862. switch v := v.(*CreateAdminUserRequest); i {
  863. case 0:
  864. return &v.state
  865. case 1:
  866. return &v.sizeCache
  867. case 2:
  868. return &v.unknownFields
  869. default:
  870. return nil
  871. }
  872. }
  873. file_proto_admin_user_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  874. switch v := v.(*CreateAdminUserResponse); i {
  875. case 0:
  876. return &v.state
  877. case 1:
  878. return &v.sizeCache
  879. case 2:
  880. return &v.unknownFields
  881. default:
  882. return nil
  883. }
  884. }
  885. file_proto_admin_user_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  886. switch v := v.(*UpdateAdminUserRequest); i {
  887. case 0:
  888. return &v.state
  889. case 1:
  890. return &v.sizeCache
  891. case 2:
  892. return &v.unknownFields
  893. default:
  894. return nil
  895. }
  896. }
  897. file_proto_admin_user_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  898. switch v := v.(*UpdateAdminUserResponse); i {
  899. case 0:
  900. return &v.state
  901. case 1:
  902. return &v.sizeCache
  903. case 2:
  904. return &v.unknownFields
  905. default:
  906. return nil
  907. }
  908. }
  909. file_proto_admin_user_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  910. switch v := v.(*ListAdminUsersRequest); i {
  911. case 0:
  912. return &v.state
  913. case 1:
  914. return &v.sizeCache
  915. case 2:
  916. return &v.unknownFields
  917. default:
  918. return nil
  919. }
  920. }
  921. file_proto_admin_user_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  922. switch v := v.(*ListAdminUsersResponse); i {
  923. case 0:
  924. return &v.state
  925. case 1:
  926. return &v.sizeCache
  927. case 2:
  928. return &v.unknownFields
  929. default:
  930. return nil
  931. }
  932. }
  933. file_proto_admin_user_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  934. switch v := v.(*DeleteAdminUserRequest); i {
  935. case 0:
  936. return &v.state
  937. case 1:
  938. return &v.sizeCache
  939. case 2:
  940. return &v.unknownFields
  941. default:
  942. return nil
  943. }
  944. }
  945. file_proto_admin_user_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  946. switch v := v.(*DeleteAdminUserResponse); i {
  947. case 0:
  948. return &v.state
  949. case 1:
  950. return &v.sizeCache
  951. case 2:
  952. return &v.unknownFields
  953. default:
  954. return nil
  955. }
  956. }
  957. file_proto_admin_user_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  958. switch v := v.(*ToggleAdminUserRequest); i {
  959. case 0:
  960. return &v.state
  961. case 1:
  962. return &v.sizeCache
  963. case 2:
  964. return &v.unknownFields
  965. default:
  966. return nil
  967. }
  968. }
  969. file_proto_admin_user_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  970. switch v := v.(*ToggleAdminUserResponse); i {
  971. case 0:
  972. return &v.state
  973. case 1:
  974. return &v.sizeCache
  975. case 2:
  976. return &v.unknownFields
  977. default:
  978. return nil
  979. }
  980. }
  981. file_proto_admin_user_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
  982. switch v := v.(*RetrieveEnabledUsersRequest); i {
  983. case 0:
  984. return &v.state
  985. case 1:
  986. return &v.sizeCache
  987. case 2:
  988. return &v.unknownFields
  989. default:
  990. return nil
  991. }
  992. }
  993. file_proto_admin_user_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
  994. switch v := v.(*RetrieveEnabledUsersResponse); i {
  995. case 0:
  996. return &v.state
  997. case 1:
  998. return &v.sizeCache
  999. case 2:
  1000. return &v.unknownFields
  1001. default:
  1002. return nil
  1003. }
  1004. }
  1005. }
  1006. type x struct{}
  1007. out := protoimpl.TypeBuilder{
  1008. File: protoimpl.DescBuilder{
  1009. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1010. RawDescriptor: file_proto_admin_user_service_proto_rawDesc,
  1011. NumEnums: 0,
  1012. NumMessages: 14,
  1013. NumExtensions: 0,
  1014. NumServices: 1,
  1015. },
  1016. GoTypes: file_proto_admin_user_service_proto_goTypes,
  1017. DependencyIndexes: file_proto_admin_user_service_proto_depIdxs,
  1018. MessageInfos: file_proto_admin_user_service_proto_msgTypes,
  1019. }.Build()
  1020. File_proto_admin_user_service_proto = out.File
  1021. file_proto_admin_user_service_proto_rawDesc = nil
  1022. file_proto_admin_user_service_proto_goTypes = nil
  1023. file_proto_admin_user_service_proto_depIdxs = nil
  1024. }