zoie 9477f22155 add:添加配置文件 | 1 month ago | |
---|---|---|
app | 1 month ago | |
cmd | 7 months ago | |
common | 2 months ago | |
conf | 1 month ago | |
db | 5 months ago | |
ssh | 8 months ago | |
static | 7 months ago | |
.gitignore | 8 months ago | |
Dockerfile | 8 months ago | |
README.md | 1 month ago | |
docker-compose.yml | 8 months ago | |
go.mod | 1 month ago | |
go.sum | 1 month ago | |
main.go | 5 months ago | |
冷链运输平台操作手册-内部管理员.docx | 5 months ago | |
冷链运输平台操作手册-客户.docx | 5 months ago | |
冷链运输平台操作手册-物流公司.docx | 2 months ago |
go env -w GOPRIVATE=https://gogs.baozhida.cn
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 下使用
$ ./cold-logistics server -c conf/settings.yml
# 注意:windows 下使用
$ cold-logistics.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 - 仅本人数据权限