You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// GetByColumns get paging records by column information,
179
-
// Note: query performance degrades when table rows are very large because of the use of offset.
180
-
//
181
-
// params includes paging parameters and query parameters
182
-
// paging parameters (required):
183
-
//
184
-
// page: page number, starting from 0
185
-
// limit: lines per page
186
-
// sort: sort fields, default is id backwards, you can add - sign before the field to indicate reverse order, no - sign to indicate ascending order, multiple fields separated by comma
187
-
//
188
-
// query parameters (not required):
189
-
//
190
-
// name: column name
191
-
// exp: expressions, which default is "=", support =, !=, >, >=, <, <=, like, in, notin, isnull, isnotnull
192
-
// value: column value, if exp=in, multiple values are separated by commas
193
-
// logic: logical type, default value is "and", support &, and, ||, or
194
-
//
195
-
// example: search for a male over 20 years of age
196
-
//
197
-
// params = &query.Params{
198
-
// Page: 0,
199
-
// Limit: 20,
200
-
// Columns: []query.Column{
201
-
// {
202
-
// Name: "age",
203
-
// Exp: ">",
204
-
// Value: 20,
205
-
// },
206
-
// {
207
-
// Name: "gender",
208
-
// Value: "male",
209
-
// },
210
-
// }
178
+
// GetByColumns get paging records by column information.
179
+
// For more details, please refer to https://go-sponge.com/component/custom-page-query.html
// GetByColumns get paging records by column information,
185
-
// Note: query performance degrades when table rows are very large because of the use of offset.
186
-
//
187
-
// params includes paging parameters and query parameters
188
-
// paging parameters (required):
189
-
//
190
-
// page: page number, starting from 0
191
-
// limit: lines per page
192
-
// sort: sort fields, default is id backwards, you can add - sign before the field to indicate reverse order, no - sign to indicate ascending order, multiple fields separated by comma
193
-
//
194
-
// query parameters (not required):
195
-
//
196
-
// name: column name
197
-
// exp: expressions, which default is "=", support =, !=, >, >=, <, <=, like, in, notin, isnull, isnotnull
198
-
// value: column value, if exp=in, multiple values are separated by commas
199
-
// logic: logical type, default value is "and", support &, and, ||, or
200
-
//
201
-
// example: search for a male over 20 years of age
202
-
//
203
-
// params = &query.Params{
204
-
// Page: 0,
205
-
// Limit: 20,
206
-
// Columns: []query.Column{
207
-
// {
208
-
// Name: "age",
209
-
// Exp: ">",
210
-
// Value: 20,
211
-
// },
212
-
// {
213
-
// Name: "gender",
214
-
// Value: "male",
215
-
// },
216
-
// }
184
+
// GetByColumns get paging records by column information.
185
+
// For more details, please refer to https://go-sponge.com/component/custom-page-query.html
// GetByColumns get paging records by column information,
191
-
// Note: query performance degrades when table rows are very large because of the use of offset.
192
-
//
193
-
// params includes paging parameters and query parameters
194
-
// paging parameters (required):
195
-
//
196
-
// page: page number, starting from 0
197
-
// limit: lines per page
198
-
// sort: sort fields, default is {{.ColumnNameCamelFCL}} backwards, you can add - sign before the field to indicate reverse order, no - sign to indicate ascending order, multiple fields separated by comma
199
-
//
200
-
// query parameters (not required):
201
-
//
202
-
// name: column name
203
-
// exp: expressions, which default is "=", support =, !=, >, >=, <, <=, like, in, notin, isnull, isnotnull
204
-
// value: column value, if exp=in, multiple values are separated by commas
205
-
// logic: logical type, default value is "and", support &, and, ||, or
206
-
//
207
-
// example: search for a male over 20 years of age
208
-
//
209
-
// params = &query.Params{
210
-
// Page: 0,
211
-
// Limit: 20,
212
-
// Columns: []query.Column{
213
-
// {
214
-
// Name: "age",
215
-
// Exp: ">",
216
-
// Value: 20,
217
-
// },
218
-
// {
219
-
// Name: "gender",
220
-
// Value: "male",
221
-
// },
222
-
// }
190
+
// GetByColumns get paging records by column information.
191
+
// For more details, please refer to https://go-sponge.com/component/custom-page-query.html
// GetByColumns get paging records by column information,
185
-
// Note: query performance degrades when table rows are very large because of the use of offset.
186
-
//
187
-
// params includes paging parameters and query parameters
188
-
// paging parameters (required):
189
-
//
190
-
// page: page number, starting from 0
191
-
// limit: lines per page
192
-
// sort: sort fields, default is {{.ColumnNameCamelFCL}} backwards, you can add - sign before the field to indicate reverse order, no - sign to indicate ascending order, multiple fields separated by comma
193
-
//
194
-
// query parameters (not required):
195
-
//
196
-
// name: column name
197
-
// exp: expressions, which default is "=", support =, !=, >, >=, <, <=, like, in, notin, isnull, isnotnull
198
-
// value: column value, if exp=in, multiple values are separated by commas
199
-
// logic: logical type, default value is "and", support &, and, ||, or
200
-
//
201
-
// example: search for a male over 20 years of age
202
-
//
203
-
// params = &query.Params{
204
-
// Page: 0,
205
-
// Limit: 20,
206
-
// Columns: []query.Column{
207
-
// {
208
-
// Name: "age",
209
-
// Exp: ">",
210
-
// Value: 20,
211
-
// },
212
-
// {
213
-
// Name: "gender",
214
-
// Value: "male",
215
-
// },
216
-
// }
184
+
// GetByColumns get paging records by column information.
185
+
// For more details, please refer to https://go-sponge.com/component/custom-page-query.html
0 commit comments