Skip to content

yc-server/ycs-plugin-store

Repository files navigation

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'
  }
};

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published