切换导航条
此项目
正在载入...
登录
allied-creation
/
performance
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
郑周
2 years ago
提交
65c60b810c909ae8f50f1b4be2160d97ade7cfac
2 个父辈
613f997e
88346ece
Merge branch 'dev-zhengzhou' into test
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
25 行增加
和
0 行删除
pkg/application/import/command/import_verify.go
pkg/application/import/command/import_verify.go
0 → 100644
查看文件 @
65c60b8
package
command
import
"github.com/beego/beego/v2/core/validation"
type
VerifyKeyCommand
struct
{
VerifyKey
string
`cname:"校验码" json:"key"`
}
func
(
in
*
VerifyKeyCommand
)
Valid
(
validation
*
validation
.
Validation
)
{
if
len
(
in
.
VerifyKey
)
==
0
{
validation
.
SetError
(
"key"
,
"校验码无效"
)
return
}
}
type
ErrorI
struct
{
FileName
string
`cname:"文件名称" json:"fileName"`
Message
string
`cname:"错误消息" json:"message"`
}
type
OutResult
struct
{
Status
string
`cname:"状态" json:"status"`
Success
[]
ErrorI
`cname:"成功消息" json:"success"`
Failure
[]
ErrorI
`cname:"错误消息" json:"failure"`
}
...
...
请
注册
或
登录
后发表评论