420 Star 1.9K Fork 708

进击的皇虫 / DocHub

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
struct.go 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
TruthHun 提交于 2019-03-26 22:51 . 文档上传流程优化
//公用的model数据结构
package models
//文档上传表单结构
type FormUpload struct {
Title, Md5, Intro, Tags, Ext, Filename string
Chanel, Pid, Cid, Exist, Size, Price int
TmpFile string // 临时文件
}
//默认的SEO结构
type DefSeo struct {
Title, Keywords, Description, Sitename string
}
//这个不是数据表,这个是搜索结果的json数据解析结构
type Result struct {
Status int64 `json:"status"`
TotalFound int64 `json:"total_found"`
Total int64 `json:"total"`
Ids string `json:"ids"`
Word []string `json:"word"`
Msg string `json:"msg"`
Time float64 `json:"time"`
}
//邮箱配置
type Email struct {
Id int `orm:"column(Id)"` //主键
Username string `orm:"column(Username);default()"` //邮箱用户名
Email string `orm:"column(Email);default()"` //邮箱
Host string `orm:"column(Host);default()"` //主机
Port int `orm:"column(Port);default(25)"` //端口
Password string `orm:"column(Password);default()"` //密码
}
Go
1
https://gitee.com/truthhun/DocHub.git
git@gitee.com:truthhun/DocHub.git
truthhun
DocHub
DocHub
01033d1926ec

搜索帮助