feat(all): v1.0
This commit is contained in:
		| @@ -11,6 +11,11 @@ type Config struct { | ||||
| 	CacheRedis cache.CacheConf | ||||
| 	JwtAuth    JwtAuth // JWT 鉴权相关配置 | ||||
| 	VerifyCode VerifyCode | ||||
| 	Encrypt    Encrypt | ||||
| 	Alipay     AlipayConfig | ||||
| 	Wxpay      WxpayConfig | ||||
| 	Ali        AliConfig | ||||
| 	WestConfig WestConfig | ||||
| } | ||||
|  | ||||
| // JwtAuth 用于 JWT 鉴权配置 | ||||
| @@ -27,3 +32,32 @@ type VerifyCode struct { | ||||
| 	TemplateCode    string | ||||
| 	ValidTime       int | ||||
| } | ||||
| type Encrypt struct { | ||||
| 	SecretKey string | ||||
| } | ||||
|  | ||||
| type AlipayConfig struct { | ||||
| 	AppID           string | ||||
| 	PrivateKey      string | ||||
| 	AlipayPublicKey string | ||||
| 	IsProduction    bool | ||||
| 	NotifyUrl       string | ||||
| } | ||||
| type WxpayConfig struct { | ||||
| 	AppID                      string | ||||
| 	MchID                      string | ||||
| 	MchCertificateSerialNumber string | ||||
| 	MchApiv3Key                string | ||||
| 	MchPrivateKeyPath          string | ||||
| 	NotifyUrl                  string | ||||
| 	RefundNotifyUrl            string | ||||
| } | ||||
| type AliConfig struct { | ||||
| 	Code string | ||||
| } | ||||
| type WestConfig struct { | ||||
| 	Url            string | ||||
| 	Key            string | ||||
| 	SecretId       string | ||||
| 	SecretSecondId string | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user