| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- const productbyprops = `
- query productbyprops($category: String, $updatedAt: String, $name: String, $createdAt: String, $status: String, $intro: String, $price: Float, $img: String, $stock: Int) {
- productbyprops: product_by_props(category: $category updatedAt: $updatedAt name: $name createdAt: $createdAt status: $status intro: $intro price: $price img: $img stock: $stock) {
- category
- updatedAt
- unit
- name
- createdAt
- status
- id
- intro
- price
- img
- stock
- }
- }
- `
- const productbyid = `
- query productbyid($id: ID) {
- productbyid: product_by_id(id: $id) {
- category
- updatedAt
- unit
- name
- createdAt
- status
- id
- intro
- price
- img
- stock
- }
- }
- `
- const cart_by_userid = `
- query findUserCart($user_id:ID){
- cartList:userCart_by_props(user_id:$user_id){
- count
- createdAt
- id
- product_id{
- category
- createdAt
- img
- intro
- name
- price
- status
- stock
- unit
- updatedAt
- }
- }
- }
- `
- const userAddressbyprops = `
- query userAddressbyprops($address: String, $updatedAt: String, $telephone: String, $default: Int, $city: String, $username: String, $postcode: String, $createdAt: String, $deletedAt: String, $user_id: ID, $area: String, $province: String) {
- userAddressbyprops: userAddress_by_props(address: $address updatedAt: $updatedAt telephone: $telephone
- default: $default city: $city username: $username postcode: $postcode createdAt: $createdAt deletedAt: $deletedAt user_id: $user_id area: $area province: $province) {
- address
- updatedAt
- telephone
- default
- city
- username
- postcode
- createdAt
- deletedAt
- id
- user_id {
- email
- updatedAt
- password
- telephone
- username
- createdAt
- openid
- id
- }
- area
- province
- }
- }
- `
- const orderbyprops = `
- query orderbyprops($deliveryTime: String, $updatedAt: String, $orderLogistics_id: ID, $payTime: String, $orderTotalPay: Float, $createdAt: String, $orderStatus: String, $userAddress_id: ID, $orderShipFee: Float, $count: Int, $user_id: ID, $productTotalPay: Float, $orderPay_id: ID) {
- orderbyprops: order_by_props(deliveryTime: $deliveryTime updatedAt: $updatedAt orderLogistics_id: $orderLogistics_id payTime: $payTime orderTotalPay: $orderTotalPay createdAt: $createdAt orderStatus: $orderStatus userAddress_id: $userAddress_id orderShipFee: $orderShipFee count: $count user_id: $user_id productTotalPay: $productTotalPay orderPay_id: $orderPay_id) {
- deliveryTime
- updatedAt
- orderLogistics_id {
- updatedAt
- logisticsFee
- expressId
- createdAt
- consigneeTel
- id
- consignAddress
- LogisticsStatus
- consigneeName
- }
- payTime
- orderTotalPay
- createdAt
- orderStatus
- userAddress_id {
- address
- updatedAt
- telephone
- default
- city
- username
- postcode
- createdAt
- deletedAt
- id
- area
- province
- }
- id
- orderShipFee
- count
- productTotalPay
- orderPay_id {
- id
- totalPay
- transactionId
- payTime
- }
- }
- }
- `
- export {
- productbyprops,
- productbyid,
- cart_by_userid,
- userAddressbyprops,
- orderbyprops
- }
|