package config

import (
	"git.noahlan.cn/noahlan/ntool-biz/core/captcha"
	nconfig "git.noahlan.cn/noahlan/ntool-biz/core/config"
	"git.noahlan.cn/noahlan/ntool-biz/core/i18n"
	"github.com/zeromicro/go-zero/zrpc"

	"github.com/zeromicro/go-zero/rest"
)

type Config struct {
	rest.RestConf
	Auth      nconfig.AuthConf
	CORSConf  nconfig.CORSConf
	RedisConf nconfig.RedisConf
	Captcha   captcha.Config `json:",optional"`
	I18n      i18n.Config    `json:",optional"`

	RegisterConf RegisterConf

	CoreRpc zrpc.RpcClientConf
}

type RegisterConf struct {
	DefaultPassword string `json:",default=a123456"`
}
