go-common/app/job/main/videoup-report/model/archive/addit.go

28 lines
525 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package archive
const (
//UpFromPGC pgc
UpFromPGC = 1
//UpFromPGCSecret pgc secret
UpFromPGCSecret = 5
//UpFromCoopera pgc cooperate
UpFromCoopera = 6
)
// Addit addit struct
type Addit struct {
ID int64
Aid int64
Source string
RedirectURL string
MissionID int64
UpFrom int8
OrderID int
Dynamic string
}
//IsPGC is archive from pgc
func (addit *Addit) IsPGC() bool {
return addit.UpFrom == UpFromPGC || addit.UpFrom == UpFromPGCSecret || addit.UpFrom == UpFromCoopera
}