zoie d9ce2dc33c add:添加测试环境配置文件 | 3 hafta önce | |
---|---|---|
app | 2 ay önce | |
cmd | 4 ay önce | |
common | 2 ay önce | |
conf | 3 hafta önce | |
db | 2 ay önce | |
ssh | 8 ay önce | |
.gitignore | 2 ay önce | |
Dockerfile | 8 ay önce | |
README.md | 8 ay önce | |
docker-compose.yml | 8 ay önce | |
go.mod | 2 ay önce | |
go.sum | 2 ay önce | |
main.go | 8 ay önce |
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 - 仅本人数据权限