-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
19 changed files
with
1,712 additions
and
8 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
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
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,30 @@ | ||
package domain | ||
|
||
import ( | ||
"time" | ||
) | ||
|
||
type Case struct { | ||
Id int64 | ||
// 作者 | ||
Uid int64 | ||
Labels []string | ||
Title string | ||
Content string | ||
CodeRepo string | ||
Summary Summary | ||
Ctime time.Time | ||
Utime time.Time | ||
} | ||
|
||
// 案例的总结摘要 | ||
type Summary struct { | ||
// 关键字,辅助记忆,提取重点 | ||
Keywords string | ||
// 速记,口诀 | ||
Shorthand string | ||
// 亮点 | ||
Highlight string | ||
// 引导点 | ||
Guidance string | ||
} |
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,10 @@ | ||
package errs | ||
|
||
var ( | ||
SystemError = ErrorCode{Code: 502001, Msg: "系统错误"} | ||
) | ||
|
||
type ErrorCode struct { | ||
Code int | ||
Msg string | ||
} |
Oops, something went wrong.