-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
layout: default | ||
permalink: /cos | ||
--- | ||
|
||
# COS存储访问路径 | ||
|
||
前端访问相关文件时,需先向后端 `/static` 下对应的**同名路由**请求COS访问权限,请求所需参数可到对应文档中寻找或直接查看API接口。 | ||
|
||
### 比赛相关文件 | ||
|
||
下方 `name` 指代比赛名称,形如 `THUAI7`,对应数据库 `contest` 表中的 `name` | ||
|
||
- 代码:`name/code/team_id/code_id.suffix` | ||
|
||
- 公告文件:`name/notice/notice_id/filename` | ||
- 天梯回放:`name/arena/room_id/filename` | ||
- (选择性实现) 后台比赛回放:`name/competition/round_id/filename` | ||
- (选择性实现) 地图:`name/map/filename` | ||
|
||
### Info页面相关文件 | ||
|
||
- 新生导师谈话记录:`chat_record/application_id/filename` | ||
- 公告文件:`upload/filename` | ||
|
||
### 公开静态资源文件 | ||
|
||
这部分文件前端可直接通过 `https://static.eesast.com/` 解析到存储桶访问。 | ||
|
||
- 展示图片:`public/images/filename` | ||
- WebGL资源:`public/WebGL/name/filename` | ||
- 其他可公开文件:`public/files/filename` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
- [用户逻辑](https://eesast.github.io/web/user) | ||
- 代码提交逻辑(待补充) | ||
- 天梯逻辑(待补充) | ||
- 静态资源管理(待补充) | ||
- 新生导师逻辑(待补充) | ||
- [用户逻辑](https://eesast.github.io/web/user) | ||
- [COS存储桶访问路径约定](https://eesast.github.io/web/cos) | ||
- 代码提交逻辑(待补充) | ||
- 天梯逻辑(待补充) | ||
- 静态资源管理(待补充) | ||
- 新生导师逻辑(待补充) |