base_service.pb.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  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. var File_proto_base_service_proto protoreflect.FileDescriptor
  320. var file_proto_base_service_proto_rawDesc = []byte{
  321. 0x0a, 0x18, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72,
  322. 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x62, 0x61, 0x73, 0x65,
  323. 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x33, 0x0a, 0x09, 0x41, 0x64, 0x6d, 0x69,
  324. 0x6e, 0x42, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
  325. 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
  326. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xf7, 0x02,
  327. 0x0a, 0x09, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69,
  328. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75,
  329. 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75,
  330. 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x6f, 0x6e, 0x65,
  331. 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70,
  332. 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76,
  333. 0x61, 0x74, 0x61, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74,
  334. 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28,
  335. 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74,
  336. 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f,
  337. 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e,
  338. 0x75, 0x6d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73,
  339. 0x5f, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52,
  340. 0x0a, 0x69, 0x73, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63,
  341. 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52,
  342. 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70,
  343. 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
  344. 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x2d, 0x0a, 0x05, 0x72, 0x6f, 0x6c,
  345. 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f,
  346. 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x61, 0x73,
  347. 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x2d, 0x0a, 0x05, 0x74, 0x65, 0x61, 0x6d,
  348. 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73,
  349. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x61, 0x73, 0x65,
  350. 0x52, 0x05, 0x74, 0x65, 0x61, 0x6d, 0x73, 0x22, 0xeb, 0x02, 0x0a, 0x09, 0x41, 0x64, 0x6d, 0x69,
  351. 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  352. 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
  353. 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73,
  354. 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
  355. 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x05, 0x75,
  356. 0x73, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x73,
  357. 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x42,
  358. 0x61, 0x73, 0x65, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x39, 0x0a, 0x0b, 0x70, 0x65,
  359. 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32,
  360. 0x17, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41,
  361. 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x61, 0x73, 0x65, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
  362. 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,
  363. 0x5f, 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74,
  364. 0x65, 0x64, 0x42, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
  365. 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
  366. 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61,
  367. 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64,
  368. 0x41, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01,
  369. 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
  370. 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x73, 0x74,
  371. 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x72,
  372. 0x76, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x52, 0x65, 0x73,
  373. 0x65, 0x72, 0x76, 0x65, 0x64, 0x2a, 0x41, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45,
  374. 0x6e, 0x75, 0x6d, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00,
  375. 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0c, 0x0a,
  376. 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x44,
  377. 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x03, 0x42, 0x1f, 0x5a, 0x1d, 0x2e, 0x2f, 0x70, 0x72,
  378. 0x6f, 0x74, 0x6f, 0x3b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f,
  379. 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  380. 0x33,
  381. }
  382. var (
  383. file_proto_base_service_proto_rawDescOnce sync.Once
  384. file_proto_base_service_proto_rawDescData = file_proto_base_service_proto_rawDesc
  385. )
  386. func file_proto_base_service_proto_rawDescGZIP() []byte {
  387. file_proto_base_service_proto_rawDescOnce.Do(func() {
  388. file_proto_base_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_base_service_proto_rawDescData)
  389. })
  390. return file_proto_base_service_proto_rawDescData
  391. }
  392. var file_proto_base_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  393. var file_proto_base_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  394. var file_proto_base_service_proto_goTypes = []interface{}{
  395. (StatusEnum)(0), // 0: base_service.StatusEnum
  396. (*AdminBase)(nil), // 1: base_service.AdminBase
  397. (*AdminUser)(nil), // 2: base_service.AdminUser
  398. (*AdminRole)(nil), // 3: base_service.AdminRole
  399. }
  400. var file_proto_base_service_proto_depIdxs = []int32{
  401. 0, // 0: base_service.AdminUser.status:type_name -> base_service.StatusEnum
  402. 1, // 1: base_service.AdminUser.roles:type_name -> base_service.AdminBase
  403. 1, // 2: base_service.AdminUser.teams:type_name -> base_service.AdminBase
  404. 1, // 3: base_service.AdminRole.users:type_name -> base_service.AdminBase
  405. 1, // 4: base_service.AdminRole.permissions:type_name -> base_service.AdminBase
  406. 0, // 5: base_service.AdminRole.status:type_name -> base_service.StatusEnum
  407. 6, // [6:6] is the sub-list for method output_type
  408. 6, // [6:6] is the sub-list for method input_type
  409. 6, // [6:6] is the sub-list for extension type_name
  410. 6, // [6:6] is the sub-list for extension extendee
  411. 0, // [0:6] is the sub-list for field type_name
  412. }
  413. func init() { file_proto_base_service_proto_init() }
  414. func file_proto_base_service_proto_init() {
  415. if File_proto_base_service_proto != nil {
  416. return
  417. }
  418. if !protoimpl.UnsafeEnabled {
  419. file_proto_base_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  420. switch v := v.(*AdminBase); i {
  421. case 0:
  422. return &v.state
  423. case 1:
  424. return &v.sizeCache
  425. case 2:
  426. return &v.unknownFields
  427. default:
  428. return nil
  429. }
  430. }
  431. file_proto_base_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  432. switch v := v.(*AdminUser); i {
  433. case 0:
  434. return &v.state
  435. case 1:
  436. return &v.sizeCache
  437. case 2:
  438. return &v.unknownFields
  439. default:
  440. return nil
  441. }
  442. }
  443. file_proto_base_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  444. switch v := v.(*AdminRole); i {
  445. case 0:
  446. return &v.state
  447. case 1:
  448. return &v.sizeCache
  449. case 2:
  450. return &v.unknownFields
  451. default:
  452. return nil
  453. }
  454. }
  455. }
  456. type x struct{}
  457. out := protoimpl.TypeBuilder{
  458. File: protoimpl.DescBuilder{
  459. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  460. RawDescriptor: file_proto_base_service_proto_rawDesc,
  461. NumEnums: 1,
  462. NumMessages: 3,
  463. NumExtensions: 0,
  464. NumServices: 0,
  465. },
  466. GoTypes: file_proto_base_service_proto_goTypes,
  467. DependencyIndexes: file_proto_base_service_proto_depIdxs,
  468. EnumInfos: file_proto_base_service_proto_enumTypes,
  469. MessageInfos: file_proto_base_service_proto_msgTypes,
  470. }.Build()
  471. File_proto_base_service_proto = out.File
  472. file_proto_base_service_proto_rawDesc = nil
  473. file_proto_base_service_proto_goTypes = nil
  474. file_proto_base_service_proto_depIdxs = nil
  475. }