index

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Provides = wire.NewSet(
	wire.Struct(new(Controller), "*"),
	wire.Struct(new(Service), "*"),
)

Functions

This section is empty.

Types

type Controller

type Controller struct {
	AppService *Service
}

func (*Controller) GetRefreshCode

func (x *Controller) GetRefreshCode(ctx context.Context, c *app.RequestContext)

GetRefreshCode 获取刷新随机验证 @router /code [GET]

func (*Controller) GetUser

func (x *Controller) GetUser(ctx context.Context, c *app.RequestContext)

GetUser 获取授权用户信息 @router /user [GET]

func (*Controller) Index

func (x *Controller) Index(ctx context.Context, c *app.RequestContext)

Index 入口 @router / [GET]

func (*Controller) SetUser

func (x *Controller) SetUser(ctx context.Context, c *app.RequestContext)

SetUser 设置授权用户信息 @router /user [PATCH]

type Service

type Service struct {
	Values *common.Values
	Mongo  *mongo.Client
	Db     *mongo.Database
	Redis  *redis.Client
	Users  *users.Service
}

func (*Service) Index added in v0.0.28

func (x *Service) Index() time.Time

func (*Service) Login

func (x *Service) Login(ctx context.Context, identity string, password string) (user model.User, err error)

Login 登录

Jump to

Keyboard shortcuts

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