Ai
1 Star 0 Fork 0

写意/user_api

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
user.go 569 Bytes
Copy Edit Raw Blame History
写意 authored 2021-12-29 17:43 +08:00 . 增加接口校验功能
package api_structure
type AddUserForm struct {
Account string `form:"account" json:"account" binding:"required"`
PassWord string `form:"password" json:"password" binding:"required"`
UserName string `form:"username" json:"username" binding:"required"`
Departments string `form:"departments" json:"departments"`
Mobile string `form:"mobile" json:"mobile" binding:"required,min=8,max=14"`
Role int64 `form:"role" json:"role" binding:"required"`
Addr string `form:"addr" json:"addr"`
Email string `form:"email" json:"email"`
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/www.topwhere.cn/user_api.git
git@gitee.com:www.topwhere.cn/user_api.git
www.topwhere.cn
user_api
user_api
master

Search