1 Star 0 Fork 0

mq-go/bluebell

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
param.go 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
柒染 提交于 2023-10-04 12:37 . 接口优化
/*
* @Author: drowningwhale 351231768@qq.com
* @Date: 2023-09-30 14:05:09
* @LastEditors: drowningwhale 351231768@qq.com
* @LastEditTime: 2023-10-04 11:52:08
* @FilePath: \bluebell\models\param.go
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
package models
type ParamSignUp struct {
UserName string `json:"username" binding:"required"`
PassWord string `json:"password" binding:"required"`
RePassWord string `json:"re_password" binding:"required,eqfield=PassWord"`
}
type ParamLogin struct {
UserName string `json:"username" binding:"required"`
PassWord string `json:"password" binding:"required"`
}
type Vote struct {
//userID
PostId string `json:"post_id" binding:"required"`
Direction int8 `json:"direction,string" binding:"oneof=1 0 -1"`
}
type ParamPostList struct {
Page int `form:"page" binding:"required"`
PageSize int `form:"pagesize" binding:"required"`
Order string `form:"order" binding:"required"`
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mq-go/bluebell.git
git@gitee.com:mq-go/bluebell.git
mq-go
bluebell
bluebell
d993e0e507c7

搜索帮助

0d507c66 1850385 C8b1a773 1850385