|
- exports.id = 9965;
- exports.ids = [9965];
- exports.modules = {
-
- /***/ 9965:
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
-
- "use strict";
-
-
- var _apollo = _interopRequireDefault(__webpack_require__(6371));
-
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
- async function GetDetailProduct(id, token = "") {
- var res = await _apollo.default.query(`
- query($input: ID!){
- products(where:{id:$input})
- {
- id
- name
- price
- price1
- price2
- img{
- url
- }
- product_otrs {
- id
- name
- price
- }
- product_image_colors{
- id
- name
- img{
- url
- }
- }
- description
- spesifikasi_mesin
- spesifikasi_dimensi
- spesifikasi_rangka
- spesifikasi_kelistrikan
- film
- stock
- }
- } `, token, {
- "input": id
- });
- return res;
- }
-
- async function GetProductImgColor(id, token = "") {
- var res = await _apollo.default.query(`
- query($input: ID!) {
- productImageColors(where:{id:$input}) {
- id
- name
- img{
- url
- }
- }
- }
- `, token, {
- "input": id
- });
- return res;
- }
-
- async function GetProduct(token = "") {
- var res = await _apollo.default.query(`
- query {
- products{
- id
- name
- price
- price1
- price2
- img {
- url
- }
- }
- }`, token);
- return res;
- }
-
- module.exports = {
- GetProductImgColor: GetProductImgColor,
- GetProduct: GetProduct,
- //detail
- GetDetailProduct: GetDetailProduct
- };
-
- /***/ })
-
- };
- ;
|