You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
690 B
Smarty

package config
import (
nconfig "git.noahlan.cn/noahlan/ntool-biz/core/config"
{{if .useCasbin}}
"git.noahlan.cn/noahlan/ntool-biz/core/casbin"
dbconfig "git.noahlan.cn/noahlan/ntool-biz/core/orm/nent/config"{{else}}
{{if .useEnt}}
dbconfig "git.noahlan.cn/noahlan/ntool-biz/core/orm/nent/config"
{{end}}{{end}}
"github.com/zeromicro/go-zero/rest"
)
type Config struct {
rest.RestConf
Auth nconfig.AuthConf
CROSConf nconfig.CORSConf
{{if .useCasbin}}
CasbinConf casbin.CasbinConf
DatabaseConf dbconfig.Database
RedisConf nconfig.RedisConf{{else}}
{{if .useEnt}}DatabaseConf dbconfig.Database{{end}}
{{end}}
{{.jwtTrans}}
}