fix goctl model (#61)

This commit is contained in:
miaogaolin
2020-09-11 16:46:45 +08:00
committed by GitHub
parent e1d942a799
commit ce5961a7d0
4 changed files with 19 additions and 18 deletions

View File

@@ -14,7 +14,7 @@ func genFineOneByField(table Table, withCache bool) (string, error) {
var list []string
camelTableName := table.Name.ToCamel()
for _, field := range table.Fields {
if field.IsPrimaryKey || !field.IsKey {
if field.IsPrimaryKey || !field.IsUniqueKey {
continue
}
camelFieldName := field.Name.ToCamel()