gql.js 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863
  1. const create_user = `
  2. mutation createuser($email: String, $updatedAt: String, $password: String, $telephone: String, $username: String, $createdAt: String, $openid: String, $id: ID!, $userData_id: ID) {
  3. createuser: create_user(email: $email updatedAt: $updatedAt password: $password telephone: $telephone username: $username createdAt: $createdAt openid: $openid id: $id userData_id: $userData_id) {
  4. result
  5. user {
  6. email
  7. updatedAt
  8. password
  9. telephone
  10. username
  11. createdAt
  12. openid
  13. id
  14. }
  15. }
  16. }
  17. `
  18. const find_user_by_openid = `
  19. query userbyprops($openid: String) {
  20. userbyprops: user_by_props(openid: $openid) {
  21. id
  22. }
  23. }
  24. `
  25. const category_by_props = `
  26. query categorybyprops($sort_by: category_sort_by, $limit: Int, $status: String) {
  27. categorybyprops: category_by_props(sort_by: $sort_by limit: $limit status: $status) {
  28. id
  29. text:name
  30. icon:img
  31. status
  32. }
  33. }
  34. `
  35. const update_category = `
  36. mutation updatecategory($id: ID, $img: String, $order: Int, $status: String, $updatedAt: String) {
  37. updatecategory: update_category(id: $id img: $img order: $order status: $status updatedAt: $updatedAt) {
  38. result
  39. category {
  40. id
  41. name
  42. img
  43. order
  44. status
  45. createdAt
  46. updatedAt
  47. }
  48. }
  49. }
  50. `
  51. const delete_category = `
  52. mutation deletecategory($id: ID) {
  53. deletecategory: delete_category(id: $id)
  54. }
  55. `
  56. const create_category = `
  57. mutation createcategory($id: ID!, $name: String, $img: String, $order: Int, $status: String, $createdAt: String, $updatedAt: String) {
  58. createcategory: create_category(id: $id name: $name img: $img order: $order status: $status createdAt: $createdAt updatedAt: $updatedAt) {
  59. result
  60. category {
  61. id
  62. name
  63. img
  64. order
  65. status
  66. createdAt
  67. updatedAt
  68. }
  69. }
  70. }
  71. `
  72. const productbyprops = `
  73. 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) {
  74. 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) {
  75. recommend
  76. category_id{
  77. id
  78. name
  79. }
  80. updatedAt
  81. unit
  82. name
  83. createdAt
  84. status
  85. id
  86. intro
  87. price
  88. img
  89. stock
  90. discountRate
  91. }
  92. }
  93. `
  94. const productAndSpec_by_id = `
  95. query productbyid($id: ID) {
  96. productbyid: product_by_id(id: $id) {
  97. category_id{
  98. id
  99. }
  100. updatedAt
  101. unit
  102. name
  103. createdAt
  104. status
  105. id
  106. intro
  107. price
  108. img
  109. stock
  110. discountRate
  111. }
  112. spec: specificationStock_by_props(product_id: $id ) {
  113. id
  114. color
  115. size
  116. slideImg
  117. detailImg
  118. stock
  119. status
  120. }
  121. }
  122. `
  123. const specificationStock_by_props = `
  124. query specificationStockbyprops($product_id: ID) {
  125. specificationStockbyprops: specificationStock_by_props(product_id: $product_id) {
  126. updatedAt
  127. color
  128. createdAt
  129. size
  130. slideImg
  131. status
  132. id
  133. detailImg
  134. stock
  135. }
  136. }
  137. `
  138. const delete_specificationStock = `
  139. mutation deletespecificationStock($id: ID) {
  140. deletespecificationStock: delete_specificationStock(id: $id)
  141. }
  142. `
  143. const update_specificationStock = `
  144. mutation updatespecificationStock($id: ID, $updatedAt: String, $color: String, $size: String, $slideImg: String, $status: String, $detailImg: String, $stock: Int) {
  145. updatespecificationStock: update_specificationStock(id: $id updatedAt: $updatedAt color: $color size: $size slideImg: $slideImg status: $status detailImg: $detailImg stock: $stock) {
  146. result
  147. specificationStock {
  148. updatedAt
  149. color
  150. createdAt
  151. size
  152. slideImg
  153. status
  154. id
  155. detailImg
  156. stock
  157. }
  158. }
  159. }
  160. `
  161. const create_userCart = `
  162. mutation createuserCart($id: ID!, $user_id: ID, $product_id: ID, $specificationStock_id: ID, $count: Int, $createdAt: String, $updatedAt: String) {
  163. createuserCart: create_userCart(id: $id user_id: $user_id product_id: $product_id specificationStock_id: $specificationStock_id count: $count createdAt: $createdAt updatedAt: $updatedAt) {
  164. result
  165. userCart {
  166. id
  167. user_id {
  168. id
  169. }
  170. product_id {
  171. recommend
  172. unit
  173. name
  174. status
  175. id
  176. intro
  177. price
  178. img
  179. stock
  180. discountRate
  181. }
  182. specificationStock_id {
  183. id
  184. color
  185. size
  186. stock
  187. status
  188. }
  189. count
  190. createdAt
  191. updatedAt
  192. }
  193. }
  194. }
  195. `
  196. const cart_by_userid = `
  197. query findUserCart($user_id:ID){
  198. cartList:userCart_by_props(user_id:$user_id){
  199. count
  200. createdAt
  201. id
  202. product_id{
  203. id
  204. img
  205. intro
  206. name
  207. price
  208. status
  209. stock
  210. unit
  211. discountRate
  212. }
  213. specificationStock_id{
  214. id
  215. color
  216. size
  217. stock
  218. status
  219. }
  220. }
  221. }
  222. `
  223. const update_userCart = `
  224. mutation updateuserCart($id: ID, $specificationStock_id: ID, $count: Int, $updatedAt: String, $where: userCart_filter) {
  225. updateuserCart: update_userCart(id: $id specificationStock_id: $specificationStock_id count: $count updatedAt: $updatedAt where: $where) {
  226. result
  227. userCart {
  228. id
  229. product_id {
  230. id
  231. }
  232. specificationStock_id {
  233. updatedAt
  234. color
  235. size
  236. slideImg
  237. status
  238. id
  239. detailImg
  240. stock
  241. }
  242. count
  243. createdAt
  244. updatedAt
  245. }
  246. }
  247. }
  248. `
  249. const delete_userCart_by_id = `
  250. mutation delete_userCart($id: [String]) {
  251. delete_userCart(where: {
  252. id: {
  253. _in: $id
  254. }
  255. })
  256. }
  257. `
  258. const create_update_userAddress = `
  259. mutation createuserAddress( $id: ID!, $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,
  260. $updateID: ID!, $updateDefault: Int, $newUpdatedAt: String) {
  261. createuserAddress: create_userAddress(id: $id 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) {
  262. result
  263. userAddress {
  264. address
  265. updatedAt
  266. telephone
  267. default
  268. city
  269. username
  270. postcode
  271. createdAt
  272. deletedAt
  273. id
  274. area
  275. province
  276. }
  277. }
  278. updateuserAddress: update_userAddress(id: $updateID default: $updateDefault updatedAt: $createdAt) {
  279. result
  280. userAddress {
  281. address
  282. updatedAt
  283. telephone
  284. default
  285. city
  286. username
  287. postcode
  288. createdAt
  289. deletedAt
  290. id
  291. area
  292. province
  293. }
  294. }
  295. }
  296. `
  297. const update_userAddress = `
  298. mutation updateuserAddress($id: ID, $address: String, $updatedAt: String, $where: userAddress_filter, $telephone: String, $default: Int, $city: String, $username: String, $postcode: String, $createdAt: String, $deletedAt: String, $user_id: ID, $area: String, $province: String,
  299. $updateID: ID!, $updateDefault: Int, $newUpdatedAt: String) {
  300. updateAddress: update_userAddress(id: $id address: $address updatedAt: $updatedAt where: $where telephone: $telephone default: $default city: $city username: $username postcode: $postcode createdAt: $createdAt deletedAt: $deletedAt user_id: $user_id area: $area province: $province) {
  301. result
  302. userAddress {
  303. address
  304. updatedAt
  305. telephone
  306. default
  307. city
  308. username
  309. postcode
  310. createdAt
  311. deletedAt
  312. id
  313. area
  314. province
  315. }
  316. }
  317. updateuserAddress: update_userAddress(id: $updateID default: $updateDefault updatedAt: $createdAt) {
  318. result
  319. userAddress {
  320. address
  321. updatedAt
  322. telephone
  323. default
  324. city
  325. username
  326. postcode
  327. createdAt
  328. deletedAt
  329. id
  330. area
  331. province
  332. }
  333. }
  334. }
  335. `
  336. const userAddressbyprops = `
  337. query userAddressbyprops($user_id: ID) {
  338. userAddressbyprops: userAddress_by_props(user_id: $user_id) {
  339. address
  340. updatedAt
  341. telephone
  342. default
  343. city
  344. username
  345. postcode
  346. createdAt
  347. deletedAt
  348. id
  349. user_id {
  350. email
  351. telephone
  352. username
  353. openid
  354. id
  355. }
  356. area
  357. province
  358. }
  359. }
  360. `
  361. const user_default_address = `
  362. query user_default_address($user_id: ID, $default: Int) {
  363. defaultAddress: userAddress_by_props(user_id: $user_id default: $default) {
  364. id
  365. default
  366. username
  367. telephone
  368. province
  369. area
  370. city
  371. address
  372. user_id {
  373. openid
  374. id
  375. }
  376. }
  377. }
  378. `
  379. const delete_address = `
  380. mutation deleteuserAddress($id: ID) {
  381. deleteuserAddress: delete_userAddress(id: $id)
  382. }
  383. `
  384. const orderbyprops = `
  385. query orderbyprops($updatedAt: String, $orderLogistics_id: ID, $orderTotalPay: Float, $createdAt: String, $orderStatus: String, $userAddress_id: ID, $count: Int, $user_id: ID, $productTotalPay: Float, $orderPay_id: ID) {
  386. orderbyprops: order_by_props(updatedAt: $updatedAt orderLogistics_id: $orderLogistics_id orderTotalPay: $orderTotalPay createdAt: $createdAt orderStatus: $orderStatus userAddress_id: $userAddress_id count: $count user_id: $user_id productTotalPay: $productTotalPay orderPay_id: $orderPay_id) {
  387. updatedAt
  388. orderLogistics_id {
  389. deliveryTime
  390. serviceStore
  391. updatedAt
  392. logisticsFee
  393. expressId
  394. createdAt
  395. consigneeTel
  396. id
  397. expressName
  398. consignAddress
  399. LogisticsStatus
  400. consigneeName
  401. }
  402. orderTotalPay
  403. createdAt
  404. orderStatus
  405. userAddress_id {
  406. address
  407. updatedAt
  408. telephone
  409. default
  410. city
  411. username
  412. postcode
  413. createdAt
  414. deletedAt
  415. id
  416. area
  417. province
  418. }
  419. id
  420. count
  421. productTotalPay
  422. orderPay_id {
  423. updatedAt
  424. tradeNo
  425. transactionId
  426. time
  427. createdAt
  428. openid
  429. id
  430. totalFee
  431. cashFee
  432. }
  433. }
  434. }
  435. `
  436. const order_by_id = `
  437. query orderbyid($id: ID) {
  438. orderbyid: order_by_id(id: $id) {
  439. remark
  440. updatedAt
  441. orderLogistics_id {
  442. deliveryTime
  443. serviceStore
  444. updatedAt
  445. logisticsFee
  446. expressId
  447. createdAt
  448. consigneeTel
  449. id
  450. expressName
  451. consignAddress
  452. LogisticsStatus
  453. consigneeName
  454. }
  455. orderTotalPay
  456. createdAt
  457. orderStatus
  458. userAddress_id {
  459. address
  460. updatedAt
  461. telephone
  462. default
  463. city
  464. username
  465. postcode
  466. createdAt
  467. deletedAt
  468. id
  469. area
  470. province
  471. }
  472. id
  473. count
  474. user_id {
  475. email
  476. updatedAt
  477. password
  478. telephone
  479. username
  480. createdAt
  481. openid
  482. id
  483. }
  484. productTotalPay
  485. orderPay_id {
  486. updatedAt
  487. tradeNo
  488. transactionId
  489. time
  490. createdAt
  491. openid
  492. id
  493. totalFee
  494. cashFee
  495. }
  496. }
  497. }
  498. `
  499. const update_order = `
  500. mutation updateorder($id: ID, $updatedAt: String, $orderStatus: String, $orderPay_id: ID) {
  501. updateorder: update_order(id: $id updatedAt: $updatedAt orderStatus: $orderStatus count: $count orderPay_id: $orderPay_id) {
  502. result
  503. order {
  504. remark
  505. updatedAt
  506. orderTotalPay
  507. createdAt
  508. orderStatus
  509. id
  510. count
  511. productTotalPay
  512. }
  513. }
  514. }
  515. `
  516. const orderProduct_by_props = `
  517. query orderProductbyprops($order_id: ID) {
  518. orderProductbyprops: orderProduct_by_props(order_id: $order_id) {
  519. updatedAt
  520. productColor
  521. unit
  522. product_id {
  523. updatedAt
  524. unit
  525. name
  526. createdAt
  527. status
  528. id
  529. intro
  530. price
  531. img
  532. stock
  533. discountRate
  534. }
  535. productSize
  536. orderPay
  537. createdAt
  538. productImg
  539. productName
  540. productPrice
  541. id
  542. count
  543. productPay
  544. }
  545. }
  546. `
  547. const create_order = `
  548. mutation createorder($remark: String, $updatedAt: String, $orderLogistics_id: ID, $orderTotalPay: Float, $createdAt: String, $orderStatus: String, $userAddress_id: ID, $id: ID!, $count: Int, $user_id: ID, $productTotalPay: Float, $orderPay_id: ID,
  549. $deliveryTime: String, $serviceStore: String, $logisticsFee: Float, $expressId: String, $order_id: ID, $consigneeTel: String, $orderLogisticsId: ID!, $expressName: String, $consignAddress: String, $LogisticsStatus: String, $consigneeName: String
  550. $deleteId: [String]) {
  551. createorder: create_order(remark: $remark updatedAt: $updatedAt orderLogistics_id: $orderLogistics_id orderTotalPay: $orderTotalPay createdAt: $createdAt orderStatus: $orderStatus userAddress_id: $userAddress_id id: $id count: $count user_id: $user_id productTotalPay: $productTotalPay orderPay_id: $orderPay_id) {
  552. result
  553. order {
  554. remark
  555. updatedAt
  556. orderLogistics_id {
  557. deliveryTime
  558. serviceStore
  559. updatedAt
  560. logisticsFee
  561. expressId
  562. createdAt
  563. consigneeTel
  564. id
  565. expressName
  566. consignAddress
  567. LogisticsStatus
  568. consigneeName
  569. }
  570. orderTotalPay
  571. createdAt
  572. orderStatus
  573. userAddress_id {
  574. address
  575. updatedAt
  576. telephone
  577. default
  578. city
  579. username
  580. postcode
  581. createdAt
  582. deletedAt
  583. id
  584. area
  585. province
  586. }
  587. id
  588. count
  589. productTotalPay
  590. orderPay_id {
  591. updatedAt
  592. tradeNo
  593. transactionId
  594. time
  595. createdAt
  596. openid
  597. id
  598. totalFee
  599. cashFee
  600. }
  601. }
  602. }
  603. createorderLogistics: create_orderLogistics(deliveryTime: $deliveryTime serviceStore: $serviceStore updatedAt: $updatedAt logisticsFee: $logisticsFee expressId: $expressId createdAt: $createdAt order_id: $order_id consigneeTel: $consigneeTel id: $orderLogisticsId expressName: $expressName consignAddress: $consignAddress LogisticsStatus: $LogisticsStatus user_id: $user_id consigneeName: $consigneeName) {
  604. result
  605. orderLogistics {
  606. deliveryTime
  607. serviceStore
  608. updatedAt
  609. logisticsFee
  610. expressId
  611. createdAt
  612. order_id {
  613. remark
  614. updatedAt
  615. orderTotalPay
  616. createdAt
  617. orderStatus
  618. id
  619. count
  620. productTotalPay
  621. }
  622. consigneeTel
  623. id
  624. expressName
  625. consignAddress
  626. LogisticsStatus
  627. user_id {
  628. email
  629. updatedAt
  630. password
  631. telephone
  632. username
  633. createdAt
  634. openid
  635. id
  636. }
  637. consigneeName
  638. }
  639. }
  640. delete_userCart(where: {
  641. id: {
  642. _in: $deleteId
  643. }
  644. })
  645. }
  646. `
  647. const create_order_product = `
  648. mutation createorderProduct($updatedAt: String, $productColor: String, $unit: String, $product_id: ID, $productSize: String, $orderPay: Float, $createdAt: String, $productImg: String, $productName: String, $specificationStock_id: ID, $order_id: ID, $productPrice: Float, $id: ID!, $count: Int, $productPay: Float, $user_id: ID, $orderPay_id: ID) {
  649. createorderProduct: create_orderProduct(updatedAt: $updatedAt productColor: $productColor unit: $unit product_id: $product_id productSize: $productSize orderPay: $orderPay createdAt: $createdAt productImg: $productImg productName: $productName specificationStock_id: $specificationStock_id order_id: $order_id productPrice: $productPrice id: $id count: $count productPay: $productPay user_id: $user_id orderPay_id: $orderPay_id) {
  650. result
  651. orderProduct {
  652. updatedAt
  653. productColor
  654. unit
  655. productSize
  656. orderPay
  657. createdAt
  658. productImg
  659. productName
  660. productPrice
  661. id
  662. count
  663. productPay
  664. }
  665. }
  666. }
  667. `
  668. const shop_by_props = `
  669. query shopbyprops($limit: Int) {
  670. shopbyprops: shop_by_props(limit: $limit) {
  671. description
  672. address
  673. updatedAt
  674. telephone
  675. name
  676. createdAt
  677. status
  678. id
  679. slideshow
  680. notice
  681. intro
  682. img
  683. }
  684. }
  685. `
  686. const update_shop = `
  687. mutation updateshop($description: String, $address: String, $updatedAt: String, $where: shop_filter, $telephone: String, $name: String, $createdAt: String, $status: String, $id: ID, $slideshow: String, $notice: String, $intro: String, $img: String) {
  688. updateshop: update_shop(id: $id description: $description address: $address updatedAt: $updatedAt where: $where telephone: $telephone name: $name createdAt: $createdAt status: $status slideshow: $slideshow notice: $notice intro: $intro img: $img) {
  689. result
  690. shop {
  691. description
  692. address
  693. updatedAt
  694. telephone
  695. name
  696. createdAt
  697. status
  698. id
  699. slideshow
  700. notice
  701. intro
  702. img
  703. }
  704. }
  705. }
  706. `
  707. const create_shop = `
  708. mutation createshop($description: String, $address: String, $updatedAt: String, $telephone: String, $name: String, $createdAt: String, $status: String, $id: ID!, $slideshow: String, $notice: String, $intro: String, $img: String) {
  709. createshop: create_shop(description: $description address: $address updatedAt: $updatedAt telephone: $telephone name: $name createdAt: $createdAt status: $status id: $id slideshow: $slideshow notice: $notice intro: $intro img: $img) {
  710. result
  711. shop {
  712. description
  713. address
  714. updatedAt
  715. telephone
  716. name
  717. createdAt
  718. status
  719. id
  720. slideshow
  721. notice
  722. intro
  723. img
  724. }
  725. }
  726. }
  727. `
  728. const create_product = `
  729. mutation createproduct($recommend: Int, $updatedAt: String, $unit: String, $name: String, $createdAt: String, $status: String, $id: ID!, $intro: String, $discountRate: Float, $price: Float, $category_id: ID, $img: String, $stock: Int) {
  730. createproduct: create_product(recommend: $recommend updatedAt: $updatedAt unit: $unit name: $name createdAt: $createdAt status: $status id: $id intro: $intro discountRate: $discountRate price: $price category_id: $category_id img: $img stock: $stock) {
  731. result
  732. product {
  733. recommend
  734. updatedAt
  735. unit
  736. name
  737. createdAt
  738. status
  739. id
  740. intro
  741. discountRate
  742. price
  743. img
  744. stock
  745. }
  746. }
  747. }
  748. `
  749. const update_product = `
  750. mutation updateproduct($id: ID, $recommend: Int, $updatedAt: String, $where: product_filter, $unit: String, $name: String, $createdAt: String, $status: String, $intro: String, $discountRate: Float, $price: Float, $category_id: ID, $img: String, $stock: Int) {
  751. updateproduct: update_product(id: $id recommend: $recommend updatedAt: $updatedAt where: $where unit: $unit name: $name createdAt: $createdAt status: $status intro: $intro discountRate: $discountRate price: $price category_id: $category_id img: $img stock: $stock) {
  752. result
  753. product {
  754. recommend
  755. updatedAt
  756. unit
  757. name
  758. createdAt
  759. status
  760. id
  761. intro
  762. discountRate
  763. price
  764. img
  765. stock
  766. }
  767. }
  768. }
  769. `
  770. const delete_product_by_id = `
  771. mutation deleteproduct($id: ID) {
  772. deleteproduct: delete_product(id: $id)
  773. }
  774. `
  775. export {
  776. create_user,
  777. find_user_by_openid,
  778. category_by_props,
  779. update_category,
  780. delete_category,
  781. create_category,
  782. productbyprops,
  783. productAndSpec_by_id,
  784. specificationStock_by_props,
  785. update_specificationStock,
  786. delete_specificationStock,
  787. create_userCart,
  788. cart_by_userid,
  789. update_userCart,
  790. delete_userCart_by_id,
  791. create_update_userAddress,
  792. update_userAddress,
  793. userAddressbyprops,
  794. user_default_address,
  795. delete_address,
  796. orderbyprops,
  797. order_by_id,
  798. update_order,
  799. orderProduct_by_props,
  800. create_order,
  801. create_order_product,
  802. shop_by_props,
  803. create_shop,
  804. update_shop,
  805. create_product,
  806. update_product,
  807. delete_product_by_id
  808. }