Documentation ¶
Overview ¶
Package user is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterOauthServiceHandler(ctx context.Context, mux *gin.Engine, conn *grpc.ClientConn) error
- func RegisterOauthServiceHandlerClient(ctx context.Context, mux *gin.Engine, client OauthServiceClient) error
- func RegisterOauthServiceHandlerFromEndpoint(ctx context.Context, mux *gin.Engine, endpoint string, opts []grpc.DialOption) (err error)
- func RegisterOauthServiceHandlerServer(mux *gin.Engine, server OauthServiceServer) error
- func RegisterOauthServiceServer(s grpc.ServiceRegistrar, srv OauthServiceServer)
- func RegisterUserServiceHandler(ctx context.Context, mux *gin.Engine, conn *grpc.ClientConn) error
- func RegisterUserServiceHandlerClient(ctx context.Context, mux *gin.Engine, client UserServiceClient) error
- func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *gin.Engine, endpoint string, opts []grpc.DialOption) (err error)
- func RegisterUserServiceHandlerServer(mux *gin.Engine, server UserServiceServer) error
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type Action
- func (Action) Descriptor() protoreflect.EnumDescriptor
- func (x Action) Enum() *Action
- func (Action) EnumDescriptor() ([]byte, []int)deprecated
- func (x Action) MarshalGQL(w io.Writer)
- func (x Action) Number() protoreflect.EnumNumber
- func (x Action) OrigString() string
- func (x Action) String() string
- func (Action) Type() protoreflect.EnumType
- func (x *Action) UnmarshalGQL(v interface{}) error
- type ActionLogListRep
- func (*ActionLogListRep) Descriptor() ([]byte, []int)deprecated
- func (x *ActionLogListRep) GetCount() uint32
- func (x *ActionLogListRep) GetList() []*UserActionLog
- func (*ActionLogListRep) ProtoMessage()
- func (x *ActionLogListRep) ProtoReflect() protoreflect.Message
- func (x *ActionLogListRep) Reset()
- func (x *ActionLogListRep) String() string
- func (this *ActionLogListRep) Validate() error
- type ActionLogListReq
- func (*ActionLogListReq) Descriptor() ([]byte, []int)deprecated
- func (x *ActionLogListReq) GetEndTime() string
- func (x *ActionLogListReq) GetStartTime() string
- func (*ActionLogListReq) ProtoMessage()
- func (x *ActionLogListReq) ProtoReflect() protoreflect.Message
- func (x *ActionLogListReq) Reset()
- func (x *ActionLogListReq) String() string
- func (this *ActionLogListReq) Validate() error
- type ActiveReq
- func (*ActiveReq) Descriptor() ([]byte, []int)deprecated
- func (x *ActiveReq) GetId() uint64
- func (x *ActiveReq) GetSecret() string
- func (*ActiveReq) ProtoMessage()
- func (x *ActiveReq) ProtoReflect() protoreflect.Message
- func (x *ActiveReq) Reset()
- func (x *ActiveReq) String() string
- func (this *ActiveReq) Validate() error
- type AuthInfo
- type BannedType
- func (BannedType) Descriptor() protoreflect.EnumDescriptor
- func (x BannedType) Enum() *BannedType
- func (BannedType) EnumDescriptor() ([]byte, []int)deprecated
- func (x BannedType) MarshalGQL(w io.Writer)
- func (x BannedType) Number() protoreflect.EnumNumber
- func (x BannedType) OrigString() string
- func (x BannedType) String() string
- func (BannedType) Type() protoreflect.EnumType
- func (x *BannedType) UnmarshalGQL(v interface{}) error
- type BaseListRep
- func (*BaseListRep) Descriptor() ([]byte, []int)deprecated
- func (x *BaseListRep) GetList() []*UserBaseInfo
- func (x *BaseListRep) GetTotal() int64
- func (*BaseListRep) ProtoMessage()
- func (x *BaseListRep) ProtoReflect() protoreflect.Message
- func (x *BaseListRep) Reset()
- func (x *BaseListRep) String() string
- func (this *BaseListRep) Validate() error
- type BaseListReq
- func (*BaseListReq) Descriptor() ([]byte, []int)deprecated
- func (x *BaseListReq) GetIds() []uint64
- func (x *BaseListReq) GetPageNo() uint32
- func (x *BaseListReq) GetPageSize() uint32
- func (*BaseListReq) ProtoMessage()
- func (x *BaseListReq) ProtoReflect() protoreflect.Message
- func (x *BaseListReq) Reset()
- func (x *BaseListReq) String() string
- func (this *BaseListReq) Validate() error
- type EditReq
- func (*EditReq) Descriptor() ([]byte, []int)deprecated
- func (x *EditReq) GetDetails() *EditReq_EditDetails
- func (x *EditReq) GetId() uint64
- func (*EditReq) ProtoMessage()
- func (x *EditReq) ProtoReflect() protoreflect.Message
- func (x *EditReq) Reset()
- func (x *EditReq) String() string
- func (this *EditReq) Validate() error
- type EditReq_EditDetails
- func (*EditReq_EditDetails) Descriptor() ([]byte, []int)deprecated
- func (x *EditReq_EditDetails) GetAddress() string
- func (x *EditReq_EditDetails) GetAvatarUrl() string
- func (x *EditReq_EditDetails) GetBirthday() string
- func (x *EditReq_EditDetails) GetCoverUrl() string
- func (x *EditReq_EditDetails) GetEduExps() []*Resume
- func (x *EditReq_EditDetails) GetGender() Gender
- func (x *EditReq_EditDetails) GetIntro() string
- func (x *EditReq_EditDetails) GetName() string
- func (x *EditReq_EditDetails) GetSignature() string
- func (x *EditReq_EditDetails) GetWorkExps() []*Resume
- func (*EditReq_EditDetails) ProtoMessage()
- func (x *EditReq_EditDetails) ProtoReflect() protoreflect.Message
- func (x *EditReq_EditDetails) Reset()
- func (x *EditReq_EditDetails) String() string
- func (this *EditReq_EditDetails) Validate() error
- type FollowReq
- type Gender
- func (Gender) Descriptor() protoreflect.EnumDescriptor
- func (x Gender) Enum() *Gender
- func (Gender) EnumDescriptor() ([]byte, []int)deprecated
- func (x Gender) MarshalGQL(w io.Writer)
- func (x Gender) Number() protoreflect.EnumNumber
- func (x Gender) OrigString() string
- func (x Gender) String() string
- func (Gender) Type() protoreflect.EnumType
- func (x *Gender) UnmarshalGQL(v interface{}) error
- type LoginRep
- func (*LoginRep) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRep) GetToken() string
- func (x *LoginRep) GetUser() *UserBaseInfo
- func (*LoginRep) ProtoMessage()
- func (x *LoginRep) ProtoReflect() protoreflect.Message
- func (x *LoginRep) Reset()
- func (x *LoginRep) String() string
- func (this *LoginRep) Validate() error
- type LoginReq
- func (*LoginReq) Descriptor() ([]byte, []int)deprecated
- func (x *LoginReq) GetInput() string
- func (x *LoginReq) GetPassword() string
- func (x *LoginReq) GetVCode() string
- func (*LoginReq) ProtoMessage()
- func (x *LoginReq) ProtoReflect() protoreflect.Message
- func (x *LoginReq) Reset()
- func (x *LoginReq) String() string
- func (this *LoginReq) Validate() error
- type OauthServiceClient
- type OauthServiceServer
- type ResetPasswordReq
- func (*ResetPasswordReq) Descriptor() ([]byte, []int)deprecated
- func (x *ResetPasswordReq) GetId() uint64
- func (x *ResetPasswordReq) GetPassword() string
- func (x *ResetPasswordReq) GetSecret() string
- func (*ResetPasswordReq) ProtoMessage()
- func (x *ResetPasswordReq) ProtoReflect() protoreflect.Message
- func (x *ResetPasswordReq) Reset()
- func (x *ResetPasswordReq) String() string
- func (this *ResetPasswordReq) Validate() error
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetCode() uint32
- func (x *Response) GetMsg() string
- func (m *Response) GetRes() isResponse_Res
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type Response_Code
- type Response_Msg
- type Resume
- func (x *Resume) CmpKey() uint64
- func (*Resume) Descriptor() ([]byte, []int)deprecated
- func (x *Resume) GetCompany() string
- func (x *Resume) GetDepartment() string
- func (x *Resume) GetEndTime() string
- func (x *Resume) GetId() uint64
- func (x *Resume) GetRemark() string
- func (x *Resume) GetStartTime() string
- func (x *Resume) GetStatus() uint32
- func (x *Resume) GetTitle() string
- func (x *Resume) GetType() uint32
- func (x *Resume) GetUserId() uint64
- func (*Resume) ProtoMessage()
- func (x *Resume) ProtoReflect() protoreflect.Message
- func (x *Resume) Reset()
- func (x *Resume) String() string
- type Role
- func (Role) Descriptor() protoreflect.EnumDescriptor
- func (x Role) Enum() *Role
- func (Role) EnumDescriptor() ([]byte, []int)deprecated
- func (x Role) MarshalGQL(w io.Writer)
- func (x Role) Number() protoreflect.EnumNumber
- func (x Role) OrigString() string
- func (x Role) String() string
- func (Role) Type() protoreflect.EnumType
- func (x *Role) UnmarshalGQL(v interface{}) error
- type SendVerifyCodeReq
- func (*SendVerifyCodeReq) Descriptor() ([]byte, []int)deprecated
- func (x *SendVerifyCodeReq) GetMail() string
- func (x *SendVerifyCodeReq) GetPhone() string
- func (x *SendVerifyCodeReq) GetType() Action
- func (*SendVerifyCodeReq) ProtoMessage()
- func (x *SendVerifyCodeReq) ProtoReflect() protoreflect.Message
- func (x *SendVerifyCodeReq) Reset()
- func (x *SendVerifyCodeReq) String() string
- func (this *SendVerifyCodeReq) Validate() error
- type SignupReq
- func (*SignupReq) Descriptor() ([]byte, []int)deprecated
- func (x *SignupReq) GetGender() Gender
- func (x *SignupReq) GetMail() string
- func (x *SignupReq) GetName() string
- func (x *SignupReq) GetPassword() string
- func (x *SignupReq) GetPhone() string
- func (x *SignupReq) GetVCode() string
- func (*SignupReq) ProtoMessage()
- func (x *SignupReq) ProtoReflect() protoreflect.Message
- func (x *SignupReq) Reset()
- func (x *SignupReq) String() string
- func (this *SignupReq) Validate() error
- type SingUpVerifyReq
- func (*SingUpVerifyReq) Descriptor() ([]byte, []int)deprecated
- func (x *SingUpVerifyReq) GetMail() string
- func (x *SingUpVerifyReq) GetPhone() string
- func (*SingUpVerifyReq) ProtoMessage()
- func (x *SingUpVerifyReq) ProtoReflect() protoreflect.Message
- func (x *SingUpVerifyReq) Reset()
- func (x *SingUpVerifyReq) String() string
- func (this *SingUpVerifyReq) Validate() error
- type UnimplementedOauthServiceServer
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) ActionLogList(context.Context, *ActionLogListReq) (*ActionLogListRep, error)
- func (UnimplementedUserServiceServer) Active(context.Context, *ActiveReq) (*LoginRep, error)
- func (UnimplementedUserServiceServer) AuthInfo(context.Context, *empty.Empty) (*UserAuthInfo, error)
- func (UnimplementedUserServiceServer) BaseList(context.Context, *BaseListReq) (*BaseListRep, error)
- func (UnimplementedUserServiceServer) DelFollow(context.Context, *FollowReq) (*BaseListRep, error)
- func (UnimplementedUserServiceServer) EasySignup(context.Context, *SignupReq) (*LoginRep, error)
- func (UnimplementedUserServiceServer) Edit(context.Context, *EditReq) (*empty.Empty, error)
- func (UnimplementedUserServiceServer) Follow(context.Context, *FollowReq) (*empty.Empty, error)
- func (UnimplementedUserServiceServer) ForgetPassword(context.Context, *LoginReq) (*response.TinyRep, error)
- func (UnimplementedUserServiceServer) Info(context.Context, *request.Object) (*UserRep, error)
- func (UnimplementedUserServiceServer) Login(context.Context, *LoginReq) (*LoginRep, error)
- func (UnimplementedUserServiceServer) Logout(context.Context, *empty.Empty) (*empty.Empty, error)
- func (UnimplementedUserServiceServer) ResetPassword(context.Context, *ResetPasswordReq) (*response.TinyRep, error)
- func (UnimplementedUserServiceServer) SendVerifyCode(context.Context, *SendVerifyCodeReq) (*empty.Empty, error)
- func (UnimplementedUserServiceServer) Signup(context.Context, *SignupReq) (*empty.Empty, error)
- func (UnimplementedUserServiceServer) SignupVerify(context.Context, *SingUpVerifyReq) (*empty.Empty, error)
- func (UnimplementedUserServiceServer) VerifyCode(context.Context, *empty.Empty) (*wrappers.StringValue, error)
- type UnsafeOauthServiceServer
- type UnsafeUserServiceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAccount() string
- func (x *User) GetActivatedAt() string
- func (x *User) GetAddress() string
- func (x *User) GetAvatarUrl() string
- func (x *User) GetBirthday() string
- func (x *User) GetCoverUrl() string
- func (x *User) GetCreatedAt() string
- func (x *User) GetDeletedAt() string
- func (x *User) GetGender() Gender
- func (x *User) GetId() uint64
- func (x *User) GetIdNo() string
- func (x *User) GetIntro() string
- func (x *User) GetMail() string
- func (x *User) GetName() string
- func (x *User) GetPassword() string
- func (x *User) GetPhone() string
- func (x *User) GetRealName() string
- func (x *User) GetRole() Role
- func (x *User) GetSignature() string
- func (x *User) GetStatus() UserStatus
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserActionLog
- func (*UserActionLog) Descriptor() ([]byte, []int)deprecated
- func (x *UserActionLog) GetAction() Action
- func (x *UserActionLog) GetCreatedAt() string
- func (x *UserActionLog) GetDevice() uint32
- func (x *UserActionLog) GetDeviceInfo() *UserDeviceInfo
- func (x *UserActionLog) GetId() uint64
- func (x *UserActionLog) GetLastValue() []byte
- func (x *UserActionLog) GetRelatedId() string
- func (x *UserActionLog) GetRemark() string
- func (x *UserActionLog) GetUserId() uint64
- func (*UserActionLog) ProtoMessage()
- func (x *UserActionLog) ProtoReflect() protoreflect.Message
- func (x *UserActionLog) Reset()
- func (x *UserActionLog) String() string
- type UserAuthInfo
- func (*UserAuthInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserAuthInfo) GetId() uint64
- func (x *UserAuthInfo) GetName() string
- func (x *UserAuthInfo) GetRole() Role
- func (x *UserAuthInfo) GetStatus() UserStatus
- func (*UserAuthInfo) ProtoMessage()
- func (x *UserAuthInfo) ProtoReflect() protoreflect.Message
- func (x *UserAuthInfo) Reset()
- func (x *UserAuthInfo) String() string
- type UserBannedLog
- func (*UserBannedLog) Descriptor() ([]byte, []int)deprecated
- func (x *UserBannedLog) GetBannedAt() string
- func (x *UserBannedLog) GetDuration() uint64
- func (x *UserBannedLog) GetId() uint64
- func (x *UserBannedLog) GetReason() string
- func (x *UserBannedLog) GetRemark() string
- func (x *UserBannedLog) GetType() BannedType
- func (x *UserBannedLog) GetUserId() uint64
- func (*UserBannedLog) ProtoMessage()
- func (x *UserBannedLog) ProtoReflect() protoreflect.Message
- func (x *UserBannedLog) Reset()
- func (x *UserBannedLog) String() string
- type UserBaseInfo
- func (*UserBaseInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserBaseInfo) GetAvatarUrl() string
- func (x *UserBaseInfo) GetGender() Gender
- func (x *UserBaseInfo) GetId() uint64
- func (x *UserBaseInfo) GetName() string
- func (x *UserBaseInfo) GetScore() uint64
- func (*UserBaseInfo) ProtoMessage()
- func (x *UserBaseInfo) ProtoReflect() protoreflect.Message
- func (x *UserBaseInfo) Reset()
- func (x *UserBaseInfo) String() string
- type UserContent
- func (*UserContent) Descriptor() ([]byte, []int)deprecated
- func (x *UserContent) GetArticleCount() uint64
- func (x *UserContent) GetDiaryCount() uint64
- func (x *UserContent) GetFavCount() uint64
- func (x *UserContent) GetMomentCount() uint64
- func (*UserContent) ProtoMessage()
- func (x *UserContent) ProtoReflect() protoreflect.Message
- func (x *UserContent) Reset()
- func (x *UserContent) String() string
- type UserDeviceInfo
- func (*UserDeviceInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserDeviceInfo) GetAppCode() string
- func (x *UserDeviceInfo) GetAppVersion() string
- func (x *UserDeviceInfo) GetArea() string
- func (x *UserDeviceInfo) GetDevice() string
- func (x *UserDeviceInfo) GetIP() string
- func (x *UserDeviceInfo) GetLat() string
- func (x *UserDeviceInfo) GetLng() string
- func (x *UserDeviceInfo) GetOs() string
- func (x *UserDeviceInfo) GetUserAgent() string
- func (*UserDeviceInfo) ProtoMessage()
- func (x *UserDeviceInfo) ProtoReflect() protoreflect.Message
- func (x *UserDeviceInfo) Reset()
- func (x *UserDeviceInfo) String() string
- type UserErr
- func (UserErr) Descriptor() protoreflect.EnumDescriptor
- func (x UserErr) Enum() *UserErr
- func (UserErr) EnumDescriptor() ([]byte, []int)deprecated
- func (x UserErr) ErrRep() *errorcode.ErrRep
- func (x UserErr) Error() string
- func (x UserErr) ErrorLog(err error) error
- func (x UserErr) GRPCStatus() *status.Status
- func (x UserErr) MarshalGQL(w io.Writer)
- func (x UserErr) Message(msg string) error
- func (x UserErr) Number() protoreflect.EnumNumber
- func (x UserErr) OrigString() string
- func (x UserErr) String() string
- func (UserErr) Type() protoreflect.EnumType
- func (x *UserErr) UnmarshalGQL(v interface{}) error
- type UserExt
- func (*UserExt) Descriptor() ([]byte, []int)deprecated
- func (x *UserExt) GetArticleCount() uint64
- func (x *UserExt) GetCollectCount() uint64
- func (x *UserExt) GetDiaryBookCount() uint64
- func (x *UserExt) GetDiaryCount() uint64
- func (x *UserExt) GetFavoritesCount() uint64
- func (x *UserExt) GetFollowCount() uint64
- func (x *UserExt) GetFollowedCount() uint64
- func (x *UserExt) GetId() uint64
- func (x *UserExt) GetLastActivatedAt() string
- func (x *UserExt) GetMomentCount() uint64
- func (x *UserExt) GetScore() uint64
- func (*UserExt) ProtoMessage()
- func (x *UserExt) ProtoReflect() protoreflect.Message
- func (x *UserExt) Reset()
- func (x *UserExt) String() string
- type UserFollow
- func (*UserFollow) Descriptor() ([]byte, []int)deprecated
- func (x *UserFollow) GetCreatedAt() string
- func (x *UserFollow) GetDeletedAt() string
- func (x *UserFollow) GetFollowId() uint64
- func (x *UserFollow) GetStatus() uint32
- func (x *UserFollow) GetUserId() uint64
- func (*UserFollow) ProtoMessage()
- func (x *UserFollow) ProtoReflect() protoreflect.Message
- func (x *UserFollow) Reset()
- func (x *UserFollow) String() string
- type UserOAuthInfo
- func (*UserOAuthInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserOAuthInfo) GetAvatarURL() string
- func (x *UserOAuthInfo) GetId() uint64
- func (x *UserOAuthInfo) GetIntroduction() string
- func (x *UserOAuthInfo) GetLocation() string
- func (x *UserOAuthInfo) GetMail() string
- func (x *UserOAuthInfo) GetName() string
- func (*UserOAuthInfo) ProtoMessage()
- func (x *UserOAuthInfo) ProtoReflect() protoreflect.Message
- func (x *UserOAuthInfo) Reset()
- func (x *UserOAuthInfo) String() string
- type UserRep
- func (*UserRep) Descriptor() ([]byte, []int)deprecated
- func (x *UserRep) GetUerExt() *UserExt
- func (x *UserRep) GetUser() *User
- func (*UserRep) ProtoMessage()
- func (x *UserRep) ProtoReflect() protoreflect.Message
- func (x *UserRep) Reset()
- func (x *UserRep) String() string
- func (this *UserRep) Validate() error
- type UserScoreLog
- func (*UserScoreLog) Descriptor() ([]byte, []int)deprecated
- func (x *UserScoreLog) GetCreatedAt() string
- func (x *UserScoreLog) GetId() uint64
- func (x *UserScoreLog) GetReason() string
- func (x *UserScoreLog) GetRemark() string
- func (x *UserScoreLog) GetScore() int64
- func (x *UserScoreLog) GetUserId() uint64
- func (*UserScoreLog) ProtoMessage()
- func (x *UserScoreLog) ProtoReflect() protoreflect.Message
- func (x *UserScoreLog) Reset()
- func (x *UserScoreLog) String() string
- type UserServiceClient
- type UserServiceServer
- type UserStatus
- func (UserStatus) Descriptor() protoreflect.EnumDescriptor
- func (x UserStatus) Enum() *UserStatus
- func (UserStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x UserStatus) MarshalGQL(w io.Writer)
- func (x UserStatus) Number() protoreflect.EnumNumber
- func (x UserStatus) OrigString() string
- func (x UserStatus) String() string
- func (UserStatus) Type() protoreflect.EnumType
- func (x *UserStatus) UnmarshalGQL(v interface{}) error
Constants ¶
This section is empty.
Variables ¶
var ( Action_name = map[int32]string{ 0: "ActionPlaceholder", 1: "ActionSignup", 2: "ActionActive", 3: "ActionRestPassword", 4: "ActionEditPassword", 5: "ActionCreateResume", 6: "ActionEditResume", 7: "ActionDELETEResume", } Action_value = map[string]int32{ "ActionPlaceholder": 0, "ActionSignup": 1, "ActionActive": 2, "ActionRestPassword": 3, "ActionEditPassword": 4, "ActionCreateResume": 5, "ActionEditResume": 6, "ActionDELETEResume": 7, } )
Enum value maps for Action.
var ( Role_name = map[int32]string{ 0: "PlaceholderRole", 1: "RoleNormal", 2: "RoleAdmin", 3: "RoleSuperAdmin", } Role_value = map[string]int32{ "PlaceholderRole": 0, "RoleNormal": 1, "RoleAdmin": 2, "RoleSuperAdmin": 3, } )
Enum value maps for Role.
var ( Gender_name = map[int32]string{ 0: "GenderPlaceholder", 1: "GenderUnfilled", 2: "GenderMale", 3: "GenderFemale", } Gender_value = map[string]int32{ "GenderPlaceholder": 0, "GenderUnfilled": 1, "GenderMale": 2, "GenderFemale": 3, } )
Enum value maps for Gender.
var ( UserStatus_name = map[int32]string{ 0: "UserStatusPlaceholder", 1: "UserStatusInActive", 2: "UserStatusActivated", 3: "UserStatusFrozen", 4: "UserStatusDeleted", } UserStatus_value = map[string]int32{ "UserStatusPlaceholder": 0, "UserStatusInActive": 1, "UserStatusActivated": 2, "UserStatusFrozen": 3, "UserStatusDeleted": 4, } )
Enum value maps for UserStatus.
var ( BannedType_name = map[int32]string{ 0: "BannedTypePlaceholder", 1: "BannedTypePost", 2: "BannedTypeLogin", } BannedType_value = map[string]int32{ "BannedTypePlaceholder": 0, "BannedTypePost": 1, "BannedTypeLogin": 2, } )
Enum value maps for BannedType.
var ( UserErr_name = map[int32]string{ 0: "UserErrPlaceholder", 1000: "UserErrLogin", 1001: "UserErrNoActive", 1002: "UserErrNoAuthority", 1003: "UserErrLoginTimeout", 1004: "UserErrInvalidToken", 1005: "UserErrNoLogin", } UserErr_value = map[string]int32{ "UserErrPlaceholder": 0, "UserErrLogin": 1000, "UserErrNoActive": 1001, "UserErrNoAuthority": 1002, "UserErrLoginTimeout": 1003, "UserErrInvalidToken": 1004, "UserErrNoLogin": 1005, } )
Enum value maps for UserErr.
var File_user_user_enum_proto protoreflect.FileDescriptor
var File_user_user_model_proto protoreflect.FileDescriptor
var File_user_user_service_proto protoreflect.FileDescriptor
var OauthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.OauthService", HandlerType: (*OauthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "OauthAuthorize", Handler: _OauthService_OauthAuthorize_Handler, }, { MethodName: "OauthToken", Handler: _OauthService_OauthToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user/user.service.proto", }
OauthService_ServiceDesc is the grpc.ServiceDesc for OauthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "VerifyCode", Handler: _UserService_VerifyCode_Handler, }, { MethodName: "SendVerifyCode", Handler: _UserService_SendVerifyCode_Handler, }, { MethodName: "SignupVerify", Handler: _UserService_SignupVerify_Handler, }, { MethodName: "Signup", Handler: _UserService_Signup_Handler, }, { MethodName: "EasySignup", Handler: _UserService_EasySignup_Handler, }, { MethodName: "Active", Handler: _UserService_Active_Handler, }, { MethodName: "Edit", Handler: _UserService_Edit_Handler, }, { MethodName: "Login", Handler: _UserService_Login_Handler, }, { MethodName: "Logout", Handler: _UserService_Logout_Handler, }, { MethodName: "AuthInfo", Handler: _UserService_AuthInfo_Handler, }, { MethodName: "ForgetPassword", Handler: _UserService_ForgetPassword_Handler, }, { MethodName: "ResetPassword", Handler: _UserService_ResetPassword_Handler, }, { MethodName: "Info", Handler: _UserService_Info_Handler, }, { MethodName: "ActionLogList", Handler: _UserService_ActionLogList_Handler, }, { MethodName: "BaseList", Handler: _UserService_BaseList_Handler, }, { MethodName: "Follow", Handler: _UserService_Follow_Handler, }, { MethodName: "delFollow", Handler: _UserService_DelFollow_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user/user.service.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)
var UserserviceServicedesc = &UserService_ServiceDesc
Functions ¶
func RegisterOauthServiceHandler ¶
RegisterOauthServiceHandler registers the http handlers for service OauthService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterOauthServiceHandlerClient ¶
func RegisterOauthServiceHandlerClient(ctx context.Context, mux *gin.Engine, client OauthServiceClient) error
RegisterOauthServiceHandlerClient registers the http handlers for service OauthService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "OauthServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "OauthServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "OauthServiceClient" to call the correct interceptors.
func RegisterOauthServiceHandlerFromEndpoint ¶
func RegisterOauthServiceHandlerFromEndpoint(ctx context.Context, mux *gin.Engine, endpoint string, opts []grpc.DialOption) (err error)
RegisterOauthServiceHandlerFromEndpoint is same as RegisterOauthServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterOauthServiceHandlerServer ¶
func RegisterOauthServiceHandlerServer(mux *gin.Engine, server OauthServiceServer) error
RegisterOauthServiceHandlerServer registers the http handlers for service OauthService to "mux". UnaryRPC :call OauthServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterOauthServiceHandlerFromEndpoint instead.
func RegisterOauthServiceServer ¶
func RegisterOauthServiceServer(s grpc.ServiceRegistrar, srv OauthServiceServer)
func RegisterUserServiceHandler ¶
RegisterUserServiceHandler registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterUserServiceHandlerClient ¶
func RegisterUserServiceHandlerClient(ctx context.Context, mux *gin.Engine, client UserServiceClient) error
RegisterUserServiceHandlerClient registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserServiceClient" to call the correct interceptors.
func RegisterUserServiceHandlerFromEndpoint ¶
func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *gin.Engine, endpoint string, opts []grpc.DialOption) (err error)
RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterUserServiceHandlerServer ¶
func RegisterUserServiceHandlerServer(mux *gin.Engine, server UserServiceServer) error
RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserServiceHandlerFromEndpoint instead.
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type Action ¶
type Action int32
用户操作
func (Action) Descriptor ¶
func (Action) Descriptor() protoreflect.EnumDescriptor
func (Action) EnumDescriptor
deprecated
func (Action) MarshalGQL ¶
func (Action) Number ¶
func (x Action) Number() protoreflect.EnumNumber
func (Action) OrigString ¶
func (Action) Type ¶
func (Action) Type() protoreflect.EnumType
func (*Action) UnmarshalGQL ¶
type ActionLogListRep ¶
type ActionLogListRep struct { Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` List []*UserActionLog `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*ActionLogListRep) Descriptor
deprecated
func (*ActionLogListRep) Descriptor() ([]byte, []int)
Deprecated: Use ActionLogListRep.ProtoReflect.Descriptor instead.
func (*ActionLogListRep) GetCount ¶
func (x *ActionLogListRep) GetCount() uint32
func (*ActionLogListRep) GetList ¶
func (x *ActionLogListRep) GetList() []*UserActionLog
func (*ActionLogListRep) ProtoMessage ¶
func (*ActionLogListRep) ProtoMessage()
func (*ActionLogListRep) ProtoReflect ¶
func (x *ActionLogListRep) ProtoReflect() protoreflect.Message
func (*ActionLogListRep) Reset ¶
func (x *ActionLogListRep) Reset()
func (*ActionLogListRep) String ¶
func (x *ActionLogListRep) String() string
func (*ActionLogListRep) Validate ¶
func (this *ActionLogListRep) Validate() error
type ActionLogListReq ¶
type ActionLogListReq struct { StartTime string `protobuf:"bytes,1,opt,name=startTime,proto3" json:"startTime,omitempty"` EndTime string `protobuf:"bytes,2,opt,name=endTime,proto3" json:"endTime,omitempty"` // contains filtered or unexported fields }
func (*ActionLogListReq) Descriptor
deprecated
func (*ActionLogListReq) Descriptor() ([]byte, []int)
Deprecated: Use ActionLogListReq.ProtoReflect.Descriptor instead.
func (*ActionLogListReq) GetEndTime ¶
func (x *ActionLogListReq) GetEndTime() string
func (*ActionLogListReq) GetStartTime ¶
func (x *ActionLogListReq) GetStartTime() string
func (*ActionLogListReq) ProtoMessage ¶
func (*ActionLogListReq) ProtoMessage()
func (*ActionLogListReq) ProtoReflect ¶
func (x *ActionLogListReq) ProtoReflect() protoreflect.Message
func (*ActionLogListReq) Reset ¶
func (x *ActionLogListReq) Reset()
func (*ActionLogListReq) String ¶
func (x *ActionLogListReq) String() string
func (*ActionLogListReq) Validate ¶
func (this *ActionLogListReq) Validate() error
type ActiveReq ¶
type ActiveReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` // contains filtered or unexported fields }
func (*ActiveReq) Descriptor
deprecated
func (*ActiveReq) ProtoMessage ¶
func (*ActiveReq) ProtoMessage()
func (*ActiveReq) ProtoReflect ¶
func (x *ActiveReq) ProtoReflect() protoreflect.Message
type AuthInfo ¶
type AuthInfo struct { Id uint64 `json:"id"` Name string `json:"name"` Role Role `json:"role"` Status UserStatus `json:"status"` }
func (*AuthInfo) UserAuthInfo ¶
func (x *AuthInfo) UserAuthInfo() *UserAuthInfo
type BannedType ¶
type BannedType int32
封禁类型
const ( BannedTypePlaceholder BannedType = 0 BannedTypePost BannedType = 1 BannedTypeLogin BannedType = 2 )
func (BannedType) Descriptor ¶
func (BannedType) Descriptor() protoreflect.EnumDescriptor
func (BannedType) Enum ¶
func (x BannedType) Enum() *BannedType
func (BannedType) EnumDescriptor
deprecated
func (BannedType) EnumDescriptor() ([]byte, []int)
Deprecated: Use BannedType.Descriptor instead.
func (BannedType) MarshalGQL ¶
func (x BannedType) MarshalGQL(w io.Writer)
func (BannedType) Number ¶
func (x BannedType) Number() protoreflect.EnumNumber
func (BannedType) OrigString ¶
func (x BannedType) OrigString() string
func (BannedType) String ¶
func (x BannedType) String() string
func (BannedType) Type ¶
func (BannedType) Type() protoreflect.EnumType
func (*BannedType) UnmarshalGQL ¶
func (x *BannedType) UnmarshalGQL(v interface{}) error
type BaseListRep ¶
type BaseListRep struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*UserBaseInfo `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*BaseListRep) Descriptor
deprecated
func (*BaseListRep) Descriptor() ([]byte, []int)
Deprecated: Use BaseListRep.ProtoReflect.Descriptor instead.
func (*BaseListRep) GetList ¶
func (x *BaseListRep) GetList() []*UserBaseInfo
func (*BaseListRep) GetTotal ¶
func (x *BaseListRep) GetTotal() int64
func (*BaseListRep) ProtoMessage ¶
func (*BaseListRep) ProtoMessage()
func (*BaseListRep) ProtoReflect ¶
func (x *BaseListRep) ProtoReflect() protoreflect.Message
func (*BaseListRep) Reset ¶
func (x *BaseListRep) Reset()
func (*BaseListRep) String ¶
func (x *BaseListRep) String() string
func (*BaseListRep) Validate ¶
func (this *BaseListRep) Validate() error
type BaseListReq ¶
type BaseListReq struct { Ids []uint64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` PageNo uint32 `protobuf:"varint,2,opt,name=pageNo,proto3" json:"pageNo,omitempty"` PageSize uint32 `protobuf:"varint,3,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
func (*BaseListReq) Descriptor
deprecated
func (*BaseListReq) Descriptor() ([]byte, []int)
Deprecated: Use BaseListReq.ProtoReflect.Descriptor instead.
func (*BaseListReq) GetIds ¶
func (x *BaseListReq) GetIds() []uint64
func (*BaseListReq) GetPageNo ¶
func (x *BaseListReq) GetPageNo() uint32
func (*BaseListReq) GetPageSize ¶
func (x *BaseListReq) GetPageSize() uint32
func (*BaseListReq) ProtoMessage ¶
func (*BaseListReq) ProtoMessage()
func (*BaseListReq) ProtoReflect ¶
func (x *BaseListReq) ProtoReflect() protoreflect.Message
func (*BaseListReq) Reset ¶
func (x *BaseListReq) Reset()
func (*BaseListReq) String ¶
func (x *BaseListReq) String() string
func (*BaseListReq) Validate ¶
func (this *BaseListReq) Validate() error
type EditReq ¶
type EditReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Details *EditReq_EditDetails `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty" gorm:"embedded"` // contains filtered or unexported fields }
func (*EditReq) Descriptor
deprecated
func (*EditReq) GetDetails ¶
func (x *EditReq) GetDetails() *EditReq_EditDetails
func (*EditReq) ProtoMessage ¶
func (*EditReq) ProtoMessage()
func (*EditReq) ProtoReflect ¶
func (x *EditReq) ProtoReflect() protoreflect.Message
type EditReq_EditDetails ¶
type EditReq_EditDetails struct { Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" validate:"gte=3,lte=10" annotation:"名字"` // 性别,0未填写,1男,2女 Gender Gender `protobuf:"varint,8,opt,name=gender,proto3,enum=user.Gender" json:"gender,omitempty"` Birthday string `protobuf:"bytes,9,opt,name=birthday,proto3" json:"birthday,omitempty"` Address string `protobuf:"bytes,14,opt,name=address,proto3" json:"address,omitempty"` Intro string `protobuf:"bytes,10,opt,name=intro,proto3" json:"intro,omitempty"` Signature string `protobuf:"bytes,11,opt,name=signature,proto3" json:"signature,omitempty"` AvatarUrl string `protobuf:"bytes,12,opt,name=avatarUrl,proto3" json:"avatarUrl,omitempty"` CoverUrl string `protobuf:"bytes,13,opt,name=coverUrl,proto3" json:"coverUrl,omitempty"` EduExps []*Resume `protobuf:"bytes,15,rep,name=eduExps,proto3" json:"eduExps,omitempty" gorm:"-"` WorkExps []*Resume `protobuf:"bytes,16,rep,name=workExps,proto3" json:"workExps,omitempty" gorm:"-"` // contains filtered or unexported fields }
func (*EditReq_EditDetails) Descriptor
deprecated
func (*EditReq_EditDetails) Descriptor() ([]byte, []int)
Deprecated: Use EditReq_EditDetails.ProtoReflect.Descriptor instead.
func (*EditReq_EditDetails) GetAddress ¶
func (x *EditReq_EditDetails) GetAddress() string
func (*EditReq_EditDetails) GetAvatarUrl ¶
func (x *EditReq_EditDetails) GetAvatarUrl() string
func (*EditReq_EditDetails) GetBirthday ¶
func (x *EditReq_EditDetails) GetBirthday() string
func (*EditReq_EditDetails) GetCoverUrl ¶
func (x *EditReq_EditDetails) GetCoverUrl() string
func (*EditReq_EditDetails) GetEduExps ¶
func (x *EditReq_EditDetails) GetEduExps() []*Resume
func (*EditReq_EditDetails) GetGender ¶
func (x *EditReq_EditDetails) GetGender() Gender
func (*EditReq_EditDetails) GetIntro ¶
func (x *EditReq_EditDetails) GetIntro() string
func (*EditReq_EditDetails) GetName ¶
func (x *EditReq_EditDetails) GetName() string
func (*EditReq_EditDetails) GetSignature ¶
func (x *EditReq_EditDetails) GetSignature() string
func (*EditReq_EditDetails) GetWorkExps ¶
func (x *EditReq_EditDetails) GetWorkExps() []*Resume
func (*EditReq_EditDetails) ProtoMessage ¶
func (*EditReq_EditDetails) ProtoMessage()
func (*EditReq_EditDetails) ProtoReflect ¶
func (x *EditReq_EditDetails) ProtoReflect() protoreflect.Message
func (*EditReq_EditDetails) Reset ¶
func (x *EditReq_EditDetails) Reset()
func (*EditReq_EditDetails) String ¶
func (x *EditReq_EditDetails) String() string
func (*EditReq_EditDetails) Validate ¶
func (this *EditReq_EditDetails) Validate() error
type FollowReq ¶
type FollowReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*FollowReq) Descriptor
deprecated
func (*FollowReq) ProtoMessage ¶
func (*FollowReq) ProtoMessage()
func (*FollowReq) ProtoReflect ¶
func (x *FollowReq) ProtoReflect() protoreflect.Message
type Gender ¶
type Gender int32
用户性别
func (Gender) Descriptor ¶
func (Gender) Descriptor() protoreflect.EnumDescriptor
func (Gender) EnumDescriptor
deprecated
func (Gender) MarshalGQL ¶
func (Gender) Number ¶
func (x Gender) Number() protoreflect.EnumNumber
func (Gender) OrigString ¶
func (Gender) Type ¶
func (Gender) Type() protoreflect.EnumType
func (*Gender) UnmarshalGQL ¶
type LoginRep ¶
type LoginRep struct { User *UserBaseInfo `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
登录返回
func (*LoginRep) Descriptor
deprecated
func (*LoginRep) GetUser ¶
func (x *LoginRep) GetUser() *UserBaseInfo
func (*LoginRep) ProtoMessage ¶
func (*LoginRep) ProtoMessage()
func (*LoginRep) ProtoReflect ¶
func (x *LoginRep) ProtoReflect() protoreflect.Message
type LoginReq ¶
type LoginReq struct { Input string `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty" validate:"required,gte=6,lte=15" annotation:"密码"` VCode string `protobuf:"bytes,3,opt,name=vCode,proto3" json:"vCode,omitempty"` // contains filtered or unexported fields }
登录请求
func (*LoginReq) Descriptor
deprecated
func (*LoginReq) GetPassword ¶
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
func (*LoginReq) ProtoReflect ¶
func (x *LoginReq) ProtoReflect() protoreflect.Message
type OauthServiceClient ¶
type OauthServiceClient interface { OauthAuthorize(ctx context.Context, in *oauth.OauthReq, opts ...grpc.CallOption) (*response.HttpResponse, error) OauthToken(ctx context.Context, in *oauth.OauthReq, opts ...grpc.CallOption) (*response.HttpResponse, error) }
OauthServiceClient is the client API for OauthService 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 NewOauthServiceClient ¶
func NewOauthServiceClient(cc grpc.ClientConnInterface) OauthServiceClient
type OauthServiceServer ¶
type OauthServiceServer interface { OauthAuthorize(context.Context, *oauth.OauthReq) (*response.HttpResponse, error) OauthToken(context.Context, *oauth.OauthReq) (*response.HttpResponse, error) // contains filtered or unexported methods }
OauthServiceServer is the server API for OauthService service. All implementations must embed UnimplementedOauthServiceServer for forward compatibility
type ResetPasswordReq ¶
type ResetPasswordReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
重置密码请求
func (*ResetPasswordReq) Descriptor
deprecated
func (*ResetPasswordReq) Descriptor() ([]byte, []int)
Deprecated: Use ResetPasswordReq.ProtoReflect.Descriptor instead.
func (*ResetPasswordReq) GetId ¶
func (x *ResetPasswordReq) GetId() uint64
func (*ResetPasswordReq) GetPassword ¶
func (x *ResetPasswordReq) GetPassword() string
func (*ResetPasswordReq) GetSecret ¶
func (x *ResetPasswordReq) GetSecret() string
func (*ResetPasswordReq) ProtoMessage ¶
func (*ResetPasswordReq) ProtoMessage()
func (*ResetPasswordReq) ProtoReflect ¶
func (x *ResetPasswordReq) ProtoReflect() protoreflect.Message
func (*ResetPasswordReq) Reset ¶
func (x *ResetPasswordReq) Reset()
func (*ResetPasswordReq) String ¶
func (x *ResetPasswordReq) String() string
func (*ResetPasswordReq) Validate ¶
func (this *ResetPasswordReq) Validate() error
type Response ¶
type Response struct { // Types that are assignable to Res: // *Response_Code // *Response_Msg Res isResponse_Res `protobuf_oneof:"res"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type Response_Code ¶
type Response_Code struct {
Code uint32 `protobuf:"varint,1,opt,name=code,proto3,oneof"`
}
type Response_Msg ¶
type Response_Msg struct {
Msg string `protobuf:"bytes,2,opt,name=msg,proto3,oneof"`
}
type Resume ¶
type Resume struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"` UserId uint64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty" gorm:"index"` // 公司或组织或学校 Company string `protobuf:"bytes,3,opt,name=company,proto3" json:"company,omitempty" gorm:"size:255"` // 职位或学历 Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty" gorm:"size:255"` // 部门或专业 Department string `protobuf:"bytes,5,opt,name=department,proto3" json:"department,omitempty" gorm:"size:255"` StartTime string `protobuf:"bytes,6,opt,name=startTime,proto3" json:"startTime,omitempty" gorm:"type:timestamptz(6)"` EndTime string `protobuf:"bytes,7,opt,name=endTime,proto3" json:"endTime,omitempty" gorm:"type:timestamptz(6)"` Remark string `protobuf:"bytes,11,opt,name=remark,proto3" json:"remark,omitempty" gorm:"size:255"` // 0-Education 教育经历,1- Work 职业生涯 Type uint32 `protobuf:"varint,12,opt,name=type,proto3" json:"type,omitempty" gorm:"type:int2;default:0"` Status uint32 `protobuf:"varint,28,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"` // contains filtered or unexported fields }
简历
func (*Resume) CmpKey ¶
Cannot use 'resumes' (type []*model.Resume) as type []CmpKey 我认为这是一个bug []int可以是interface,却不可以是[]interface var test []array.CmpKey test = append(test,resumes[0]) 可行 test = append(test,resumes...) 不可行,可笑
func (*Resume) Descriptor
deprecated
func (*Resume) GetCompany ¶
func (*Resume) GetDepartment ¶
func (*Resume) GetEndTime ¶
func (*Resume) GetStartTime ¶
func (*Resume) ProtoMessage ¶
func (*Resume) ProtoMessage()
func (*Resume) ProtoReflect ¶
func (x *Resume) ProtoReflect() protoreflect.Message
type Role ¶
type Role int32
用户角色
func (Role) Descriptor ¶
func (Role) Descriptor() protoreflect.EnumDescriptor
func (Role) EnumDescriptor
deprecated
func (Role) MarshalGQL ¶
func (Role) Number ¶
func (x Role) Number() protoreflect.EnumNumber
func (Role) OrigString ¶
func (Role) Type ¶
func (Role) Type() protoreflect.EnumType
func (*Role) UnmarshalGQL ¶
type SendVerifyCodeReq ¶
type SendVerifyCodeReq struct { // 邮箱 Mail string `protobuf:"bytes,6,opt,name=mail,proto3" json:"mail,omitempty" validate:"omitempty,email" annotation:"邮箱"` // 手机号 Phone string `protobuf:"bytes,7,opt,name=phone,proto3" json:"phone,omitempty" validate:"omitempty,phone" annotation:"手机号"` Type Action `protobuf:"varint,2,opt,name=type,proto3,enum=user.Action" json:"type,omitempty" annotation:"操作类型"` // contains filtered or unexported fields }
func (*SendVerifyCodeReq) Descriptor
deprecated
func (*SendVerifyCodeReq) Descriptor() ([]byte, []int)
Deprecated: Use SendVerifyCodeReq.ProtoReflect.Descriptor instead.
func (*SendVerifyCodeReq) GetMail ¶
func (x *SendVerifyCodeReq) GetMail() string
func (*SendVerifyCodeReq) GetPhone ¶
func (x *SendVerifyCodeReq) GetPhone() string
func (*SendVerifyCodeReq) GetType ¶
func (x *SendVerifyCodeReq) GetType() Action
func (*SendVerifyCodeReq) ProtoMessage ¶
func (*SendVerifyCodeReq) ProtoMessage()
func (*SendVerifyCodeReq) ProtoReflect ¶
func (x *SendVerifyCodeReq) ProtoReflect() protoreflect.Message
func (*SendVerifyCodeReq) Reset ¶
func (x *SendVerifyCodeReq) Reset()
func (*SendVerifyCodeReq) String ¶
func (x *SendVerifyCodeReq) String() string
func (*SendVerifyCodeReq) Validate ¶
func (this *SendVerifyCodeReq) Validate() error
type SignupReq ¶
type SignupReq struct { // 密码 Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty" validate:"required,gte=6,lte=15" annotation:"密码"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" validate:"required,gte=3,lte=10" annotation:"昵称"` Gender Gender `protobuf:"varint,3,opt,name=gender,proto3,enum=user.Gender" json:"gender,omitempty" validate:"required" annotation:"性别"` // 邮箱 Mail string `protobuf:"bytes,6,opt,name=mail,proto3" json:"mail,omitempty" validate:"omitempty,email" annotation:"邮箱"` // 手机号 Phone string `protobuf:"bytes,7,opt,name=phone,proto3" json:"phone,omitempty" validate:"omitempty,phone" annotation:"手机号"` // 验证码 VCode string `protobuf:"bytes,8,opt,name=vCode,proto3" json:"vCode,omitempty" validate:"required" annotation:"验证码"` // contains filtered or unexported fields }
func (*SignupReq) Descriptor
deprecated
func (*SignupReq) GetPassword ¶
func (*SignupReq) ProtoMessage ¶
func (*SignupReq) ProtoMessage()
func (*SignupReq) ProtoReflect ¶
func (x *SignupReq) ProtoReflect() protoreflect.Message
type SingUpVerifyReq ¶
type SingUpVerifyReq struct { // 邮箱 Mail string `protobuf:"bytes,6,opt,name=mail,proto3" json:"mail,omitempty" validate:"omitempty,email" annotation:"邮箱"` // 手机号 Phone string `protobuf:"bytes,7,opt,name=phone,proto3" json:"phone,omitempty" validate:"omitempty,phone" annotation:"手机号"` // contains filtered or unexported fields }
注册验证请求
func (*SingUpVerifyReq) Descriptor
deprecated
func (*SingUpVerifyReq) Descriptor() ([]byte, []int)
Deprecated: Use SingUpVerifyReq.ProtoReflect.Descriptor instead.
func (*SingUpVerifyReq) GetMail ¶
func (x *SingUpVerifyReq) GetMail() string
func (*SingUpVerifyReq) GetPhone ¶
func (x *SingUpVerifyReq) GetPhone() string
func (*SingUpVerifyReq) ProtoMessage ¶
func (*SingUpVerifyReq) ProtoMessage()
func (*SingUpVerifyReq) ProtoReflect ¶
func (x *SingUpVerifyReq) ProtoReflect() protoreflect.Message
func (*SingUpVerifyReq) Reset ¶
func (x *SingUpVerifyReq) Reset()
func (*SingUpVerifyReq) String ¶
func (x *SingUpVerifyReq) String() string
func (*SingUpVerifyReq) Validate ¶
func (this *SingUpVerifyReq) Validate() error
type UnimplementedOauthServiceServer ¶
type UnimplementedOauthServiceServer struct { }
UnimplementedOauthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedOauthServiceServer) OauthAuthorize ¶
func (UnimplementedOauthServiceServer) OauthAuthorize(context.Context, *oauth.OauthReq) (*response.HttpResponse, error)
func (UnimplementedOauthServiceServer) OauthToken ¶
func (UnimplementedOauthServiceServer) OauthToken(context.Context, *oauth.OauthReq) (*response.HttpResponse, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) ActionLogList ¶
func (UnimplementedUserServiceServer) ActionLogList(context.Context, *ActionLogListReq) (*ActionLogListRep, error)
func (UnimplementedUserServiceServer) AuthInfo ¶
func (UnimplementedUserServiceServer) AuthInfo(context.Context, *empty.Empty) (*UserAuthInfo, error)
func (UnimplementedUserServiceServer) BaseList ¶
func (UnimplementedUserServiceServer) BaseList(context.Context, *BaseListReq) (*BaseListRep, error)
func (UnimplementedUserServiceServer) DelFollow ¶
func (UnimplementedUserServiceServer) DelFollow(context.Context, *FollowReq) (*BaseListRep, error)
func (UnimplementedUserServiceServer) EasySignup ¶
func (UnimplementedUserServiceServer) ForgetPassword ¶
func (UnimplementedUserServiceServer) ResetPassword ¶
func (UnimplementedUserServiceServer) ResetPassword(context.Context, *ResetPasswordReq) (*response.TinyRep, error)
func (UnimplementedUserServiceServer) SendVerifyCode ¶
func (UnimplementedUserServiceServer) SendVerifyCode(context.Context, *SendVerifyCodeReq) (*empty.Empty, error)
func (UnimplementedUserServiceServer) SignupVerify ¶
func (UnimplementedUserServiceServer) SignupVerify(context.Context, *SingUpVerifyReq) (*empty.Empty, error)
func (UnimplementedUserServiceServer) VerifyCode ¶
func (UnimplementedUserServiceServer) VerifyCode(context.Context, *empty.Empty) (*wrappers.StringValue, error)
type UnsafeOauthServiceServer ¶
type UnsafeOauthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeOauthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OauthServiceServer will result in compilation errors.
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 User ¶
type User struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey;"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" gorm:"size:10;not null" annotation:"昵称"` Account string `` /* 152-byte string literal not displayed */ Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"-" gorm:"size:32;not null" validate:"gte=8,lte=15" annotation:"密码"` Mail string `protobuf:"bytes,6,opt,name=mail,proto3" json:"mail,omitempty" gorm:"size:16;default:''" validate:"email" annotation:"邮箱"` Phone string `` /* 129-byte string literal not displayed */ // 性别,0未填写,1男,2女 Gender Gender `protobuf:"varint,8,opt,name=gender,proto3,enum=user.Gender" json:"gender,omitempty" gorm:"type:int2;default:0"` Birthday string `` /* 130-byte string literal not displayed */ Address string `protobuf:"bytes,14,opt,name=address,proto3" json:"address,omitempty" gorm:"size:255;default:''"` Intro string `protobuf:"bytes,10,opt,name=intro,proto3" json:"intro,omitempty" gorm:"size:255;default:''"` Signature string `protobuf:"bytes,11,opt,name=signature,proto3" json:"signature,omitempty" gorm:"size:255;default:''"` AvatarUrl string `protobuf:"bytes,12,opt,name=avatarUrl,proto3" json:"avatarUrl,omitempty" gorm:"size:255;default:''"` CoverUrl string `protobuf:"bytes,13,opt,name=coverUrl,proto3" json:"coverUrl,omitempty" gorm:"size:255;default:''"` Role Role `protobuf:"varint,24,opt,name=role,proto3,enum=user.Role" json:"role,omitempty" gorm:"type:int2;default:0"` RealName string `protobuf:"bytes,19,opt,name=realName,proto3" json:"realName,omitempty" gorm:"size:5;default:''" annotation:"实名"` IdNo string `protobuf:"bytes,18,opt,name=IdNo,proto3" json:"IdNo,omitempty" gorm:"size:22;default:''" annotation:"身份证号"` Status UserStatus `protobuf:"varint,28,opt,name=status,proto3,enum=user.UserStatus" json:"status,omitempty" gorm:"type:int2;default:0"` CreatedAt string `protobuf:"bytes,25,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` ActivatedAt string `` /* 136-byte string literal not displayed */ DeletedAt string `` // uint32 isDeleted = 29 [(go.field) = {tags:'gorm:"default:0"'}]; /* 133-byte string literal not displayed */ // contains filtered or unexported fields }
用户
func (*User) Descriptor
deprecated
func (*User) GetAccount ¶
func (*User) GetActivatedAt ¶
func (*User) GetAddress ¶
func (*User) GetAvatarUrl ¶
func (*User) GetBirthday ¶
func (*User) GetCoverUrl ¶
func (*User) GetCreatedAt ¶
func (*User) GetDeletedAt ¶
func (*User) GetPassword ¶
func (*User) GetRealName ¶
func (*User) GetSignature ¶
func (*User) GetStatus ¶
func (x *User) GetStatus() UserStatus
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserActionLog ¶
type UserActionLog struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"` UserId uint64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty" gorm:"index"` //类型 Action Action `protobuf:"varint,3,opt,name=action,proto3,enum=user.Action" json:"action,omitempty"` //相关id RelatedId string `protobuf:"bytes,4,opt,name=relatedId,proto3" json:"relatedId,omitempty" gorm:"size:255"` LastValue []byte `protobuf:"bytes,5,opt,name=lastValue,proto3" json:"lastValue,omitempty" gorm:"size:255"` CreatedAt string `protobuf:"bytes,6,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` Remark string `protobuf:"bytes,7,opt,name=remark,proto3" json:"remark,omitempty" gorm:"size:255"` //设备 DeviceInfo *UserDeviceInfo `protobuf:"bytes,8,opt,name=deviceInfo,proto3" json:"deviceInfo,omitempty" gorm:"embedded"` Device uint32 `protobuf:"varint,9,opt,name=device,proto3" json:"device,omitempty"` // contains filtered or unexported fields }
用户操作日志
func (*UserActionLog) Descriptor
deprecated
func (*UserActionLog) Descriptor() ([]byte, []int)
Deprecated: Use UserActionLog.ProtoReflect.Descriptor instead.
func (*UserActionLog) GetAction ¶
func (x *UserActionLog) GetAction() Action
func (*UserActionLog) GetCreatedAt ¶
func (x *UserActionLog) GetCreatedAt() string
func (*UserActionLog) GetDevice ¶
func (x *UserActionLog) GetDevice() uint32
func (*UserActionLog) GetDeviceInfo ¶
func (x *UserActionLog) GetDeviceInfo() *UserDeviceInfo
func (*UserActionLog) GetId ¶
func (x *UserActionLog) GetId() uint64
func (*UserActionLog) GetLastValue ¶
func (x *UserActionLog) GetLastValue() []byte
func (*UserActionLog) GetRelatedId ¶
func (x *UserActionLog) GetRelatedId() string
func (*UserActionLog) GetRemark ¶
func (x *UserActionLog) GetRemark() string
func (*UserActionLog) GetUserId ¶
func (x *UserActionLog) GetUserId() uint64
func (*UserActionLog) ProtoMessage ¶
func (*UserActionLog) ProtoMessage()
func (*UserActionLog) ProtoReflect ¶
func (x *UserActionLog) ProtoReflect() protoreflect.Message
func (*UserActionLog) Reset ¶
func (x *UserActionLog) Reset()
func (*UserActionLog) String ¶
func (x *UserActionLog) String() string
type UserAuthInfo ¶
type UserAuthInfo struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey;"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" gorm:"size:10;not null" annotation:"名字"` Role Role `protobuf:"varint,24,opt,name=role,proto3,enum=user.Role" json:"role,omitempty" gorm:"type:int2;default:0"` Status UserStatus `protobuf:"varint,28,opt,name=status,proto3,enum=user.UserStatus" json:"status,omitempty" gorm:"type:int2;default:0"` // contains filtered or unexported fields }
用户授权信息
func (*UserAuthInfo) Descriptor
deprecated
func (*UserAuthInfo) Descriptor() ([]byte, []int)
Deprecated: Use UserAuthInfo.ProtoReflect.Descriptor instead.
func (*UserAuthInfo) GetId ¶
func (x *UserAuthInfo) GetId() uint64
func (*UserAuthInfo) GetName ¶
func (x *UserAuthInfo) GetName() string
func (*UserAuthInfo) GetRole ¶
func (x *UserAuthInfo) GetRole() Role
func (*UserAuthInfo) GetStatus ¶
func (x *UserAuthInfo) GetStatus() UserStatus
func (*UserAuthInfo) ProtoMessage ¶
func (*UserAuthInfo) ProtoMessage()
func (*UserAuthInfo) ProtoReflect ¶
func (x *UserAuthInfo) ProtoReflect() protoreflect.Message
func (*UserAuthInfo) Reset ¶
func (x *UserAuthInfo) Reset()
func (*UserAuthInfo) String ¶
func (x *UserAuthInfo) String() string
type UserBannedLog ¶
type UserBannedLog struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"` UserId uint64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty" gorm:"index"` Duration uint64 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty" gorm:""` Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty" gorm:"size:255"` Type BannedType `protobuf:"varint,5,opt,name=type,proto3,enum=user.BannedType" json:"type,omitempty"` BannedAt string `protobuf:"bytes,6,opt,name=bannedAt,proto3" json:"bannedAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` Remark string `protobuf:"bytes,7,opt,name=remark,proto3" json:"remark,omitempty" gorm:"size:255"` // contains filtered or unexported fields }
用户封禁日志
func (*UserBannedLog) Descriptor
deprecated
func (*UserBannedLog) Descriptor() ([]byte, []int)
Deprecated: Use UserBannedLog.ProtoReflect.Descriptor instead.
func (*UserBannedLog) GetBannedAt ¶
func (x *UserBannedLog) GetBannedAt() string
func (*UserBannedLog) GetDuration ¶
func (x *UserBannedLog) GetDuration() uint64
func (*UserBannedLog) GetId ¶
func (x *UserBannedLog) GetId() uint64
func (*UserBannedLog) GetReason ¶
func (x *UserBannedLog) GetReason() string
func (*UserBannedLog) GetRemark ¶
func (x *UserBannedLog) GetRemark() string
func (*UserBannedLog) GetType ¶
func (x *UserBannedLog) GetType() BannedType
func (*UserBannedLog) GetUserId ¶
func (x *UserBannedLog) GetUserId() uint64
func (*UserBannedLog) ProtoMessage ¶
func (*UserBannedLog) ProtoMessage()
func (*UserBannedLog) ProtoReflect ¶
func (x *UserBannedLog) ProtoReflect() protoreflect.Message
func (*UserBannedLog) Reset ¶
func (x *UserBannedLog) Reset()
func (*UserBannedLog) String ¶
func (x *UserBannedLog) String() string
type UserBaseInfo ¶
type UserBaseInfo struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey;"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" gorm:"size:10;not null" annotation:"名字"` Score uint64 `protobuf:"varint,3,opt,name=score,proto3" json:"score,omitempty" gorm:"default:0"` Gender Gender `protobuf:"varint,8,opt,name=gender,proto3,enum=user.Gender" json:"gender,omitempty" gorm:"type:int2;default:0"` AvatarUrl string `protobuf:"bytes,12,opt,name=avatarUrl,proto3" json:"avatarUrl,omitempty" gorm:"size:255;default:''"` // contains filtered or unexported fields }
func (*UserBaseInfo) Descriptor
deprecated
func (*UserBaseInfo) Descriptor() ([]byte, []int)
Deprecated: Use UserBaseInfo.ProtoReflect.Descriptor instead.
func (*UserBaseInfo) GetAvatarUrl ¶
func (x *UserBaseInfo) GetAvatarUrl() string
func (*UserBaseInfo) GetGender ¶
func (x *UserBaseInfo) GetGender() Gender
func (*UserBaseInfo) GetId ¶
func (x *UserBaseInfo) GetId() uint64
func (*UserBaseInfo) GetName ¶
func (x *UserBaseInfo) GetName() string
func (*UserBaseInfo) GetScore ¶
func (x *UserBaseInfo) GetScore() uint64
func (*UserBaseInfo) ProtoMessage ¶
func (*UserBaseInfo) ProtoMessage()
func (*UserBaseInfo) ProtoReflect ¶
func (x *UserBaseInfo) ProtoReflect() protoreflect.Message
func (*UserBaseInfo) Reset ¶
func (x *UserBaseInfo) Reset()
func (*UserBaseInfo) String ¶
func (x *UserBaseInfo) String() string
type UserContent ¶
type UserContent struct { MomentCount uint64 `protobuf:"varint,1,opt,name=momentCount,proto3" json:"momentCount,omitempty"` DiaryCount uint64 `protobuf:"varint,2,opt,name=diaryCount,proto3" json:"diaryCount,omitempty"` ArticleCount uint64 `protobuf:"varint,3,opt,name=articleCount,proto3" json:"articleCount,omitempty"` FavCount uint64 `protobuf:"varint,4,opt,name=favCount,proto3" json:"favCount,omitempty"` // contains filtered or unexported fields }
func (*UserContent) Descriptor
deprecated
func (*UserContent) Descriptor() ([]byte, []int)
Deprecated: Use UserContent.ProtoReflect.Descriptor instead.
func (*UserContent) GetArticleCount ¶
func (x *UserContent) GetArticleCount() uint64
func (*UserContent) GetDiaryCount ¶
func (x *UserContent) GetDiaryCount() uint64
func (*UserContent) GetFavCount ¶
func (x *UserContent) GetFavCount() uint64
func (*UserContent) GetMomentCount ¶
func (x *UserContent) GetMomentCount() uint64
func (*UserContent) ProtoMessage ¶
func (*UserContent) ProtoMessage()
func (*UserContent) ProtoReflect ¶
func (x *UserContent) ProtoReflect() protoreflect.Message
func (*UserContent) Reset ¶
func (x *UserContent) Reset()
func (*UserContent) String ¶
func (x *UserContent) String() string
type UserDeviceInfo ¶
type UserDeviceInfo struct { //设备 Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty" gorm:"size:255"` Os string `protobuf:"bytes,4,opt,name=os,proto3" json:"os,omitempty" gorm:"size:255"` AppCode string `protobuf:"bytes,6,opt,name=appCode,proto3" json:"appCode,omitempty" gorm:"size:255"` AppVersion string `protobuf:"bytes,7,opt,name=appVersion,proto3" json:"appVersion,omitempty" gorm:"size:255"` IP string `protobuf:"bytes,3,opt,name=IP,proto3" json:"IP,omitempty" gorm:"size:255"` Lng string `protobuf:"bytes,8,opt,name=lng,proto3" json:"lng,omitempty" gorm:"type:numeric(10,6)"` Lat string `protobuf:"bytes,9,opt,name=lat,proto3" json:"lat,omitempty" gorm:"type:numeric(10,6)"` Area string `protobuf:"bytes,2,opt,name=area,proto3" json:"area,omitempty" gorm:"size:255"` UserAgent string `protobuf:"bytes,5,opt,name=userAgent,proto3" json:"userAgent,omitempty" gorm:"size:255"` // contains filtered or unexported fields }
func ConvDeviceInfo ¶
func ConvDeviceInfo(x *contexti.DeviceInfo) *UserDeviceInfo
func (*UserDeviceInfo) Descriptor
deprecated
func (*UserDeviceInfo) Descriptor() ([]byte, []int)
Deprecated: Use UserDeviceInfo.ProtoReflect.Descriptor instead.
func (*UserDeviceInfo) GetAppCode ¶
func (x *UserDeviceInfo) GetAppCode() string
func (*UserDeviceInfo) GetAppVersion ¶
func (x *UserDeviceInfo) GetAppVersion() string
func (*UserDeviceInfo) GetArea ¶
func (x *UserDeviceInfo) GetArea() string
func (*UserDeviceInfo) GetDevice ¶
func (x *UserDeviceInfo) GetDevice() string
func (*UserDeviceInfo) GetIP ¶
func (x *UserDeviceInfo) GetIP() string
func (*UserDeviceInfo) GetLat ¶
func (x *UserDeviceInfo) GetLat() string
func (*UserDeviceInfo) GetLng ¶
func (x *UserDeviceInfo) GetLng() string
func (*UserDeviceInfo) GetOs ¶
func (x *UserDeviceInfo) GetOs() string
func (*UserDeviceInfo) GetUserAgent ¶
func (x *UserDeviceInfo) GetUserAgent() string
func (*UserDeviceInfo) ProtoMessage ¶
func (*UserDeviceInfo) ProtoMessage()
func (*UserDeviceInfo) ProtoReflect ¶
func (x *UserDeviceInfo) ProtoReflect() protoreflect.Message
func (*UserDeviceInfo) Reset ¶
func (x *UserDeviceInfo) Reset()
func (*UserDeviceInfo) String ¶
func (x *UserDeviceInfo) String() string
type UserErr ¶
type UserErr int32
func (UserErr) Descriptor ¶
func (UserErr) Descriptor() protoreflect.EnumDescriptor
func (UserErr) EnumDescriptor
deprecated
func (UserErr) GRPCStatus ¶
func (UserErr) MarshalGQL ¶
func (UserErr) Number ¶
func (x UserErr) Number() protoreflect.EnumNumber
func (UserErr) OrigString ¶
func (UserErr) Type ¶
func (UserErr) Type() protoreflect.EnumType
func (*UserErr) UnmarshalGQL ¶
type UserExt ¶
type UserExt struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey;"` LastActivatedAt string `` /* 177-byte string literal not displayed */ Score uint64 `protobuf:"varint,15,opt,name=score,proto3" json:"score,omitempty" gorm:"default:0" annotation:"分数"` FollowCount uint64 `protobuf:"varint,2,opt,name=followCount,proto3" json:"followCount,omitempty" gorm:"default:0" annotation:"关注数"` FollowedCount uint64 `protobuf:"varint,17,opt,name=followedCount,proto3" json:"followedCount,omitempty" gorm:"default:0" annotation:"被关注数"` ArticleCount uint64 `protobuf:"varint,18,opt,name=articleCount,proto3" json:"articleCount,omitempty" gorm:"default:0" annotation:"文章数"` MomentCount uint64 `protobuf:"varint,19,opt,name=momentCount,proto3" json:"momentCount,omitempty" gorm:"default:0" annotation:"瞬间数"` DiaryBookCount uint64 `` /* 126-byte string literal not displayed */ DiaryCount uint64 `protobuf:"varint,21,opt,name=diaryCount,proto3" json:"diaryCount,omitempty" gorm:"default:0" annotation:"日记数"` FavoritesCount uint64 `protobuf:"varint,5,opt,name=favoritesCount,proto3" json:"favoritesCount,omitempty" gorm:"default:0" annotation:"收藏夹数"` CollectCount uint64 `protobuf:"varint,3,opt,name=collectCount,proto3" json:"collectCount,omitempty" gorm:"default:0" annotation:"收藏数"` // contains filtered or unexported fields }
func (*UserExt) Descriptor
deprecated
func (*UserExt) GetArticleCount ¶
func (*UserExt) GetCollectCount ¶
func (*UserExt) GetDiaryBookCount ¶
func (*UserExt) GetDiaryCount ¶
func (*UserExt) GetFavoritesCount ¶
func (*UserExt) GetFollowCount ¶
func (*UserExt) GetFollowedCount ¶
func (*UserExt) GetLastActivatedAt ¶
func (*UserExt) GetMomentCount ¶
func (*UserExt) ProtoMessage ¶
func (*UserExt) ProtoMessage()
func (*UserExt) ProtoReflect ¶
func (x *UserExt) ProtoReflect() protoreflect.Message
type UserFollow ¶
type UserFollow struct { UserId uint64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty" gorm:"index"` FollowId uint64 `protobuf:"varint,2,opt,name=followId,proto3" json:"followId,omitempty" gorm:"default:0"` CreatedAt string `protobuf:"bytes,3,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` DeletedAt string `` /* 132-byte string literal not displayed */ Status uint32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;"` //状态:0无效,1有效 // contains filtered or unexported fields }
关注表
func (*UserFollow) Descriptor
deprecated
func (*UserFollow) Descriptor() ([]byte, []int)
Deprecated: Use UserFollow.ProtoReflect.Descriptor instead.
func (*UserFollow) GetCreatedAt ¶
func (x *UserFollow) GetCreatedAt() string
func (*UserFollow) GetDeletedAt ¶
func (x *UserFollow) GetDeletedAt() string
func (*UserFollow) GetFollowId ¶
func (x *UserFollow) GetFollowId() uint64
func (*UserFollow) GetStatus ¶
func (x *UserFollow) GetStatus() uint32
func (*UserFollow) GetUserId ¶
func (x *UserFollow) GetUserId() uint64
func (*UserFollow) ProtoMessage ¶
func (*UserFollow) ProtoMessage()
func (*UserFollow) ProtoReflect ¶
func (x *UserFollow) ProtoReflect() protoreflect.Message
func (*UserFollow) Reset ¶
func (x *UserFollow) Reset()
func (*UserFollow) String ¶
func (x *UserFollow) String() string
type UserOAuthInfo ¶
type UserOAuthInfo struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey;"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" gorm:"size:10;not null" annotation:"名字"` Mail string `protobuf:"bytes,6,opt,name=mail,proto3" json:"mail,omitempty" gorm:"size:16;default:''" validate:"email" annotation:"邮箱"` Location string `protobuf:"bytes,16,opt,name=location,proto3" json:"location,omitempty" gorm:"size:255;default:''"` Introduction string `protobuf:"bytes,10,opt,name=introduction,proto3" json:"introduction,omitempty" gorm:"size:255;default:''"` AvatarURL string `protobuf:"bytes,12,opt,name=avatarURL,proto3" json:"avatarURL,omitempty" gorm:"size:255;default:''"` // contains filtered or unexported fields }
func (*UserOAuthInfo) Descriptor
deprecated
func (*UserOAuthInfo) Descriptor() ([]byte, []int)
Deprecated: Use UserOAuthInfo.ProtoReflect.Descriptor instead.
func (*UserOAuthInfo) GetAvatarURL ¶
func (x *UserOAuthInfo) GetAvatarURL() string
func (*UserOAuthInfo) GetId ¶
func (x *UserOAuthInfo) GetId() uint64
func (*UserOAuthInfo) GetIntroduction ¶
func (x *UserOAuthInfo) GetIntroduction() string
func (*UserOAuthInfo) GetLocation ¶
func (x *UserOAuthInfo) GetLocation() string
func (*UserOAuthInfo) GetMail ¶
func (x *UserOAuthInfo) GetMail() string
func (*UserOAuthInfo) GetName ¶
func (x *UserOAuthInfo) GetName() string
func (*UserOAuthInfo) ProtoMessage ¶
func (*UserOAuthInfo) ProtoMessage()
func (*UserOAuthInfo) ProtoReflect ¶
func (x *UserOAuthInfo) ProtoReflect() protoreflect.Message
func (*UserOAuthInfo) Reset ¶
func (x *UserOAuthInfo) Reset()
func (*UserOAuthInfo) String ¶
func (x *UserOAuthInfo) String() string
type UserRep ¶
type UserRep struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` UerExt *UserExt `protobuf:"bytes,2,opt,name=uerExt,proto3" json:"uerExt,omitempty"` // contains filtered or unexported fields }
func (*UserRep) Descriptor
deprecated
func (*UserRep) ProtoMessage ¶
func (*UserRep) ProtoMessage()
func (*UserRep) ProtoReflect ¶
func (x *UserRep) ProtoReflect() protoreflect.Message
type UserScoreLog ¶
type UserScoreLog struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"` UserId uint64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty" gorm:"index"` Score int64 `protobuf:"zigzag64,3,opt,name=score,proto3" json:"score" gorm:""` Reason string `protobuf:"bytes,5,opt,name=reason,proto3" json:"reason,omitempty" gorm:"size:255"` CreatedAt string `protobuf:"bytes,6,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` Remark string `protobuf:"bytes,7,opt,name=remark,proto3" json:"remark,omitempty" gorm:"size:255"` // contains filtered or unexported fields }
用户分数变化日志
func (*UserScoreLog) Descriptor
deprecated
func (*UserScoreLog) Descriptor() ([]byte, []int)
Deprecated: Use UserScoreLog.ProtoReflect.Descriptor instead.
func (*UserScoreLog) GetCreatedAt ¶
func (x *UserScoreLog) GetCreatedAt() string
func (*UserScoreLog) GetId ¶
func (x *UserScoreLog) GetId() uint64
func (*UserScoreLog) GetReason ¶
func (x *UserScoreLog) GetReason() string
func (*UserScoreLog) GetRemark ¶
func (x *UserScoreLog) GetRemark() string
func (*UserScoreLog) GetScore ¶
func (x *UserScoreLog) GetScore() int64
func (*UserScoreLog) GetUserId ¶
func (x *UserScoreLog) GetUserId() uint64
func (*UserScoreLog) ProtoMessage ¶
func (*UserScoreLog) ProtoMessage()
func (*UserScoreLog) ProtoReflect ¶
func (x *UserScoreLog) ProtoReflect() protoreflect.Message
func (*UserScoreLog) Reset ¶
func (x *UserScoreLog) Reset()
func (*UserScoreLog) String ¶
func (x *UserScoreLog) String() string
type UserServiceClient ¶
type UserServiceClient interface { // 验证码 VerifyCode(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*wrappers.StringValue, error) // 验证码 SendVerifyCode(ctx context.Context, in *SendVerifyCodeReq, opts ...grpc.CallOption) (*empty.Empty, error) //注册验证 SignupVerify(ctx context.Context, in *SingUpVerifyReq, opts ...grpc.CallOption) (*empty.Empty, error) //注册 Signup(ctx context.Context, in *SignupReq, opts ...grpc.CallOption) (*empty.Empty, error) //注册 EasySignup(ctx context.Context, in *SignupReq, opts ...grpc.CallOption) (*LoginRep, error) //激活 Active(ctx context.Context, in *ActiveReq, opts ...grpc.CallOption) (*LoginRep, error) //编辑 Edit(ctx context.Context, in *EditReq, opts ...grpc.CallOption) (*empty.Empty, error) //登录 Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginRep, error) //退出 Logout(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) //鉴权 AuthInfo(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*UserAuthInfo, error) //重置密码 ForgetPassword(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*response.TinyRep, error) ResetPassword(ctx context.Context, in *ResetPasswordReq, opts ...grpc.CallOption) (*response.TinyRep, error) //获取用户信息 Info(ctx context.Context, in *request.Object, opts ...grpc.CallOption) (*UserRep, error) ActionLogList(ctx context.Context, in *ActionLogListReq, opts ...grpc.CallOption) (*ActionLogListRep, error) //获取基础用户信息 BaseList(ctx context.Context, in *BaseListReq, opts ...grpc.CallOption) (*BaseListRep, error) // 关注 Follow(ctx context.Context, in *FollowReq, opts ...grpc.CallOption) (*empty.Empty, error) // 取消关注 DelFollow(ctx context.Context, in *FollowReq, opts ...grpc.CallOption) (*BaseListRep, 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 { // 验证码 VerifyCode(context.Context, *empty.Empty) (*wrappers.StringValue, error) // 验证码 SendVerifyCode(context.Context, *SendVerifyCodeReq) (*empty.Empty, error) //注册验证 SignupVerify(context.Context, *SingUpVerifyReq) (*empty.Empty, error) //注册 Signup(context.Context, *SignupReq) (*empty.Empty, error) //注册 EasySignup(context.Context, *SignupReq) (*LoginRep, error) //激活 Active(context.Context, *ActiveReq) (*LoginRep, error) //编辑 Edit(context.Context, *EditReq) (*empty.Empty, error) //登录 Login(context.Context, *LoginReq) (*LoginRep, error) //退出 Logout(context.Context, *empty.Empty) (*empty.Empty, error) //鉴权 AuthInfo(context.Context, *empty.Empty) (*UserAuthInfo, error) //重置密码 ForgetPassword(context.Context, *LoginReq) (*response.TinyRep, error) ResetPassword(context.Context, *ResetPasswordReq) (*response.TinyRep, error) //获取用户信息 Info(context.Context, *request.Object) (*UserRep, error) ActionLogList(context.Context, *ActionLogListReq) (*ActionLogListRep, error) //获取基础用户信息 BaseList(context.Context, *BaseListReq) (*BaseListRep, error) // 关注 Follow(context.Context, *FollowReq) (*empty.Empty, error) // 取消关注 DelFollow(context.Context, *FollowReq) (*BaseListRep, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility
type UserStatus ¶
type UserStatus int32
用户角色
const ( UserStatusPlaceholder UserStatus = 0 UserStatusInActive UserStatus = 1 UserStatusActivated UserStatus = 2 UserStatusFrozen UserStatus = 3 UserStatusDeleted UserStatus = 4 )
func (UserStatus) Descriptor ¶
func (UserStatus) Descriptor() protoreflect.EnumDescriptor
func (UserStatus) Enum ¶
func (x UserStatus) Enum() *UserStatus
func (UserStatus) EnumDescriptor
deprecated
func (UserStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserStatus.Descriptor instead.
func (UserStatus) MarshalGQL ¶
func (x UserStatus) MarshalGQL(w io.Writer)
func (UserStatus) Number ¶
func (x UserStatus) Number() protoreflect.EnumNumber
func (UserStatus) OrigString ¶
func (x UserStatus) OrigString() string
func (UserStatus) String ¶
func (x UserStatus) String() string
func (UserStatus) Type ¶
func (UserStatus) Type() protoreflect.EnumType
func (*UserStatus) UnmarshalGQL ¶
func (x *UserStatus) UnmarshalGQL(v interface{}) error