1
0
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:
ZetaChow 2016-09-09 15:38:44 +08:00
parent 411aa43080
commit 0d0bea81bf
2 changed files with 4 additions and 4 deletions

View File

@ -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 != "" {

View File

@ -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 != "" {