Skip to content

Commit

Permalink
勘定科目、部門のコードに対応
Browse files Browse the repository at this point in the history
  • Loading branch information
hanenao committed Jun 3, 2024
1 parent d00c767 commit 9e4c8c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions account_items.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ type AccountItems struct {
type AccountItem struct {
// 勘定科目ID
ID int32 `json:"id"`
// 勘定科目コード
Code *string `json:"code,omitempty"`
// 勘定科目名 (30文字以内)
Name string `json:"name"`
// ショートカット1 (20文字以内)
Expand Down
4 changes: 4 additions & 0 deletions sections.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ type Section struct {
ID int32 `json:"id"`
// 事業所ID
CompanyID int32 `json:"company_id"`
// 部門コード
Code *string `json:"code,omitempty"`
// 部門名 (30文字以内)
Name string `json:"name"`
// 部門の使用設定(true: 使用する、false: 使用しない)
Expand All @@ -40,6 +42,8 @@ type Section struct {
type SectionParams struct {
// 事業所ID
CompanyID int32 `json:"company_id"`
// 部門コード(利用を有効にしている場合は必須)
Code *string `json:"code,omitempty"`
// 部門名 (30文字以内)
Name string `json:"name"`
// 正式名称 (255文字以内)
Expand Down

0 comments on commit 9e4c8c5

Please sign in to comment.