models

package
v0.0.0-...-5b4efa0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseVO

type BaseVO struct {
	Keywords string `json:"keywords,omitempty" form:"keywords"`
	Page     int64  `json:"page,omitempty" form:"page"`
	Size     int64  `json:"size,omitempty" form:"size"`
}

type JSONTime

type JSONTime struct {
	time.Time
}

JSONTime format json time field by myself

func (JSONTime) MarshalJSON

func (t JSONTime) MarshalJSON() ([]byte, error)

MarshalJSON on JSONTime format Time field with %Y-%m-%d %H:%M:%S

func (*JSONTime) Scan

func (t *JSONTime) Scan(v interface{}) error

Scan valueof time.Time

func (*JSONTime) UnmarshalJSON

func (t *JSONTime) UnmarshalJSON(data []byte) error

func (JSONTime) Value

func (t JSONTime) Value() (driver.Value, error)

Value insert timestamp into mysql need this function.

type Route

type Route struct {
	//	Name        string
	Method      string
	Pattern     string
	MiddleWare  gin.HandlersChain
	HandlerFunc gin.HandlerFunc
}

type UniversialAuthUser

type UniversialAuthUser struct {
	Id           int64     `json:"id,omitempty"`
	SocialId     string    `json:"socialId,omitempty"`
	Password     string    `json:"-"`
	Name         string    `json:"name,omitempty"`
	RoleId       int64     `json:"roleId,omitempty"`
	Email        string    `json:"email,omitempty"`
	Introduction string    `json:"introduction,omitempty"`
	Avatar       string    `json:"avatar,omitempty"`
	CreateTime   time.Time `json:"-"`
	AccessKey    string    `json:"accessKey,omitempty"`
	SecretKey    string    `json:"secretKey,omitempty"`
	Status       int       `json:"status,omitempty"`
	*jwt.StandardClaims
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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