Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apis/department.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (e *Department) GetAction(key string) response.Action {
}

func (e *Department) Other(r *gin.RouterGroup) {
r.GET("/departments", e.List)
r.GET("/departments", response.AuthHandler, e.List)
}

// List 部门列表
Expand Down
2 changes: 1 addition & 1 deletion apis/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (e *Post) GetAction(key string) response.Action {
}

func (e *Post) Other(r *gin.RouterGroup) {
r.GET("/posts", e.List)
r.GET("/posts", response.AuthHandler, e.List)
}

// List 岗位列表
Expand Down