optimised code

This commit is contained in:
zhuyasen
2023-12-14 19:50:41 +08:00
parent 1d81ccb27c
commit 3857f46bd1
36 changed files with 202 additions and 125 deletions

View File

@@ -182,7 +182,7 @@ message List{{.TableName}}ByIDsReply {
message List{{.TableName}}ByLastIDRequest {
uint64 lastID = 1; // last id
uint32 limit = 2; // page size
uint32 limit = 2 [(validate.rules).uint32.gt = 0]; // page size
string sort = 3; // sort by column name of table, default is -id, the - sign indicates descending order.
}
@@ -464,7 +464,7 @@ message List{{.TableName}}ByIDsReply {
message List{{.TableName}}ByLastIDRequest {
uint64 lastID = 1 [(tagger.tags) = "form:\"lastID\""]; // last id
uint32 limit = 2 [(tagger.tags) = "form:\"limit\""]; // page size
uint32 limit = 2 [(validate.rules).uint32.gt = 0, (tagger.tags) = "form:\"limit\""]; // page size
string sort = 3 [(tagger.tags) = "form:\"sort\""]; // sort by column name of table, default is -id, the - sign indicates descending order.
}