mirror of
https://github.com/beego/bee.git
synced 2024-11-25 15:00:55 +00:00
去掉offset(int64)赋0值,去掉query (map[...]...)定义,以符合Lint
This commit is contained in:
parent
411aa43080
commit
0d0bea81bf
@ -1239,9 +1239,9 @@ func (c *{{ctrlName}}Controller) GetAll() {
|
|||||||
var fields []string
|
var fields []string
|
||||||
var sortby []string
|
var sortby []string
|
||||||
var order []string
|
var order []string
|
||||||
var query map[string]string = make(map[string]string)
|
var query = make(map[string]string)
|
||||||
var limit int64 = 10
|
var limit int64 = 10
|
||||||
var offset int64 = 0
|
var offset int64
|
||||||
|
|
||||||
// fields: col1,col2,entity.col3
|
// fields: col1,col2,entity.col3
|
||||||
if v := c.GetString("fields"); v != "" {
|
if v := c.GetString("fields"); v != "" {
|
||||||
|
@ -238,9 +238,9 @@ func (c *{{controllerName}}Controller) GetAll() {
|
|||||||
var fields []string
|
var fields []string
|
||||||
var sortby []string
|
var sortby []string
|
||||||
var order []string
|
var order []string
|
||||||
var query map[string]string = make(map[string]string)
|
var query = make(map[string]string)
|
||||||
var limit int64 = 10
|
var limit int64 = 10
|
||||||
var offset int64 = 0
|
var offset int64
|
||||||
|
|
||||||
// fields: col1,col2,entity.col3
|
// fields: col1,col2,entity.col3
|
||||||
if v := c.GetString("fields"); v != "" {
|
if v := c.GetString("fields"); v != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user