base_service.pb.go 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692
  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/base_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 StatusEnum int32
  20. const (
  21. StatusEnum_UNKNOWN StatusEnum = 0
  22. StatusEnum_ENABLED StatusEnum = 1
  23. StatusEnum_DISABLED StatusEnum = 2
  24. StatusEnum_DELETED StatusEnum = 3
  25. )
  26. // Enum value maps for StatusEnum.
  27. var (
  28. StatusEnum_name = map[int32]string{
  29. 0: "UNKNOWN",
  30. 1: "ENABLED",
  31. 2: "DISABLED",
  32. 3: "DELETED",
  33. }
  34. StatusEnum_value = map[string]int32{
  35. "UNKNOWN": 0,
  36. "ENABLED": 1,
  37. "DISABLED": 2,
  38. "DELETED": 3,
  39. }
  40. )
  41. func (x StatusEnum) Enum() *StatusEnum {
  42. p := new(StatusEnum)
  43. *p = x
  44. return p
  45. }
  46. func (x StatusEnum) String() string {
  47. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  48. }
  49. func (StatusEnum) Descriptor() protoreflect.EnumDescriptor {
  50. return file_proto_base_service_proto_enumTypes[0].Descriptor()
  51. }
  52. func (StatusEnum) Type() protoreflect.EnumType {
  53. return &file_proto_base_service_proto_enumTypes[0]
  54. }
  55. func (x StatusEnum) Number() protoreflect.EnumNumber {
  56. return protoreflect.EnumNumber(x)
  57. }
  58. // Deprecated: Use StatusEnum.Descriptor instead.
  59. func (StatusEnum) EnumDescriptor() ([]byte, []int) {
  60. return file_proto_base_service_proto_rawDescGZIP(), []int{0}
  61. }
  62. type AdminBase struct {
  63. state protoimpl.MessageState
  64. sizeCache protoimpl.SizeCache
  65. unknownFields protoimpl.UnknownFields
  66. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  67. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  68. }
  69. func (x *AdminBase) Reset() {
  70. *x = AdminBase{}
  71. if protoimpl.UnsafeEnabled {
  72. mi := &file_proto_base_service_proto_msgTypes[0]
  73. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  74. ms.StoreMessageInfo(mi)
  75. }
  76. }
  77. func (x *AdminBase) String() string {
  78. return protoimpl.X.MessageStringOf(x)
  79. }
  80. func (*AdminBase) ProtoMessage() {}
  81. func (x *AdminBase) ProtoReflect() protoreflect.Message {
  82. mi := &file_proto_base_service_proto_msgTypes[0]
  83. if protoimpl.UnsafeEnabled && x != nil {
  84. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  85. if ms.LoadMessageInfo() == nil {
  86. ms.StoreMessageInfo(mi)
  87. }
  88. return ms
  89. }
  90. return mi.MessageOf(x)
  91. }
  92. // Deprecated: Use AdminBase.ProtoReflect.Descriptor instead.
  93. func (*AdminBase) Descriptor() ([]byte, []int) {
  94. return file_proto_base_service_proto_rawDescGZIP(), []int{0}
  95. }
  96. func (x *AdminBase) GetKey() string {
  97. if x != nil {
  98. return x.Key
  99. }
  100. return ""
  101. }
  102. func (x *AdminBase) GetValue() string {
  103. if x != nil {
  104. return x.Value
  105. }
  106. return ""
  107. }
  108. type AdminUser struct {
  109. state protoimpl.MessageState
  110. sizeCache protoimpl.SizeCache
  111. unknownFields protoimpl.UnknownFields
  112. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  113. Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
  114. PhoneNumber string `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
  115. Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"`
  116. Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
  117. Status StatusEnum `protobuf:"varint,6,opt,name=status,proto3,enum=base_service.StatusEnum" json:"status,omitempty"`
  118. IsReserved bool `protobuf:"varint,7,opt,name=is_reserved,json=isReserved,proto3" json:"is_reserved,omitempty"`
  119. CreatedAt int64 `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  120. UpdatedAt int64 `protobuf:"varint,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
  121. Roles []*AdminBase `protobuf:"bytes,10,rep,name=roles,proto3" json:"roles,omitempty"`
  122. Teams []*AdminBase `protobuf:"bytes,11,rep,name=teams,proto3" json:"teams,omitempty"`
  123. }
  124. func (x *AdminUser) Reset() {
  125. *x = AdminUser{}
  126. if protoimpl.UnsafeEnabled {
  127. mi := &file_proto_base_service_proto_msgTypes[1]
  128. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  129. ms.StoreMessageInfo(mi)
  130. }
  131. }
  132. func (x *AdminUser) String() string {
  133. return protoimpl.X.MessageStringOf(x)
  134. }
  135. func (*AdminUser) ProtoMessage() {}
  136. func (x *AdminUser) ProtoReflect() protoreflect.Message {
  137. mi := &file_proto_base_service_proto_msgTypes[1]
  138. if protoimpl.UnsafeEnabled && x != nil {
  139. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  140. if ms.LoadMessageInfo() == nil {
  141. ms.StoreMessageInfo(mi)
  142. }
  143. return ms
  144. }
  145. return mi.MessageOf(x)
  146. }
  147. // Deprecated: Use AdminUser.ProtoReflect.Descriptor instead.
  148. func (*AdminUser) Descriptor() ([]byte, []int) {
  149. return file_proto_base_service_proto_rawDescGZIP(), []int{1}
  150. }
  151. func (x *AdminUser) GetId() int64 {
  152. if x != nil {
  153. return x.Id
  154. }
  155. return 0
  156. }
  157. func (x *AdminUser) GetUsername() string {
  158. if x != nil {
  159. return x.Username
  160. }
  161. return ""
  162. }
  163. func (x *AdminUser) GetPhoneNumber() string {
  164. if x != nil {
  165. return x.PhoneNumber
  166. }
  167. return ""
  168. }
  169. func (x *AdminUser) GetAvatar() string {
  170. if x != nil {
  171. return x.Avatar
  172. }
  173. return ""
  174. }
  175. func (x *AdminUser) GetEmail() string {
  176. if x != nil {
  177. return x.Email
  178. }
  179. return ""
  180. }
  181. func (x *AdminUser) GetStatus() StatusEnum {
  182. if x != nil {
  183. return x.Status
  184. }
  185. return StatusEnum_UNKNOWN
  186. }
  187. func (x *AdminUser) GetIsReserved() bool {
  188. if x != nil {
  189. return x.IsReserved
  190. }
  191. return false
  192. }
  193. func (x *AdminUser) GetCreatedAt() int64 {
  194. if x != nil {
  195. return x.CreatedAt
  196. }
  197. return 0
  198. }
  199. func (x *AdminUser) GetUpdatedAt() int64 {
  200. if x != nil {
  201. return x.UpdatedAt
  202. }
  203. return 0
  204. }
  205. func (x *AdminUser) GetRoles() []*AdminBase {
  206. if x != nil {
  207. return x.Roles
  208. }
  209. return nil
  210. }
  211. func (x *AdminUser) GetTeams() []*AdminBase {
  212. if x != nil {
  213. return x.Teams
  214. }
  215. return nil
  216. }
  217. type AdminRole struct {
  218. state protoimpl.MessageState
  219. sizeCache protoimpl.SizeCache
  220. unknownFields protoimpl.UnknownFields
  221. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  222. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  223. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
  224. Users []*AdminBase `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"`
  225. Permissions []*AdminBase `protobuf:"bytes,5,rep,name=permissions,proto3" json:"permissions,omitempty"`
  226. CreatedBy string `protobuf:"bytes,6,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
  227. CreatedAt int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  228. UpdatedAt int64 `protobuf:"varint,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
  229. Status StatusEnum `protobuf:"varint,9,opt,name=status,proto3,enum=base_service.StatusEnum" json:"status,omitempty"`
  230. IsReserved bool `protobuf:"varint,10,opt,name=is_reserved,json=isReserved,proto3" json:"is_reserved,omitempty"`
  231. }
  232. func (x *AdminRole) Reset() {
  233. *x = AdminRole{}
  234. if protoimpl.UnsafeEnabled {
  235. mi := &file_proto_base_service_proto_msgTypes[2]
  236. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  237. ms.StoreMessageInfo(mi)
  238. }
  239. }
  240. func (x *AdminRole) String() string {
  241. return protoimpl.X.MessageStringOf(x)
  242. }
  243. func (*AdminRole) ProtoMessage() {}
  244. func (x *AdminRole) ProtoReflect() protoreflect.Message {
  245. mi := &file_proto_base_service_proto_msgTypes[2]
  246. if protoimpl.UnsafeEnabled && x != nil {
  247. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  248. if ms.LoadMessageInfo() == nil {
  249. ms.StoreMessageInfo(mi)
  250. }
  251. return ms
  252. }
  253. return mi.MessageOf(x)
  254. }
  255. // Deprecated: Use AdminRole.ProtoReflect.Descriptor instead.
  256. func (*AdminRole) Descriptor() ([]byte, []int) {
  257. return file_proto_base_service_proto_rawDescGZIP(), []int{2}
  258. }
  259. func (x *AdminRole) GetId() int64 {
  260. if x != nil {
  261. return x.Id
  262. }
  263. return 0
  264. }
  265. func (x *AdminRole) GetName() string {
  266. if x != nil {
  267. return x.Name
  268. }
  269. return ""
  270. }
  271. func (x *AdminRole) GetDescription() string {
  272. if x != nil {
  273. return x.Description
  274. }
  275. return ""
  276. }
  277. func (x *AdminRole) GetUsers() []*AdminBase {
  278. if x != nil {
  279. return x.Users
  280. }
  281. return nil
  282. }
  283. func (x *AdminRole) GetPermissions() []*AdminBase {
  284. if x != nil {
  285. return x.Permissions
  286. }
  287. return nil
  288. }
  289. func (x *AdminRole) GetCreatedBy() string {
  290. if x != nil {
  291. return x.CreatedBy
  292. }
  293. return ""
  294. }
  295. func (x *AdminRole) GetCreatedAt() int64 {
  296. if x != nil {
  297. return x.CreatedAt
  298. }
  299. return 0
  300. }
  301. func (x *AdminRole) GetUpdatedAt() int64 {
  302. if x != nil {
  303. return x.UpdatedAt
  304. }
  305. return 0
  306. }
  307. func (x *AdminRole) GetStatus() StatusEnum {
  308. if x != nil {
  309. return x.Status
  310. }
  311. return StatusEnum_UNKNOWN
  312. }
  313. func (x *AdminRole) GetIsReserved() bool {
  314. if x != nil {
  315. return x.IsReserved
  316. }
  317. return false
  318. }
  319. type AdminPermission struct {
  320. state protoimpl.MessageState
  321. sizeCache protoimpl.SizeCache
  322. unknownFields protoimpl.UnknownFields
  323. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  324. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  325. Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
  326. Roles []*AdminBase `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"`
  327. CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  328. CreatedBy string `protobuf:"bytes,6,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
  329. UpdatedAt int64 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
  330. Status StatusEnum `protobuf:"varint,8,opt,name=status,proto3,enum=base_service.StatusEnum" json:"status,omitempty"`
  331. IsReserved bool `protobuf:"varint,9,opt,name=is_reserved,json=isReserved,proto3" json:"is_reserved,omitempty"`
  332. Endpoint string `protobuf:"bytes,10,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
  333. }
  334. func (x *AdminPermission) Reset() {
  335. *x = AdminPermission{}
  336. if protoimpl.UnsafeEnabled {
  337. mi := &file_proto_base_service_proto_msgTypes[3]
  338. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  339. ms.StoreMessageInfo(mi)
  340. }
  341. }
  342. func (x *AdminPermission) String() string {
  343. return protoimpl.X.MessageStringOf(x)
  344. }
  345. func (*AdminPermission) ProtoMessage() {}
  346. func (x *AdminPermission) ProtoReflect() protoreflect.Message {
  347. mi := &file_proto_base_service_proto_msgTypes[3]
  348. if protoimpl.UnsafeEnabled && x != nil {
  349. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  350. if ms.LoadMessageInfo() == nil {
  351. ms.StoreMessageInfo(mi)
  352. }
  353. return ms
  354. }
  355. return mi.MessageOf(x)
  356. }
  357. // Deprecated: Use AdminPermission.ProtoReflect.Descriptor instead.
  358. func (*AdminPermission) Descriptor() ([]byte, []int) {
  359. return file_proto_base_service_proto_rawDescGZIP(), []int{3}
  360. }
  361. func (x *AdminPermission) GetId() int64 {
  362. if x != nil {
  363. return x.Id
  364. }
  365. return 0
  366. }
  367. func (x *AdminPermission) GetName() string {
  368. if x != nil {
  369. return x.Name
  370. }
  371. return ""
  372. }
  373. func (x *AdminPermission) GetDescription() string {
  374. if x != nil {
  375. return x.Description
  376. }
  377. return ""
  378. }
  379. func (x *AdminPermission) GetRoles() []*AdminBase {
  380. if x != nil {
  381. return x.Roles
  382. }
  383. return nil
  384. }
  385. func (x *AdminPermission) GetCreatedAt() int64 {
  386. if x != nil {
  387. return x.CreatedAt
  388. }
  389. return 0
  390. }
  391. func (x *AdminPermission) GetCreatedBy() string {
  392. if x != nil {
  393. return x.CreatedBy
  394. }
  395. return ""
  396. }
  397. func (x *AdminPermission) GetUpdatedAt() int64 {
  398. if x != nil {
  399. return x.UpdatedAt
  400. }
  401. return 0
  402. }
  403. func (x *AdminPermission) GetStatus() StatusEnum {
  404. if x != nil {
  405. return x.Status
  406. }
  407. return StatusEnum_UNKNOWN
  408. }
  409. func (x *AdminPermission) GetIsReserved() bool {
  410. if x != nil {
  411. return x.IsReserved
  412. }
  413. return false
  414. }
  415. func (x *AdminPermission) GetEndpoint() string {
  416. if x != nil {
  417. return x.Endpoint
  418. }
  419. return ""
  420. }
  421. var File_proto_base_service_proto protoreflect.FileDescriptor
  422. var file_proto_base_service_proto_rawDesc = []byte{
  423. 0x0a, 0x18, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72,
  424. 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x62, 0x61, 0x73, 0x65,
  425. 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x33, 0x0a, 0x09, 0x41, 0x64, 0x6d, 0x69,
  426. 0x6e, 0x42, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
  427. 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  428. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xf7, 0x02,
  429. 0x0a, 0x09, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69,
  430. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75,
  431. 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75,
  432. 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x6f, 0x6e, 0x65,
  433. 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70,
  434. 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76,
  435. 0x61, 0x74, 0x61, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74,
  436. 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28,
  437. 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74,
  438. 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f,
  439. 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e,
  440. 0x75, 0x6d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73,
  441. 0x5f, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52,
  442. 0x0a, 0x69, 0x73, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63,
  443. 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52,
  444. 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70,
  445. 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
  446. 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x2d, 0x0a, 0x05, 0x72, 0x6f, 0x6c,
  447. 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f,
  448. 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x61, 0x73,
  449. 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x2d, 0x0a, 0x05, 0x74, 0x65, 0x61, 0x6d,
  450. 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73,
  451. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x61, 0x73, 0x65,
  452. 0x52, 0x05, 0x74, 0x65, 0x61, 0x6d, 0x73, 0x22, 0xeb, 0x02, 0x0a, 0x09, 0x41, 0x64, 0x6d, 0x69,
  453. 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  454. 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
  455. 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73,
  456. 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
  457. 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x05, 0x75,
  458. 0x73, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x73,
  459. 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x42,
  460. 0x61, 0x73, 0x65, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x39, 0x0a, 0x0b, 0x70, 0x65,
  461. 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32,
  462. 0x17, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41,
  463. 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x61, 0x73, 0x65, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
  464. 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,
  465. 0x5f, 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74,
  466. 0x65, 0x64, 0x42, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  467. 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
  468. 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61,
  469. 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64,
  470. 0x41, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01,
  471. 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
  472. 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x73, 0x74,
  473. 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x72,
  474. 0x76, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x52, 0x65, 0x73,
  475. 0x65, 0x72, 0x76, 0x65, 0x64, 0x22, 0xd2, 0x02, 0x0a, 0x0f, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x50,
  476. 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
  477. 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
  478. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a,
  479. 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01,
  480. 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12,
  481. 0x2d, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17,
  482. 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64,
  483. 0x6d, 0x69, 0x6e, 0x42, 0x61, 0x73, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x1d,
  484. 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01,
  485. 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a,
  486. 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28,
  487. 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x1d, 0x0a, 0x0a,
  488. 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03,
  489. 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x73,
  490. 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x62, 0x61,
  491. 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75,
  492. 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a,
  493. 0x0b, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01,
  494. 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x12, 0x1a,
  495. 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09,
  496. 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2a, 0x41, 0x0a, 0x0a, 0x53, 0x74,
  497. 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e,
  498. 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44,
  499. 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02,
  500. 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x03, 0x42, 0x1f, 0x5a,
  501. 0x1d, 0x2e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69,
  502. 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06,
  503. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  504. }
  505. var (
  506. file_proto_base_service_proto_rawDescOnce sync.Once
  507. file_proto_base_service_proto_rawDescData = file_proto_base_service_proto_rawDesc
  508. )
  509. func file_proto_base_service_proto_rawDescGZIP() []byte {
  510. file_proto_base_service_proto_rawDescOnce.Do(func() {
  511. file_proto_base_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_base_service_proto_rawDescData)
  512. })
  513. return file_proto_base_service_proto_rawDescData
  514. }
  515. var file_proto_base_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  516. var file_proto_base_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  517. var file_proto_base_service_proto_goTypes = []interface{}{
  518. (StatusEnum)(0), // 0: base_service.StatusEnum
  519. (*AdminBase)(nil), // 1: base_service.AdminBase
  520. (*AdminUser)(nil), // 2: base_service.AdminUser
  521. (*AdminRole)(nil), // 3: base_service.AdminRole
  522. (*AdminPermission)(nil), // 4: base_service.AdminPermission
  523. }
  524. var file_proto_base_service_proto_depIdxs = []int32{
  525. 0, // 0: base_service.AdminUser.status:type_name -> base_service.StatusEnum
  526. 1, // 1: base_service.AdminUser.roles:type_name -> base_service.AdminBase
  527. 1, // 2: base_service.AdminUser.teams:type_name -> base_service.AdminBase
  528. 1, // 3: base_service.AdminRole.users:type_name -> base_service.AdminBase
  529. 1, // 4: base_service.AdminRole.permissions:type_name -> base_service.AdminBase
  530. 0, // 5: base_service.AdminRole.status:type_name -> base_service.StatusEnum
  531. 1, // 6: base_service.AdminPermission.roles:type_name -> base_service.AdminBase
  532. 0, // 7: base_service.AdminPermission.status:type_name -> base_service.StatusEnum
  533. 8, // [8:8] is the sub-list for method output_type
  534. 8, // [8:8] is the sub-list for method input_type
  535. 8, // [8:8] is the sub-list for extension type_name
  536. 8, // [8:8] is the sub-list for extension extendee
  537. 0, // [0:8] is the sub-list for field type_name
  538. }
  539. func init() { file_proto_base_service_proto_init() }
  540. func file_proto_base_service_proto_init() {
  541. if File_proto_base_service_proto != nil {
  542. return
  543. }
  544. if !protoimpl.UnsafeEnabled {
  545. file_proto_base_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  546. switch v := v.(*AdminBase); i {
  547. case 0:
  548. return &v.state
  549. case 1:
  550. return &v.sizeCache
  551. case 2:
  552. return &v.unknownFields
  553. default:
  554. return nil
  555. }
  556. }
  557. file_proto_base_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  558. switch v := v.(*AdminUser); i {
  559. case 0:
  560. return &v.state
  561. case 1:
  562. return &v.sizeCache
  563. case 2:
  564. return &v.unknownFields
  565. default:
  566. return nil
  567. }
  568. }
  569. file_proto_base_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  570. switch v := v.(*AdminRole); i {
  571. case 0:
  572. return &v.state
  573. case 1:
  574. return &v.sizeCache
  575. case 2:
  576. return &v.unknownFields
  577. default:
  578. return nil
  579. }
  580. }
  581. file_proto_base_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  582. switch v := v.(*AdminPermission); i {
  583. case 0:
  584. return &v.state
  585. case 1:
  586. return &v.sizeCache
  587. case 2:
  588. return &v.unknownFields
  589. default:
  590. return nil
  591. }
  592. }
  593. }
  594. type x struct{}
  595. out := protoimpl.TypeBuilder{
  596. File: protoimpl.DescBuilder{
  597. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  598. RawDescriptor: file_proto_base_service_proto_rawDesc,
  599. NumEnums: 1,
  600. NumMessages: 4,
  601. NumExtensions: 0,
  602. NumServices: 0,
  603. },
  604. GoTypes: file_proto_base_service_proto_goTypes,
  605. DependencyIndexes: file_proto_base_service_proto_depIdxs,
  606. EnumInfos: file_proto_base_service_proto_enumTypes,
  607. MessageInfos: file_proto_base_service_proto_msgTypes,
  608. }.Build()
  609. File_proto_base_service_proto = out.File
  610. file_proto_base_service_proto_rawDesc = nil
  611. file_proto_base_service_proto_goTypes = nil
  612. file_proto_base_service_proto_depIdxs = nil
  613. }