yinbangzhong
2024-06-18 500985cf7556808ee42e2e9e3066bb4648a8e534
request/audio.go
@@ -1,18 +1,26 @@
package request
import "speechAnalysis/constvar"
import (
   "speechAnalysis/constvar"
   "time"
)
type GetAudioList struct {
   PageInfo
   Keyword          string `form:"keyword"`                                                                         // 关键字
   LocomotiveNumber string `gorm:"index;type:varchar(255);not null;default:'';comment:机车号" form:"locomotiveNumber"` // 机车号
   TrainNumber      string `gorm:"index;type:varchar(255);not null;default:'';comment:车次" form:"trainNumber"`       // 车次
   DriverNumber     string `gorm:"index;type:varchar(255);not null;default:'';comment:司机号" form:"driverNumber"`     // 司机号
   StationNumber    string `gorm:"index;type:varchar(255);not null;default:'';comment:车站号" form:"stationNumber"`    // 车站号
   Keyword          string                 `form:"keyword"`                                                                         // 关键字
   LocomotiveNumber string                 `gorm:"index;type:varchar(255);not null;default:'';comment:机车号" form:"locomotiveNumber"` // 机车号
   TrainNumber      string                 `gorm:"index;type:varchar(255);not null;default:'';comment:车次" form:"trainNumber"`       // 车次
   DriverNumber     string                 `gorm:"index;type:varchar(255);not null;default:'';comment:司机号" form:"driverNumber"`     // 司机号
   StationNumber    string                 `gorm:"index;type:varchar(255);not null;default:'';comment:车站号" form:"stationNumber"`    // 车站号
   BeginTime        time.Time              `form:"beginTime"`                                                                       //开始时间
   EndTime          time.Time              `form:"endTime"`                                                                         //结束时间
   IsFollowed       constvar.BoolType      `form:"isFollowed"`                                                                      //是否关注 1关注 2未关注
   StatusList       []constvar.AudioStatus `form:"statusList"`                                                                      //音频状态数组
}
type ProcessAudio struct {
   ID uint `json:"id" binding:"required"`
   ID       uint `json:"id" form:"id" binding:"required"`
   Filetype int  `json:"fileType" form:"fileType"`
}
type BatchProcessAudio struct {