From 03f6849a11607604fcd492b4f3a70d4faa25d461 Mon Sep 17 00:00:00 2001 From: yinw Date: Fri, 26 Feb 2016 10:51:44 +0800 Subject: [PATCH] golint refactor for model --- models/role.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/role.go b/models/role.go index 217e02bba..0ebbe52fc 100644 --- a/models/role.go +++ b/models/role.go @@ -22,7 +22,7 @@ const ( ) type Role struct { - RoleID int `json:"role_id", orm:"column(role_id)"` - RoleCode string `json:"role_code, orm:"column(role_code)""` - Name string `json:"role_name", orm:"column(name)"` + RoleID int `json:"role_id" orm:"column(role_id)"` + RoleCode string `json:"role_code" orm:"column(role_code)"` + Name string `json:"role_name" orm:"column(name)"` }