25 Star 193 Fork 61

白泽/baize

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 755 Bytes
一键复制 编辑 原始数据 按行查看 历史
danny 提交于 2025-09-11 23:36 +08:00 . 缓存
init:
go install github.com/google/wire/cmd/wire@latest
go install github.com/swaggo/swag/cmd/swag@latest
wire:
cd app/ && wire
wire-mysql:
@cd app/ && \
mkdir -p tmp_mysql && \
cp *.go tmp_mysql/ 2>/dev/null || true && \
rm -f tmp_mysql/wire_*.go && \
cp wire_mysql.go tmp_mysql/wire.go && \
cd tmp_mysql && wire && \
mv wire_gen.go ../wire_gen_mysql.go && \
cd .. && rm -rf tmp_mysql
wire-postgresql:
@cd app/ && \
mkdir -p tmp_postgresql && \
cp *.go tmp_postgresql/ 2>/dev/null || true && \
rm -f tmp_postgresql/wire_*.go && \
cp wire_postgresql.go tmp_postgresql/wire.go && \
cd tmp_postgresql && wire && \
mv wire_gen.go ../wire_gen_postgresql.go && \
cd .. && rm -rf tmp_postgresql
swag:
cd app/ && swag init
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/baizeplus/baize.git
git@gitee.com:baizeplus/baize.git
baizeplus
baize
baize
feature/pg-support

搜索帮助