Skip to content

Commit

Permalink
feature: 面经功能添加
Browse files Browse the repository at this point in the history
  • Loading branch information
juniaoshaonian committed Dec 15, 2024
1 parent bc975ec commit fe533b3
Show file tree
Hide file tree
Showing 22 changed files with 1,559 additions and 6 deletions.
4 changes: 2 additions & 2 deletions internal/resume/internal/web/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (h *ProjectHandler) DeleteContribution(ctx *ginx.Context, item IDItem) (gin
}

func (h *ProjectHandler) DeleteDifficulty(ctx *ginx.Context, item IDItem) (ginx.Result, error) {
err := h.svc.DeleteDifficulty(ctx.Request.Context(), item.ID)
err := h.svc.DeleteDifficulty(ctx, item.ID)
if err != nil {
return systemErrorResult, err
}
Expand Down Expand Up @@ -86,7 +86,7 @@ func (h *ProjectHandler) DeleteProject(ctx *ginx.Context, req IDItem, sess sessi

func (h *ProjectHandler) ProjectInfo(ctx *ginx.Context, req IDItem, sess session.Session) (ginx.Result, error) {
uid := sess.Claims().Uid
pro, err := h.svc.ProjectInfo(ctx.Request.Context(), req.ID)
pro, err := h.svc.ProjectInfo(ctx, req.ID)
if err != nil {
return systemErrorResult, err
}
Expand Down
27 changes: 27 additions & 0 deletions internal/review/internal/domain/review.go
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
)
10 changes: 10 additions & 0 deletions internal/review/internal/errs/code.go
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
}
Loading

0 comments on commit fe533b3

Please sign in to comment.