extended api

This commit is contained in:
zhuyasen
2024-06-28 23:56:08 +08:00
parent 5888ec77d2
commit 994a90850e
52 changed files with 7909 additions and 1084 deletions

View File

@@ -28,7 +28,7 @@ func TestParseSql(t *testing.T) {
assert.NotEmpty(t, v)
}
t.Log(codes[CodeTypeJSON])
return
//printCode(codes)
codes, err = ParseSQL(sql, WithTablePrefix("t_"), WithJSONTag(0), WithEmbed())
@@ -182,7 +182,9 @@ func Test_initTemplate(t *testing.T) {
handlerDetailStructTmplRaw = "{{if .foo}}"
modelJSONTmplRaw = "{{if .foo}}"
protoFileTmplRaw = "{{if .foo}}"
protoFileSimpleTmplRaw = "{{if .foo}}"
protoFileForWebTmplRaw = "{{if .foo}}"
protoFileForSimpleWebTmplRaw = "{{if .foo}}"
protoMessageCreateTmplRaw = "{{if .foo}}"
protoMessageUpdateTmplRaw = "{{if .foo}}"
protoMessageDetailTmplRaw = "{{if .foo}}"
@@ -394,6 +396,7 @@ func Test_getMongodbTableFields(t *testing.T) {
WithFieldTypes(fieldsMap),
WithJSONTag(1),
WithWebProto(),
WithExtendedApi(),
}
codes, err = ParseSQL(sql, opts...)
if err != nil {