admin_permission_service.pb.go 41 KB

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