addit.go 525 B

123456789101112131415161718192021222324252627
  1. package archive
  2. const (
  3. //UpFromPGC pgc
  4. UpFromPGC = 1
  5. //UpFromPGCSecret pgc secret
  6. UpFromPGCSecret = 5
  7. //UpFromCoopera pgc cooperate
  8. UpFromCoopera = 6
  9. )
  10. // Addit addit struct
  11. type Addit struct {
  12. ID int64
  13. Aid int64
  14. Source string
  15. RedirectURL string
  16. MissionID int64
  17. UpFrom int8
  18. OrderID int
  19. Dynamic string
  20. }
  21. //IsPGC is archive from pgc
  22. func (addit *Addit) IsPGC() bool {
  23. return addit.UpFrom == UpFromPGC || addit.UpFrom == UpFromPGCSecret || addit.UpFrom == UpFromCoopera
  24. }