Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/bug_account_v2' into bug_account_v2
Browse files Browse the repository at this point in the history
  • Loading branch information
小滋润 committed Aug 19, 2024
2 parents 475004d + 1258d18 commit d2801d9
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 181 deletions.
127 changes: 61 additions & 66 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -3469,13 +3469,6 @@ const docTemplate = `{
"Invitee": {
"type": "integer"
},
"Limit": {
"type": "integer"
},
"Offset": {
"type": "integer",
"minimum": 0
},
"Role": {
"$ref": "#/definitions/accountModel.UserRole"
}
Expand All @@ -3501,8 +3494,20 @@ const docTemplate = `{
"AccountMapping": {
"type": "object",
"properties": {
"AccountId": {
"CreateTime": {
"type": "string"
},
"Id": {
"type": "integer"
},
"MainAccount": {
"$ref": "#/definitions/AccountOne"
},
"RelatedAccount": {
"$ref": "#/definitions/AccountDetail"
},
"UpdateTime": {
"type": "string"
}
}
},
Expand Down Expand Up @@ -3834,7 +3839,7 @@ const docTemplate = `{
"CategoryOne": {
"type": "object",
"properties": {
"FatherId": {
"AccountId": {
"type": "integer"
},
"Icon": {
Expand Down Expand Up @@ -3961,12 +3966,15 @@ const docTemplate = `{
}
},
"IncomeExpense": {
"type": "object",
"properties": {
"Income_expense": {
"$ref": "#/definitions/IncomeExpense"
}
}
"type": "string",
"enum": [
"income",
"expense"
],
"x-enum-varnames": [
"Income",
"Expense"
]
},
"List-AccountDetail": {
"type": "object",
Expand Down Expand Up @@ -4297,7 +4305,15 @@ const docTemplate = `{
"type": "string"
},
"IncomeExpense": {
"$ref": "#/definitions/IncomeExpense"
"enum": [
"income",
"expense"
],
"allOf": [
{
"$ref": "#/definitions/IncomeExpense"
}
]
},
"StartTime": {
"type": "string"
Expand All @@ -4306,25 +4322,15 @@ const docTemplate = `{
},
"TransactionCategoryAmountRank": {
"type": "object",
"required": [
"AccountId",
"IncomeExpense"
],
"properties": {
"AccountId": {
"Amount": {
"type": "integer"
},
"EndTime": {
"type": "string"
"Category": {
"$ref": "#/definitions/CategoryOne"
},
"IncomeExpense": {
"$ref": "#/definitions/IncomeExpense"
},
"Limit": {
"Count": {
"type": "integer"
},
"StartTime": {
"type": "string"
}
}
},
Expand All @@ -4350,26 +4356,14 @@ const docTemplate = `{
},
"TransactionDayStatistic": {
"type": "object",
"required": [
"AccountId"
],
"properties": {
"AccountId": {
"Amount": {
"type": "integer"
},
"CategoryIds": {
"type": "array",
"items": {
"type": "integer"
}
},
"EndTime": {
"type": "string"
},
"IncomeExpense": {
"$ref": "#/definitions/IncomeExpense"
"Count": {
"type": "integer"
},
"StartTime": {
"Date": {
"type": "string"
}
}
Expand Down Expand Up @@ -4487,7 +4481,15 @@ const docTemplate = `{
"type": "string"
},
"IncomeExpense": {
"$ref": "#/definitions/IncomeExpense"
"enum": [
"income",
"expense"
],
"allOf": [
{
"$ref": "#/definitions/IncomeExpense"
}
]
},
"MaximumAmount": {
"type": "integer",
Expand Down Expand Up @@ -4539,6 +4541,12 @@ const docTemplate = `{
"TransactionTimingConfig": {
"type": "object",
"properties": {
"CreatedAt": {
"type": "string"
},
"Id": {
"type": "integer"
},
"NextTime": {
"type": "string"
},
Expand All @@ -4548,8 +4556,11 @@ const docTemplate = `{
"Type": {
"$ref": "#/definitions/transactionModel.TimingType"
},
"UserId": {
"type": "integer"
"UpdatedAt": {
"type": "string"
},
"Username": {
"type": "string"
}
}
},
Expand Down Expand Up @@ -4631,16 +4642,7 @@ const docTemplate = `{
}
},
"UserGetAccountInvitationList": {
"type": "object",
"properties": {
"Limit": {
"type": "integer"
},
"Offset": {
"type": "integer",
"minimum": 0
}
}
"type": "object"
},
"UserHome": {
"type": "object",
Expand Down Expand Up @@ -4773,13 +4775,6 @@ const docTemplate = `{
"Id": {
"type": "integer"
},
"Limit": {
"type": "integer"
},
"Offset": {
"type": "integer",
"minimum": 0
},
"Username": {
"type": "string"
}
Expand Down
Loading

0 comments on commit d2801d9

Please sign in to comment.