mirror of
https://github.com/zhufuyi/sponge.git
synced 2025-10-09 02:30:12 +08:00
rename
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user