feat(auth): 添加完整的用户认证API项目
- 实现用户注册、登录、JWT令牌认证功能 - 集成Gin、GORM、Viper、Zap等框架 - 添加密码加密、数据库操作、中间件等完整功能 - 配置多环境支持、日志轮转、CORS处理 - 创建完整的项目结构和配置文件体系
This commit is contained in:
17
Web开发/04go-viper-demo/config.yaml
Normal file
17
Web开发/04go-viper-demo/config.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
app:
|
||||
name: MangMang
|
||||
version: 1.0.0
|
||||
port: 9999
|
||||
|
||||
database:
|
||||
host: localhost
|
||||
port: 3306
|
||||
username: root
|
||||
password: password
|
||||
dbname: testdb
|
||||
|
||||
redis:
|
||||
host: localhost
|
||||
port: 6379
|
||||
password: ""
|
||||
db: 0
|
||||
Reference in New Issue
Block a user