Documentation
¶
Index ¶
- Variables
- func LuosimaoVerify(vCode string) error
- type OauthService
- type UserService
- func (*UserService) ActionLogList(ctx context.Context, req *model.ActionLogListReq) (*model.ActionLogListRep, error)
- func (u *UserService) Active(ctx context.Context, req *model.ActiveReq) (*model.LoginRep, error)
- func (*UserService) Add(ctx *contexti.Ctx, req *model.SignupReq) (*response.TinyRep, error)
- func (*UserService) Addv(ctx *contexti.Ctx, req *response.TinyRep) (*response.TinyRep, error)
- func (u *UserService) AuthInfo(ctx context.Context, req *empty.Empty) (*model.UserAuthInfo, error)
- func (*UserService) BaseList(ctx context.Context, req *model.BaseListReq) (*model.BaseListRep, error)
- func (u *UserService) DelFollow(ctx context.Context, req *user.FollowReq) (*user.BaseListRep, error)
- func (u *UserService) EasySignup(ctx context.Context, req *model.SignupReq) (*model.LoginRep, error)
- func (u *UserService) Edit(ctx context.Context, req *model.EditReq) (*empty.Empty, error)
- func (*UserService) FiberService() (string, string, []fiber.Handler)
- func (u *UserService) Follow(ctx context.Context, req *user.FollowReq) (*empty.Empty, error)
- func (u *UserService) ForgetPassword(ctx context.Context, req *model.LoginReq) (*response.TinyRep, error)
- func (*UserService) GetTest(ctx context.Context, req *request.Object) (*model.User, error)
- func (u *UserService) Info(ctx context.Context, req *request.Object) (*model.UserRep, error)
- func (u *UserService) Login(ctx context.Context, req *model.LoginReq) (*model.LoginRep, error)
- func (u *UserService) Logout(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (u *UserService) ResetPassword(ctx context.Context, req *model.ResetPasswordReq) (*response.TinyRep, error)
- func (*UserService) Service() (string, string, []http.HandlerFunc)
- func (u *UserService) Signup(ctx context.Context, req *model.SignupReq) (*empty.Empty, error)
- func (*UserService) SignupVerify(ctx context.Context, req *model.SingUpVerifyReq) (*empty.Empty, error)
- func (u *UserService) VerifyCode(ctx context.Context, req *empty.Empty) (*wrappers.StringValue, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ExportAuth = auth
Functions ¶
func LuosimaoVerify ¶
Types ¶
type OauthService ¶
type OauthService struct { Server *oauth.Server ClientStore *oauth.ClientStore user.UnimplementedOauthServiceServer }
func GetOauthService ¶
func GetOauthService() *OauthService
func (*OauthService) OauthAuthorize ¶
func (u *OauthService) OauthAuthorize(ctx context.Context, req *goauth.OauthReq) (*response.HttpResponse, error)
func (*OauthService) OauthToken ¶
func (u *OauthService) OauthToken(ctx context.Context, req *goauth.OauthReq) (*response.HttpResponse, error)
type UserService ¶
type UserService struct {
model.UnimplementedUserServiceServer
}
func GetUserService ¶
func GetUserService() *UserService
func (*UserService) ActionLogList ¶
func (*UserService) ActionLogList(ctx context.Context, req *model.ActionLogListReq) (*model.ActionLogListRep, error)
func (*UserService) AuthInfo ¶
func (u *UserService) AuthInfo(ctx context.Context, req *empty.Empty) (*model.UserAuthInfo, error)
func (*UserService) BaseList ¶
func (*UserService) BaseList(ctx context.Context, req *model.BaseListReq) (*model.BaseListRep, error)
func (*UserService) DelFollow ¶
func (u *UserService) DelFollow(ctx context.Context, req *user.FollowReq) (*user.BaseListRep, error)
取消关注
func (*UserService) EasySignup ¶
func (*UserService) FiberService ¶
func (*UserService) FiberService() (string, string, []fiber.Handler)
func (*UserService) ForgetPassword ¶
func (*UserService) ResetPassword ¶
func (u *UserService) ResetPassword(ctx context.Context, req *model.ResetPasswordReq) (*response.TinyRep, error)
func (*UserService) Service ¶
func (*UserService) Service() (string, string, []http.HandlerFunc)
func (*UserService) SignupVerify ¶
func (*UserService) SignupVerify(ctx context.Context, req *model.SingUpVerifyReq) (*empty.Empty, error)
func (*UserService) VerifyCode ¶
func (u *UserService) VerifyCode(ctx context.Context, req *empty.Empty) (*wrappers.StringValue, error)
Click to show internal directories.
Click to hide internal directories.