feat: 支持主列表选择每页条数 (#242)
This commit is contained in:
@@ -42,8 +42,8 @@ func ApplyInnerCodes(ctx context.Context, db *sql.DB, writer InnerCodeWriter, id
|
||||
if len(ids) == 0 {
|
||||
return nil, fmt.Errorf("没有选择可回写记录")
|
||||
}
|
||||
if len(ids) > PageSize {
|
||||
return nil, fmt.Errorf("单次最多回写当前页 %d 条记录", PageSize)
|
||||
if len(ids) > InnerCodeRemoteBatchLimit {
|
||||
return nil, fmt.Errorf("单次最多回写 %d 条记录", InnerCodeRemoteBatchLimit)
|
||||
}
|
||||
result := &InnerCodeApplyResult{Requested: len(ids)}
|
||||
for _, id := range ids {
|
||||
|
||||
Reference in New Issue
Block a user