123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.31.0
- // protoc v4.25.0
- // source: proto/common.proto
- package authorization_client
- 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 Base 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 *Base) Reset() {
- *x = Base{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_common_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Base) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Base) ProtoMessage() {}
- func (x *Base) ProtoReflect() protoreflect.Message {
- mi := &file_proto_common_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 Base.ProtoReflect.Descriptor instead.
- func (*Base) Descriptor() ([]byte, []int) {
- return file_proto_common_proto_rawDescGZIP(), []int{0}
- }
- func (x *Base) GetKey() string {
- if x != nil {
- return x.Key
- }
- return ""
- }
- func (x *Base) GetValue() string {
- if x != nil {
- return x.Value
- }
- return ""
- }
- type Profile 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"`
- Roles []*Base `protobuf:"bytes,3,rep,name=roles,proto3" json:"roles,omitempty"`
- PhoneNumber string `protobuf:"bytes,4,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
- Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"`
- Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"`
- Birthdate int64 `protobuf:"varint,7,opt,name=birthdate,proto3" json:"birthdate,omitempty"`
- Bio string `protobuf:"bytes,8,opt,name=bio,proto3" json:"bio,omitempty"`
- Gender int32 `protobuf:"varint,9,opt,name=gender,proto3" json:"gender,omitempty"`
- }
- func (x *Profile) Reset() {
- *x = Profile{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_common_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Profile) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Profile) ProtoMessage() {}
- func (x *Profile) ProtoReflect() protoreflect.Message {
- mi := &file_proto_common_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 Profile.ProtoReflect.Descriptor instead.
- func (*Profile) Descriptor() ([]byte, []int) {
- return file_proto_common_proto_rawDescGZIP(), []int{1}
- }
- func (x *Profile) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *Profile) GetUsername() string {
- if x != nil {
- return x.Username
- }
- return ""
- }
- func (x *Profile) GetRoles() []*Base {
- if x != nil {
- return x.Roles
- }
- return nil
- }
- func (x *Profile) GetPhoneNumber() string {
- if x != nil {
- return x.PhoneNumber
- }
- return ""
- }
- func (x *Profile) GetEmail() string {
- if x != nil {
- return x.Email
- }
- return ""
- }
- func (x *Profile) GetAvatar() string {
- if x != nil {
- return x.Avatar
- }
- return ""
- }
- func (x *Profile) GetBirthdate() int64 {
- if x != nil {
- return x.Birthdate
- }
- return 0
- }
- func (x *Profile) GetBio() string {
- if x != nil {
- return x.Bio
- }
- return ""
- }
- func (x *Profile) GetGender() int32 {
- if x != nil {
- return x.Gender
- }
- return 0
- }
- type LoginResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- User *Profile `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
- Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
- }
- func (x *LoginResponse) Reset() {
- *x = LoginResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_common_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *LoginResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*LoginResponse) ProtoMessage() {}
- func (x *LoginResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_common_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 LoginResponse.ProtoReflect.Descriptor instead.
- func (*LoginResponse) Descriptor() ([]byte, []int) {
- return file_proto_common_proto_rawDescGZIP(), []int{2}
- }
- func (x *LoginResponse) GetUser() *Profile {
- if x != nil {
- return x.User
- }
- return nil
- }
- func (x *LoginResponse) GetToken() string {
- if x != nil {
- return x.Token
- }
- return ""
- }
- // ------------ 角色列表 ------------
- type ListAdminRolesItems 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"`
- CreatedBy string `protobuf:"bytes,4,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"`
- CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
- Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"`
- IsReserved bool `protobuf:"varint,7,opt,name=is_reserved,json=isReserved,proto3" json:"is_reserved,omitempty"`
- }
- func (x *ListAdminRolesItems) Reset() {
- *x = ListAdminRolesItems{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_common_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ListAdminRolesItems) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ListAdminRolesItems) ProtoMessage() {}
- func (x *ListAdminRolesItems) ProtoReflect() protoreflect.Message {
- mi := &file_proto_common_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 ListAdminRolesItems.ProtoReflect.Descriptor instead.
- func (*ListAdminRolesItems) Descriptor() ([]byte, []int) {
- return file_proto_common_proto_rawDescGZIP(), []int{3}
- }
- func (x *ListAdminRolesItems) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *ListAdminRolesItems) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *ListAdminRolesItems) GetDescription() string {
- if x != nil {
- return x.Description
- }
- return ""
- }
- func (x *ListAdminRolesItems) GetCreatedBy() string {
- if x != nil {
- return x.CreatedBy
- }
- return ""
- }
- func (x *ListAdminRolesItems) GetCreatedAt() int64 {
- if x != nil {
- return x.CreatedAt
- }
- return 0
- }
- func (x *ListAdminRolesItems) GetStatus() string {
- if x != nil {
- return x.Status
- }
- return ""
- }
- func (x *ListAdminRolesItems) GetIsReserved() bool {
- if x != nil {
- return x.IsReserved
- }
- return false
- }
- type ListAdminRolesResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Items []*ListAdminRolesItems `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
- TotalCount int64 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
- }
- func (x *ListAdminRolesResponse) Reset() {
- *x = ListAdminRolesResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_common_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ListAdminRolesResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ListAdminRolesResponse) ProtoMessage() {}
- func (x *ListAdminRolesResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_common_proto_msgTypes[4]
- 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 ListAdminRolesResponse.ProtoReflect.Descriptor instead.
- func (*ListAdminRolesResponse) Descriptor() ([]byte, []int) {
- return file_proto_common_proto_rawDescGZIP(), []int{4}
- }
- func (x *ListAdminRolesResponse) GetItems() []*ListAdminRolesItems {
- if x != nil {
- return x.Items
- }
- return nil
- }
- func (x *ListAdminRolesResponse) GetTotalCount() int64 {
- if x != nil {
- return x.TotalCount
- }
- return 0
- }
- // ------------ 角色详情 ------------
- type GetAdminRoleBase 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 *GetAdminRoleBase) Reset() {
- *x = GetAdminRoleBase{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_common_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetAdminRoleBase) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetAdminRoleBase) ProtoMessage() {}
- func (x *GetAdminRoleBase) ProtoReflect() protoreflect.Message {
- mi := &file_proto_common_proto_msgTypes[5]
- 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 GetAdminRoleBase.ProtoReflect.Descriptor instead.
- func (*GetAdminRoleBase) Descriptor() ([]byte, []int) {
- return file_proto_common_proto_rawDescGZIP(), []int{5}
- }
- func (x *GetAdminRoleBase) GetKey() string {
- if x != nil {
- return x.Key
- }
- return ""
- }
- func (x *GetAdminRoleBase) GetValue() string {
- if x != nil {
- return x.Value
- }
- return ""
- }
- type GetAdminRoleResponse 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"`
- CreatedAt int64 `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
- Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
- IsReserved bool `protobuf:"varint,6,opt,name=is_reserved,json=isReserved,proto3" json:"is_reserved,omitempty"`
- Users []*GetAdminRoleBase `protobuf:"bytes,7,rep,name=users,proto3" json:"users,omitempty"`
- Permissions []*GetAdminRoleBase `protobuf:"bytes,8,rep,name=permissions,proto3" json:"permissions,omitempty"`
- }
- func (x *GetAdminRoleResponse) Reset() {
- *x = GetAdminRoleResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_common_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetAdminRoleResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetAdminRoleResponse) ProtoMessage() {}
- func (x *GetAdminRoleResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_common_proto_msgTypes[6]
- 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 GetAdminRoleResponse.ProtoReflect.Descriptor instead.
- func (*GetAdminRoleResponse) Descriptor() ([]byte, []int) {
- return file_proto_common_proto_rawDescGZIP(), []int{6}
- }
- func (x *GetAdminRoleResponse) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *GetAdminRoleResponse) GetName() string {
- if x != nil {
- return x.Name
- }
- return ""
- }
- func (x *GetAdminRoleResponse) GetDescription() string {
- if x != nil {
- return x.Description
- }
- return ""
- }
- func (x *GetAdminRoleResponse) GetCreatedAt() int64 {
- if x != nil {
- return x.CreatedAt
- }
- return 0
- }
- func (x *GetAdminRoleResponse) GetStatus() string {
- if x != nil {
- return x.Status
- }
- return ""
- }
- func (x *GetAdminRoleResponse) GetIsReserved() bool {
- if x != nil {
- return x.IsReserved
- }
- return false
- }
- func (x *GetAdminRoleResponse) GetUsers() []*GetAdminRoleBase {
- if x != nil {
- return x.Users
- }
- return nil
- }
- func (x *GetAdminRoleResponse) GetPermissions() []*GetAdminRoleBase {
- if x != nil {
- return x.Permissions
- }
- return nil
- }
- type GetUnassignedAdminRolesRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- }
- func (x *GetUnassignedAdminRolesRequest) Reset() {
- *x = GetUnassignedAdminRolesRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_common_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetUnassignedAdminRolesRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetUnassignedAdminRolesRequest) ProtoMessage() {}
- func (x *GetUnassignedAdminRolesRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_common_proto_msgTypes[7]
- 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 GetUnassignedAdminRolesRequest.ProtoReflect.Descriptor instead.
- func (*GetUnassignedAdminRolesRequest) Descriptor() ([]byte, []int) {
- return file_proto_common_proto_rawDescGZIP(), []int{7}
- }
- func (x *GetUnassignedAdminRolesRequest) GetUserId() int64 {
- if x != nil {
- return x.UserId
- }
- return 0
- }
- type ListAdminUsersResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Items []*GetAdminUser `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
- TotalCount int64 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
- }
- func (x *ListAdminUsersResponse) Reset() {
- *x = ListAdminUsersResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_common_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ListAdminUsersResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ListAdminUsersResponse) ProtoMessage() {}
- func (x *ListAdminUsersResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_common_proto_msgTypes[8]
- 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 ListAdminUsersResponse.ProtoReflect.Descriptor instead.
- func (*ListAdminUsersResponse) Descriptor() ([]byte, []int) {
- return file_proto_common_proto_rawDescGZIP(), []int{8}
- }
- func (x *ListAdminUsersResponse) GetItems() []*GetAdminUser {
- if x != nil {
- return x.Items
- }
- return nil
- }
- func (x *ListAdminUsersResponse) GetTotalCount() int64 {
- if x != nil {
- return x.TotalCount
- }
- return 0
- }
- // ------------ 用户详情 ------------
- type AdminUserProfile struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Avatar string `protobuf:"bytes,1,opt,name=avatar,proto3" json:"avatar,omitempty"`
- PhoneNumber string `protobuf:"bytes,2,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
- Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
- Bio string `protobuf:"bytes,4,opt,name=bio,proto3" json:"bio,omitempty"`
- Birthdate int64 `protobuf:"varint,5,opt,name=birthdate,proto3" json:"birthdate,omitempty"`
- Gender int32 `protobuf:"varint,6,opt,name=gender,proto3" json:"gender,omitempty"`
- Address string `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"`
- Website string `protobuf:"bytes,8,opt,name=website,proto3" json:"website,omitempty"`
- SocialLinks []*AdminUserProfileSocialLink `protobuf:"bytes,9,rep,name=social_links,json=socialLinks,proto3" json:"social_links,omitempty"`
- Educations []*AdminUserProfileEducation `protobuf:"bytes,10,rep,name=educations,proto3" json:"educations,omitempty"`
- WorkHistories []*AdminUserProfileWorkHistory `protobuf:"bytes,11,rep,name=work_histories,json=workHistories,proto3" json:"work_histories,omitempty"`
- }
- func (x *AdminUserProfile) Reset() {
- *x = AdminUserProfile{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_common_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *AdminUserProfile) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*AdminUserProfile) ProtoMessage() {}
- func (x *AdminUserProfile) ProtoReflect() protoreflect.Message {
- mi := &file_proto_common_proto_msgTypes[9]
- 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 AdminUserProfile.ProtoReflect.Descriptor instead.
- func (*AdminUserProfile) Descriptor() ([]byte, []int) {
- return file_proto_common_proto_rawDescGZIP(), []int{9}
- }
- func (x *AdminUserProfile) GetAvatar() string {
- if x != nil {
- return x.Avatar
- }
- return ""
- }
- func (x *AdminUserProfile) GetPhoneNumber() string {
- if x != nil {
- return x.PhoneNumber
- }
- return ""
- }
- func (x *AdminUserProfile) GetEmail() string {
- if x != nil {
- return x.Email
- }
- return ""
- }
- func (x *AdminUserProfile) GetBio() string {
- if x != nil {
- return x.Bio
- }
- return ""
- }
- func (x *AdminUserProfile) GetBirthdate() int64 {
- if x != nil {
- return x.Birthdate
- }
- return 0
- }
- func (x *AdminUserProfile) GetGender() int32 {
- if x != nil {
- return x.Gender
- }
- return 0
- }
- func (x *AdminUserProfile) GetAddress() string {
- if x != nil {
- return x.Address
- }
- return ""
- }
- func (x *AdminUserProfile) GetWebsite() string {
- if x != nil {
- return x.Website
- }
- return ""
- }
- func (x *AdminUserProfile) GetSocialLinks() []*AdminUserProfileSocialLink {
- if x != nil {
- return x.SocialLinks
- }
- return nil
- }
- func (x *AdminUserProfile) GetEducations() []*AdminUserProfileEducation {
- if x != nil {
- return x.Educations
- }
- return nil
- }
- func (x *AdminUserProfile) GetWorkHistories() []*AdminUserProfileWorkHistory {
- if x != nil {
- return x.WorkHistories
- }
- return nil
- }
- type AdminUserProfileSocialLink struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
- Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"`
- }
- func (x *AdminUserProfileSocialLink) Reset() {
- *x = AdminUserProfileSocialLink{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_common_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *AdminUserProfileSocialLink) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*AdminUserProfileSocialLink) ProtoMessage() {}
- func (x *AdminUserProfileSocialLink) ProtoReflect() protoreflect.Message {
- mi := &file_proto_common_proto_msgTypes[10]
- 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 AdminUserProfileSocialLink.ProtoReflect.Descriptor instead.
- func (*AdminUserProfileSocialLink) Descriptor() ([]byte, []int) {
- return file_proto_common_proto_rawDescGZIP(), []int{10}
- }
- func (x *AdminUserProfileSocialLink) GetUrl() string {
- if x != nil {
- return x.Url
- }
- return ""
- }
- func (x *AdminUserProfileSocialLink) GetPlatform() string {
- if x != nil {
- return x.Platform
- }
- return ""
- }
- type AdminUserProfileEducation struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- School string `protobuf:"bytes,1,opt,name=school,proto3" json:"school,omitempty"`
- Degree string `protobuf:"bytes,2,opt,name=degree,proto3" json:"degree,omitempty"`
- Graduated int64 `protobuf:"varint,3,opt,name=graduated,proto3" json:"graduated,omitempty"`
- }
- func (x *AdminUserProfileEducation) Reset() {
- *x = AdminUserProfileEducation{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_common_proto_msgTypes[11]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *AdminUserProfileEducation) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*AdminUserProfileEducation) ProtoMessage() {}
- func (x *AdminUserProfileEducation) ProtoReflect() protoreflect.Message {
- mi := &file_proto_common_proto_msgTypes[11]
- 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 AdminUserProfileEducation.ProtoReflect.Descriptor instead.
- func (*AdminUserProfileEducation) Descriptor() ([]byte, []int) {
- return file_proto_common_proto_rawDescGZIP(), []int{11}
- }
- func (x *AdminUserProfileEducation) GetSchool() string {
- if x != nil {
- return x.School
- }
- return ""
- }
- func (x *AdminUserProfileEducation) GetDegree() string {
- if x != nil {
- return x.Degree
- }
- return ""
- }
- func (x *AdminUserProfileEducation) GetGraduated() int64 {
- if x != nil {
- return x.Graduated
- }
- return 0
- }
- type AdminUserProfileWorkHistory struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Company string `protobuf:"bytes,1,opt,name=company,proto3" json:"company,omitempty"`
- Position string `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"`
- StartDate int64 `protobuf:"varint,3,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
- EndDate int64 `protobuf:"varint,4,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
- Responsibilities string `protobuf:"bytes,5,opt,name=responsibilities,proto3" json:"responsibilities,omitempty"`
- }
- func (x *AdminUserProfileWorkHistory) Reset() {
- *x = AdminUserProfileWorkHistory{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_common_proto_msgTypes[12]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *AdminUserProfileWorkHistory) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*AdminUserProfileWorkHistory) ProtoMessage() {}
- func (x *AdminUserProfileWorkHistory) ProtoReflect() protoreflect.Message {
- mi := &file_proto_common_proto_msgTypes[12]
- 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 AdminUserProfileWorkHistory.ProtoReflect.Descriptor instead.
- func (*AdminUserProfileWorkHistory) Descriptor() ([]byte, []int) {
- return file_proto_common_proto_rawDescGZIP(), []int{12}
- }
- func (x *AdminUserProfileWorkHistory) GetCompany() string {
- if x != nil {
- return x.Company
- }
- return ""
- }
- func (x *AdminUserProfileWorkHistory) GetPosition() string {
- if x != nil {
- return x.Position
- }
- return ""
- }
- func (x *AdminUserProfileWorkHistory) GetStartDate() int64 {
- if x != nil {
- return x.StartDate
- }
- return 0
- }
- func (x *AdminUserProfileWorkHistory) GetEndDate() int64 {
- if x != nil {
- return x.EndDate
- }
- return 0
- }
- func (x *AdminUserProfileWorkHistory) GetResponsibilities() string {
- if x != nil {
- return x.Responsibilities
- }
- return ""
- }
- type AdminUserBase 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 *AdminUserBase) Reset() {
- *x = AdminUserBase{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_common_proto_msgTypes[13]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *AdminUserBase) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*AdminUserBase) ProtoMessage() {}
- func (x *AdminUserBase) ProtoReflect() protoreflect.Message {
- mi := &file_proto_common_proto_msgTypes[13]
- 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 AdminUserBase.ProtoReflect.Descriptor instead.
- func (*AdminUserBase) Descriptor() ([]byte, []int) {
- return file_proto_common_proto_rawDescGZIP(), []int{13}
- }
- func (x *AdminUserBase) GetKey() string {
- if x != nil {
- return x.Key
- }
- return ""
- }
- func (x *AdminUserBase) GetValue() string {
- if x != nil {
- return x.Value
- }
- return ""
- }
- type GetAdminUserRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
- }
- func (x *GetAdminUserRequest) Reset() {
- *x = GetAdminUserRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_common_proto_msgTypes[14]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetAdminUserRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetAdminUserRequest) ProtoMessage() {}
- func (x *GetAdminUserRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_common_proto_msgTypes[14]
- 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 GetAdminUserRequest.ProtoReflect.Descriptor instead.
- func (*GetAdminUserRequest) Descriptor() ([]byte, []int) {
- return file_proto_common_proto_rawDescGZIP(), []int{14}
- }
- func (x *GetAdminUserRequest) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- type GetAdminUser struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
- Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
- Roles []*AdminUserBase `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"`
- Teams []*AdminUserBase `protobuf:"bytes,5,rep,name=teams,proto3" json:"teams,omitempty"`
- Profile *AdminUserProfile `protobuf:"bytes,6,opt,name=profile,proto3" json:"profile,omitempty"`
- }
- func (x *GetAdminUser) Reset() {
- *x = GetAdminUser{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_common_proto_msgTypes[15]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetAdminUser) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetAdminUser) ProtoMessage() {}
- func (x *GetAdminUser) ProtoReflect() protoreflect.Message {
- mi := &file_proto_common_proto_msgTypes[15]
- 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 GetAdminUser.ProtoReflect.Descriptor instead.
- func (*GetAdminUser) Descriptor() ([]byte, []int) {
- return file_proto_common_proto_rawDescGZIP(), []int{15}
- }
- func (x *GetAdminUser) GetUserId() int64 {
- if x != nil {
- return x.UserId
- }
- return 0
- }
- func (x *GetAdminUser) GetUsername() string {
- if x != nil {
- return x.Username
- }
- return ""
- }
- func (x *GetAdminUser) GetStatus() string {
- if x != nil {
- return x.Status
- }
- return ""
- }
- func (x *GetAdminUser) GetRoles() []*AdminUserBase {
- if x != nil {
- return x.Roles
- }
- return nil
- }
- func (x *GetAdminUser) GetTeams() []*AdminUserBase {
- if x != nil {
- return x.Teams
- }
- return nil
- }
- func (x *GetAdminUser) GetProfile() *AdminUserProfile {
- if x != nil {
- return x.Profile
- }
- return nil
- }
- // ------------ admin user 更新 ------------
- type UpdateAdminUserRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
- Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
- Roles []*AdminUserBase `protobuf:"bytes,4,rep,name=roles,proto3" json:"roles,omitempty"`
- Teams []*AdminUserBase `protobuf:"bytes,5,rep,name=teams,proto3" json:"teams,omitempty"`
- Profile *AdminUserProfile `protobuf:"bytes,6,opt,name=profile,proto3" json:"profile,omitempty"`
- }
- func (x *UpdateAdminUserRequest) Reset() {
- *x = UpdateAdminUserRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_common_proto_msgTypes[16]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UpdateAdminUserRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UpdateAdminUserRequest) ProtoMessage() {}
- func (x *UpdateAdminUserRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_common_proto_msgTypes[16]
- 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 UpdateAdminUserRequest.ProtoReflect.Descriptor instead.
- func (*UpdateAdminUserRequest) Descriptor() ([]byte, []int) {
- return file_proto_common_proto_rawDescGZIP(), []int{16}
- }
- func (x *UpdateAdminUserRequest) GetUserId() int64 {
- if x != nil {
- return x.UserId
- }
- return 0
- }
- func (x *UpdateAdminUserRequest) GetStatus() string {
- if x != nil {
- return x.Status
- }
- return ""
- }
- func (x *UpdateAdminUserRequest) GetRoles() []*AdminUserBase {
- if x != nil {
- return x.Roles
- }
- return nil
- }
- func (x *UpdateAdminUserRequest) GetTeams() []*AdminUserBase {
- if x != nil {
- return x.Teams
- }
- return nil
- }
- func (x *UpdateAdminUserRequest) GetProfile() *AdminUserProfile {
- if x != nil {
- return x.Profile
- }
- return nil
- }
- // ------------ 查询关联的角色 ------------
- type GetAdminUserAssociatedRolesRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
- }
- func (x *GetAdminUserAssociatedRolesRequest) Reset() {
- *x = GetAdminUserAssociatedRolesRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_common_proto_msgTypes[17]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetAdminUserAssociatedRolesRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetAdminUserAssociatedRolesRequest) ProtoMessage() {}
- func (x *GetAdminUserAssociatedRolesRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_common_proto_msgTypes[17]
- 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 GetAdminUserAssociatedRolesRequest.ProtoReflect.Descriptor instead.
- func (*GetAdminUserAssociatedRolesRequest) Descriptor() ([]byte, []int) {
- return file_proto_common_proto_rawDescGZIP(), []int{17}
- }
- func (x *GetAdminUserAssociatedRolesRequest) GetUsername() string {
- if x != nil {
- return x.Username
- }
- return ""
- }
- type GetAdminUserAssociatedRolesResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Items []*AdminUserBase `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
- }
- func (x *GetAdminUserAssociatedRolesResponse) Reset() {
- *x = GetAdminUserAssociatedRolesResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_common_proto_msgTypes[18]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetAdminUserAssociatedRolesResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetAdminUserAssociatedRolesResponse) ProtoMessage() {}
- func (x *GetAdminUserAssociatedRolesResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_common_proto_msgTypes[18]
- 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 GetAdminUserAssociatedRolesResponse.ProtoReflect.Descriptor instead.
- func (*GetAdminUserAssociatedRolesResponse) Descriptor() ([]byte, []int) {
- return file_proto_common_proto_rawDescGZIP(), []int{18}
- }
- func (x *GetAdminUserAssociatedRolesResponse) GetItems() []*AdminUserBase {
- if x != nil {
- return x.Items
- }
- return nil
- }
- var File_proto_common_proto protoreflect.FileDescriptor
- var file_proto_common_proto_rawDesc = []byte{
- 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0x2e, 0x0a, 0x04,
- 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, 0xf2, 0x01, 0x0a,
- 0x07, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 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, 0x22, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20,
- 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x42, 0x61, 0x73,
- 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x68, 0x6f, 0x6e,
- 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
- 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x65,
- 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69,
- 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x69, 0x72,
- 0x74, 0x68, 0x64, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x62, 0x69,
- 0x72, 0x74, 0x68, 0x64, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x69, 0x6f, 0x18, 0x08,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x62, 0x69, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x65, 0x6e,
- 0x64, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65,
- 0x72, 0x22, 0x4a, 0x0a, 0x0d, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
- 0x73, 0x65, 0x12, 0x23, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
- 0x32, 0x0f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c,
- 0x65, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xd2, 0x01,
- 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x73,
- 0x49, 0x74, 0x65, 0x6d, 0x73, 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, 0x1d, 0x0a, 0x0a, 0x63,
- 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x04, 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, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
- 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61,
- 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 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, 0x22, 0x6c, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52,
- 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x05,
- 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x6f,
- 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x6f,
- 0x6c, 0x65, 0x73, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x12,
- 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e, 0x74,
- 0x22, 0x3a, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x6f, 0x6c, 0x65,
- 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, 0xa0, 0x02, 0x0a,
- 0x14, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x73,
- 0x70, 0x6f, 0x6e, 0x73, 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, 0x1d, 0x0a, 0x0a, 0x63,
- 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52,
- 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74,
- 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74,
- 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65,
- 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x52, 0x65, 0x73, 0x65, 0x72,
- 0x76, 0x65, 0x64, 0x12, 0x2e, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x07, 0x20, 0x03,
- 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x41,
- 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x42, 0x61, 0x73, 0x65, 0x52, 0x05, 0x75, 0x73,
- 0x65, 0x72, 0x73, 0x12, 0x3a, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
- 0x6e, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
- 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x42, 0x61,
- 0x73, 0x65, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22,
- 0x39, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64,
- 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x65, 0x0a, 0x16, 0x4c, 0x69,
- 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70,
- 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20,
- 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74,
- 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73,
- 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x75, 0x6e,
- 0x74, 0x22, 0xb5, 0x03, 0x0a, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x50,
- 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x21,
- 0x0a, 0x0c, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18, 0x02,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65,
- 0x72, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x69, 0x6f, 0x18, 0x04,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x62, 0x69, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x62, 0x69, 0x72,
- 0x74, 0x68, 0x64, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x62, 0x69,
- 0x72, 0x74, 0x68, 0x64, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65,
- 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x67, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12,
- 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x65, 0x62,
- 0x73, 0x69, 0x74, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x77, 0x65, 0x62, 0x73,
- 0x69, 0x74, 0x65, 0x12, 0x45, 0x0a, 0x0c, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x5f, 0x6c, 0x69,
- 0x6e, 0x6b, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
- 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66,
- 0x69, 0x6c, 0x65, 0x53, 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x52, 0x0b, 0x73,
- 0x6f, 0x63, 0x69, 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x12, 0x41, 0x0a, 0x0a, 0x65, 0x64,
- 0x75, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21,
- 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65,
- 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x45, 0x64, 0x75, 0x63, 0x61, 0x74, 0x69, 0x6f,
- 0x6e, 0x52, 0x0a, 0x65, 0x64, 0x75, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x4a, 0x0a,
- 0x0e, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18,
- 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41,
- 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x57,
- 0x6f, 0x72, 0x6b, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b,
- 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x22, 0x4a, 0x0a, 0x1a, 0x41, 0x64, 0x6d,
- 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x6f, 0x63,
- 0x69, 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61,
- 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6c, 0x61,
- 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0x69, 0x0a, 0x19, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73,
- 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x45, 0x64, 0x75, 0x63, 0x61, 0x74, 0x69,
- 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x6f, 0x6f, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x65,
- 0x67, 0x72, 0x65, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x65, 0x67, 0x72,
- 0x65, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x72, 0x61, 0x64, 0x75, 0x61, 0x74, 0x65, 0x64, 0x18,
- 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x67, 0x72, 0x61, 0x64, 0x75, 0x61, 0x74, 0x65, 0x64,
- 0x22, 0xb9, 0x01, 0x0a, 0x1b, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72,
- 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79,
- 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f,
- 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f,
- 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f,
- 0x64, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72,
- 0x74, 0x44, 0x61, 0x74, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x64, 0x61, 0x74,
- 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x44, 0x61, 0x74, 0x65,
- 0x12, 0x2a, 0x0a, 0x10, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69,
- 0x74, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x73, 0x70,
- 0x6f, 0x6e, 0x73, 0x69, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x37, 0x0a, 0x0d,
- 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 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, 0x25, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69,
- 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02,
- 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0xe9, 0x01, 0x0a,
- 0x0c, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x17, 0x0a,
- 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
- 0x75, 0x73, 0x65, 0x72, 0x49, 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, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2b, 0x0a, 0x05, 0x72, 0x6f,
- 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
- 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x73, 0x65,
- 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x2b, 0x0a, 0x05, 0x74, 0x65, 0x61, 0x6d, 0x73,
- 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
- 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x73, 0x65, 0x52, 0x05, 0x74,
- 0x65, 0x61, 0x6d, 0x73, 0x12, 0x32, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18,
- 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41,
- 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52,
- 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0xd7, 0x01, 0x0a, 0x16, 0x55, 0x70, 0x64,
- 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06,
- 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74,
- 0x61, 0x74, 0x75, 0x73, 0x12, 0x2b, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20,
- 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x6d,
- 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x73, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65,
- 0x73, 0x12, 0x2b, 0x0a, 0x05, 0x74, 0x65, 0x61, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b,
- 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55,
- 0x73, 0x65, 0x72, 0x42, 0x61, 0x73, 0x65, 0x52, 0x05, 0x74, 0x65, 0x61, 0x6d, 0x73, 0x12, 0x32,
- 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32,
- 0x18, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73,
- 0x65, 0x72, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69,
- 0x6c, 0x65, 0x22, 0x40, 0x0a, 0x22, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73,
- 0x65, 0x72, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x6c, 0x65,
- 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72,
- 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72,
- 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x52, 0x0a, 0x23, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e,
- 0x55, 0x73, 0x65, 0x72, 0x41, 0x73, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x65, 0x64, 0x52, 0x6f,
- 0x6c, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x69,
- 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x6f, 0x6d,
- 0x6d, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x73,
- 0x65, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x42, 0x1e, 0x5a, 0x1c, 0x2e, 0x2f, 0x70, 0x72,
- 0x6f, 0x74, 0x6f, 0x3b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f,
- 0x6e, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_proto_common_proto_rawDescOnce sync.Once
- file_proto_common_proto_rawDescData = file_proto_common_proto_rawDesc
- )
- func file_proto_common_proto_rawDescGZIP() []byte {
- file_proto_common_proto_rawDescOnce.Do(func() {
- file_proto_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_common_proto_rawDescData)
- })
- return file_proto_common_proto_rawDescData
- }
- var file_proto_common_proto_msgTypes = make([]protoimpl.MessageInfo, 19)
- var file_proto_common_proto_goTypes = []interface{}{
- (*Base)(nil), // 0: common.Base
- (*Profile)(nil), // 1: common.Profile
- (*LoginResponse)(nil), // 2: common.LoginResponse
- (*ListAdminRolesItems)(nil), // 3: common.ListAdminRolesItems
- (*ListAdminRolesResponse)(nil), // 4: common.ListAdminRolesResponse
- (*GetAdminRoleBase)(nil), // 5: common.GetAdminRoleBase
- (*GetAdminRoleResponse)(nil), // 6: common.GetAdminRoleResponse
- (*GetUnassignedAdminRolesRequest)(nil), // 7: common.GetUnassignedAdminRolesRequest
- (*ListAdminUsersResponse)(nil), // 8: common.ListAdminUsersResponse
- (*AdminUserProfile)(nil), // 9: common.AdminUserProfile
- (*AdminUserProfileSocialLink)(nil), // 10: common.AdminUserProfileSocialLink
- (*AdminUserProfileEducation)(nil), // 11: common.AdminUserProfileEducation
- (*AdminUserProfileWorkHistory)(nil), // 12: common.AdminUserProfileWorkHistory
- (*AdminUserBase)(nil), // 13: common.AdminUserBase
- (*GetAdminUserRequest)(nil), // 14: common.GetAdminUserRequest
- (*GetAdminUser)(nil), // 15: common.GetAdminUser
- (*UpdateAdminUserRequest)(nil), // 16: common.UpdateAdminUserRequest
- (*GetAdminUserAssociatedRolesRequest)(nil), // 17: common.GetAdminUserAssociatedRolesRequest
- (*GetAdminUserAssociatedRolesResponse)(nil), // 18: common.GetAdminUserAssociatedRolesResponse
- }
- var file_proto_common_proto_depIdxs = []int32{
- 0, // 0: common.Profile.roles:type_name -> common.Base
- 1, // 1: common.LoginResponse.user:type_name -> common.Profile
- 3, // 2: common.ListAdminRolesResponse.items:type_name -> common.ListAdminRolesItems
- 5, // 3: common.GetAdminRoleResponse.users:type_name -> common.GetAdminRoleBase
- 5, // 4: common.GetAdminRoleResponse.permissions:type_name -> common.GetAdminRoleBase
- 15, // 5: common.ListAdminUsersResponse.items:type_name -> common.GetAdminUser
- 10, // 6: common.AdminUserProfile.social_links:type_name -> common.AdminUserProfileSocialLink
- 11, // 7: common.AdminUserProfile.educations:type_name -> common.AdminUserProfileEducation
- 12, // 8: common.AdminUserProfile.work_histories:type_name -> common.AdminUserProfileWorkHistory
- 13, // 9: common.GetAdminUser.roles:type_name -> common.AdminUserBase
- 13, // 10: common.GetAdminUser.teams:type_name -> common.AdminUserBase
- 9, // 11: common.GetAdminUser.profile:type_name -> common.AdminUserProfile
- 13, // 12: common.UpdateAdminUserRequest.roles:type_name -> common.AdminUserBase
- 13, // 13: common.UpdateAdminUserRequest.teams:type_name -> common.AdminUserBase
- 9, // 14: common.UpdateAdminUserRequest.profile:type_name -> common.AdminUserProfile
- 13, // 15: common.GetAdminUserAssociatedRolesResponse.items:type_name -> common.AdminUserBase
- 16, // [16:16] is the sub-list for method output_type
- 16, // [16:16] is the sub-list for method input_type
- 16, // [16:16] is the sub-list for extension type_name
- 16, // [16:16] is the sub-list for extension extendee
- 0, // [0:16] is the sub-list for field type_name
- }
- func init() { file_proto_common_proto_init() }
- func file_proto_common_proto_init() {
- if File_proto_common_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_proto_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Base); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Profile); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*LoginResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ListAdminRolesItems); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ListAdminRolesResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetAdminRoleBase); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_common_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetAdminRoleResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_common_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetUnassignedAdminRolesRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ListAdminUsersResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_common_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AdminUserProfile); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_common_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AdminUserProfileSocialLink); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_common_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AdminUserProfileEducation); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_common_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AdminUserProfileWorkHistory); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_common_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*AdminUserBase); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_common_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetAdminUserRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_common_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetAdminUser); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_common_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UpdateAdminUserRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_common_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetAdminUserAssociatedRolesRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_common_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetAdminUserAssociatedRolesResponse); 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_common_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 19,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_proto_common_proto_goTypes,
- DependencyIndexes: file_proto_common_proto_depIdxs,
- MessageInfos: file_proto_common_proto_msgTypes,
- }.Build()
- File_proto_common_proto = out.File
- file_proto_common_proto_rawDesc = nil
- file_proto_common_proto_goTypes = nil
- file_proto_common_proto_depIdxs = nil
- }
|