|
|
@@ -122,7 +122,6 @@ const orderbyprops = `
|
|
|
id
|
|
|
name
|
|
|
description
|
|
|
- img
|
|
|
createdAt
|
|
|
updatedAt
|
|
|
}
|
|
|
@@ -175,7 +174,6 @@ const adminorderbyprops = `
|
|
|
id
|
|
|
name
|
|
|
description
|
|
|
- img
|
|
|
createdAt
|
|
|
updatedAt
|
|
|
}
|
|
|
@@ -185,6 +183,115 @@ const adminorderbyprops = `
|
|
|
}
|
|
|
`;
|
|
|
|
|
|
+const updateorderAndupdaterepertory = `
|
|
|
+ mutation updateorderAndupdaterepertory ($order_id: ID, $repertory_id: ID, $updatedAt: String, $orderStatus: String, $count: Int) {
|
|
|
+ updateorder: update_order(id: $order_id updatedAt: $updatedAt orderStatus: $orderStatus) {
|
|
|
+ payStatus
|
|
|
+ remark
|
|
|
+ payCount
|
|
|
+ updatedAt
|
|
|
+ payTime
|
|
|
+ createdAt
|
|
|
+ orderStatus
|
|
|
+ id
|
|
|
+ customerNumber
|
|
|
+ }
|
|
|
+
|
|
|
+ updaterepertory: update_repertory(id: $repertory_id count: $count updatedAt: $updatedAt) {
|
|
|
+ id
|
|
|
+ count
|
|
|
+ updatedAt
|
|
|
+ }
|
|
|
+ }
|
|
|
+`;
|
|
|
+
|
|
|
+const updateorder = `
|
|
|
+ mutation updateorder($updatedAt: String, $orderStatus: String, $id: ID, $user_id: ID) {
|
|
|
+ updateorder: update_order(updatedAt: $updatedAt orderStatus: $orderStatus id: $id user_id: $user_id ) {
|
|
|
+ payStatus
|
|
|
+ remark
|
|
|
+ payCount
|
|
|
+ updatedAt
|
|
|
+ payTime
|
|
|
+ createdAt
|
|
|
+ orderStatus
|
|
|
+ id
|
|
|
+ customerNumber
|
|
|
+ }
|
|
|
+ }
|
|
|
+`;
|
|
|
+
|
|
|
+const updateuser = `
|
|
|
+ mutation updateuser($id: ID, $nickname: String, $telephone: String, $updatedAt: String) {
|
|
|
+ updateuser: update_user(id: $id nickname: $nickname telephone: $telephone updatedAt: $updatedAt) {
|
|
|
+ id
|
|
|
+ openid
|
|
|
+ admin
|
|
|
+ username
|
|
|
+ nickname
|
|
|
+ password
|
|
|
+ telephone
|
|
|
+ email
|
|
|
+ createdAt
|
|
|
+ updatedAt
|
|
|
+ }
|
|
|
+ }
|
|
|
+`;
|
|
|
+
|
|
|
+const createserver = `
|
|
|
+ mutation createserver($id: ID!, $name: String, $description: String, $img: String, $createdAt: String, $updatedAt: String) {
|
|
|
+ createserver: create_server(id: $id name: $name description: $description img: $img createdAt: $createdAt updatedAt: $updatedAt) {
|
|
|
+ id
|
|
|
+ name
|
|
|
+ description
|
|
|
+ img
|
|
|
+ createdAt
|
|
|
+ updatedAt
|
|
|
+ }
|
|
|
+ }
|
|
|
+`;
|
|
|
+
|
|
|
+const updateserviceAndupdaterepertory = `
|
|
|
+ mutation createserviceAndcreaterepertory($service_id: ID, $server_id: ID, $repertory_id: ID!, $count: Int, $description: String, $price: Float, $startTime: String, $lastTime: String, $updatedAt: String) {
|
|
|
+ updateservice: update_service(id: $service_id server_id: $server_id repertory_id: $repertory_id description: $description price: $price startTime: $startTime lastTime: $lastTime updatedAt: $updatedAt) {
|
|
|
+ id
|
|
|
+ description
|
|
|
+ price
|
|
|
+ startTime
|
|
|
+ lastTime
|
|
|
+ createdAt
|
|
|
+ updatedAt
|
|
|
+ }
|
|
|
+
|
|
|
+ updaterepertory: update_repertory(id: $repertory_id service_id: $service_id count: $count updatedAt: $updatedAt) {
|
|
|
+ id
|
|
|
+ count
|
|
|
+ createdAt
|
|
|
+ updatedAt
|
|
|
+ }
|
|
|
+ }
|
|
|
+`;
|
|
|
+
|
|
|
+const createserviceAndcreaterepertory = `
|
|
|
+ mutation createserviceAndcreaterepertory($service_id: ID!, $server_id: ID, $repertory_id: ID!, $count: Int, $description: String, $price: Float, $startTime: String, $lastTime: String, $createdAt: String, $updatedAt: String) {
|
|
|
+ createservice: create_service(id: $service_id server_id: $server_id repertory_id: $repertory_id description: $description price: $price startTime: $startTime lastTime: $lastTime createdAt: $createdAt updatedAt: $updatedAt) {
|
|
|
+ id
|
|
|
+ description
|
|
|
+ price
|
|
|
+ startTime
|
|
|
+ lastTime
|
|
|
+ createdAt
|
|
|
+ updatedAt
|
|
|
+ }
|
|
|
+
|
|
|
+ createrepertory: create_repertory(id: $repertory_id service_id: $service_id count: $count createdAt: $createdAt updatedAt: $updatedAt) {
|
|
|
+ id
|
|
|
+ count
|
|
|
+ createdAt
|
|
|
+ updatedAt
|
|
|
+ }
|
|
|
+ }
|
|
|
+`;
|
|
|
|
|
|
module.exports = {
|
|
|
serverbyprops: serverbyprops,
|
|
|
@@ -192,5 +299,11 @@ module.exports = {
|
|
|
createorderAndupdaterepertory: createorderAndupdaterepertory,
|
|
|
userbyid: userbyid,
|
|
|
orderbyprops: orderbyprops,
|
|
|
- adminorderbyprops: adminorderbyprops
|
|
|
+ adminorderbyprops: adminorderbyprops,
|
|
|
+ updateorderAndupdaterepertory: updateorderAndupdaterepertory,
|
|
|
+ updateorder: updateorder,
|
|
|
+ updateuser: updateuser,
|
|
|
+ createserver: createserver,
|
|
|
+ updateserviceAndupdaterepertory: updateserviceAndupdaterepertory,
|
|
|
+ createserviceAndcreaterepertory: createserviceAndcreaterepertory
|
|
|
};
|