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