This commit is contained in:
zhuyasen
2024-06-29 15:01:05 +08:00
parent 35fcea5f5f
commit e255bebd8a
17 changed files with 86 additions and 122 deletions

View File

@@ -29,7 +29,7 @@ type options struct {
ForceTableName bool
IsEmbed bool // is gorm.Model embedded
IsWebProto bool // true: proto file include router path and swagger info, false: normal proto file without router and swagger
IsExtendedApi bool // true: extended api (9 api), false: basic api (5 api)
IsExtendedAPI bool // true: extended api (9 api), false: basic api (5 api)
}
var defaultOptions = options{
@@ -142,10 +142,10 @@ func WithWebProto() Option {
}
}
// WithExtendedApi set extended api
func WithExtendedApi() Option {
// WithExtendedAPI set extended api
func WithExtendedAPI() Option {
return func(o *options) {
o.IsExtendedApi = true
o.IsExtendedAPI = true
}
}