user

package
v0.0.0-...-1f4ee57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 37 Imported by: 0

Documentation

Overview

Package user is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var File_user_user_enum_proto protoreflect.FileDescriptor
View Source
var File_user_user_model_proto protoreflect.FileDescriptor
View Source
var File_user_user_service_proto protoreflect.FileDescriptor
View Source
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)

View Source
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)

View Source
var UserserviceServicedesc = &UserService_ServiceDesc

Functions

func RegisterOauthServiceHandler

func RegisterOauthServiceHandler(ctx context.Context, mux *gin.Engine, conn *grpc.ClientConn) error

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

func RegisterUserServiceHandler(ctx context.Context, mux *gin.Engine, conn *grpc.ClientConn) error

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

用户操作

const (
	ActionPlaceholder  Action = 0
	ActionSignup       Action = 1
	ActionActive       Action = 2
	ActionRestPassword Action = 3
	ActionEditPassword Action = 4
	ActionCreateResume Action = 5
	ActionEditResume   Action = 6
	ActionDELETEResume Action = 7
)

func (Action) Descriptor

func (Action) Descriptor() protoreflect.EnumDescriptor

func (Action) Enum

func (x Action) Enum() *Action

func (Action) EnumDescriptor deprecated

func (Action) EnumDescriptor() ([]byte, []int)

Deprecated: Use Action.Descriptor instead.

func (Action) MarshalGQL

func (x Action) MarshalGQL(w io.Writer)

func (Action) Number

func (x Action) Number() protoreflect.EnumNumber

func (Action) OrigString

func (x Action) OrigString() string

func (Action) String

func (x Action) String() string

func (Action) Type

func (Action) Type() protoreflect.EnumType

func (*Action) UnmarshalGQL

func (x *Action) UnmarshalGQL(v interface{}) error

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) Descriptor() ([]byte, []int)

Deprecated: Use ActiveReq.ProtoReflect.Descriptor instead.

func (*ActiveReq) GetId

func (x *ActiveReq) GetId() uint64

func (*ActiveReq) GetSecret

func (x *ActiveReq) GetSecret() string

func (*ActiveReq) ProtoMessage

func (*ActiveReq) ProtoMessage()

func (*ActiveReq) ProtoReflect

func (x *ActiveReq) ProtoReflect() protoreflect.Message

func (*ActiveReq) Reset

func (x *ActiveReq) Reset()

func (*ActiveReq) String

func (x *ActiveReq) String() string

func (*ActiveReq) Validate

func (this *ActiveReq) Validate() error

type AuthInfo

type AuthInfo struct {
	Id     uint64     `json:"id"`
	Name   string     `json:"name"`
	Role   Role       `json:"role"`
	Status UserStatus `json:"status"`
}

func (*AuthInfo) IdStr

func (x *AuthInfo) IdStr() string

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) 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) Descriptor() ([]byte, []int)

Deprecated: Use EditReq.ProtoReflect.Descriptor instead.

func (*EditReq) GetDetails

func (x *EditReq) GetDetails() *EditReq_EditDetails

func (*EditReq) GetId

func (x *EditReq) GetId() uint64

func (*EditReq) ProtoMessage

func (*EditReq) ProtoMessage()

func (*EditReq) ProtoReflect

func (x *EditReq) ProtoReflect() protoreflect.Message

func (*EditReq) Reset

func (x *EditReq) Reset()

func (*EditReq) String

func (x *EditReq) String() string

func (*EditReq) Validate

func (this *EditReq) Validate() error

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) Descriptor() ([]byte, []int)

Deprecated: Use FollowReq.ProtoReflect.Descriptor instead.

func (*FollowReq) GetId

func (x *FollowReq) GetId() uint64

func (*FollowReq) ProtoMessage

func (*FollowReq) ProtoMessage()

func (*FollowReq) ProtoReflect

func (x *FollowReq) ProtoReflect() protoreflect.Message

func (*FollowReq) Reset

func (x *FollowReq) Reset()

