60 lines
2.4 KiB
Go
60 lines
2.4 KiB
Go
|
package entity
|
||
|
|
||
|
import "errors"
|
||
|
|
||
|
var (
|
||
|
ErrNotFound = errors.New("not found")
|
||
|
)
|
||
|
|
||
|
//状态信息
|
||
|
type Status struct {
|
||
|
Value string `json:"value" bson:"value"`
|
||
|
Reason string `json:"reason" bson:"reason"`
|
||
|
LastUpdated int64 `json:"lastUpdated" bson:"lastUpdated"`
|
||
|
ModifiedBy string `json:"modifiedBy" bson:"modifiedBy"`
|
||
|
}
|
||
|
|
||
|
type SpecificStatus struct {
|
||
|
Reason string `json:"reason" bson:"reson"`
|
||
|
LastUpdated int64 `json:"lastUpdated" bson:"lastUpdated"`
|
||
|
ModifiedBy string `json:"modifiedBy" bson:"modifiedBy"`
|
||
|
}
|
||
|
|
||
|
type UnpublishedStatus struct {
|
||
|
Reason string `json:"reason" bson:"reson"`
|
||
|
LastUpdated int64 `json:"lastUpdated" bson:"lastUpdated"`
|
||
|
ModifiedBy string `json:"modifiedBy" bson:"modifiedBy"`
|
||
|
Type string `json:"type" bson:"type"`
|
||
|
}
|
||
|
|
||
|
type CustomDataSourceFile struct {
|
||
|
FileMd5 string `bson:"fileMd5" json:"fileMd5"`
|
||
|
Name string `bson:"name" json:"name"`
|
||
|
SourceFileUrl string `bson:"sourceFileUrl" json:"sourceFileUrl"`
|
||
|
UploadDate int64 `bson:"uploadDate" json:"uploadDate"`
|
||
|
Url string `bson:"url" json:"url"`
|
||
|
EncryptedUrl string `bson:"encryptedUrl" json:"encryptedUrl"`
|
||
|
EncryptedFileMd5 string `bson:"encryptedFileMd5" json:"encryptedFileMd5"`
|
||
|
EncryptedFileSha256 string `bson:"encryptedFileSha256" json:"encryptedFileSha256"`
|
||
|
BasicPackVer string `bson:"basicPackVer" json:"basicPackVer"`
|
||
|
Packages []Package `bson:"packages"`
|
||
|
EncryptPackages []Package `bson:"encryptPackages"`
|
||
|
}
|
||
|
|
||
|
type Package struct {
|
||
|
Root string `json:"root" bson:"root"`
|
||
|
Name string `json:"name" bson:"name"`
|
||
|
Pages []string `json:"pages" bson:"pages"`
|
||
|
Independent bool `json:"independent" bson:"independent"`
|
||
|
Filename string `json:"filename" bson:"filename"`
|
||
|
FileUrl string `json:"fileUrl" bson:"fileUrl"`
|
||
|
FileMd5 string `json:"fileMd5" bson:"fileMd5"`
|
||
|
}
|
||
|
|
||
|
type CustomDataInfo struct {
|
||
|
DetailDescription string `bson:"detailDescription" json:"detailDescription"` //小程序详细描述
|
||
|
SourceFile []CustomDataSourceFile `bson:"sourceFile" json:"sourceFile"`
|
||
|
VersionDescription string `bson:"versionDescription" json:"versionDescription"` //小程序编译包版本描述
|
||
|
Developer string `bson:"developer" json:"developer"` //开发者
|
||
|
}
|