server

package
v0.0.0-...-594642b Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DictDataQuery

type DictDataQuery struct {
	Label  string `form:"label" binding:"omitempty"`
	TypeId uint64 `form:"type_id"  binding:"omitempty"`
	Status int8   `form:"status" binding:"omitempty"`
	PaginationQuery
}

func (*DictDataQuery) GetPage

func (d *DictDataQuery) GetPage() ([]models.SysDictData, int, error)

type DictTypeCreate

type DictTypeCreate struct {
	Name     string `json:"name" binding:"required,max=30"`
	Type     string `json:"type" binding:"required,max=100"`
	Remark   string `json:"remark" binding:"omitempty,max=255"`
	CreateBy uint64 `json:""`
	Status   uint8  `json:"status" binding:"required,oneof=0 1"`
}

func (*DictTypeCreate) Create

func (d *DictTypeCreate) Create() (models.SysDictType, error)

type DictTypeDelect

type DictTypeDelect struct {
	Ids []int
}

func (*DictTypeDelect) BatchDelete

func (d *DictTypeDelect) BatchDelete() error

type DictTypeQuery

type DictTypeQuery struct {
	Name   string `form:"name" binding:"omitempty"`
	Id     uint64 `form:"id"  binding:"omitempty"`
	Type   string `form:"type" binding:"omitempty"`
	Status int8   `form:"status" binding:"omitempty"`
	PaginationQuery
}

func (*DictTypeQuery) Get

func (d *DictTypeQuery) Get() (models.SysDictType, error)

func (*DictTypeQuery) GetPage

func (d *DictTypeQuery) GetPage() ([]models.SysDictType, int, error)

type DictTypeUpdate

type DictTypeUpdate struct {
	Id uint64 `form:"id"  binding:"required"`
	DictTypeCreate
	UpdateBy uint64 `json:""`
}

func (*DictTypeUpdate) Update

func (d *DictTypeUpdate) Update() error

type Login

type Login struct {
	Phone    string `json:"phone"  binding:"required,len=11,phone"`    // 手机号
	Password string `json:"password"  binding:"required,min=8,max=20"` // 密码
	VCode

} //@name Login

Login user login struct

func (*Login) GetUser

func (u *Login) GetUser() (user models.SysUser, role models.SysRole, e error)

type PaginationQuery

type PaginationQuery struct {
	PageIndex int `form:"page_index" binding:"omitempty"`
	PageSize  int `form:"page_size"  binding:"omitempty"`
}

func (*PaginationQuery) GetPageIndex

func (s *PaginationQuery) GetPageIndex() int

func (*PaginationQuery) GetPageSize

func (s *PaginationQuery) GetPageSize() int

type Register

type Register struct {
	Phone    string `json:"phone" label:"手机号" binding:"required,len=11,phone"`   // 手机号
	Password string `json:"passwrod" label:"密码" binding:"required,min=8,max=20"` // 密码
	NickName string `json:"nickname" binding:"omitempty,min=5,max=12"`           // 用户昵称
	VCode

} //@name Register

Register user register struct

func (*Register) Register

func (reg *Register) Register() (err error)

type VCode

type VCode struct {
	Code string `json:"code"  binding:"required,len=5"` // 验证码
	UUID string `json:"uuid"  binding:"required"`       // 验证码唯一id

} //@name verificationCode

VCode user verification code

Jump to

Keyboard shortcuts

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