mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2025-01-03 01:22:21 +02:00
сделал settings.txt
This commit is contained in:
parent
778d5f9b03
commit
e8c1e4b535
@ -15,6 +15,16 @@
|
||||
{"Table":"lawsuits","Columns":["reason_id"]},
|
||||
{"Table":"lawsuits","Columns":["connection_id","reason_id"]},
|
||||
{"Table":"lawsuits","Columns":["connection_id"]},
|
||||
{"Table":"lawsuits","Columns":["branch_id"]}
|
||||
{"Table":"lawsuits","Columns":["branch_id"]},
|
||||
{"Table":"contracts","Columns":["is_group","is_organization"]},
|
||||
{"Table":"contracts","Columns":["is_group","is_ind_organization"]},
|
||||
{"Table":"contracts","Columns":["is_group","email"]},
|
||||
{"Table":"contracts","Columns":["is_group","is_valid_email"]},
|
||||
{"Table":"contracts","Columns":["is_group"]},
|
||||
{"Table":"contracts","Columns":["is_group","department_id"]},
|
||||
{"Table":"contracts","Columns":["is_group","sector_id"]},
|
||||
{"Table":"contracts","Columns":["type_id"]},
|
||||
{"Table":"contracts","Columns":["branch_id"]},
|
||||
{"Table":"contracts","Columns":["parent_id"]}
|
||||
|
||||
]
|
||||
|
@ -2,5 +2,6 @@
|
||||
"hashtags": "",
|
||||
"user_roles": "",
|
||||
"litigation_types": "",
|
||||
"legal_types": ""
|
||||
"legal_types": "",
|
||||
"contracts": ""
|
||||
}
|
@ -1537,11 +1537,11 @@ func FindText_ProtobufRequest1(Table1 *types.Table) (OtvetRequestType string, Ot
|
||||
|
||||
switch PrimaryKeyTypeGo {
|
||||
case "string", "uuid.UUID":
|
||||
OtvetRequestName = "String_1"
|
||||
OtvetRequestType = TextRequest + "String"
|
||||
OtvetRequestName = "String_1"
|
||||
case "time.Time":
|
||||
OtvetRequestName = "Date"
|
||||
OtvetRequestType = TextRequest + "Date"
|
||||
OtvetRequestName = "Date"
|
||||
default:
|
||||
OtvetRequestName = PrimaryKeyColumn.TypeGo
|
||||
OtvetRequestName = micro.StringFromUpperCase(OtvetRequestName)
|
||||
@ -2787,7 +2787,9 @@ func Find_RequestFieldNames_FromMass(MassColumns []*types.Column) string {
|
||||
Underline := ""
|
||||
for _, Column1 := range MassColumns {
|
||||
TextFields = TextFields + Underline + Column1.NameGo
|
||||
TextRequest1 := Find_RequestFieldName_FromMass(Column1, MassColumns)
|
||||
TextRequest1 := Convert_GolangTypeNameToProtobufTypeName(Column1.TypeGo)
|
||||
TextRequest1 = micro.StringFromUpperCase(TextRequest1)
|
||||
//TextRequest1 := Find_RequestFieldName_FromMass(Column1, MassColumns)
|
||||
Otvet = Otvet + Underline + TextRequest1
|
||||
Underline = "_"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user