dto

package
v0.0.0-...-cccf1c7 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SysAdminInfoOutput

type SysAdminInfoOutput struct {
	Username    string             `json:"username" form:"username" comment:"用户登录名" example:"" validate:""`
	Avatar      string             `json:"avatar" form:"avatar" comment:"用户头像" example:"" validate:""`
	UUID        uuid.UUID          `json:"userId" form:"userId" comment:"用户ID" example:"" validate:""`
	HomePath    string             `json:"homePath" form:"homePath" comment:"用户主页" example:"" validate:""`
	RealName    string             `json:"realName" form:"realName" comment:"用户全名" example:"" validate:""`
	NickName    string             `json:"nickName" form:"nickName" comment:"用户昵称" example:"" validate:""`
	Token       string             `json:"token" form:"token" comment:"token" example:"" validate:""`
	Role        SysAdminRoleOutput `json:"role" form:"role" comment:"角色组" example:"" validate:""`
	Description string             `json:"desc" form:"desc" comment:"用户描述" example:"" validate:""`
}

type SysAdminListInput

type SysAdminListInput struct {
	Page  int    `json:"page" form:"page" comment:"页数" example:"1" validate:"valNotNull"`
	Limit int    `json:"pageSize" form:"pageSize" comment:"每页条数" example:"10" validate:"valNotNull"`
	Info  string `json:"info" form:"info" comment:"关键字" example:"" validate:""`
}

func (*SysAdminListInput) BindingValidParams

func (params *SysAdminListInput) BindingValidParams(c *gin.Context) error

type SysAdminListOnceInfoOutput

type SysAdminListOnceInfoOutput struct {
	ID         int       `json:"id" form:"id" comment:"用户ID"  validate:""`
	Account    string    `json:"account" form:"account" comment:"用户名"  validate:""`
	Email      string    `json:"email" form:"email" comment:"用户邮箱"  validate:""`
	Nickname   string    `json:"nickname" form:"nickname" comment:"用户昵称"  validate:""`
	Role       int       `json:"role" form:"role" comment:"用户角色"  validate:""`
	CreateTime time.Time `json:"createTime" form:"createTime" comment:"用户创建时间"  validate:""`
	Remark     string    `json:"remark" form:"remark" comment:"备注"  validate:""`
	Status     int       `json:"status" form:"status" comment:"用户状态"  validate:""`
}

type SysAdminListOutput

type SysAdminListOutput struct {
	Total int64                        `json:"total" form:"total" comment:"总条数"  validate:""`
	Items []SysAdminListOnceInfoOutput `json:"items" form:"items" comment:"账号数据"  validate:""`
}

type SysAdminLoginInput

type SysAdminLoginInput struct {
	Username string `json:"username" form:"username" comment:"用户名" example:"admin" validate:"valNotNull"`
	Password string `json:"password"  form:"password" comment:"密码" example:"123" validate:"valNotNull"`
}

func (*SysAdminLoginInput) BindingValidParams

func (params *SysAdminLoginInput) BindingValidParams(c *gin.Context) error

type SysAdminLoginOutput

type SysAdminLoginOutput struct {
	UserId int                `json:"userId" form:"userId" comment:"用户ID" validate:""`
	Token  string             `json:"token" form:"token" comment:"token" validate:""`
	Role   SysAdminRoleOutput `json:"role" form:"role" comment:"角色组" validate:""`
}

type SysAdminRoleOutput

type SysAdminRoleOutput struct {
	RoleName string `json:"roleName" form:"roleName" comment:"角色名" example:"" validate:""`
	Value    string `json:"value"  form:"value" comment:"角色" example:"" validate:""`
}

type SysSystemAccountListInput

type SysSystemAccountListInput struct {
	Page     int `json:"page" form:"page" comment:"页数" example:"" validate:""`
	PageSize int `json:"pageSize" form:"pageSize" comment:"每页条数" example:"" validate:""`
}

type SysSystemAccountListOutput

type SysSystemAccountListOutput struct {
	Total int                      `json:"total" form:"total" comment:"总条数" example:"" validate:""`
	Items []SysSystemAccountOutput `json:"items" form:"items" comment:"账号数据" validate:""`
}

type SysSystemAccountOutput

type SysSystemAccountOutput struct {
	ID         string `json:"id" form:"id" comment:"用户ID" example:"" validate:""`
	Account    string `json:"account" form:"account" comment:"用户名" example:"" validate:""`
	Email      string `json:"email" form:"email" comment:"用户邮箱" example:"" validate:""`
	Nickname   string `json:"nickname" form:"nickname" comment:"用户昵称" example:"" validate:""`
	Role       int    `json:"role" form:"role" comment:"用户角色" example:"" validate:""`
	CreateTime string `json:"createTime" form:"createTime" comment:"用户创建时间" example:"" validate:""`
	Remark     string `json:"remark" form:"remark" comment:"备注" example:"" validate:""`
	Status     int    `json:"status" form:"status" comment:"用户状态" example:"" validate:""`
}

type SysUserLoginInput

type SysUserLoginInput struct {
	Username string `json:"username" form:"username" comment:"用户名" example:"admin" validate:"valNotNull"`
	Password string `json:"password"  form:"password" comment:"密码" example:"123" validate:"valNotNull"`
}

func (*SysUserLoginInput) BindingValidParams

func (params *SysUserLoginInput) BindingValidParams(c *gin.Context) error

type SysUserLoginOutput

type SysUserLoginOutput struct {
	Token string `json:"token" form:"token" comment:"token" example:"" validate:""`
	Role  string `json:"role" form:"role" comment:"角色组" example:"" validate:""`
}

Jump to

Keyboard shortcuts

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