123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.31.0
- // protoc v4.25.0
- // source: proto/base_service.proto
- package authorization_service
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- type StatusEnum int32
- const (
- StatusEnum_UNKNOWN StatusEnum = 0
- StatusEnum_ENABLED StatusEnum = 1
- StatusEnum_DISABLED StatusEnum = 2
- StatusEnum_DELETED StatusEnum = 3
- )
- // Enum value maps for StatusEnum.
- var (
- StatusEnum_name = map[int32]string{
- 0: "UNKNOWN",
- 1: "ENABLED",
- 2: "DISABLED",
- 3: "DELETED",
- }
- StatusEnum_value = map[string]int32{
- "UNKNOWN": 0,
- "ENABLED": 1,
- "DISABLED": 2,
- "DELETED": 3,
- }
- )
- func (x StatusEnum) Enum() *StatusEnum {
- p := new(StatusEnum)
- *p = x
- return p
- }
- func (x StatusEnum) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
- }
- func (StatusEnum) Descriptor() protoreflect.EnumDescriptor {
- return file_proto_base_service_proto_enumTypes[0].Descriptor()
- }
- func (StatusEnum) Type() protoreflect.EnumType {
- return &file_proto_base_service_proto_enumTypes[0]
- }
- func (x StatusEnum) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
- }
- // Deprecated: Use StatusEnum.Descriptor instead.
- func (StatusEnum) EnumDescriptor() ([]byte, []int) {
- return file_proto_base_service_proto_rawDescGZIP(), []int{0}
- }
- type AdminBase struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
- Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
- }
- func (x *AdminBase) Reset() {
- *x = AdminBase{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_base_service_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *AdminBase) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*AdminBase) ProtoMessage() {}
- func (x *AdminBase) ProtoReflect() protoreflect.Message {
- mi := &file_proto_base_service_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use AdminBase.ProtoReflect.Descriptor instead.
- func (*AdminBase) Descriptor() ([]byte, []int) {
- return file_proto_base_service_proto_rawDescGZIP(), []int{0}
- }
- func (x *AdminBase) GetKey() string {
- if x != nil {
- return x.Key
- }
- return ""
- }
- func (x *AdminBase) GetValue() string {
- if x != nil {
- return x.Value
- }
- return ""
- }
- type AdminUser struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
- PhoneNumber string `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
- Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"`
- Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
- Status StatusEnum `protobuf:"varint,6,opt,name=status,proto3,enum=base_service.StatusEnum" json:"status,omitempty"`
- IsReserved bool `protobuf:"varint,7,opt,name=is_reserved,json=isReserved,proto3" json:"is_reserved,omitempty"`
- CreatedAt int64 `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
- UpdatedAt int64 `protobuf:"varint,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
- Roles []*AdminBase `protobuf:"bytes,10,rep,name=roles,proto3" json:"roles,omitempty"`
- Teams []*AdminBase `protobuf:"bytes,11,rep,name=teams,proto3" json:"teams,omitempty"`
- }
- func (x *AdminUser) Reset() {
- *x = AdminUser{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_base_service_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *AdminUser) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*AdminUser) ProtoMessage() {}
- func (x *AdminUser) ProtoReflect() protoreflect.Message {
- mi := &file_proto_base_service_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use AdminUser.ProtoReflect.Descriptor instead.
- func (*AdminUser) Descriptor() ([]byte, []int) {
- return file_proto_base_service_proto_rawDescGZIP(), []int{1}
- }
- func (x *AdminUser) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *AdminUser) GetUsername() string {
- if x != nil {
- return x.Username
- }
- return ""
- }
- func (x *AdminUser) GetPhoneNumber() string {
- if x != nil {
- return x.PhoneNumber
- }
- return ""
- }
- func (x *AdminUser) GetAvatar() string {
- if x != nil {
- return x.Avatar
- }
- return ""
- }
- func (x *AdminUser) GetEmail() string {
- if x != nil {
- return x.Email
- }
- return ""
- }
- func (x *AdminUser) GetStatus() StatusEnum {
- if x != nil {
- return x.Status
- }
- return StatusEnum_UNKNOWN
- }
- func (x *AdminUser) GetIsReserved() bool {
- if x != nil {
- return x.IsReserved
- }
- return false
- }
- func (x *AdminUser) GetCreatedAt() int64 {
- if x != nil {
- return x.CreatedAt
- }
- return 0
- }
- func (x *AdminUser) GetUpdatedAt() int64 {
- if x != nil {
- return x.UpdatedAt
- }
- return 0
- }
- func (x *AdminUser) GetRoles() []*AdminBase {
- if x != nil {
- return x.Roles
- }
- return nil
- }
- func (x *AdminUser) GetTeams() []*AdminBase {
- if x != nil {
- return x.Teams
- }
- return nil
- }
- type AdminRole struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
- Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
- Users []*AdminBase `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty"`
- Permissions []*AdminBase `protobuf:"bytes,5,rep,name=permissions,proto3" json:"permissions,omitempty"`
- CreatedBy string `protobuf:"bytes,6,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
- CreatedAt int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
- UpdatedAt int64 `protobuf:"varint,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
- Status StatusEnum `protobuf:"varint,9,opt,name=status,proto3,enum=base_service.StatusEnum" json:"status,omitempty"`
- IsReserved bool `protobuf:"varint,10,opt,name=is_reserved,json=isReserved,proto3" json:"is_reserved,omitempty"`
- }
- func (x *AdminRole) Reset() {
- *x = AdminRole{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_base_service_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *AdminRole) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*AdminRole) ProtoMessage() {}
- func (x *AdminRole) ProtoReflect() protoreflect.Message {
- mi := &file_proto_base_service_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use AdminRole.ProtoReflect.Descriptor instead.
- func (*AdminRole) Descriptor() ([]byte, []int) {
- return file_proto_base_service_proto_rawDescGZIP(), []int{2}
- }
- func (x *AdminRole) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *AdminRole) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *AdminRole) GetDescription() string {
- if x != nil {
- return x.Description
- }
- return ""
- }
- func (x *AdminRole) GetUsers() []*AdminBase {
- if x != nil {
- return x.Users
- }
- return nil
- }
- func (x *AdminRole) GetPermissions() []*AdminBase {
- if x != nil {
- return x.Permissions
- }
- return nil
- }
- func (x *AdminRole) GetCreatedBy() string {
- if x != nil {
- return x.CreatedBy
- }
- return ""
- }
- func (x *AdminRole) GetCreatedAt() int64 {
- if x != nil {
- return x.CreatedAt
- }
- return 0
- }
- func (x *AdminRole) GetUpdatedAt() int64 {
- if x != nil {
- return x.UpdatedAt
- }
- return 0
- }
- func (x *AdminRole) GetStatus() StatusEnum {
- if x != nil {
- return x.Status
- }
- return StatusEnum_UNKNOWN
- }
- func (x *AdminRole) GetIsReserved() bool {
- if x != nil {
- return x.IsReserved
- }
- return false
- }
- type AdminPermission struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
- Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
- Roles []*AdminBase `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"`
- CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
- CreatedBy string `protobuf:"bytes,6,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
- UpdatedAt int64 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
- Status StatusEnum `protobuf:"varint,8,opt,name=status,proto3,enum=base_service.StatusEnum" json:"status,omitempty"`
- IsReserved bool `protobuf:"varint,9,opt,name=is_reserved,json=isReserved,proto3" json:"is_reserved,omitempty"`
- Endpoint string `protobuf:"bytes,10,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
- }
- func (x *AdminPermission) Reset() {
- *x = AdminPermission{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_base_service_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *AdminPermission) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*AdminPermission) ProtoMessage() {}
- func (x *AdminPermission) ProtoReflect() protoreflect.Message {
- mi := &file_proto_base_service_proto_msgTypes[3]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use AdminPermission.ProtoReflect.Descriptor instead.
- func (*AdminPermission) Descriptor() ([]byte, []int) {
- return file_proto_base_service_proto_rawDescGZIP(), []int{3}
- }
- func (x *AdminPermission) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *AdminPermission) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *AdminPermission) GetDescription() string {
- if x != nil {
- return x.Description
- }
- return ""
- }
- func (x *AdminPermission) GetRoles() []*AdminBase {
- if x != nil {
- return x.Roles
- }
- return nil
- }
- func (x *AdminPermission) GetCreatedAt() int64 {
- if x != nil {
- return x.CreatedAt
- }
- return 0
- }
- func (x *AdminPermission) GetCreatedBy() string {
- if x != nil {
- return x.CreatedBy
- }
- return ""
- }
- func (x *AdminPermission) GetUpdatedAt() int64 {
- if x != nil {
- return x.UpdatedAt
- }
- return 0
- }
- func (x *AdminPermission) GetStatus() StatusEnum {
- if x != nil {
- return x.Status
- }
- return StatusEnum_UNKNOWN
- }
- func (x *AdminPermission) GetIsReserved() bool {
- if x != nil {
- return x.IsReserved
- }
- return false
- }
- func (x *AdminPermission) GetEndpoint() string {
- if x != nil {
- return x.Endpoint
- }
- return ""
- }
- var File_proto_base_service_proto protoreflect.FileDescriptor
- var file_proto_base_service_proto_rawDesc = []byte{
- 0x0a, 0x18, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72,
- 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x62, 0x61, 0x73, 0x65,
- 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x33, 0x0a, 0x09, 0x41, 0x64, 0x6d, 0x69,
- 0x6e, 0x42, 0x61, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xf7, 0x02,
- 0x0a, 0x09, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69,
- 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75,
- 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75,
- 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x6f, 0x6e, 0x65,
- 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70,
- 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76,
- 0x61, 0x74, 0x61, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74,
- 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74,
- 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f,
- 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e,
- 0x75, 0x6d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73,
- 0x5f, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52,
- 0x0a, 0x69, 0x73, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63,
- 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52,
- 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70,
- 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
- 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x2d, 0x0a, 0x05, 0x72, 0x6f, 0x6c,
- 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f,
- 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x61, 0x73,
- 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x2d, 0x0a, 0x05, 0x74, 0x65, 0x61, 0x6d,
- 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73,
- 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x61, 0x73, 0x65,
- 0x52, 0x05, 0x74, 0x65, 0x61, 0x6d, 0x73, 0x22, 0xeb, 0x02, 0x0a, 0x09, 0x41, 0x64, 0x6d, 0x69,
- 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73,
- 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
- 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x05, 0x75,
- 0x73, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x73,
- 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x42,
- 0x61, 0x73, 0x65, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0x39, 0x0a, 0x0b, 0x70, 0x65,
- 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32,
- 0x17, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41,
- 0x64, 0x6d, 0x69, 0x6e, 0x42, 0x61, 0x73, 0x65, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73,
- 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64,
- 0x5f, 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74,
- 0x65, 0x64, 0x42, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
- 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
- 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61,
- 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64,
- 0x41, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01,
- 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
- 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x73, 0x74,
- 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x72,
- 0x76, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x52, 0x65, 0x73,
- 0x65, 0x72, 0x76, 0x65, 0x64, 0x22, 0xd2, 0x02, 0x0a, 0x0f, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x50,
- 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
- 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a,
- 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12,
- 0x2d, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17,
- 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64,
- 0x6d, 0x69, 0x6e, 0x42, 0x61, 0x73, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x1d,
- 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01,
- 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a,
- 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x1d, 0x0a, 0x0a,
- 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03,
- 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x30, 0x0a, 0x06, 0x73,
- 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x62, 0x61,
- 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75,
- 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a,
- 0x0b, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01,
- 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x52, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x64, 0x12, 0x1a,
- 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x08, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2a, 0x41, 0x0a, 0x0a, 0x53, 0x74,
- 0x61, 0x74, 0x75, 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e,
- 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44,
- 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02,
- 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x03, 0x42, 0x1f, 0x5a,
- 0x1d, 0x2e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69,
- 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06,
- 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_proto_base_service_proto_rawDescOnce sync.Once
- file_proto_base_service_proto_rawDescData = file_proto_base_service_proto_rawDesc
- )
- func file_proto_base_service_proto_rawDescGZIP() []byte {
- file_proto_base_service_proto_rawDescOnce.Do(func() {
- file_proto_base_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_base_service_proto_rawDescData)
- })
- return file_proto_base_service_proto_rawDescData
- }
- var file_proto_base_service_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
- var file_proto_base_service_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
- var file_proto_base_service_proto_goTypes = []interface{}{
- (StatusEnum)(0), // 0: base_service.StatusEnum
- (*AdminBase)(nil), // 1: base_service.AdminBase
- (*AdminUser)(nil), // 2: base_service.AdminUser
- (*AdminRole)(nil), // 3: base_service.AdminRole
- (*AdminPermission)(nil), // 4: base_service.AdminPermission
- }
- var file_proto_base_service_proto_depIdxs = []int32{
- 0, // 0: base_service.AdminUser.status:type_name -> base_service.StatusEnum
- 1, // 1: base_service.AdminUser.roles:type_name -> base_service.AdminBase
- 1, // 2: base_service.AdminUser.teams:type_name -> base_service.AdminBase
- 1, // 3: base_service.AdminRole.users:type_name -> base_service.AdminBase
- 1, // 4: base_service.AdminRole.permissions:type_name -> base_service.AdminBase
- 0, // 5: base_service.AdminRole.status:type_name -> base_service.StatusEnum
- 1, // 6: base_service.AdminPermission.roles:type_name -> base_service.AdminBase
- 0, // 7: base_service.AdminPermission.status:type_name -> base_service.StatusEnum
- 8, // [8:8] is the sub-list for method output_type
- 8, // [8:8] is the sub-list for method input_type
- 8, // [8:8] is the sub-list for extension type_name
- 8, // [8:8] is the sub-list for extension extendee
- 0, // [0:8] is the sub-list for field type_name
- }
- func init() { file_proto_base_service_proto_init() }
- func file_proto_base_service_proto_init() {
- if File_proto_base_service_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_proto_base_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AdminBase); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_base_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AdminUser); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_base_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AdminRole); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_base_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AdminPermission); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_proto_base_service_proto_rawDesc,
- NumEnums: 1,
- NumMessages: 4,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_proto_base_service_proto_goTypes,
- DependencyIndexes: file_proto_base_service_proto_depIdxs,
- EnumInfos: file_proto_base_service_proto_enumTypes,
- MessageInfos: file_proto_base_service_proto_msgTypes,
- }.Build()
- File_proto_base_service_proto = out.File
- file_proto_base_service_proto_rawDesc = nil
- file_proto_base_service_proto_goTypes = nil
- file_proto_base_service_proto_depIdxs = nil
- }
|