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
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
Click to show internal directories.
Click to hide internal directories.