func (*FollowReq) String

func (x *FollowReq) String() string

func (*FollowReq) Validate

func (this *FollowReq) Validate() error

type Gender

type Gender int32

用户性别

const (
	GenderPlaceholder Gender = 0
	GenderUnfilled    Gender = 1
	GenderMale        Gender = 2
	GenderFemale      Gender = 3
)

func (Gender) Descriptor

func (Gender) Descriptor() protoreflect.EnumDescriptor

func (Gender) Enum

func (x Gender) Enum() *Gender

func (Gender) EnumDescriptor deprecated

func (Gender) EnumDescriptor() ([]byte, []int)

Deprecated: Use Gender.Descriptor instead.

func (Gender) MarshalGQL

func (x Gender) MarshalGQL(w io.Writer)

func (Gender) Number

func (x Gender) Number() protoreflect.EnumNumber

func (Gender) OrigString

func (x Gender) OrigString() string

func (Gender) String

func (x Gender) String() string

func (Gender) Type

func (Gender) Type() protoreflect.EnumType

func (*Gender) UnmarshalGQL

func (x *Gender) UnmarshalGQL(v interface{}) error

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) Descriptor() ([]byte, []int)

Deprecated: Use LoginRep.ProtoReflect.Descriptor instead.

func (*LoginRep) GetToken

func (x *LoginRep) GetToken() string

func (*LoginRep) GetUser

func (x *LoginRep) GetUser() *UserBaseInfo

func (*LoginRep) ProtoMessage

func (*LoginRep) ProtoMessage()

func (*LoginRep) ProtoReflect

func (x *LoginRep) ProtoReflect() protoreflect.Message

func (*LoginRep) Reset

func (x *LoginRep) Reset()

func (*LoginRep) String

func (x *LoginRep) String() string

func (*LoginRep) Validate

func (this *LoginRep) Validate() error

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) Descriptor() ([]byte, []int)

Deprecated: Use LoginReq.ProtoReflect.Descriptor instead.

func (*LoginReq) GetInput

func (x *LoginReq) GetInput() string

func (*LoginReq) GetPassword

func (x *LoginReq) GetPassword() string

func (*LoginReq) GetVCode

func (x *LoginReq) GetVCode() string

func (*LoginReq) ProtoMessage

func (*LoginReq) ProtoMessage()

func (*LoginReq) ProtoReflect

func (x *LoginReq) ProtoReflect() protoreflect.Message

func (*LoginReq) Reset

func (x *LoginReq) Reset()

func (*LoginReq) String

func (x *LoginReq) String() string

func (*LoginReq) Validate

func (this *LoginReq) Validate() error

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetCode

func (x *Response) GetCode() uint32

func (*Response) GetMsg

func (x *Response) GetMsg() string

func (*Response) GetRes

func (m *Response) GetRes() isResponse_Res

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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

func (x *Resume) CmpKey() uint64

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) Descriptor() ([]byte, []int)

Deprecated: Use Resume.ProtoReflect.Descriptor instead.

func (*Resume) GetCompany

func (x *Resume) GetCompany() string

func (*Resume) GetDepartment

func (x *Resume) GetDepartment() string

func (*Resume) GetEndTime

func (x *Resume) GetEndTime() string

func (*Resume) GetId

func (x *Resume) GetId() uint64

func (*Resume) GetRemark

func (x *Resume) GetRemark() string

func (*Resume) GetStartTime

func (x *Resume) GetStartTime() string

func (*Resume) GetStatus

func (x *Resume) GetStatus() uint32

func (*Resume) GetTitle

func (x *Resume) GetTitle() string

func (*Resume) GetType

func (x *Resume) GetType() uint32

func (*Resume) GetUserId

func (x *Resume) GetUserId() uint64

func (*Resume) ProtoMessage

func (*Resume) ProtoMessage()

func (*Resume) ProtoReflect

func (x *Resume) ProtoReflect() protoreflect.Message

func (*Resume) Reset

