|
|
@@ -57,6 +57,22 @@ query accountbyid($id: ID) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+query classbyid($id: ID) {
|
|
|
+ classbyid: class_by_id(id: $id) {
|
|
|
+ id
|
|
|
+ account_id {
|
|
|
+ id
|
|
|
+
|
|
|
+ accountName
|
|
|
+ createdAt
|
|
|
+ updateAt
|
|
|
+ }
|
|
|
+ name
|
|
|
+ createdAt
|
|
|
+ updateAt
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
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
|
|
|
@@ -101,6 +117,22 @@ query billbyid($id: ID) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+query classbyprops($account_id: ID, $name: String, $createdAt: String, $updateAt: String) {
|
|
|
+ classbyprops: class_by_props(account_id: $account_id name: $name createdAt: $createdAt updateAt: $updateAt) {
|
|
|
+ id
|
|
|
+ account_id {
|
|
|
+ id
|
|
|
+
|
|
|
+ accountName
|
|
|
+ createdAt
|
|
|
+ updateAt
|
|
|
+ }
|
|
|
+ name
|
|
|
+ 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) {
|
|
|
id
|
|
|
@@ -172,6 +204,7 @@ query billbyprops($account_id: ID, $tag_id: ID, $time: String, $money: Float, $c
|
|
|
remark
|
|
|
account_id {
|
|
|
id
|
|
|
+
|
|
|
accountName
|
|
|
createdAt
|
|
|
updateAt
|
|
|
@@ -262,6 +295,26 @@ mutation updateuser($id: ID, $openid: String, $username: String, $password: Stri
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+mutation deleteclass($id: ID, $account_id: ID, $name: String, $createdAt: String, $updateAt: String) {
|
|
|
+ deleteclass: delete_class(id: $id account_id: $account_id name: $name createdAt: $createdAt updateAt: $updateAt)
|
|
|
+}
|
|
|
+
|
|
|
+mutation updateclass($id: ID, $account_id: ID, $name: String, $createdAt: String, $updateAt: String) {
|
|
|
+ updateclass: update_class(id: $id account_id: $account_id name: $name createdAt: $createdAt updateAt: $updateAt) {
|
|
|
+ id
|
|
|
+ account_id {
|
|
|
+ id
|
|
|
+
|
|
|
+ accountName
|
|
|
+ createdAt
|
|
|
+ updateAt
|
|
|
+ }
|
|
|
+ name
|
|
|
+ createdAt
|
|
|
+ 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
|
|
|
@@ -402,6 +455,22 @@ mutation updatecollect($updateAt: String, $remark: String, $account_id: ID, $mon
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+mutation createclass($id: ID!, $account_id: ID, $name: String, $createdAt: String, $updateAt: String) {
|
|
|
+ createclass: create_class(id: $id account_id: $account_id name: $name createdAt: $createdAt updateAt: $updateAt) {
|
|
|
+ id
|
|
|
+ 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, $tag_id: ID) {
|
|
|
createbill: create_bill(money: $money updateAt: $updateAt remark: $remark account_id: $account_id time: $time createdAt: $createdAt id: $id class: $class tag_id: $tag_id) {
|
|
|
money
|