mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-15 13:43:48 +08:00
gf2版本同步升级到v2.0.4,修复验证器兼容问题
This commit is contained in:
@@ -13,22 +13,22 @@ import (
|
||||
|
||||
// 获取lang信息
|
||||
type BaseLangReq struct {
|
||||
g.Meta `path:"/base/lang" method:"get" tags:"基础" summary:"获取lang信息"`
|
||||
L string `json:"l" v:"required#语言不能为空" description:"语言"`
|
||||
g.Meta `path:"/base/lang" method:"get" tags:"基础接口" summary:"获取lang信息"`
|
||||
L string `json:"l" v:"required#语言不能为空" dc:"语言"`
|
||||
}
|
||||
type BaseLangRes struct {
|
||||
}
|
||||
|
||||
// 获取登录验证码
|
||||
type IpLocationReq struct {
|
||||
g.Meta `path:"/base/ip_location" method:"get" tags:"基础" summary:"获取IP归属地信息"`
|
||||
Ip string `json:"ip" v:"required#ip不能为空" description:"ipv4地址"`
|
||||
g.Meta `path:"/base/ip_location" method:"get" tags:"基础接口" summary:"获取IP归属地信息"`
|
||||
Ip string `json:"ip" v:"required#ip不能为空" dc:"ipv4地址"`
|
||||
}
|
||||
type IpLocationRes struct {
|
||||
com.IpLocationData
|
||||
}
|
||||
|
||||
type ExportReq struct {
|
||||
g.Meta `path:"/base/export" method:"get" tags:"字典" summary:"导出字典类型"`
|
||||
g.Meta `path:"/base/export" method:"get" tags:"字典接口" summary:"导出字典类型"`
|
||||
}
|
||||
type ExportRes struct{}
|
||||
|
||||
Reference in New Issue
Block a user