|
|
@@ -57,18 +57,9 @@ query accountbyid($id: ID) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-query classbyid($id: ID) {
|
|
|
- classbyid: class_by_id(id: $id) {
|
|
|
+query tagbyprops($account_id: ID, $name: String, $icon: String, $createdAt: String, $updateAt: String) {
|
|
|
+ tagbyprops: tag_by_props(account_id: $account_id name: $name icon: $icon createdAt: $createdAt updateAt: $updateAt) {
|
|
|
id
|
|
|
- user_id {
|
|
|
- id
|
|
|
- openid
|
|
|
- username
|
|
|
- password
|
|
|
- avatar
|
|
|
- createdAt
|
|
|
- updateAt
|
|
|
- }
|
|
|
account_id {
|
|
|
id
|
|
|
|
|
|
@@ -77,30 +68,6 @@ query classbyid($id: ID) {
|
|
|
updateAt
|
|
|
}
|
|
|
name
|
|
|
- createdAt
|
|
|
- updateAt
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-query tagbyprops($user_id: ID, $account_id: ID, $name: String, $icon: String, $createdAt: String, $updateAt: String) {
|
|
|
- tagbyprops: tag_by_props(user_id: $user_id account_id: $account_id name: $name icon: $icon createdAt: $createdAt updateAt: $updateAt) {
|
|
|
- id
|
|
|
- user_id {
|
|
|
- id
|
|
|
- openid
|
|
|
- username
|
|
|
- password
|
|
|
- avatar
|
|
|
- createdAt
|
|
|
- updateAt
|
|
|
- }
|
|
|
- account_id {
|
|
|
- id
|
|
|
- accountName
|
|
|
- createdAt
|
|
|
- updateAt
|
|
|
- }
|
|
|
- name
|
|
|
icon
|
|
|
createdAt
|
|
|
updateAt
|
|
|
@@ -109,9 +76,7 @@ query tagbyprops($user_id: ID, $account_id: ID, $name: String, $icon: String, $c
|
|
|
|
|
|
query billbyid($id: ID) {
|
|
|
billbyid: bill_by_id(id: $id) {
|
|
|
- money
|
|
|
- updateAt
|
|
|
- remark
|
|
|
+ id
|
|
|
account_id {
|
|
|
id
|
|
|
|
|
|
@@ -119,33 +84,24 @@ query billbyid($id: ID) {
|
|
|
createdAt
|
|
|
updateAt
|
|
|
}
|
|
|
- time
|
|
|
- createdAt
|
|
|
- id
|
|
|
- class
|
|
|
- user_id {
|
|
|
- id
|
|
|
- openid
|
|
|
- username
|
|
|
- password
|
|
|
- avatar
|
|
|
- createdAt
|
|
|
- updateAt
|
|
|
- }
|
|
|
tag_id {
|
|
|
id
|
|
|
|
|
|
-
|
|
|
name
|
|
|
icon
|
|
|
createdAt
|
|
|
updateAt
|
|
|
}
|
|
|
+ money
|
|
|
+ class
|
|
|
+ remark
|
|
|
+ createdAt
|
|
|
+ updateAt
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-query classbyprops($user_id: ID, $account_id: ID, $name: String, $createdAt: String, $updateAt: String) {
|
|
|
- classbyprops: class_by_props(user_id: $user_id account_id: $account_id name: $name createdAt: $createdAt updateAt: $updateAt) {
|
|
|
+query accountbyprops($user_id: ID, $accountName: String, $createdAt: String, $updateAt: String) {
|
|
|
+ accountbyprops: account_by_props(user_id: $user_id accountName: $accountName createdAt: $createdAt updateAt: $updateAt) {
|
|
|
id
|
|
|
user_id {
|
|
|
id
|
|
|
@@ -156,21 +112,14 @@ query classbyprops($user_id: ID, $account_id: ID, $name: String, $createdAt: Str
|
|
|
createdAt
|
|
|
updateAt
|
|
|
}
|
|
|
- account_id {
|
|
|
- id
|
|
|
-
|
|
|
- accountName
|
|
|
- createdAt
|
|
|
- updateAt
|
|
|
- }
|
|
|
- name
|
|
|
+ accountName
|
|
|
createdAt
|
|
|
updateAt
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-query accountbyprops($user_id: ID, $accountName: String, $createdAt: String, $updateAt: String) {
|
|
|
- accountbyprops: account_by_props(user_id: $user_id accountName: $accountName createdAt: $createdAt updateAt: $updateAt) {
|
|
|
+query assetsbyprops($user_id: ID, $name: String, $money: Float, $createdAt: String, $updateAt: String) {
|
|
|
+ assetsbyprops: assets_by_props(user_id: $user_id name: $name money: $money createdAt: $createdAt updateAt: $updateAt) {
|
|
|
id
|
|
|
user_id {
|
|
|
id
|
|
|
@@ -181,7 +130,8 @@ query accountbyprops($user_id: ID, $accountName: String, $createdAt: String, $up
|
|
|
createdAt
|
|
|
updateAt
|
|
|
}
|
|
|
- accountName
|
|
|
+ name
|
|
|
+ money
|
|
|
createdAt
|
|
|
updateAt
|
|
|
}
|
|
|
@@ -190,15 +140,6 @@ query accountbyprops($user_id: ID, $accountName: String, $createdAt: String, $up
|
|
|
query tagbyid($id: ID) {
|
|
|
tagbyid: tag_by_id(id: $id) {
|
|
|
id
|
|
|
- user_id {
|
|
|
- id
|
|
|
- openid
|
|
|
- username
|
|
|
- password
|
|
|
- avatar
|
|
|
- createdAt
|
|
|
- updateAt
|
|
|
- }
|
|
|
account_id {
|
|
|
id
|
|
|
|
|
|
@@ -242,22 +183,9 @@ query collectbyprops($updateAt: String, $remark: String, $account_id: ID, $month
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-query billbyprops($money: Float, $updateAt: String, $remark: String, $account_id: ID, $time: String, $createdAt: String, $class: String, $user_id: ID, $tag_id: ID) {
|
|
|
- billbyprops: bill_by_props(money: $money updateAt: $updateAt remark: $remark account_id: $account_id time: $time createdAt: $createdAt class: $class user_id: $user_id tag_id: $tag_id) {
|
|
|
- money
|
|
|
- updateAt
|
|
|
- remark
|
|
|
- account_id {
|
|
|
- id
|
|
|
-
|
|
|
- accountName
|
|
|
- createdAt
|
|
|
- updateAt
|
|
|
- }
|
|
|
- time
|
|
|
- createdAt
|
|
|
+query assetsbyid($id: ID) {
|
|
|
+ assetsbyid: assets_by_id(id: $id) {
|
|
|
id
|
|
|
- class
|
|
|
user_id {
|
|
|
id
|
|
|
openid
|
|
|
@@ -267,15 +195,36 @@ query billbyprops($money: Float, $updateAt: String, $remark: String, $account_id
|
|
|
createdAt
|
|
|
updateAt
|
|
|
}
|
|
|
- tag_id {
|
|
|
+ name
|
|
|
+ money
|
|
|
+ createdAt
|
|
|
+ updateAt
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+query billbyprops($account_id: ID, $tag_id: ID, $money: Float, $class: String, $remark: String, $createdAt: String, $updateAt: String) {
|
|
|
+ billbyprops: bill_by_props(account_id: $account_id tag_id: $tag_id money: $money class: $class remark: $remark createdAt: $createdAt updateAt: $updateAt) {
|
|
|
+ id
|
|
|
+ account_id {
|
|
|
id
|
|
|
|
|
|
+ accountName
|
|
|
+ createdAt
|
|
|
+ updateAt
|
|
|
+ }
|
|
|
+ tag_id {
|
|
|
+ id
|
|
|
|
|
|
name
|
|
|
icon
|
|
|
createdAt
|
|
|
updateAt
|
|
|
}
|
|
|
+ money
|
|
|
+ class
|
|
|
+ remark
|
|
|
+ createdAt
|
|
|
+ updateAt
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -307,11 +256,9 @@ mutation deleteaccount($id: ID, $user_id: ID, $accountName: String, $createdAt:
|
|
|
deleteaccount: delete_account(id: $id user_id: $user_id accountName: $accountName createdAt: $createdAt updateAt: $updateAt)
|
|
|
}
|
|
|
|
|
|
-mutation updatebill($money: Float, $updateAt: String, $remark: String, $account_id: ID, $time: String, $createdAt: String, $id: ID, $class: String, $user_id: ID, $tag_id: ID) {
|
|
|
- updatebill: update_bill(money: $money updateAt: $updateAt remark: $remark account_id: $account_id time: $time createdAt: $createdAt id: $id class: $class user_id: $user_id tag_id: $tag_id) {
|
|
|
- money
|
|
|
- updateAt
|
|
|
- remark
|
|
|
+mutation updatebill($id: ID, $account_id: ID, $tag_id: ID, $money: Float, $class: String, $remark: String, $createdAt: String, $updateAt: String) {
|
|
|
+ updatebill: update_bill(id: $id account_id: $account_id tag_id: $tag_id money: $money class: $class remark: $remark createdAt: $createdAt updateAt: $updateAt) {
|
|
|
+ id
|
|
|
account_id {
|
|
|
id
|
|
|
|
|
|
@@ -319,28 +266,19 @@ mutation updatebill($money: Float, $updateAt: String, $remark: String, $account_
|
|
|
createdAt
|
|
|
updateAt
|
|
|
}
|
|
|
- time
|
|
|
- createdAt
|
|
|
- id
|
|
|
- class
|
|
|
- user_id {
|
|
|
- id
|
|
|
- openid
|
|
|
- username
|
|
|
- password
|
|
|
- avatar
|
|
|
- createdAt
|
|
|
- updateAt
|
|
|
- }
|
|
|
tag_id {
|
|
|
id
|
|
|
|
|
|
-
|
|
|
name
|
|
|
icon
|
|
|
createdAt
|
|
|
updateAt
|
|
|
}
|
|
|
+ money
|
|
|
+ class
|
|
|
+ remark
|
|
|
+ createdAt
|
|
|
+ updateAt
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -348,6 +286,25 @@ mutation deletecollect($updateAt: String, $remark: String, $account_id: ID, $mon
|
|
|
deletecollect: delete_collect(updateAt: $updateAt remark: $remark account_id: $account_id month: $month createdAt: $createdAt allIncome: $allIncome allPay: $allPay year: $year id: $id user_id: $user_id)
|
|
|
}
|
|
|
|
|
|
+mutation updateassets($id: ID, $user_id: ID, $name: String, $money: Float, $createdAt: String, $updateAt: String) {
|
|
|
+ updateassets: update_assets(id: $id user_id: $user_id name: $name money: $money createdAt: $createdAt updateAt: $updateAt) {
|
|
|
+ id
|
|
|
+ user_id {
|
|
|
+ id
|
|
|
+ openid
|
|
|
+ username
|
|
|
+ password
|
|
|
+ avatar
|
|
|
+ createdAt
|
|
|
+ updateAt
|
|
|
+ }
|
|
|
+ name
|
|
|
+ money
|
|
|
+ createdAt
|
|
|
+ updateAt
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
mutation updateuser($id: ID, $openid: String, $username: String, $password: String, $avatar: String, $createdAt: String, $updateAt: String) {
|
|
|
updateuser: update_user(id: $id openid: $openid username: $username password: $password avatar: $avatar createdAt: $createdAt updateAt: $updateAt) {
|
|
|
id
|
|
|
@@ -360,12 +317,12 @@ mutation updateuser($id: ID, $openid: String, $username: String, $password: Stri
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-mutation deleteclass($id: ID, $user_id: ID, $account_id: ID, $name: String, $createdAt: String, $updateAt: String) {
|
|
|
- deleteclass: delete_class(id: $id user_id: $user_id account_id: $account_id name: $name createdAt: $createdAt updateAt: $updateAt)
|
|
|
+mutation deleteassets($id: ID, $user_id: ID, $name: String, $money: Float, $createdAt: String, $updateAt: String) {
|
|
|
+ deleteassets: delete_assets(id: $id user_id: $user_id name: $name money: $money createdAt: $createdAt updateAt: $updateAt)
|
|
|
}
|
|
|
|
|
|
-mutation updateclass($id: ID, $user_id: ID, $account_id: ID, $name: String, $createdAt: String, $updateAt: String) {
|
|
|
- updateclass: update_class(id: $id user_id: $user_id account_id: $account_id name: $name createdAt: $createdAt updateAt: $updateAt) {
|
|
|
+mutation createassets($id: ID!, $user_id: ID, $name: String, $money: Float, $createdAt: String, $updateAt: String) {
|
|
|
+ createassets: create_assets(id: $id user_id: $user_id name: $name money: $money createdAt: $createdAt updateAt: $updateAt) {
|
|
|
id
|
|
|
user_id {
|
|
|
id
|
|
|
@@ -376,31 +333,16 @@ mutation updateclass($id: ID, $user_id: ID, $account_id: ID, $name: String, $cre
|
|
|
createdAt
|
|
|
updateAt
|
|
|
}
|
|
|
- account_id {
|
|
|
- id
|
|
|
-
|
|
|
- accountName
|
|
|
- createdAt
|
|
|
- updateAt
|
|
|
- }
|
|
|
name
|
|
|
+ money
|
|
|
createdAt
|
|
|
updateAt
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-mutation updatetag($id: ID, $user_id: ID, $account_id: ID, $name: String, $icon: String, $createdAt: String, $updateAt: String) {
|
|
|
- updatetag: update_tag(id: $id user_id: $user_id account_id: $account_id name: $name icon: $icon createdAt: $createdAt updateAt: $updateAt) {
|
|
|
+mutation updatetag($id: ID, $account_id: ID, $name: String, $icon: String, $createdAt: String, $updateAt: String) {
|
|
|
+ updatetag: update_tag(id: $id account_id: $account_id name: $name icon: $icon createdAt: $createdAt updateAt: $updateAt) {
|
|
|
id
|
|
|
- user_id {
|
|
|
- id
|
|
|
- openid
|
|
|
- username
|
|
|
- password
|
|
|
- avatar
|
|
|
- createdAt
|
|
|
- updateAt
|
|
|
- }
|
|
|
account_id {
|
|
|
id
|
|
|
|
|
|
@@ -444,18 +386,9 @@ mutation createcollect($updateAt: String, $remark: String, $account_id: ID, $mon
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-mutation createtag($id: ID!, $user_id: ID, $account_id: ID, $name: String, $icon: String, $createdAt: String, $updateAt: String) {
|
|
|
- createtag: create_tag(id: $id user_id: $user_id account_id: $account_id name: $name icon: $icon createdAt: $createdAt updateAt: $updateAt) {
|
|
|
+mutation createtag($id: ID!, $account_id: ID, $name: String, $icon: String, $createdAt: String, $updateAt: String) {
|
|
|
+ createtag: create_tag(id: $id account_id: $account_id name: $name icon: $icon createdAt: $createdAt updateAt: $updateAt) {
|
|
|
id
|
|
|
- user_id {
|
|
|
- id
|
|
|
- openid
|
|
|
- username
|
|
|
- password
|
|
|
- avatar
|
|
|
- createdAt
|
|
|
- updateAt
|
|
|
- }
|
|
|
account_id {
|
|
|
id
|
|
|
|
|
|
@@ -510,12 +443,12 @@ mutation createaccount($id: ID!, $user_id: ID, $accountName: String, $createdAt:
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-mutation deletebill($money: Float, $updateAt: String, $remark: String, $account_id: ID, $time: String, $createdAt: String, $id: ID, $class: String, $user_id: ID, $tag_id: ID) {
|
|
|
- deletebill: delete_bill(money: $money updateAt: $updateAt remark: $remark account_id: $account_id time: $time createdAt: $createdAt id: $id class: $class user_id: $user_id tag_id: $tag_id)
|
|
|
+mutation deletebill($id: ID, $account_id: ID, $tag_id: ID, $money: Float, $class: String, $remark: String, $createdAt: String, $updateAt: String) {
|
|
|
+ deletebill: delete_bill(id: $id account_id: $account_id tag_id: $tag_id money: $money class: $class remark: $remark createdAt: $createdAt updateAt: $updateAt)
|
|
|
}
|
|
|
|
|
|
-mutation deletetag($id: ID, $user_id: ID, $account_id: ID, $name: String, $icon: String, $createdAt: String, $updateAt: String) {
|
|
|
- deletetag: delete_tag(id: $id user_id: $user_id account_id: $account_id name: $name icon: $icon createdAt: $createdAt updateAt: $updateAt)
|
|
|
+mutation deletetag($id: ID, $account_id: ID, $name: String, $icon: String, $createdAt: String, $updateAt: String) {
|
|
|
+ deletetag: delete_tag(id: $id account_id: $account_id name: $name icon: $icon createdAt: $createdAt updateAt: $updateAt)
|
|
|
}
|
|
|
|
|
|
mutation updatecollect($updateAt: String, $remark: String, $account_id: ID, $month: String, $createdAt: String, $allIncome: Float, $allPay: Float, $year: String, $id: ID, $user_id: ID) {
|
|
|
@@ -547,36 +480,9 @@ mutation updatecollect($updateAt: String, $remark: String, $account_id: ID, $mon
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-mutation createclass($id: ID!, $user_id: ID, $account_id: ID, $name: String, $createdAt: String, $updateAt: String) {
|
|
|
- createclass: create_class(id: $id user_id: $user_id account_id: $account_id name: $name createdAt: $createdAt updateAt: $updateAt) {
|
|
|
+mutation createbill($id: ID!, $account_id: ID, $tag_id: ID, $money: Float, $class: String, $remark: String, $createdAt: String, $updateAt: String) {
|
|
|
+ createbill: create_bill(id: $id account_id: $account_id tag_id: $tag_id money: $money class: $class remark: $remark createdAt: $createdAt updateAt: $updateAt) {
|
|
|
id
|
|
|
- user_id {
|
|
|
- id
|
|
|
- openid
|
|
|
- username
|
|
|
- password
|
|
|
- avatar
|
|
|
- createdAt
|
|
|
- updateAt
|
|
|
- }
|
|
|
- account_id {
|
|
|
- id
|
|
|
-
|
|
|
- accountName
|
|
|
- createdAt
|
|
|
- updateAt
|
|
|
- }
|
|
|
- name
|
|
|
- createdAt
|
|
|
- updateAt
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-mutation createbill($money: Float, $updateAt: String, $remark: String, $account_id: ID, $time: String, $createdAt: String, $id: ID!, $class: String, $user_id: ID, $tag_id: ID) {
|
|
|
- createbill: create_bill(money: $money updateAt: $updateAt remark: $remark account_id: $account_id time: $time createdAt: $createdAt id: $id class: $class user_id: $user_id tag_id: $tag_id) {
|
|
|
- money
|
|
|
- updateAt
|
|
|
- remark
|
|
|
account_id {
|
|
|
id
|
|
|
|
|
|
@@ -584,27 +490,18 @@ mutation createbill($money: Float, $updateAt: String, $remark: String, $account_
|
|
|
createdAt
|
|
|
updateAt
|
|
|
}
|
|
|
- time
|
|
|
- createdAt
|
|
|
- id
|
|
|
- class
|
|
|
- user_id {
|
|
|
- id
|
|
|
- openid
|
|
|
- username
|
|
|
- password
|
|
|
- avatar
|
|
|
- createdAt
|
|
|
- updateAt
|
|
|
- }
|
|
|
tag_id {
|
|
|
id
|
|
|
|
|
|
-
|
|
|
name
|
|
|
icon
|
|
|
createdAt
|
|
|
updateAt
|
|
|
}
|
|
|
+ money
|
|
|
+ class
|
|
|
+ remark
|
|
|
+ createdAt
|
|
|
+ updateAt
|
|
|
}
|
|
|
}
|