domain

package
v0.0.0-...-0025a43 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppGuardName = "app"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomClaims

type CustomClaims struct {
	Key string `json:"key,omitempty"`
	jwt.RegisteredClaims
}

CustomClaims 自定义 Claims

type JwtUser

type JwtUser interface {
	GetUid() string
}

type Media

type Media struct {
	ID       uint64 `json:"id"`
	DiskType string `json:"-"`
	SrcType  int8   `json:"-"`
	Src      string `json:"src"`
	Url      string `json:"url"`
}

func (*Media) SetUrl

func (dm *Media) SetUrl(storage *compo.Storage) string

type TokenOutPut

type TokenOutPut struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
}

type User

type User struct {
	ID        uint64    `json:"id"`
	Name      string    `json:"name"`
	Mobile    string    `json:"mobile"`
	Password  string    `json:"-"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

func (*User) GetUid

func (u *User) GetUid() string

Jump to

Keyboard shortcuts

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