Refine the directories.

This commit is contained in:
zicla
2019-04-26 02:30:04 +08:00
parent 61b14fe82b
commit b3c52ea50e
40 changed files with 214 additions and 162 deletions

View File

@ -1,6 +1,7 @@
package rest
import (
"tank/rest/config"
"time"
)
@ -44,7 +45,7 @@ type User struct {
// set User's table name to be `profiles`
func (this *User) TableName() string {
return TABLE_PREFIX + "user"
return config.TABLE_PREFIX + "user"
}
//通过一个字符串获取性别