zoie d9ce2dc33c add:添加测试环境配置文件 | 4 weeks ago | |
---|---|---|
app | 2 months ago | |
cmd | 4 months ago | |
common | 2 months ago | |
conf | 4 weeks ago | |
db | 2 months ago | |
ssh | 8 months ago | |
.gitignore | 2 months ago | |
Dockerfile | 8 months ago | |
README.md | 8 months ago | |
docker-compose.yml | 8 months ago | |
go.mod | 2 months ago | |
go.sum | 2 months ago | |
main.go | 8 months ago |
git config --global url."admin@gogs.baozhida.cn:zoie/OAuth-core".insteadOf "https://gogs.baozhida.cn/zoie/OAuth-core"
go mod edit -replace gogs.baozhida.cn/zoie/OAuth-core=${Yours_Path}/OAuth-core
go mod edit -replace gogs.baozhida.cn/zoie/OAuth-core=/Users/work/bzd_project/OAuth-core
go gorm
开发前需要安装以下工具
参考 conf/setting.yml
# windows
go build main.go
# macOS or linux
make build
# windows
env GOOS=windows GOARCH=amd64 go build main.go
# macOS or linux
env GOOS=linux GOARCH=amd64 go build main.go
# 首次配置需要初始化数据库资源信息
# macOS or linux 下使用
$ ./OAuth migrate -c conf/settings.yml
# ️注意:windows 下使用
$ OAuth.exe migrate -c conf/settings.yml
# macOS or linux 下使用
$ ./OAuth server -c conf/settings.yml
# 注意:windows 下使用
$ OAuth.exe server -c conf/settings.yml
./ssh/swag.sh
swag init --parseDependency --parseInternal
swag init --parseDependency --parseDepth=6
http://localhost:port/swagger/index.html
1 - 全部数据权限
3 - 本机构数据权限
4 - 本机构及以下数据权限
5 - 仅本人数据权限