Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type BatchOptReq
- type CreateReq
- func (*CreateReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateReq) GetAccount() string
- func (x *CreateReq) GetExpireDate() string
- func (x *CreateReq) GetMphone() string
- func (x *CreateReq) GetName() string
- func (x *CreateReq) GetNotes() string
- func (x *CreateReq) GetOrgId() string
- func (x *CreateReq) GetPassword() string
- func (x *CreateReq) GetRoleIds() []string
- func (x *CreateReq) GetType() string
- func (x *CreateReq) GetWhiteIps() string
- func (*CreateReq) ProtoMessage()
- func (x *CreateReq) ProtoReflect() protoreflect.Message
- func (x *CreateReq) Reset()
- func (x *CreateReq) String() string
- type DeleteReq
- type DetailReq
- type DetailResp
- func (*DetailResp) Descriptor() ([]byte, []int)deprecated
- func (x *DetailResp) GetAccount() string
- func (x *DetailResp) GetExpireDate() string
- func (x *DetailResp) GetId() string
- func (x *DetailResp) GetMphone() string
- func (x *DetailResp) GetName() string
- func (x *DetailResp) GetNotes() string
- func (x *DetailResp) GetOrgId() string
- func (x *DetailResp) GetOrgName() string
- func (x *DetailResp) GetRoleIds() []string
- func (x *DetailResp) GetTenantId() string
- func (x *DetailResp) GetType() string
- func (x *DetailResp) GetWhiteIps() string
- func (*DetailResp) ProtoMessage()
- func (x *DetailResp) ProtoReflect() protoreflect.Message
- func (x *DetailResp) Reset()
- func (x *DetailResp) String() string
- type EmptyRequest
- type EmptyResp
- type GetUserIDListByTenantReq
- func (*GetUserIDListByTenantReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserIDListByTenantReq) GetTenantId() string
- func (*GetUserIDListByTenantReq) ProtoMessage()
- func (x *GetUserIDListByTenantReq) ProtoReflect() protoreflect.Message
- func (x *GetUserIDListByTenantReq) Reset()
- func (x *GetUserIDListByTenantReq) String() string
- type ListItem
- func (*ListItem) Descriptor() ([]byte, []int)deprecated
- func (x *ListItem) GetAccount() string
- func (x *ListItem) GetId() string
- func (x *ListItem) GetLastLoginTime() int64
- func (x *ListItem) GetMphone() string
- func (x *ListItem) GetName() string
- func (x *ListItem) GetStatus() int32
- func (x *ListItem) GetType() string
- func (*ListItem) ProtoMessage()
- func (x *ListItem) ProtoReflect() protoreflect.Message
- func (x *ListItem) Reset()
- func (x *ListItem) String() string
- type ListReq
- func (*ListReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListReq) GetMphone() string
- func (x *ListReq) GetName() string
- func (x *ListReq) GetPageNo() int32
- func (x *ListReq) GetPageSize() int32
- func (x *ListReq) GetStatus() int32
- func (*ListReq) ProtoMessage()
- func (x *ListReq) ProtoReflect() protoreflect.Message
- func (x *ListReq) Reset()
- func (x *ListReq) String() string
- type ListResp
- func (*ListResp) Descriptor() ([]byte, []int)deprecated
- func (x *ListResp) GetList() []*ListItem
- func (x *ListResp) GetPageNo() int32
- func (x *ListResp) GetPageSize() int32
- func (x *ListResp) GetTotal() int64
- func (*ListResp) ProtoMessage()
- func (x *ListResp) ProtoReflect() protoreflect.Message
- func (x *ListResp) Reset()
- func (x *ListResp) String() string
- type RegisterGetTenantReq
- func (*RegisterGetTenantReq) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterGetTenantReq) GetAccount() string
- func (x *RegisterGetTenantReq) GetPassword() string
- func (*RegisterGetTenantReq) ProtoMessage()
- func (x *RegisterGetTenantReq) ProtoReflect() protoreflect.Message
- func (x *RegisterGetTenantReq) Reset()
- func (x *RegisterGetTenantReq) String() string
- type RegisterGetTenantResp
- func (*RegisterGetTenantResp) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterGetTenantResp) GetTenantId() string
- func (*RegisterGetTenantResp) ProtoMessage()
- func (x *RegisterGetTenantResp) ProtoReflect() protoreflect.Message
- func (x *RegisterGetTenantResp) Reset()
- func (x *RegisterGetTenantResp) String() string
- type ResetPwdReq
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) GetUserIDListByTenant(context.Context, *GetUserIDListByTenantReq) (*UserIDList, error)
- func (UnimplementedUserServiceServer) RegisterGetTenant(context.Context, *RegisterGetTenantReq) (*RegisterGetTenantResp, error)
- func (UnimplementedUserServiceServer) UserBatchOpt(context.Context, *BatchOptReq) (*EmptyResp, error)
- func (UnimplementedUserServiceServer) UserCreate(context.Context, *CreateReq) (*EmptyResp, error)
- func (UnimplementedUserServiceServer) UserDelete(context.Context, *DeleteReq) (*EmptyResp, error)
- func (UnimplementedUserServiceServer) UserDetail(context.Context, *DetailReq) (*DetailResp, error)
- func (UnimplementedUserServiceServer) UserExpireDateCheck(context.Context, *EmptyRequest) (*EmptyResp, error)
- func (UnimplementedUserServiceServer) UserList(context.Context, *ListReq) (*ListResp, error)
- func (UnimplementedUserServiceServer) UserResetPwd(context.Context, *ResetPwdReq) (*EmptyResp, error)
- func (UnimplementedUserServiceServer) UserUpdate(context.Context, *UpdateReq) (*EmptyResp, error)
- type UnsafeUserServiceServer
- type UpdateReq
- func (*UpdateReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateReq) GetExpireDate() string
- func (x *UpdateReq) GetId() string
- func (x *UpdateReq) GetMphone() string
- func (x *UpdateReq) GetName() string
- func (x *UpdateReq) GetNotes() string
- func (x *UpdateReq) GetOrgId() string
- func (x *UpdateReq) GetRoleIds() []string
- func (x *UpdateReq) GetType() string
- func (x *UpdateReq) GetWhiteIps() string
- func (*UpdateReq) ProtoMessage()
- func (x *UpdateReq) ProtoReflect() protoreflect.Message
- func (x *UpdateReq) Reset()
- func (x *UpdateReq) String() string
- type UserIDList
- type UserServiceClient
- type UserServiceServer
Constants ¶
const ( UserService_UserCreate_FullMethodName = "/user.UserService/UserCreate" UserService_UserUpdate_FullMethodName = "/user.UserService/UserUpdate" UserService_UserDelete_FullMethodName = "/user.UserService/UserDelete" UserService_UserDetail_FullMethodName = "/user.UserService/UserDetail" UserService_UserList_FullMethodName = "/user.UserService/UserList" UserService_UserResetPwd_FullMethodName = "/user.UserService/UserResetPwd" UserService_UserBatchOpt_FullMethodName = "/user.UserService/UserBatchOpt" UserService_RegisterGetTenant_FullMethodName = "/user.UserService/RegisterGetTenant" UserService_GetUserIDListByTenant_FullMethodName = "/user.UserService/GetUserIDListByTenant" UserService_UserExpireDateCheck_FullMethodName = "/user.UserService/UserExpireDateCheck" )
Variables ¶
var File_proto_user_proto protoreflect.FileDescriptor
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UserCreate", Handler: _UserService_UserCreate_Handler, }, { MethodName: "UserUpdate", Handler: _UserService_UserUpdate_Handler, }, { MethodName: "UserDelete", Handler: _UserService_UserDelete_Handler, }, { MethodName: "UserDetail", Handler: _UserService_UserDetail_Handler, }, { MethodName: "UserList", Handler: _UserService_UserList_Handler, }, { MethodName: "UserResetPwd", Handler: _UserService_UserResetPwd_Handler, }, { MethodName: "UserBatchOpt", Handler: _UserService_UserBatchOpt_Handler, }, { MethodName: "RegisterGetTenant", Handler: _UserService_RegisterGetTenant_Handler, }, { MethodName: "GetUserIDListByTenant", Handler: _UserService_GetUserIDListByTenant_Handler, }, { MethodName: "UserExpireDateCheck", Handler: _UserService_UserExpireDateCheck_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/user.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type BatchOptReq ¶
type BatchOptReq struct { Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*BatchOptReq) Descriptor
deprecated
func (*BatchOptReq) Descriptor() ([]byte, []int)
Deprecated: Use BatchOptReq.ProtoReflect.Descriptor instead.
func (*BatchOptReq) GetIds ¶
func (x *BatchOptReq) GetIds() []string
func (*BatchOptReq) GetStatus ¶
func (x *BatchOptReq) GetStatus() int32
func (*BatchOptReq) ProtoMessage ¶
func (*BatchOptReq) ProtoMessage()
func (*BatchOptReq) ProtoReflect ¶
func (x *BatchOptReq) ProtoReflect() protoreflect.Message
func (*BatchOptReq) Reset ¶
func (x *BatchOptReq) Reset()
func (*BatchOptReq) String ¶
func (x *BatchOptReq) String() string
type CreateReq ¶
type CreateReq struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Mphone string `protobuf:"bytes,3,opt,name=mphone,proto3" json:"mphone,omitempty"` OrgId string `protobuf:"bytes,4,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"` Notes string `protobuf:"bytes,7,opt,name=notes,proto3" json:"notes,omitempty"` ExpireDate string `protobuf:"bytes,8,opt,name=expire_date,json=expireDate,proto3" json:"expire_date,omitempty"` WhiteIps string `protobuf:"bytes,9,opt,name=white_ips,json=whiteIps,proto3" json:"white_ips,omitempty"` RoleIds []string `protobuf:"bytes,10,rep,name=role_ids,json=roleIds,proto3" json:"role_ids,omitempty"` // contains filtered or unexported fields }
func (*CreateReq) Descriptor
deprecated
func (*CreateReq) GetAccount ¶
func (*CreateReq) GetExpireDate ¶
func (*CreateReq) GetPassword ¶
func (*CreateReq) GetRoleIds ¶
func (*CreateReq) GetWhiteIps ¶
func (*CreateReq) ProtoMessage ¶
func (*CreateReq) ProtoMessage()
func (*CreateReq) ProtoReflect ¶
func (x *CreateReq) ProtoReflect() protoreflect.Message
type DeleteReq ¶
type DeleteReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteReq) Descriptor
deprecated
func (*DeleteReq) ProtoMessage ¶
func (*DeleteReq) ProtoMessage()
func (*DeleteReq) ProtoReflect ¶
func (x *DeleteReq) ProtoReflect() protoreflect.Message
type DetailReq ¶
type DetailReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DetailReq) Descriptor
deprecated
func (*DetailReq) ProtoMessage ¶
func (*DetailReq) ProtoMessage()
func (*DetailReq) ProtoReflect ¶
func (x *DetailReq) ProtoReflect() protoreflect.Message
type DetailResp ¶
type DetailResp struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Mphone string `protobuf:"bytes,4,opt,name=mphone,proto3" json:"mphone,omitempty"` OrgId string `protobuf:"bytes,5,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` OrgName string `protobuf:"bytes,6,opt,name=org_name,json=orgName,proto3" json:"org_name,omitempty"` Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"` Notes string `protobuf:"bytes,8,opt,name=notes,proto3" json:"notes,omitempty"` ExpireDate string `protobuf:"bytes,9,opt,name=expire_date,json=expireDate,proto3" json:"expire_date,omitempty"` WhiteIps string `protobuf:"bytes,10,opt,name=white_ips,json=whiteIps,proto3" json:"white_ips,omitempty"` TenantId string `protobuf:"bytes,11,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` RoleIds []string `protobuf:"bytes,12,rep,name=role_ids,json=roleIds,proto3" json:"role_ids,omitempty"` // contains filtered or unexported fields }
func (*DetailResp) Descriptor
deprecated
func (*DetailResp) Descriptor() ([]byte, []int)
Deprecated: Use DetailResp.ProtoReflect.Descriptor instead.
func (*DetailResp) GetAccount ¶
func (x *DetailResp) GetAccount() string
func (*DetailResp) GetExpireDate ¶
func (x *DetailResp) GetExpireDate() string
func (*DetailResp) GetId ¶
func (x *DetailResp) GetId() string
func (*DetailResp) GetMphone ¶
func (x *DetailResp) GetMphone() string
func (*DetailResp) GetName ¶
func (x *DetailResp) GetName() string
func (*DetailResp) GetNotes ¶
func (x *DetailResp) GetNotes() string
func (*DetailResp) GetOrgId ¶
func (x *DetailResp) GetOrgId() string
func (*DetailResp) GetOrgName ¶
func (x *DetailResp) GetOrgName() string
func (*DetailResp) GetRoleIds ¶
func (x *DetailResp) GetRoleIds() []string
func (*DetailResp) GetTenantId ¶
func (x *DetailResp) GetTenantId() string
func (*DetailResp) GetType ¶
func (x *DetailResp) GetType() string
func (*DetailResp) GetWhiteIps ¶
func (x *DetailResp) GetWhiteIps() string
func (*DetailResp) ProtoMessage ¶
func (*DetailResp) ProtoMessage()
func (*DetailResp) ProtoReflect ¶
func (x *DetailResp) ProtoReflect() protoreflect.Message
func (*DetailResp) Reset ¶
func (x *DetailResp) Reset()
func (*DetailResp) String ¶
func (x *DetailResp) String() string
type EmptyRequest ¶
type EmptyRequest struct {
// contains filtered or unexported fields
}
func (*EmptyRequest) Descriptor
deprecated
func (*EmptyRequest) Descriptor() ([]byte, []int)
Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead.
func (*EmptyRequest) ProtoMessage ¶
func (*EmptyRequest) ProtoMessage()
func (*EmptyRequest) ProtoReflect ¶
func (x *EmptyRequest) ProtoReflect() protoreflect.Message
func (*EmptyRequest) Reset ¶
func (x *EmptyRequest) Reset()
func (*EmptyRequest) String ¶
func (x *EmptyRequest) String() string
type EmptyResp ¶
type EmptyResp struct {
// contains filtered or unexported fields
}
func (*EmptyResp) Descriptor
deprecated
func (*EmptyResp) ProtoMessage ¶
func (*EmptyResp) ProtoMessage()
func (*EmptyResp) ProtoReflect ¶
func (x *EmptyResp) ProtoReflect() protoreflect.Message
type GetUserIDListByTenantReq ¶
type GetUserIDListByTenantReq struct { TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` // contains filtered or unexported fields }
func (*GetUserIDListByTenantReq) Descriptor
deprecated
func (*GetUserIDListByTenantReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserIDListByTenantReq.ProtoReflect.Descriptor instead.
func (*GetUserIDListByTenantReq) GetTenantId ¶
func (x *GetUserIDListByTenantReq) GetTenantId() string
func (*GetUserIDListByTenantReq) ProtoMessage ¶
func (*GetUserIDListByTenantReq) ProtoMessage()
func (*GetUserIDListByTenantReq) ProtoReflect ¶
func (x *GetUserIDListByTenantReq) ProtoReflect() protoreflect.Message
func (*GetUserIDListByTenantReq) Reset ¶
func (x *GetUserIDListByTenantReq) Reset()
func (*GetUserIDListByTenantReq) String ¶
func (x *GetUserIDListByTenantReq) String() string
type ListItem ¶
type ListItem struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` Mphone string `protobuf:"bytes,3,opt,name=mphone,proto3" json:"mphone,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Status int32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` LastLoginTime int64 `protobuf:"varint,6,opt,name=last_login_time,json=lastLoginTime,proto3" json:"last_login_time,omitempty"` Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*ListItem) Descriptor
deprecated
func (*ListItem) GetAccount ¶
func (*ListItem) GetLastLoginTime ¶
func (*ListItem) ProtoMessage ¶
func (*ListItem) ProtoMessage()
func (*ListItem) ProtoReflect ¶
func (x *ListItem) ProtoReflect() protoreflect.Message
type ListReq ¶
type ListReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Mphone string `protobuf:"bytes,2,opt,name=mphone,proto3" json:"mphone,omitempty"` Status int32 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` PageNo int32 `protobuf:"varint,4,opt,name=page_no,json=pageNo,proto3" json:"page_no,omitempty"` PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ListReq) Descriptor
deprecated
func (*ListReq) GetPageSize ¶
func (*ListReq) ProtoMessage ¶
func (*ListReq) ProtoMessage()
func (*ListReq) ProtoReflect ¶
func (x *ListReq) ProtoReflect() protoreflect.Message
type ListResp ¶
type ListResp struct { PageNo int32 `protobuf:"varint,1,opt,name=page_no,json=pageNo,proto3" json:"page_no,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` List []*ListItem `protobuf:"bytes,4,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*ListResp) Descriptor
deprecated
func (*ListResp) GetPageSize ¶
func (*ListResp) ProtoMessage ¶
func (*ListResp) ProtoMessage()
func (*ListResp) ProtoReflect ¶
func (x *ListResp) ProtoReflect() protoreflect.Message
type RegisterGetTenantReq ¶
type RegisterGetTenantReq struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*RegisterGetTenantReq) Descriptor
deprecated
func (*RegisterGetTenantReq) Descriptor() ([]byte, []int)
Deprecated: Use RegisterGetTenantReq.ProtoReflect.Descriptor instead.
func (*RegisterGetTenantReq) GetAccount ¶
func (x *RegisterGetTenantReq) GetAccount() string
func (*RegisterGetTenantReq) GetPassword ¶
func (x *RegisterGetTenantReq) GetPassword() string
func (*RegisterGetTenantReq) ProtoMessage ¶
func (*RegisterGetTenantReq) ProtoMessage()
func (*RegisterGetTenantReq) ProtoReflect ¶
func (x *RegisterGetTenantReq) ProtoReflect() protoreflect.Message
func (*RegisterGetTenantReq) Reset ¶
func (x *RegisterGetTenantReq) Reset()
func (*RegisterGetTenantReq) String ¶
func (x *RegisterGetTenantReq) String() string
type RegisterGetTenantResp ¶
type RegisterGetTenantResp struct { TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` // contains filtered or unexported fields }
func (*RegisterGetTenantResp) Descriptor
deprecated
func (*RegisterGetTenantResp) Descriptor() ([]byte, []int)
Deprecated: Use RegisterGetTenantResp.ProtoReflect.Descriptor instead.
func (*RegisterGetTenantResp) GetTenantId ¶
func (x *RegisterGetTenantResp) GetTenantId() string
func (*RegisterGetTenantResp) ProtoMessage ¶
func (*RegisterGetTenantResp) ProtoMessage()
func (*RegisterGetTenantResp) ProtoReflect ¶
func (x *RegisterGetTenantResp) ProtoReflect() protoreflect.Message
func (*RegisterGetTenantResp) Reset ¶
func (x *RegisterGetTenantResp) Reset()
func (*RegisterGetTenantResp) String ¶
func (x *RegisterGetTenantResp) String() string
type ResetPwdReq ¶
type ResetPwdReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*ResetPwdReq) Descriptor
deprecated
func (*ResetPwdReq) Descriptor() ([]byte, []int)
Deprecated: Use ResetPwdReq.ProtoReflect.Descriptor instead.
func (*ResetPwdReq) GetId ¶
func (x *ResetPwdReq) GetId() string
func (*ResetPwdReq) GetPassword ¶
func (x *ResetPwdReq) GetPassword() string
func (*ResetPwdReq) ProtoMessage ¶
func (*ResetPwdReq) ProtoMessage()
func (*ResetPwdReq) ProtoReflect ¶
func (x *ResetPwdReq) ProtoReflect() protoreflect.Message
func (*ResetPwdReq) Reset ¶
func (x *ResetPwdReq) Reset()
func (*ResetPwdReq) String ¶
func (x *ResetPwdReq) String() string
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) GetUserIDListByTenant ¶
func (UnimplementedUserServiceServer) GetUserIDListByTenant(context.Context, *GetUserIDListByTenantReq) (*UserIDList, error)
func (UnimplementedUserServiceServer) RegisterGetTenant ¶
func (UnimplementedUserServiceServer) RegisterGetTenant(context.Context, *RegisterGetTenantReq) (*RegisterGetTenantResp, error)
func (UnimplementedUserServiceServer) UserBatchOpt ¶
func (UnimplementedUserServiceServer) UserBatchOpt(context.Context, *BatchOptReq) (*EmptyResp, error)
func (UnimplementedUserServiceServer) UserCreate ¶
func (UnimplementedUserServiceServer) UserDelete ¶
func (UnimplementedUserServiceServer) UserDetail ¶
func (UnimplementedUserServiceServer) UserDetail(context.Context, *DetailReq) (*DetailResp, error)
func (UnimplementedUserServiceServer) UserExpireDateCheck ¶
func (UnimplementedUserServiceServer) UserExpireDateCheck(context.Context, *EmptyRequest) (*EmptyResp, error)
func (UnimplementedUserServiceServer) UserResetPwd ¶
func (UnimplementedUserServiceServer) UserResetPwd(context.Context, *ResetPwdReq) (*EmptyResp, error)
func (UnimplementedUserServiceServer) UserUpdate ¶
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type UpdateReq ¶
type UpdateReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Mphone string `protobuf:"bytes,3,opt,name=mphone,proto3" json:"mphone,omitempty"` OrgId string `protobuf:"bytes,4,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"` Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` Notes string `protobuf:"bytes,6,opt,name=notes,proto3" json:"notes,omitempty"` ExpireDate string `protobuf:"bytes,7,opt,name=expire_date,json=expireDate,proto3" json:"expire_date,omitempty"` WhiteIps string `protobuf:"bytes,8,opt,name=white_ips,json=whiteIps,proto3" json:"white_ips,omitempty"` RoleIds []string `protobuf:"bytes,9,rep,name=role_ids,json=roleIds,proto3" json:"role_ids,omitempty"` // contains filtered or unexported fields }
func (*UpdateReq) Descriptor
deprecated
func (*UpdateReq) GetExpireDate ¶
func (*UpdateReq) GetRoleIds ¶
func (*UpdateReq) GetWhiteIps ¶
func (*UpdateReq) ProtoMessage ¶
func (*UpdateReq) ProtoMessage()
func (*UpdateReq) ProtoReflect ¶
func (x *UpdateReq) ProtoReflect() protoreflect.Message
type UserIDList ¶
type UserIDList struct { UserIds []string `protobuf:"bytes,1,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` // contains filtered or unexported fields }
func (*UserIDList) Descriptor
deprecated
func (*UserIDList) Descriptor() ([]byte, []int)
Deprecated: Use UserIDList.ProtoReflect.Descriptor instead.
func (*UserIDList) GetUserIds ¶
func (x *UserIDList) GetUserIds() []string
func (*UserIDList) ProtoMessage ¶
func (*UserIDList) ProtoMessage()
func (*UserIDList) ProtoReflect ¶
func (x *UserIDList) ProtoReflect() protoreflect.Message
func (*UserIDList) Reset ¶
func (x *UserIDList) Reset()
func (*UserIDList) String ¶
func (x *UserIDList) String() string
type UserServiceClient ¶
type UserServiceClient interface { UserCreate(ctx context.Context, in *CreateReq, opts ...grpc.CallOption) (*EmptyResp, error) UserUpdate(ctx context.Context, in *UpdateReq, opts ...grpc.CallOption) (*EmptyResp, error) UserDelete(ctx context.Context, in *DeleteReq, opts ...grpc.CallOption) (*EmptyResp, error) UserDetail(ctx context.Context, in *DetailReq, opts ...grpc.CallOption) (*DetailResp, error) UserList(ctx context.Context, in *ListReq, opts ...grpc.CallOption) (*ListResp, error) UserResetPwd(ctx context.Context, in *ResetPwdReq, opts ...grpc.CallOption) (*EmptyResp, error) UserBatchOpt(ctx context.Context, in *BatchOptReq, opts ...grpc.CallOption) (*EmptyResp, error) RegisterGetTenant(ctx context.Context, in *RegisterGetTenantReq, opts ...grpc.CallOption) (*RegisterGetTenantResp, error) GetUserIDListByTenant(ctx context.Context, in *GetUserIDListByTenantReq, opts ...grpc.CallOption) (*UserIDList, error) UserExpireDateCheck(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EmptyResp, error) }
UserServiceClient is the client API for UserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { UserCreate(context.Context, *CreateReq) (*EmptyResp, error) UserUpdate(context.Context, *UpdateReq) (*EmptyResp, error) UserDelete(context.Context, *DeleteReq) (*EmptyResp, error) UserDetail(context.Context, *DetailReq) (*DetailResp, error) UserList(context.Context, *ListReq) (*ListResp, error) UserResetPwd(context.Context, *ResetPwdReq) (*EmptyResp, error) UserBatchOpt(context.Context, *BatchOptReq) (*EmptyResp, error) RegisterGetTenant(context.Context, *RegisterGetTenantReq) (*RegisterGetTenantResp, error) GetUserIDListByTenant(context.Context, *GetUserIDListByTenantReq) (*UserIDList, error) UserExpireDateCheck(context.Context, *EmptyRequest) (*EmptyResp, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility