Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

實作顯示看板資訊細部資訊 #138

Merged
merged 6 commits into from
Mar 29, 2021
Merged

實作顯示看板資訊細部資訊 #138

merged 6 commits into from
Mar 29, 2021

Conversation

nickyanggg
Copy link
Collaborator

👏 解決掉的 issue / Resolved Issues

📝 相關的 issue / Related Issues

⛏ 變更內容 / Details of Changes

  • delivery/http/route.go
  • delivery/http/route_boards.go 中新增 getBoardSettings、marshalBoardHeaderSettings

Copy link
Member

@PichuChen PichuChen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@y2468101216
Copy link
Collaborator

請 rebase

@codecov-io
Copy link

codecov-io commented Mar 20, 2021

Codecov Report

Merging #138 (692414f) into development (d13648a) will decrease coverage by 2.48%.
The diff coverage is 8.19%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development     #138      +/-   ##
===============================================
- Coverage        38.88%   36.39%   -2.49%     
===============================================
  Files               22       22              
  Lines              859      915      +56     
===============================================
- Hits               334      333       -1     
- Misses             475      530      +55     
- Partials            50       52       +2     
Impacted Files Coverage Δ
internal/delivery/http/route.go 58.18% <0.00%> (-2.57%) ⬇️
internal/delivery/http/route_boards.go 32.23% <7.01%> (-17.26%) ⬇️
internal/delivery/http/route_classes.go 54.83% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d13648a...692414f. Read the comment docs.

@nickyanggg
Copy link
Collaborator Author

再麻煩幫忙review~

}

func marshalBoardHeader(b bbs.BoardRecord, l *usecase.BoardPostLimitation) map[string]interface{} {
func marshalBoardHeaderInfo(b bbs.BoardRecord, l *usecase.BoardPostLimitation) map[string]interface{} {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以改成marshalBoardHeaderWithInfomarshalBoardHeaderAndInfo增進可讀性。marshalBoardHeaderInfo乍看之下很像只有加入info本身

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已更改~

@y2468101216
Copy link
Collaborator

y2468101216 commented Mar 22, 2021

希望可以補上 getBoardSettings 測試

@nickyanggg
Copy link
Collaborator Author

希望可以補上 getBoardSettings 測試

已補上~
@gogog22510 可能要再麻煩幫忙重新 review。

@PichuChen PichuChen merged commit c3d9f34 into Ptt-official-app:development Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[主線] [PTT] 實作顯示看板資訊細部資訊的http套件
5 participants