diff --git a/README.md b/README.md index f5c06e6..a29ea4b 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,7 @@ 1. 支持 [Swagger](https://github.com/swaggo/gin-swagger) 接口文档生成 1. 支持 [GraphQL](https://github.com/99designs/gqlgen) 查询语言 1. 支持 trace 项目内部链路追踪 -1. 支持 [pprof](https://github.com/gin-contrib/pprof) 性能剖析 -1. 支持 [jwt](https://github.com/dgrijalva/jwt-go) 接口鉴权 +1. 支持 [pprof](https://github.com/gin-contrib/pprof) 性能剖析 1. 支持 errno 统一定义错误码 1. 支持 [zap](https://go.uber.org/zap) 日志收集 1. 支持 [viper](https://github.com/spf13/viper) 配置文件解析 @@ -34,7 +33,9 @@ ## 其他 -查看 Jaeger 链路追踪代码,请查看 [v1.0版](https://github.com/xinliangnote/go-gin-api/releases/tag/v1.0),文档点这里 [jaeger.md](https://github.com/xinliangnote/go-gin-api/blob/master/docs/jaeger.md) 。 +查看 Jaeger 链路追踪 Demo 代码,请查看 [v1.0 版](https://github.com/xinliangnote/go-gin-api/releases/tag/v1.0) ,链接地址:http://127.0.0.1:9999/jaeger_test + +调用的其他服务端 Demo 代码为 [https://github.com/xinliangnote/go-jaeger-demo](https://github.com/xinliangnote/go-jaeger-demo) ## 联系作者 diff --git a/assets/assets.go b/assets/assets.go new file mode 100644 index 0000000..5406c2d --- /dev/null +++ b/assets/assets.go @@ -0,0 +1,11 @@ +package assets + +import "embed" + +var ( + //go:embed bootstrap + Bootstrap embed.FS + + //go:embed templates + Templates embed.FS +) diff --git a/assets/bootstrap/js/bootstrap-notify/notify.js b/assets/bootstrap/js/bootstrap-notify/notify.js index 6bad70a..95920fc 100644 --- a/assets/bootstrap/js/bootstrap-notify/notify.js +++ b/assets/bootstrap/js/bootstrap-notify/notify.js @@ -1,4 +1,4 @@ -document.write(''); +document.write(''); function SuccessNotify(content) { $.notify({ diff --git a/assets/bootstrap/js/httpclient/httpclient.js b/assets/bootstrap/js/httpclient/httpclient.js index b7de571..fe23023 100644 --- a/assets/bootstrap/js/httpclient/httpclient.js +++ b/assets/bootstrap/js/httpclient/httpclient.js @@ -1,8 +1,8 @@ -document.write(''); -document.write(''); -document.write(''); -document.write(''); -document.write(''); +document.write(''); +document.write(''); +document.write(''); +document.write(''); +document.write(''); document.write('
'); function GenerateAuthorization(path, method, params) { diff --git a/assets/templates/admin/admin_add.html b/assets/templates/admin/admin_add.html index b73d142..f517873 100644 --- a/assets/templates/admin/admin_add.html +++ b/assets/templates/admin/admin_add.html @@ -3,11 +3,11 @@ - - - - - + + + + + @@ -51,13 +51,13 @@ - - - - - - - + + + + + + + - - - - + + + + + - - - + + + + - - - - - + + + + + + - - - - - + + + + + + - - - - - - + + + + + + + - - - - - + + + + + + - - - - - - + + + + + + + - - - + + + +