func (x *Resume) Reset()

func (*Resume) String

func (x *Resume) String() string

type Role

type Role int32

用户角色

const (
	PlaceholderRole Role = 0
	RoleNormal      Role = 1
	RoleAdmin       Role = 2
	RoleSuperAdmin  Role = 3
)

func (Role) Descriptor

func (Role) Descriptor() protoreflect.EnumDescriptor

func (Role) Enum

func (x Role) Enum() *Role

func (Role) EnumDescriptor deprecated

func (Role) EnumDescriptor() ([]byte, []int)

Deprecated: Use Role.Descriptor instead.

func (Role) MarshalGQL

func (x Role) MarshalGQL(w io.Writer)

func (Role) Number

func (x Role) Number() protoreflect.EnumNumber

func (Role) OrigString

func (x Role) OrigString() string

func (Role) String

func (x Role) String() string

func (Role) Type

func (Role) Type() protoreflect.EnumType

func (*Role) UnmarshalGQL

func (x *Role) UnmarshalGQL(v interface{}) error

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) Descriptor() ([]byte, []int)

Deprecated: Use SignupReq.ProtoReflect.Descriptor instead.

func (*SignupReq) GetGender

func (x *SignupReq) GetGender() Gender

func (*SignupReq) GetMail

func (x *SignupReq) GetMail() string

func (*SignupReq) GetName

func (x *SignupReq) GetName() string

func (*SignupReq) GetPassword

func (x *SignupReq) GetPassword() string

func (*SignupReq) GetPhone

func (x *SignupReq) GetPhone() string

func (*SignupReq) GetVCode

func (x *SignupReq) GetVCode() string

func (*SignupReq) ProtoMessage

func (*SignupReq) ProtoMessage()

func (*SignupReq) ProtoReflect

func (x *SignupReq) ProtoReflect() protoreflect.Message

func (*SignupReq) Reset

func (x *SignupReq) Reset()

func (*SignupReq) String

func (x *SignupReq) String() string

func (*SignupReq) Validate

func (this *SignupReq) Validate() error

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) OauthToken

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) ActionLogList

func (UnimplementedUserServiceServer) Active

func (UnimplementedUserServiceServer) AuthInfo

func (UnimplementedUserServiceServer) BaseList

func (UnimplementedUserServiceServer) DelFollow

func (UnimplementedUserServiceServer) EasySignup

func (UnimplementedUserServiceServer) Edit

func (UnimplementedUserServiceServer) Follow

func (UnimplementedUserServiceServer) ForgetPassword

func (UnimplementedUserServiceServer) Info

func (UnimplementedUserServiceServer) Login

func (UnimplementedUserServiceServer) Logout

func (UnimplementedUserServiceServer) ResetPassword

func (UnimplementedUserServiceServer) SendVerifyCode

func (UnimplementedUserServiceServer) Signup

func (UnimplementedUserServiceServer) SignupVerify

func (UnimplementedUserServiceServer) VerifyCode

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) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAccount

func (x *User) GetAccount() string

func (*User) GetActivatedAt

func (x *User) GetActivatedAt() string

func (*User) GetAddress

func (x *User) GetAddress() string

func (*User) GetAvatarUrl

func (x *User) GetAvatarUrl() string

func (*User) GetBirthday

func (x *User) GetBirthday() string

func (*User) GetCoverUrl

func (x *User) GetCoverUrl() string

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() string

func (*User) GetDeletedAt

func (x *User) GetDeletedAt() string

func (*User) GetGender

func (x *User) GetGender() Gender

func (*User) GetId

func (x *User) GetId() uint64

func (*User) GetIdNo

func (x *User) GetIdNo() string

func (*User) GetIntro

func (x *User) GetIntro() string

func (*User) GetMail

func (x *User) GetMail() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetPassword

func (x *User) GetPassword() string

func (*User) GetPhone

func (x *User) GetPhone() string

func (*User) GetRealName

func (x *User) GetRealName() string

func (*User) GetRole

