-
Notifications
You must be signed in to change notification settings - Fork 1
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
局divisionAPIの作成 #909
局divisionAPIの作成 #909
Conversation
…TFes/FinanSu into feat/hikahana/904-create-division-api
…4-create-division-api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
少しコメントしました
selectでクエリに不具合あったのであとでそれに伴い修正お願いします
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ちょっと修正お願いします
func (d *divisionController) IndexDivisions(c echo.Context) error { | ||
ctx := c.Request().Context() | ||
year := c.QueryParam("year") | ||
financialRecordId := c.QueryParam("financial_record_id") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[must]これopenapiとクエリパラメータとどっちか揃えてください!
ds = ds.Where(goqu.Ex{"years.year": year}) | ||
} | ||
if financialRecordId != "" { | ||
ds = ds.Where(goqu.Ex{"financial_records.idr": financialRecordId}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[must]
ごめん、タイポしてた
ds = ds.Where(goqu.Ex{"financial_records.idr": financialRecordId}) | |
ds = ds.Where(goqu.Ex{"financial_records.id": financialRecordId}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
対応Issue
resolve #904
概要
divisionsのAPIを作成しました。
getは年度とfinancialRecordIdをパラメータで指定できます。
画面スクリーンショット等
URL
スクリーンショット
テスト項目
備考