// Package common
// @Link  https://github.com/bufanyun/hotgo
// @Copyright  Copyright (c) 2023 HotGo CLI
// @Author  Ms <133814250@qq.com>
// @License  https://github.com/bufanyun/hotgo/blob/master/LICENSE
package common

import (
	"github.com/gogf/gf/v2/frame/g"
	"hotgo/internal/model/input/sysin"
)

// UploadFileReq 上传文件
type UploadFileReq struct {
	g.Meta `path:"/upload/file" tags:"附件" method:"post" summary:"上传附件"`
}

type UploadFileRes *sysin.AttachmentListModel

// CheckMultipartReq 检查文件分片
type CheckMultipartReq struct {
	g.Meta `path:"/upload/checkMultipart" tags:"附件" method:"post" summary:"检查文件分片"`
	sysin.CheckMultipartInp
}

type CheckMultipartRes struct {
	*sysin.CheckMultipartModel
}

// UploadPartReq 分片上传
type UploadPartReq struct {
	g.Meta `path:"/upload/uploadPart" tags:"附件" method:"post" summary:"分片上传"`
	sysin.UploadPartInp
}

type UploadPartRes struct {
	*sysin.UploadPartModel
}
