Skip to content

Commit

Permalink
fix: replace optional with required in paper (#146)
Browse files Browse the repository at this point in the history
* fix: replace optional with required in paper

* fix: add comment in PaperData
  • Loading branch information
penqee authored Dec 21, 2024
1 parent c53b308 commit 0f00988
Show file tree
Hide file tree
Showing 4 changed files with 278 additions and 280 deletions.
200 changes: 96 additions & 104 deletions api/model/model/model.go

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

14 changes: 10 additions & 4 deletions idl/model.thrift
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ struct Picture{
*/
struct UpYunFileDir {
1: optional string basePath,
2: optional list<string> files,
3: optional list<string> folders,
2: required list<string> files,
3: required list<string> folders,
}

// 课程成绩
Expand Down Expand Up @@ -121,10 +121,16 @@ struct UnifiedExam {
3: required string term
}

/*
* @Description 又拍云文件目录结构,兼容旧版安卓
* @Param base_path 当前所在路径
* @Param files 当前所在目录文件,使用required保证files不为nil
* @Param folders 当前所在目录下的文件夹,使用required保证folders不为nil
*/
struct PaperData {
1: optional string base_path,
2: optional list<string> files,
3: optional list<string> folders,
2: required list<string> files,
3: required list<string> folders,
}

struct PaperUrlData {
Expand Down
Loading

0 comments on commit 0f00988

Please sign in to comment.