| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309 |
- const serverbyprops = `
- query serverbyprops($name: String) {
- serverbyprops: server_by_props(name: $name) {
- id
- name
- description
- img
- createdAt
- updatedAt
- }
- }
- `;
- const servicebyprops = `
- query servicebyprops($server_id: ID) {
- servicebyprops: service_by_props(server_id: $server_id) {
- id
- server_id {
- id
- name
- description
- img
- createdAt
- updatedAt
- }
- repertory_id {
- id
- count
- createdAt
- updatedAt
- }
- description
- price
- startTime
- lastTime
- }
- }
- `;
- const createorderAndupdaterepertory = `
- mutation createorderAndupdaterepertory ($order_id: ID!, $contactTelephone: String, $contactName: String, $payStatus: String, $remark: String, $payCount: String, $payTime: String, $createdAt: String, $orderStatus: String, $user_id: ID, $service_id: ID, $customerNumber: Int, $repertory_id: ID, $updatedAt: String, $count: Int) {
- updaterepertory: update_repertory(id: $repertory_id count: $count updatedAt: $updatedAt) {
- id
- count
- updatedAt
- }
- createorder: create_order(id: $order_id contactTelephone: $contactTelephone contactName: $contactName payStatus: $payStatus remark: $remark payCount: $payCount createdAt: $createdAt updatedAt: $updatedAt payTime: $payTime createdAt: $createdAt orderStatus: $orderStatus user_id: $user_id service_id: $service_id customerNumber: $customerNumber) {
- payStatus
- remark
- payCount
- updatedAt
- payTime
- createdAt
- updatedAt
- orderStatus
- id
- customerNumber
- contactTelephone
- contactName
- }
- }
- `;
- const userbyid = `
- query userbyid($id: ID) {
- userbyid: user_by_id(id: $id) {
- id
- openid
- admin
- username
- nickname
- password
- telephone
- email
- createdAt
- updatedAt
- }
- }
- `;
- const orderbyprops = `
- query orderbyprops($orderStatus: String, $user_id: ID) {
- orderbyprops: order_by_props(orderStatus: $orderStatus user_id: $user_id) {
- payStatus
- remark
- payCount
- updatedAt
- payTime
- createdAt
- orderStatus
- id
- contactTelephone
- contactName
- user_id {
- id
- openid
- admin
- username
- nickname
- password
- telephone
- email
- createdAt
- updatedAt
- }
- service_id {
- id
- description
- price
- startTime
- lastTime
- createdAt
- updatedAt
- repertory_id {
- id
- count
- createdAt
- updatedAt
- }
- server_id {
- id
- name
- description
- createdAt
- updatedAt
- }
- }
- customerNumber
- }
- }
- `;
- const adminorderbyprops = `
- query adminorderbyprops($orderStatus: String) {
- adminorderbyprops: order_by_props(orderStatus: $orderStatus) {
- payStatus
- remark
- payCount
- updatedAt
- payTime
- createdAt
- orderStatus
- id
- contactTelephone
- contactName
- user_id {
- id
- openid
- admin
- username
- nickname
- password
- telephone
- email
- createdAt
- updatedAt
- }
- service_id {
- id
- description
- price
- startTime
- lastTime
- createdAt
- updatedAt
- repertory_id {
- id
- count
- createdAt
- updatedAt
- }
- server_id {
- id
- name
- description
- createdAt
- updatedAt
- }
- }
- customerNumber
- }
- }
- `;
- 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,
- servicebyprops: servicebyprops,
- createorderAndupdaterepertory: createorderAndupdaterepertory,
- userbyid: userbyid,
- orderbyprops: orderbyprops,
- adminorderbyprops: adminorderbyprops,
- updateorderAndupdaterepertory: updateorderAndupdaterepertory,
- updateorder: updateorder,
- updateuser: updateuser,
- createserver: createserver,
- updateserviceAndupdaterepertory: updateserviceAndupdaterepertory,
- createserviceAndcreaterepertory: createserviceAndcreaterepertory
- };
|