作者 yangfu

feat: table data cache v1

... ... @@ -20,7 +20,10 @@ type TablePreviewCommand struct {
}
func (cmd *TablePreviewCommand) Valid(validation *validation.Validation) {
if cmd.UseCache && cmd.PageSize==0{
cmd.PageNumber = 1
cmd.PageSize = 10000 //默认缓存前10000条
}
if cmd.PageSize > 0 {
cmd.Where.PageNumber = cmd.PageNumber
cmd.Where.PageSize = cmd.PageSize
... ...