【文件属性】:
文件名称:ocr.service.authorization
文件大小:42KB
文件格式:ZIP
更新时间:2021-03-26 12:23:48
Go
描述
dịchvụnàysẽxửlýnghiệpvụliênquantới用户
要求
- Mongodb
安装
# install golang
sudo snap install go --classic
跑
go run .
DOC文件
// generate doc
//go get -u github.com/swaggo/swag/cmd/swag
//swag init
// access doc
http://localhost/docs/index.html
配置
NO_SSL_PORT=
ENV=development | production
MONGODB_HOST=host
MONGODB_PORT=27017
MONGODB_USERNAME=
MONGODB_PASSWORD=
MONGODB_DB=
LIMIT_CONCURRENT_LOGIN=2
TOKEN
【文件预览】:
ocr.service.authorization-master
----.dockerignore(18B)
----module()
--------salt()
--------db()
----go.mod(615B)
----main.go(3KB)
----go.sum(46KB)
----model()
--------login_response.go(395B)
--------user.go(3KB)
--------user_log.go(612B)
--------claim.go(211B)
----Dockerfile(319B)
----config()
--------root.go(3KB)
----enum()
--------user_log.go(79B)
----README.md(770B)
----docs()
--------swagger.yaml(4KB)
--------docs.go(10KB)
--------swagger.json(9KB)
----.gitignore(20B)
----app()
--------user_log()
--------middleware()
--------user()