12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.31.0
- // protoc v4.25.0
- // source: proto/admin_user_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 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_admin_user_service_proto_msgTypes[0]
- 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_admin_user_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 GetAdminUserRequest.ProtoReflect.Descriptor instead.
- func (*GetAdminUserRequest) Descriptor() ([]byte, []int) {
- return file_proto_admin_user_service_proto_rawDescGZIP(), []int{0}
- }
- func (x *GetAdminUserRequest) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- type GetAdminUserResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Data *AdminUser `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
- }
- func (x *GetAdminUserResponse) Reset() {
- *x = GetAdminUserResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_admin_user_service_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetAdminUserResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetAdminUserResponse) ProtoMessage() {}
- func (x *GetAdminUserResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_admin_user_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 GetAdminUserResponse.ProtoReflect.Descriptor instead.
- func (*GetAdminUserResponse) Descriptor() ([]byte, []int) {
- return file_proto_admin_user_service_proto_rawDescGZIP(), []int{1}
- }
- func (x *GetAdminUserResponse) GetData() *AdminUser {
- if x != nil {
- return x.Data
- }
- return nil
- }
- // ------------ 创建账号 ------------
- type CreateAdminUserRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
- Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
- PhoneNumber string `protobuf:"bytes,3,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"`
- Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
- Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"`
- Roles []int64 `protobuf:"varint,6,rep,packed,name=roles,proto3" json:"roles,omitempty"`
- Teams []int64 `protobuf:"varint,7,rep,packed,name=teams,proto3" json:"teams,omitempty"`
- }
- func (x *CreateAdminUserRequest) Reset() {
- *x = CreateAdminUserRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_admin_user_service_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CreateAdminUserRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CreateAdminUserRequest) ProtoMessage() {}
- func (x *CreateAdminUserRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_admin_user_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 CreateAdminUserRequest.ProtoReflect.Descriptor instead.
- func (*CreateAdminUserRequest) Descriptor() ([]byte, []int) {
- return file_proto_admin_user_service_proto_rawDescGZIP(), []int{2}
- }
- func (x *CreateAdminUserRequest) GetUsername() string {
- if x != nil {
- return x.Username
- }
- return ""
- }
- func (x *CreateAdminUserRequest) GetPassword() string {
- if x != nil {
- return x.Password
- }
- return ""
- }
- func (x *CreateAdminUserRequest) GetPhoneNumber() string {
- if x != nil {
- return x.PhoneNumber
- }
- return ""
- }
- func (x *CreateAdminUserRequest) GetEmail() string {
- if x != nil {
- return x.Email
- }
- return ""
- }
- func (x *CreateAdminUserRequest) GetAvatar() string {
- if x != nil {
- return x.Avatar
- }
- return ""
- }
- func (x *CreateAdminUserRequest) GetRoles() []int64 {
- if x != nil {
- return x.Roles
- }
- return nil
- }
- func (x *CreateAdminUserRequest) GetTeams() []int64 {
- if x != nil {
- return x.Teams
- }
- return nil
- }
- type CreateAdminUserResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *CreateAdminUserResponse) Reset() {
- *x = CreateAdminUserResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_admin_user_service_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *CreateAdminUserResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*CreateAdminUserResponse) ProtoMessage() {}
- func (x *CreateAdminUserResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_admin_user_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 CreateAdminUserResponse.ProtoReflect.Descriptor instead.
- func (*CreateAdminUserResponse) Descriptor() ([]byte, []int) {
- return file_proto_admin_user_service_proto_rawDescGZIP(), []int{3}
- }
- type UpdateAdminUserRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,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"`
- Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"`
- Roles []int64 `protobuf:"varint,5,rep,packed,name=roles,proto3" json:"roles,omitempty"`
- Teams []int64 `protobuf:"varint,6,rep,packed,name=teams,proto3" json:"teams,omitempty"`
- }
- func (x *UpdateAdminUserRequest) Reset() {
- *x = UpdateAdminUserRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_admin_user_service_proto_msgTypes[4]
- 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_admin_user_service_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 UpdateAdminUserRequest.ProtoReflect.Descriptor instead.
- func (*UpdateAdminUserRequest) Descriptor() ([]byte, []int) {
- return file_proto_admin_user_service_proto_rawDescGZIP(), []int{4}
- }
- func (x *UpdateAdminUserRequest) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *UpdateAdminUserRequest) GetPhoneNumber() string {
- if x != nil {
- return x.PhoneNumber
- }
- return ""
- }
- func (x *UpdateAdminUserRequest) GetEmail() string {
- if x != nil {
- return x.Email
- }
- return ""
- }
- func (x *UpdateAdminUserRequest) GetAvatar() string {
- if x != nil {
- return x.Avatar
- }
- return ""
- }
- func (x *UpdateAdminUserRequest) GetRoles() []int64 {
- if x != nil {
- return x.Roles
- }
- return nil
- }
- func (x *UpdateAdminUserRequest) GetTeams() []int64 {
- if x != nil {
- return x.Teams
- }
- return nil
- }
- type UpdateAdminUserResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *UpdateAdminUserResponse) Reset() {
- *x = UpdateAdminUserResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_admin_user_service_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *UpdateAdminUserResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*UpdateAdminUserResponse) ProtoMessage() {}
- func (x *UpdateAdminUserResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_admin_user_service_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 UpdateAdminUserResponse.ProtoReflect.Descriptor instead.
- func (*UpdateAdminUserResponse) Descriptor() ([]byte, []int) {
- return file_proto_admin_user_service_proto_rawDescGZIP(), []int{5}
- }
- // ------------ 取消列表 ------------
- type ListAdminUsersRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
- PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
- Keyword string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"`
- Status StatusEnum `protobuf:"varint,4,opt,name=status,proto3,enum=base_service.StatusEnum" json:"status,omitempty"`
- }
- func (x *ListAdminUsersRequest) Reset() {
- *x = ListAdminUsersRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_admin_user_service_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ListAdminUsersRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ListAdminUsersRequest) ProtoMessage() {}
- func (x *ListAdminUsersRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_admin_user_service_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 ListAdminUsersRequest.ProtoReflect.Descriptor instead.
- func (*ListAdminUsersRequest) Descriptor() ([]byte, []int) {
- return file_proto_admin_user_service_proto_rawDescGZIP(), []int{6}
- }
- func (x *ListAdminUsersRequest) GetPage() int32 {
- if x != nil {
- return x.Page
- }
- return 0
- }
- func (x *ListAdminUsersRequest) GetPageSize() int32 {
- if x != nil {
- return x.PageSize
- }
- return 0
- }
- func (x *ListAdminUsersRequest) GetKeyword() string {
- if x != nil {
- return x.Keyword
- }
- return ""
- }
- func (x *ListAdminUsersRequest) GetStatus() StatusEnum {
- if x != nil {
- return x.Status
- }
- return StatusEnum_UNKNOWN
- }
- type ListAdminUsersResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Items []*AdminUser `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_admin_user_service_proto_msgTypes[7]
- 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_admin_user_service_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 ListAdminUsersResponse.ProtoReflect.Descriptor instead.
- func (*ListAdminUsersResponse) Descriptor() ([]byte, []int) {
- return file_proto_admin_user_service_proto_rawDescGZIP(), []int{7}
- }
- func (x *ListAdminUsersResponse) GetItems() []*AdminUser {
- if x != nil {
- return x.Items
- }
- return nil
- }
- func (x *ListAdminUsersResponse) GetTotalCount() int64 {
- if x != nil {
- return x.TotalCount
- }
- return 0
- }
- // ------------ 删除用户【管理员】 ------------
- type DeleteAdminUserRequest 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 *DeleteAdminUserRequest) Reset() {
- *x = DeleteAdminUserRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_admin_user_service_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DeleteAdminUserRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DeleteAdminUserRequest) ProtoMessage() {}
- func (x *DeleteAdminUserRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_admin_user_service_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 DeleteAdminUserRequest.ProtoReflect.Descriptor instead.
- func (*DeleteAdminUserRequest) Descriptor() ([]byte, []int) {
- return file_proto_admin_user_service_proto_rawDescGZIP(), []int{8}
- }
- func (x *DeleteAdminUserRequest) GetUserId() int64 {
- if x != nil {
- return x.UserId
- }
- return 0
- }
- type DeleteAdminUserResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *DeleteAdminUserResponse) Reset() {
- *x = DeleteAdminUserResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_admin_user_service_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DeleteAdminUserResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DeleteAdminUserResponse) ProtoMessage() {}
- func (x *DeleteAdminUserResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_admin_user_service_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 DeleteAdminUserResponse.ProtoReflect.Descriptor instead.
- func (*DeleteAdminUserResponse) Descriptor() ([]byte, []int) {
- return file_proto_admin_user_service_proto_rawDescGZIP(), []int{9}
- }
- // ------------ 启用禁用用户【管理员】 ------------
- type ToggleAdminUserRequest 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 StatusEnum `protobuf:"varint,2,opt,name=status,proto3,enum=base_service.StatusEnum" json:"status,omitempty"`
- }
- func (x *ToggleAdminUserRequest) Reset() {
- *x = ToggleAdminUserRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_admin_user_service_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ToggleAdminUserRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ToggleAdminUserRequest) ProtoMessage() {}
- func (x *ToggleAdminUserRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_admin_user_service_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 ToggleAdminUserRequest.ProtoReflect.Descriptor instead.
- func (*ToggleAdminUserRequest) Descriptor() ([]byte, []int) {
- return file_proto_admin_user_service_proto_rawDescGZIP(), []int{10}
- }
- func (x *ToggleAdminUserRequest) GetUserId() int64 {
- if x != nil {
- return x.UserId
- }
- return 0
- }
- func (x *ToggleAdminUserRequest) GetStatus() StatusEnum {
- if x != nil {
- return x.Status
- }
- return StatusEnum_UNKNOWN
- }
- type ToggleAdminUserResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *ToggleAdminUserResponse) Reset() {
- *x = ToggleAdminUserResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_admin_user_service_proto_msgTypes[11]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ToggleAdminUserResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ToggleAdminUserResponse) ProtoMessage() {}
- func (x *ToggleAdminUserResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_admin_user_service_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 ToggleAdminUserResponse.ProtoReflect.Descriptor instead.
- func (*ToggleAdminUserResponse) Descriptor() ([]byte, []int) {
- return file_proto_admin_user_service_proto_rawDescGZIP(), []int{11}
- }
- type RetrieveEnabledUsersRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *RetrieveEnabledUsersRequest) Reset() {
- *x = RetrieveEnabledUsersRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_admin_user_service_proto_msgTypes[12]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *RetrieveEnabledUsersRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*RetrieveEnabledUsersRequest) ProtoMessage() {}
- func (x *RetrieveEnabledUsersRequest) ProtoReflect() protoreflect.Message {
- mi := &file_proto_admin_user_service_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 RetrieveEnabledUsersRequest.ProtoReflect.Descriptor instead.
- func (*RetrieveEnabledUsersRequest) Descriptor() ([]byte, []int) {
- return file_proto_admin_user_service_proto_rawDescGZIP(), []int{12}
- }
- type RetrieveEnabledUsersResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Users []*AdminUser `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
- }
- func (x *RetrieveEnabledUsersResponse) Reset() {
- *x = RetrieveEnabledUsersResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_proto_admin_user_service_proto_msgTypes[13]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *RetrieveEnabledUsersResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*RetrieveEnabledUsersResponse) ProtoMessage() {}
- func (x *RetrieveEnabledUsersResponse) ProtoReflect() protoreflect.Message {
- mi := &file_proto_admin_user_service_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 RetrieveEnabledUsersResponse.ProtoReflect.Descriptor instead.
- func (*RetrieveEnabledUsersResponse) Descriptor() ([]byte, []int) {
- return file_proto_admin_user_service_proto_rawDescGZIP(), []int{13}
- }
- func (x *RetrieveEnabledUsersResponse) GetUsers() []*AdminUser {
- if x != nil {
- return x.Users
- }
- return nil
- }
- var File_proto_admin_user_service_proto protoreflect.FileDescriptor
- var file_proto_admin_user_service_proto_rawDesc = []byte{
- 0x0a, 0x1e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73,
- 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
- 0x12, 0x12, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72,
- 0x76, 0x69, 0x63, 0x65, 0x1a, 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, 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, 0x43, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69,
- 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a,
- 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61,
- 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e,
- 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xcd, 0x01, 0x0a, 0x16, 0x43,
- 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 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, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 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, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72,
- 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x14,
- 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x03, 0x52, 0x05, 0x72,
- 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x65, 0x61, 0x6d, 0x73, 0x18, 0x07, 0x20,
- 0x03, 0x28, 0x03, 0x52, 0x05, 0x74, 0x65, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a, 0x17, 0x43, 0x72,
- 0x65, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73,
- 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xa5, 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, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64,
- 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, 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, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x03,
- 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x65, 0x61, 0x6d, 0x73,
- 0x18, 0x06, 0x20, 0x03, 0x28, 0x03, 0x52, 0x05, 0x74, 0x65, 0x61, 0x6d, 0x73, 0x22, 0x19, 0x0a,
- 0x17, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72,
- 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x94, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73,
- 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
- 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73,
- 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53,
- 0x69, 0x7a, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x30, 0x0a,
- 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 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, 0x22,
- 0x68, 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, 0x2d, 0x0a, 0x05, 0x69, 0x74, 0x65,
- 0x6d, 0x73, 0x18, 0x01, 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, 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, 0x31, 0x0a, 0x16, 0x44, 0x65, 0x6c,
- 0x65, 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, 0x22, 0x19, 0x0a, 0x17,
- 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52,
- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 0x0a, 0x16, 0x54, 0x6f, 0x67, 0x67, 0x6c,
- 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, 0x30, 0x0a, 0x06, 0x73, 0x74,
- 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 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, 0x22, 0x19, 0x0a, 0x17,
- 0x54, 0x6f, 0x67, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52,
- 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x1d, 0x0a, 0x1b, 0x52, 0x65, 0x74, 0x72, 0x69,
- 0x65, 0x76, 0x65, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x4d, 0x0a, 0x1c, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65,
- 0x76, 0x65, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65,
- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18,
- 0x01, 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, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05,
- 0x75, 0x73, 0x65, 0x72, 0x73, 0x32, 0x89, 0x06, 0x0a, 0x10, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55,
- 0x73, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x61, 0x0a, 0x0c, 0x47, 0x65,
- 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x27, 0x2e, 0x61, 0x64, 0x6d,
- 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
- 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72,
- 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x64, 0x6d, 0x69,
- 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x67, 0x0a,
- 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12,
- 0x29, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72,
- 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73,
- 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x61, 0x64, 0x6d,
- 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
- 0x4c, 0x69, 0x73, 0x74, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65,
- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
- 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x61, 0x64, 0x6d, 0x69,
- 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43,
- 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65,
- 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73,
- 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
- 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
- 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x0f, 0x54, 0x6f, 0x67, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x6d, 0x69,
- 0x6e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x2a, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73,
- 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x54, 0x6f, 0x67, 0x67, 0x6c,
- 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x1a, 0x2b, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73,
- 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x54, 0x6f, 0x67, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x6d,
- 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a,
- 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65,
- 0x72, 0x12, 0x2a, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73,
- 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x64, 0x6d,
- 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e,
- 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
- 0x63, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73,
- 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x0f, 0x55, 0x70,
- 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x12, 0x2a, 0x2e,
- 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69,
- 0x63, 0x65, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73,
- 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x61, 0x64, 0x6d, 0x69,
- 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x55,
- 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65,
- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x14, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65,
- 0x76, 0x65, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, 0x2f,
- 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76,
- 0x69, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x45, 0x6e, 0x61, 0x62,
- 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
- 0x30, 0x2e, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72,
- 0x76, 0x69, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x69, 0x65, 0x76, 0x65, 0x45, 0x6e, 0x61,
- 0x62, 0x6c, 0x65, 0x64, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
- 0x65, 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_admin_user_service_proto_rawDescOnce sync.Once
- file_proto_admin_user_service_proto_rawDescData = file_proto_admin_user_service_proto_rawDesc
- )
- func file_proto_admin_user_service_proto_rawDescGZIP() []byte {
- file_proto_admin_user_service_proto_rawDescOnce.Do(func() {
- file_proto_admin_user_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_admin_user_service_proto_rawDescData)
- })
- return file_proto_admin_user_service_proto_rawDescData
- }
- var file_proto_admin_user_service_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
- var file_proto_admin_user_service_proto_goTypes = []interface{}{
- (*GetAdminUserRequest)(nil), // 0: admin_user_service.GetAdminUserRequest
- (*GetAdminUserResponse)(nil), // 1: admin_user_service.GetAdminUserResponse
- (*CreateAdminUserRequest)(nil), // 2: admin_user_service.CreateAdminUserRequest
- (*CreateAdminUserResponse)(nil), // 3: admin_user_service.CreateAdminUserResponse
- (*UpdateAdminUserRequest)(nil), // 4: admin_user_service.UpdateAdminUserRequest
- (*UpdateAdminUserResponse)(nil), // 5: admin_user_service.UpdateAdminUserResponse
- (*ListAdminUsersRequest)(nil), // 6: admin_user_service.ListAdminUsersRequest
- (*ListAdminUsersResponse)(nil), // 7: admin_user_service.ListAdminUsersResponse
- (*DeleteAdminUserRequest)(nil), // 8: admin_user_service.DeleteAdminUserRequest
- (*DeleteAdminUserResponse)(nil), // 9: admin_user_service.DeleteAdminUserResponse
- (*ToggleAdminUserRequest)(nil), // 10: admin_user_service.ToggleAdminUserRequest
- (*ToggleAdminUserResponse)(nil), // 11: admin_user_service.ToggleAdminUserResponse
- (*RetrieveEnabledUsersRequest)(nil), // 12: admin_user_service.RetrieveEnabledUsersRequest
- (*RetrieveEnabledUsersResponse)(nil), // 13: admin_user_service.RetrieveEnabledUsersResponse
- (*AdminUser)(nil), // 14: base_service.AdminUser
- (StatusEnum)(0), // 15: base_service.StatusEnum
- }
- var file_proto_admin_user_service_proto_depIdxs = []int32{
- 14, // 0: admin_user_service.GetAdminUserResponse.data:type_name -> base_service.AdminUser
- 15, // 1: admin_user_service.ListAdminUsersRequest.status:type_name -> base_service.StatusEnum
- 14, // 2: admin_user_service.ListAdminUsersResponse.items:type_name -> base_service.AdminUser
- 15, // 3: admin_user_service.ToggleAdminUserRequest.status:type_name -> base_service.StatusEnum
- 14, // 4: admin_user_service.RetrieveEnabledUsersResponse.users:type_name -> base_service.AdminUser
- 0, // 5: admin_user_service.AdminUserService.GetAdminUser:input_type -> admin_user_service.GetAdminUserRequest
- 6, // 6: admin_user_service.AdminUserService.ListAdminUsers:input_type -> admin_user_service.ListAdminUsersRequest
- 2, // 7: admin_user_service.AdminUserService.CreateAdminUser:input_type -> admin_user_service.CreateAdminUserRequest
- 10, // 8: admin_user_service.AdminUserService.ToggleAdminUser:input_type -> admin_user_service.ToggleAdminUserRequest
- 8, // 9: admin_user_service.AdminUserService.DeleteAdminUser:input_type -> admin_user_service.DeleteAdminUserRequest
- 4, // 10: admin_user_service.AdminUserService.UpdateAdminUser:input_type -> admin_user_service.UpdateAdminUserRequest
- 12, // 11: admin_user_service.AdminUserService.RetrieveEnabledUsers:input_type -> admin_user_service.RetrieveEnabledUsersRequest
- 1, // 12: admin_user_service.AdminUserService.GetAdminUser:output_type -> admin_user_service.GetAdminUserResponse
- 7, // 13: admin_user_service.AdminUserService.ListAdminUsers:output_type -> admin_user_service.ListAdminUsersResponse
- 3, // 14: admin_user_service.AdminUserService.CreateAdminUser:output_type -> admin_user_service.CreateAdminUserResponse
- 11, // 15: admin_user_service.AdminUserService.ToggleAdminUser:output_type -> admin_user_service.ToggleAdminUserResponse
- 9, // 16: admin_user_service.AdminUserService.DeleteAdminUser:output_type -> admin_user_service.DeleteAdminUserResponse
- 5, // 17: admin_user_service.AdminUserService.UpdateAdminUser:output_type -> admin_user_service.UpdateAdminUserResponse
- 13, // 18: admin_user_service.AdminUserService.RetrieveEnabledUsers:output_type -> admin_user_service.RetrieveEnabledUsersResponse
- 12, // [12:19] is the sub-list for method output_type
- 5, // [5:12] is the sub-list for method input_type
- 5, // [5:5] is the sub-list for extension type_name
- 5, // [5:5] is the sub-list for extension extendee
- 0, // [0:5] is the sub-list for field type_name
- }
- func init() { file_proto_admin_user_service_proto_init() }
- func file_proto_admin_user_service_proto_init() {
- if File_proto_admin_user_service_proto != nil {
- return
- }
- file_proto_base_service_proto_init()
- if !protoimpl.UnsafeEnabled {
- file_proto_admin_user_service_proto_msgTypes[0].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_admin_user_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetAdminUserResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_admin_user_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CreateAdminUserRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_admin_user_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*CreateAdminUserResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_admin_user_service_proto_msgTypes[4].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_admin_user_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*UpdateAdminUserResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_admin_user_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ListAdminUsersRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_admin_user_service_proto_msgTypes[7].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_admin_user_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DeleteAdminUserRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_admin_user_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DeleteAdminUserResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_admin_user_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ToggleAdminUserRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_admin_user_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ToggleAdminUserResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_admin_user_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*RetrieveEnabledUsersRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_proto_admin_user_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*RetrieveEnabledUsersResponse); 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_admin_user_service_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 14,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_proto_admin_user_service_proto_goTypes,
- DependencyIndexes: file_proto_admin_user_service_proto_depIdxs,
- MessageInfos: file_proto_admin_user_service_proto_msgTypes,
- }.Build()
- File_proto_admin_user_service_proto = out.File
- file_proto_admin_user_service_proto_rawDesc = nil
- file_proto_admin_user_service_proto_goTypes = nil
- file_proto_admin_user_service_proto_depIdxs = nil
- }
|