1234567891011121314151617181920212223242526272829303132333435 |
- package user
- import (
- "time"
- )
- type StatusType string
- type SourceType string
- type MetaType string
- const (
- UserNoticeType MetaType = "USER_NOTICE"
- InitMetaType MetaType = "INIT"
- PendingMetaType MetaType = "PENDING"
- FinishMetaType MetaType = "FINISH"
- FailedMetaType MetaType = "FAILED"
- ReportSourceType SourceType = "REPORT"
- VideoSourceType SourceType = "VIDEO"
- AudioSourceType SourceType = "AUDIO"
- )
- // MetaInfo 表示 meta_infos 表的模型
- type MetaInfo struct {
- Id int `gorm:"primaryKey;autoIncrement;column:id"`
- Uid int `gorm:"column:uid"`
- Meta string `gorm:"column:meta"`
- From string `gorm:"column:from"`
- To string `gorm:"column:to"`
- SourceType SourceType `gorm:"column:source_type;type:enum('REPORT','VIDEO','AUDIO')"`
- MetaType MetaType `gorm:"column:meta_type;type:enum('USER_NOTICE')"`
- Status StatusType `gorm:"column:status;type:enum('INIT','PENDING','FINISH','FAILED')"`
- CreatedTime time.Time
- UpdatedTime time.Time
- }
|