package file_export

import (
	"be.ems/lib/file"
)

const (
	INVOKE_FILE_EXPORT = "exportTable"
)

type SysJob struct {
	JobID        int64  `gorm:"column:job_id;primary_key;auto_increment" json:"job_id"`        //任务ID
	InvokeTarget string `gorm:"column:invoke_target" json:"invoke_target"`                     //调用目标字符串
	TargetParams string `gorm:"column:target_params;type:json" json:"target_params,omitempty"` //调用目标传入参数
}

func (m *SysJob) TableName() string {
	return "sys_job"
}

type FileExport struct {
	file.FileInfo
}

type FileExportQuery struct {
	Path     string `form:"path"  binding:"required"`
	Suffix   string `form:"suffix"`
	PageNum  int64  `form:"pageNum"  binding:"required"`
	PageSize int64  `form:"pageSize"  binding:"required"`
}
