Skip to content

Commit

Permalink
feat: add export
Browse files Browse the repository at this point in the history
  • Loading branch information
limes-cloud committed May 3, 2024
1 parent 175ab3e commit ffb3b29
Show file tree
Hide file tree
Showing 54 changed files with 4,553 additions and 709 deletions.
1 change: 1 addition & 0 deletions .github/workflows/docker-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs: # workflow中的job
script: | # 重启更新镜像
docker stop resource
docker rm resource
docker rmi ${{ secrets.DOCKERHUB_USERNAME }}/resource:latest
# docker login -u 你的github名称 -p 你的github token https://ghcr.io
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/resource
docker run -d --network host --restart=always --env APP_NAME=Resource --env CONF_HOST=127.0.0.1:6082 --env CONF_TOKEN=5B655B7D4A51BF79C974C9F27C27D992 --name resource ${{ secrets.DOCKERHUB_USERNAME }}/resource
19 changes: 16 additions & 3 deletions api/errors/resource_error_reason.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions api/errors/resource_error_reason.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ option go_package = "./;errors";

enum Reason {
// 设置缺省错误码
option (errors.default_code) = 200;
option (errors.default_code) = 500;
NotFound = 0[(errors.message) = "不存在数据"];
Transform = 1[(errors.message)="数据转换失败"];
NoSupportStore = 2[(errors.message)="不支持的存储引擎"];
Expand All @@ -28,7 +28,8 @@ enum Reason {
NotExistResource = 16[(errors.message)="资源不存在"];
Params = 17[(errors.message)="参数错误"];
AccessResource = 18[(errors.message)="访问资源文件异常"];

ExportFileNameDup = 19[(errors.message)="导出文件重命名重复"];
ExportTaskProcess = 20[(errors.message)="导出任务正在进行中"];
}


Expand Down
Loading

0 comments on commit ffb3b29

Please sign in to comment.