-
-
Notifications
You must be signed in to change notification settings - Fork 201
/
productVersion.go
40 lines (35 loc) · 2.42 KB
/
productVersion.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
Nging is a toolbox for webmasters
Copyright (C) 2018-present Wenhui Shen <swh@admpub.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
package license
type ProductVersion struct {
Id uint64 `comment:"ID" json:"id" xml:"id"`
ProductId uint64 `comment:"产品ID" json:"product_id" xml:"product_id"`
Version string `comment:"版本号(格式1.0.1)" json:"version" xml:"version"`
Type string `comment:"版本类型(stable-稳定版;beta-公测版;alpha-内测版)" json:"type" xml:"type"`
Os string `comment:"支持的操作系统(多个用逗号分隔),留空表示不限制" json:"os" xml:"os"`
Arch string `comment:"硬件架构(多个用逗号分隔),留空表示不限制" json:"arch" xml:"arch"`
ReleasedAt uint `comment:"发布时间" json:"released_at" xml:"released_at"`
Created uint `comment:"创建时间" json:"created" xml:"created"`
Updated uint `comment:"修改时间" json:"updated" xml:"updated"`
Disabled string `comment:"是否禁用" json:"disabled" xml:"disabled"`
Audited string `comment:"是否已审核" json:"audited" xml:"audited"`
ForceUpgrade string `comment:"是否强行升级为此版本" json:"force_upgrade" xml:"force_upgrade"`
Description string `comment:"发布说明" json:"description" xml:"description"`
Remark string `comment:"备注" json:"remark" xml:"remark"`
DownloadUrl string `comment:"下载网址" json:"download_url" xml:"download_url"`
Sign string `comment:"下载后验证签名(多个签名之间用逗号分隔)" json:"sign" xml:"sign"`
DownloadUrlOther string `comment:"备用下载网址" json:"download_url_other" xml:"download_url_other"`
DownloadedPath string `comment:"自动下载保存路径" json:"-" xml:"-"`
}