admin_role_service.pb.go 41 KB

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