File tree 3 files changed +15
-4
lines changed
3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ build-image-server:
48
48
build-local :
49
49
if [ -d " build" ]; then rm -rf build; else echo " OK!" ; fi \
50
50
&& if [ -f " /.dockerenv" ]; then echo " OK!" ; else make build-web-local && make build-server-local; fi \
51
- && mkdir build && cp -r web/dist build/ && cp server/server build/ && cp -r server/resource build/resource
51
+ && mkdir build && cp -r web/dist build/ && cp server/server build/ && cp -r server/resource build/resource
52
52
53
53
# 本地环境打包前端
54
54
build-web-local :
@@ -63,13 +63,17 @@ build-server-local:
63
63
&& go build -ldflags " -B 0x$( shell head -c20 /dev/urandom| od -An -tx1| tr -d ' \n' ) -X main.Version=${TAGS_OPT} " -v
64
64
65
65
# 打包前后端二合一镜像
66
- image : build
66
+ image : build
67
67
docker build -t ${REPOSITORY} /gin-vue-admin:${TAGS_OPT} -f deploy/docker/Dockerfile .
68
68
69
69
# 尝鲜版
70
70
images : build build-image-web build-image-server
71
71
docker build -t ${REPOSITORY} /all:${TAGS_OPT} -f deploy/docker/Dockerfile .
72
-
72
+
73
+ # swagger 文档生成
74
+ doc :
75
+ @cd server && swag init
76
+
73
77
# 插件快捷打包: make plugin PLUGIN="这里是插件文件夹名称,默认为email"
74
78
plugin :
75
79
if [ -d " .plugin" ]; then rm -rf .plugin ; else echo " OK!" ; fi && mkdir -p .plugin/${PLUGIN} /{server/plugin,web/plugin} \
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ func RunWindowsServer() {
40
40
fmt .Printf (`
41
41
欢迎使用 gin-vue-admin
42
42
当前版本:v2.7.8-beta1
43
- 加群方式:微信号:shouzi_1994 QQ群:470239250
43
+ 加群方式:微信号:shouzi_1994 QQ群:470239250
44
44
项目地址:https://github.com/flipped-aurora/gin-vue-admin
45
45
插件市场:https://plugin.gin-vue-admin.com
46
46
GVA讨论社区:https://support.qq.com/products/371961
Original file line number Diff line number Diff line change @@ -13,6 +13,13 @@ import (
13
13
//go:generate go mod tidy
14
14
//go:generate go mod download
15
15
16
+ // 这部分 @Tag 设置用于排序, 需要排序的接口请按照下面的格式添加
17
+ // swag init 对 @Tag 只会从入口文件解析, 默认 main.go
18
+ // 也可通过 --generalInfo flag 指定其他文件
19
+ // @Tag.Name Base
20
+ // @Tag.Name SysUser
21
+ // @Tag.Description 用户
22
+
16
23
// @title Gin-Vue-Admin Swagger API接口文档
17
24
// @version v2.7.8-beta1
18
25
// @description 使用gin+vue进行极速开发的全栈开发基础平台
You can’t perform that action at this time.
0 commit comments