func (x *User) GetRole() Role

func (*User) GetSignature

func (x *User) GetSignature() string

func (*User) GetStatus

func (x *User) GetStatus() UserStatus

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

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
const (
	UserErrPlaceholder  UserErr = 0
	UserErrLogin        UserErr = 1000
	UserErrNoActive     UserErr = 1001
	UserErrNoAuthority  UserErr = 1002
	UserErrLoginTimeout UserErr = 1003
	UserErrInvalidToken UserErr = 1004
	UserErrNoLogin      UserErr = 1005
)

func (UserErr) Descriptor

func (UserErr) Descriptor() protoreflect.EnumDescriptor

func (UserErr) Enum

func (x UserErr) Enum() *UserErr

func (UserErr) EnumDescriptor deprecated

func (UserErr) EnumDescriptor() ([]byte, []int)

Deprecated: Use UserErr.Descriptor instead.

func (UserErr) ErrRep

func (x UserErr) ErrRep() *errorcode.ErrRep

func (UserErr) Error

func (x UserErr) Error() string

func (UserErr) ErrorLog

func (x UserErr) ErrorLog(err error) error

func (UserErr) GRPCStatus

func (x UserErr) GRPCStatus() *status.Status

func (UserErr) MarshalGQL

func (x UserErr) MarshalGQL(w io.Writer)

func (UserErr) Message

func (x UserErr) Message(msg string) error

func (UserErr) Number

func (x UserErr) Number() protoreflect.EnumNumber

func (UserErr) OrigString

func (x UserErr) OrigString() string

func (UserErr) String

func (x UserErr) String() string

func (UserErr) Type

func (UserErr) Type() protoreflect.EnumType

func (*UserErr) UnmarshalGQL

func (x *UserErr) UnmarshalGQL(v interface{}) error

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) Descriptor() ([]byte, []int)

Deprecated: Use UserExt.ProtoReflect.Descriptor instead.

func (*UserExt) GetArticleCount

func (x *UserExt) GetArticleCount() uint64

func (*UserExt) GetCollectCount

func (x *UserExt) GetCollectCount() uint64

func (*UserExt) GetDiaryBookCount

func (x *UserExt) GetDiaryBookCount() uint64

func (*UserExt) GetDiaryCount

func (x *UserExt) GetDiaryCount() uint64

func (*UserExt) GetFavoritesCount

func (x *UserExt) GetFavoritesCount() uint64

func (*UserExt) GetFollowCount

func (x *UserExt) GetFollowCount() uint64

func (*UserExt) GetFollowedCount

func (x *UserExt) GetFollowedCount() uint64

func (*UserExt) GetId

func (x *UserExt) GetId() uint64

func (*UserExt) GetLastActivatedAt

func (x *UserExt) GetLastActivatedAt() string

func (*UserExt) GetMomentCount

func (x *UserExt) GetMomentCount() uint64

func (*UserExt) GetScore

func (x *UserExt) GetScore() uint64

func (*UserExt) ProtoMessage

func (*UserExt) ProtoMessage()

func (*UserExt) ProtoReflect

func (x *UserExt) ProtoReflect() protoreflect.Message

func (*UserExt) Reset

func (x *UserExt) Reset()

func (*UserExt) String

func (x *UserExt) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use UserRep.ProtoReflect.Descriptor instead.

func (*UserRep) GetUerExt

func (x *UserRep) GetUerExt() *UserExt

func (*UserRep) GetUser

func (x *UserRep) GetUser() *User

func (*UserRep) ProtoMessage

func (*UserRep) ProtoMessage()

func (*UserRep) ProtoReflect

func (x *UserRep) ProtoReflect() protoreflect.Message

func (*UserRep) Reset

func (x *UserRep) Reset()

func (*UserRep) String

func (x *UserRep) String() string

func (*UserRep) Validate

func (this *UserRep) Validate() error

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.

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) UnmarshalGQL

func (x *UserStatus) UnmarshalGQL(v interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL