|
@@ -103,16 +103,6 @@ const user_by_id = `
|
|
|
createdAt
|
|
createdAt
|
|
|
openid
|
|
openid
|
|
|
id
|
|
id
|
|
|
- userData_id {
|
|
|
|
|
- id
|
|
|
|
|
- nickname
|
|
|
|
|
- avatar
|
|
|
|
|
- isVip
|
|
|
|
|
- vipCode
|
|
|
|
|
- userPoint
|
|
|
|
|
- createdAt
|
|
|
|
|
- updatedAt
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
`
|
|
`
|
|
@@ -190,10 +180,6 @@ const productbyprops = `
|
|
|
query productbyprops($recommend: Int, $where: product_filter, $sort_by: product_sort_by, $limit: Int, $unit: String, $order_by: OrderBy, $name: String, $filter: Filter, $status: String, $price: Float, $category_id: ID, $img: String, $stock: Int, $skip: Int) {
|
|
query productbyprops($recommend: Int, $where: product_filter, $sort_by: product_sort_by, $limit: Int, $unit: String, $order_by: OrderBy, $name: String, $filter: Filter, $status: String, $price: Float, $category_id: ID, $img: String, $stock: Int, $skip: Int) {
|
|
|
productbyprops: product_by_props(recommend: $recommend where: $where sort_by: $sort_by limit: $limit unit: $unit order_by: $order_by name: $name filter: $filter status: $status price: $price category_id: $category_id img: $img stock: $stock skip: $skip) {
|
|
productbyprops: product_by_props(recommend: $recommend where: $where sort_by: $sort_by limit: $limit unit: $unit order_by: $order_by name: $name filter: $filter status: $status price: $price category_id: $category_id img: $img stock: $stock skip: $skip) {
|
|
|
recommend
|
|
recommend
|
|
|
- category_id{
|
|
|
|
|
- id
|
|
|
|
|
- name
|
|
|
|
|
- }
|
|
|
|
|
updatedAt
|
|
updatedAt
|
|
|
unit
|
|
unit
|
|
|
name
|
|
name
|
|
@@ -212,9 +198,6 @@ const productbyprops = `
|
|
|
const productAndSpec_by_id = `
|
|
const productAndSpec_by_id = `
|
|
|
query productbyid($id: ID) {
|
|
query productbyid($id: ID) {
|
|
|
productbyid: product_by_id(id: $id) {
|
|
productbyid: product_by_id(id: $id) {
|
|
|
- category_id{
|
|
|
|
|
- id
|
|
|
|
|
- }
|
|
|
|
|
updatedAt
|
|
updatedAt
|
|
|
unit
|
|
unit
|
|
|
name
|
|
name
|
|
@@ -262,7 +245,6 @@ const create_specificationStock = `
|
|
|
specificationStock {
|
|
specificationStock {
|
|
|
updatedAt
|
|
updatedAt
|
|
|
color
|
|
color
|
|
|
-
|
|
|
|
|
createdAt
|
|
createdAt
|
|
|
size
|
|
size
|
|
|
slideImg
|
|
slideImg
|
|
@@ -417,7 +399,6 @@ const create_update_userAddress = `
|
|
|
createdAt
|
|
createdAt
|
|
|
deletedAt
|
|
deletedAt
|
|
|
id
|
|
id
|
|
|
-
|
|
|
|
|
area
|
|
area
|
|
|
province
|
|
province
|
|
|
}
|
|
}
|
|
@@ -435,7 +416,6 @@ const create_update_userAddress = `
|
|
|
createdAt
|
|
createdAt
|
|
|
deletedAt
|
|
deletedAt
|
|
|
id
|
|
id
|
|
|
-
|
|
|
|
|
area
|
|
area
|
|
|
province
|
|
province
|
|
|
}
|
|
}
|
|
@@ -459,7 +439,6 @@ const update_userAddress = `
|
|
|
createdAt
|
|
createdAt
|
|
|
deletedAt
|
|
deletedAt
|
|
|
id
|
|
id
|
|
|
-
|
|
|
|
|
area
|
|
area
|
|
|
province
|
|
province
|
|
|
}
|
|
}
|
|
@@ -476,8 +455,7 @@ const update_userAddress = `
|
|
|
postcode
|
|
postcode
|
|
|
createdAt
|
|
createdAt
|
|
|
deletedAt
|
|
deletedAt
|
|
|
- id
|
|
|
|
|
-
|
|
|
|
|
|
|
+ id
|
|
|
area
|
|
area
|
|
|
province
|
|
province
|
|
|
}
|
|
}
|
|
@@ -547,13 +525,11 @@ const orderbyprops = `
|
|
|
expressDetailName
|
|
expressDetailName
|
|
|
expressId
|
|
expressId
|
|
|
createdAt
|
|
createdAt
|
|
|
-
|
|
|
|
|
consigneeTel
|
|
consigneeTel
|
|
|
id
|
|
id
|
|
|
expressName
|
|
expressName
|
|
|
consignAddress
|
|
consignAddress
|
|
|
LogisticsStatus
|
|
LogisticsStatus
|
|
|
-
|
|
|
|
|
consigneeName
|
|
consigneeName
|
|
|
}
|
|
}
|
|
|
orderTotalPay
|
|
orderTotalPay
|
|
@@ -571,7 +547,6 @@ const orderbyprops = `
|
|
|
openid
|
|
openid
|
|
|
id
|
|
id
|
|
|
totalFee
|
|
totalFee
|
|
|
-
|
|
|
|
|
cashFee
|
|
cashFee
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -590,13 +565,11 @@ const order_by_id = `
|
|
|
logisticsFee
|
|
logisticsFee
|
|
|
expressId
|
|
expressId
|
|
|
createdAt
|
|
createdAt
|
|
|
-
|
|
|
|
|
consigneeTel
|
|
consigneeTel
|
|
|
id
|
|
id
|
|
|
expressName
|
|
expressName
|
|
|
consignAddress
|
|
consignAddress
|
|
|
LogisticsStatus
|
|
LogisticsStatus
|
|
|
-
|
|
|
|
|
consigneeName
|
|
consigneeName
|
|
|
}
|
|
}
|
|
|
orderTotalPay
|
|
orderTotalPay
|
|
@@ -624,7 +597,6 @@ const order_by_id = `
|
|
|
openid
|
|
openid
|
|
|
id
|
|
id
|
|
|
totalFee
|
|
totalFee
|
|
|
-
|
|
|
|
|
cashFee
|
|
cashFee
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -683,13 +655,11 @@ const update_order_logistics = `
|
|
|
expressDetailName
|
|
expressDetailName
|
|
|
expressId
|
|
expressId
|
|
|
createdAt
|
|
createdAt
|
|
|
-
|
|
|
|
|
consigneeTel
|
|
consigneeTel
|
|
|
id
|
|
id
|
|
|
expressName
|
|
expressName
|
|
|
consignAddress
|
|
consignAddress
|
|
|
- LogisticsStatus
|
|
|
|
|
-
|
|
|
|
|
|
|
+ LogisticsStatus
|
|
|
consigneeName
|
|
consigneeName
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -789,14 +759,11 @@ const create_order = `
|
|
|
order_id {
|
|
order_id {
|
|
|
remark
|
|
remark
|
|
|
updatedAt
|
|
updatedAt
|
|
|
-
|
|
|
|
|
orderTotalPay
|
|
orderTotalPay
|
|
|
createdAt
|
|
createdAt
|
|
|
orderStatus
|
|
orderStatus
|
|
|
-
|
|
|
|
|
id
|
|
id
|
|
|
count
|
|
count
|
|
|
-
|
|
|
|
|
productTotalPay
|
|
productTotalPay
|
|
|
}
|
|
}
|
|
|
consigneeTel
|
|
consigneeTel
|
|
@@ -833,13 +800,11 @@ const create_order_product = `
|
|
|
updatedAt
|
|
updatedAt
|
|
|
productColor
|
|
productColor
|
|
|
unit
|
|
unit
|
|
|
-
|
|
|
|
|
productSize
|
|
productSize
|
|
|
orderPay
|
|
orderPay
|
|
|
createdAt
|
|
createdAt
|
|
|
productImg
|
|
productImg
|
|
|
productName
|
|
productName
|
|
|
-
|
|
|
|
|
productPrice
|
|
productPrice
|
|
|
id
|
|
id
|
|
|
count
|
|
count
|
|
@@ -950,7 +915,6 @@ const update_product = `
|
|
|
intro
|
|
intro
|
|
|
discountRate
|
|
discountRate
|
|
|
price
|
|
price
|
|
|
-
|
|
|
|
|
img
|
|
img
|
|
|
stock
|
|
stock
|
|
|
}
|
|
}
|