-
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.
- Loading branch information
Showing
22 changed files
with
1,564 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package domain | ||
|
||
type Review struct { | ||
ID int64 | ||
Uid int64 | ||
JD string | ||
JDAnalysis string | ||
Questions string | ||
QuestionAnalysis string | ||
Resume string | ||
Status ReviewStatus | ||
Utime int64 | ||
} | ||
type ReviewStatus uint8 | ||
|
||
func (s ReviewStatus) ToUint8() uint8 { | ||
return uint8(s) | ||
} | ||
|
||
const ( | ||
// UnknownStatus 未知 | ||
UnknownStatus ReviewStatus = 0 | ||
// UnPublishedStatus 未发布 | ||
UnPublishedStatus ReviewStatus = 1 | ||
// PublishedStatus 发布 | ||
PublishedStatus ReviewStatus = 2 | ||
) |
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: 516001, Msg: "系统错误"} | ||
) | ||
|
||
type ErrorCode struct { | ||
Code int | ||
Msg string | ||
} |
Oops, something went wrong.