models

package
v0.0.0-...-71de644 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonMsg

type CommonMsg struct {
	Flag string `json:"flag"`
	Body any    `json:"body"`
}

type CountVo

type CountVo struct {
	Count int64 `form:"count" json:"count"`
}

type Delete

type Delete struct {
	ID []int64 `form:"id" json:"id"`
}

type EmailCode

type EmailCode struct {
	EmailCodeModel
}

type EmailCodeModel

type EmailCodeModel struct {
	Email string `form:"email" json:"email" validate:"required,email,min=0,max=255"`
	Code  string `form:"code" json:"code" validate:"required"`
}

type GFClaims

type GFClaims struct {
	jwt.RegisteredClaims
	UserName string `json:"userName"`
	UserId   string `json:"userId"`
}

type GlobalMsg

type GlobalMsg struct {
	Flag string `json:"flag"`
	Body any    `json:"body"`
}

type LocalTime

type LocalTime time.Time

func (*LocalTime) IsZero

func (t *LocalTime) IsZero() bool

func (LocalTime) Local

func (t LocalTime) Local() time.Time

func (LocalTime) MarshalJSON

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

func (*LocalTime) Scan

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

func (LocalTime) String

func (t LocalTime) String() string

func (*LocalTime) UnmarshalJSON

func (t *LocalTime) UnmarshalJSON(data []byte) (err error)

func (LocalTime) Value

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

type Mapping

type Mapping struct {
	MappingId   int64  `form:"mappingId" json:"mappingId"`
	MappingType string `form:"mappingType" json:"mappingType"`
}

type PageReq

type PageReq struct {
	PageNum  int `json:"pageNum"`
	PageSize int `json:"pageSize"`
}

func (*PageReq) InitPageIfAbsent

func (pageReq *PageReq) InitPageIfAbsent()

type PageResponse

type PageResponse struct {
	Total int64 `json:"total"`
	Data  any   `json:"list"`
}

type TimeRange

type TimeRange struct {
	BeginTime LocalTime `json:"beginTime"`
	EndTime   LocalTime `json:"endTime"`
}

Jump to

Keyboard shortcuts

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