ycs-plugin-store
TypeScript icon, indicating that this package has built-in type declarations

1.1.14 • Public • Published

Installation

ycs add plugin store

configurations

import { IConfig } from 'ycs-plugin-store';

export const development: IConfig = {
  endpoint: '/store',
  roles: ['store'],
  orderPrice: product => product.productPrice,
  orderPaidPy: ['wechatpay', 'alipay'],
  errors: {
    empty: 'empty content',
    categoryRequired: 'category required',
    categoryNotFound: 'category not found',
    productNotFound: 'product not found'
  }
};

export const production: IConfig = {
  endpoint: '/store',
  roles: ['store'],
  orderPrice: product => product.productPrice,
  orderPaidPy: ['wechatpay', 'alipay'],
  errors: {
    empty: 'empty content',
    categoryRequired: 'category required',
    categoryNotFound: 'category not found',
    productNotFound: 'product not found'
  }
};

Dependencies (0)

    Dev Dependencies (15)

    Package Sidebar

    Install

    npm i ycs-plugin-store

    Weekly Downloads

    1

    Version

    1.1.14

    License

    MIT

    Last publish

    Collaborators

    • kuyoonjo