upload.go
309 字节
package protocol
import "mime/multipart"
const (
FileImage = "image"
FileVoice = "voice"
FileVideo ="video"
)
/*Image */
type FileRequest struct {
//Xxx string`json:"xxx" valid:"Required"`
Files []*multipart.FileHeader
FileType string
}
type FileResponse struct {
Paths []string `json:"paths"`
}