Merge pull request #153 from CircleMonogatari/master

中文全角空格问题!
master
xxj 3 years ago committed by GitHub
commit e0856cb712
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -113,43 +113,44 @@ func getUninStr(left, middle, right string) string {
return re
}
func getGormModelElement() []EmInfo {
    var result []EmInfo
    result = append(result, EmInfo{
        IsMulti:       false,
        Notes:         "Primary key",
        Type:          "int64", // Type.类型标记
        ColName:       "id",
        ColNameEx:     "id",
        ColStructName: "ID",
    })
    result = append(result, EmInfo{
        IsMulti:       false,
        Notes:         "created time",
        Type:          "time.Time", // Type.类型标记
        ColName:       "created_at",
        ColNameEx:     "created_at",
        ColStructName: "CreatedAt",
    })
    result = append(result, EmInfo{
        IsMulti:       false,
        Notes:         "updated at",
        Type:          "time.Time", // Type.类型标记
        ColName:       "updated_at",
        ColNameEx:     "updated_at",
        ColStructName: "UpdatedAt",
    })
    result = append(result, EmInfo{
        IsMulti:       false,
        Notes:         "deleted time",
        Type:          "time.Time", // Type.类型标记
        ColName:       "deleted_at",
        ColNameEx:     "deleted_at",
        ColStructName: "DeletedAt",
    })
    return result
func getGormModelElement() []EmInfo {
var result []EmInfo
result = append(result, EmInfo{
IsMulti: false,
Notes: "Primary key",
Type: "int64", // Type.类型标记
ColName: "id",
ColNameEx: "id",
ColStructName: "ID",
})
result = append(result, EmInfo{
IsMulti: false,
Notes: "created time",
Type: "time.Time", // Type.类型标记
ColName: "created_at",
ColNameEx: "created_at",
ColStructName: "CreatedAt",
})
result = append(result, EmInfo{
IsMulti: false,
Notes: "updated at",
Type: "time.Time", // Type.类型标记
ColName: "updated_at",
ColNameEx: "updated_at",
ColStructName: "UpdatedAt",
})
result = append(result, EmInfo{
IsMulti: false,
Notes: "deleted time",
Type: "time.Time", // Type.类型标记
ColName: "deleted_at",
ColNameEx: "deleted_at",
ColStructName: "DeletedAt",
})
return result
}
func buildFList(list *[]FList, key ColumnsKey, keyName, tp, colName string) {

Loading…
Cancel
Save