service

package
Version: 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: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExportAuth = auth

Functions

func LuosimaoVerify

func LuosimaoVerify(vCode string) error

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

func (u *UserService) Active(ctx context.Context, req *model.ActiveReq) (*model.LoginRep, error)

func (*UserService) Add

func (*UserService) Addv

func (*UserService) Addv(ctx *contexti.Ctx, req *response.TinyRep) (*response.TinyRep, error)

func (*UserService) AuthInfo

func (u *UserService) AuthInfo(ctx context.Context, req *empty.Empty) (*model.UserAuthInfo, error)

func (*UserService) BaseList

func (*UserService) DelFollow

func (u *UserService) DelFollow(ctx context.Context, req *user.FollowReq) (*user.BaseListRep, error)

取消关注

func (*UserService) EasySignup

func (u *UserService) EasySignup(ctx context.Context, req *model.SignupReq) (*model.LoginRep, error)

func (*UserService) Edit

func (u *UserService) Edit(ctx context.Context, req *model.EditReq) (*empty.Empty, error)

func (*UserService) FiberService

func (*UserService) FiberService() (string, string, []fiber.Handler)

func (*UserService) Follow

func (u *UserService) Follow(ctx context.Context, req *user.FollowReq) (*empty.Empty, error)

关注

func (*UserService) ForgetPassword

func (u *UserService) ForgetPassword(ctx context.Context, req *model.LoginReq) (*response.TinyRep, error)

func (*UserService) GetTest

func (*UserService) GetTest(ctx context.Context, req *request.Object) (*model.User, error)

func (*UserService) Info

func (u *UserService) Info(ctx context.Context, req *request.Object) (*model.UserRep, error)

func (*UserService) Login

func (u *UserService) Login(ctx context.Context, req *model.LoginReq) (*model.LoginRep, error)

func (*UserService) Logout

func (u *UserService) Logout(ctx context.Context, req *empty.Empty) (*empty.Empty, error)

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

func (u *UserService) Signup(ctx context.Context, req *model.SignupReq) (*empty.Empty, error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL