Files
easygoadmin/app/dto/link.go
yaoyilin 1b36bd8fbe feat: 初始化项目
初始化项目
2022-10-31 22:29:16 +08:00

54 lines
2.3 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 友链Dto
* @author
* @since 2021/11/13
* @File : link
*/
package dto
// 分页查询条件
type LinkPageReq struct {
Name string `form:"name"` // 友链名称
Type int `form:"type"` // 友链类型
Platform int `form:"platform"` // 投放平台
Page int `form:"page"` // 页码
Limit int `form:"limit"` // 每页数
}
// 添加友链
type LinkAddReq struct {
Name string `form:"name" binding:"required"` // 友链名称
Type string `form:"type" binding:"required"` // 类型1友情链接 2合作伙伴
Url string `form:"url"` // 友链地址
ItemId string `form:"itemId"` // 站点ID
CateId string `form:"cateId"` // 栏目ID
Platform string `form:"platform" binding:"required"` // 平台1PC站 2WAP站 3微信小程序 4APP应用
Form string `form:"form" binding:"required"` // 友链形式1文字链接 2图片链接
Image string `form:"image"` // 友链图片
Status string `form:"status" binding:"required"` // 状态1在用 2停用
Sort string `form:"sort"` // 显示顺序
Note string `form:"note"` // 备注
}
// 修改友链
type LinkUpdateReq struct {
Id string `form:"id" binding:"required"`
Name string `form:"name" binding:"required"` // 友链名称
Type string `form:"type" binding:"required"` // 类型1友情链接 2合作伙伴
Url string `form:"url"` // 友链地址
ItemId string `form:"itemId"` // 站点ID
CateId string `form:"cateId"` // 栏目ID
Platform string `form:"platform" binding:"required"` // 平台1PC站 2WAP站 3微信小程序 4APP应用
Form string `form:"form" binding:"required"` // 友链形式1文字链接 2图片链接
Image string `form:"image"` // 友链图片
Status string `form:"status" binding:"required"` // 状态1在用 2停用
Sort string `form:"sort"` // 显示顺序
Note string `form:"note"` // 备注
}
// 设置状态
type LinkStatusReq struct {
Id string `form:"id" binding:"required"`
Status string `form:"status" binding:"required"`
}