const Mock = require('mockjs');

module.exports = {
  'POST /api/Purchase/getMySells': Mock.mock({
    error: null,
    msg: null,
    success: true,
    unAuthorizedRequest: false,
    result: {
      pageModel: {
        rows: 64,
        page: 97,
        orderInput: [],
        totalCount: 68,
        totalPage: 72,
      },
      objectData: null,
      'data|1-10': [
        {
          'name|+1': Mock.mock('@title'),
          'id|+1': Mock.mock('@guid'),
          'categoryName|+1': Mock.mock('@cname'),
          productId: Mock.mock('@guid'),
          productName: Mock.mock('@cname'),
          purchaserId: Mock.mock('@guid'),
          purchaser: Mock.mock('@string'),
          purchaseContacter: Mock.mock('@string'),
          purchaseContacterPhone: Mock.mock('@string'),
          unitPrice: Mock.mock('@integer(60, 100)'),
          count: Mock.mock('@integer(60, 100)'),
          amount: Mock.mock('@integer(60, 100)'),
          'status|+1': [0, 10, 20, -10, -20, -30],
          purchaseDate: Mock.mock('@datetime'),
          fixtureDate: Mock.mock('@datetime'),
          comment: Mock.mock({
            'starCount|1-5': 5,
            content: Mock.mock('@cparagraph'),
            creationTime: Mock.mock('@datetime'),
          }),
          refund: {
            refundApplyRemark: Mock.mock('@cparagraph'),
            refundApplyTime: Mock.mock('@datetime'),
            refundDealRemark: Mock.mock('@cparagraph'),
          },
        },
      ],
    },
  }),
  'POST /api/Purchase/getMyPurchases': Mock.mock({
    error: null,
    msg: null,
    success: true,
    unAuthorizedRequest: false,
    result: {
      pageModel: {
        rows: 64,
        page: 97,
        orderInput: [],
        totalCount: 68,
        totalPage: 72,
      },
      objectData: null,
      'data|8': [
        {
          'id|+1': Mock.mock('@guid'),
          'categoryName|+1': Mock.mock('@cname'),
          'productId|+1': Mock.mock('@guid'),
          productName: Mock.mock('@cname'),
          'covers|1-10': [
            {
              url: Mock.mock('@string'),
              'sequence|1-100': 100,
              'isMain|1-2': true,
            },
          ],
          tags: [
            {
              tagId: Mock.mock('@guid'),
              tagName: Mock.mock('@cname'),
              'sequence|1-100': 100,
              type: 1,
            },
          ],
          versionName: Mock.mock('@cname'),
          count: Mock.mock('@integer(60, 100)'),
          unitPrice: Mock.mock('@integer(60, 100)'),
          amount: Mock.mock('@integer(60, 100)'),
          seller: Mock.mock('@cname'),
          purchaseDate: Mock.mock('@datetime'),
          comment: {
            'starCount|1-5': 5,
            content: Mock.mock('@cparagraph'),
            creationTime: Mock.mock('@datetime'),
          },
          refund: {
            refundApplyRemark: Mock.mock('@cparagraph'),
            refundApplyTime: Mock.mock('@datetime'),
            refundDealRemark: Mock.mock('@cparagraph'),
          },
          'status|+1': [0, 10, 20, -10, -20, -30],
          chargeWay: 'å¹´',
        },
      ],
    },
  }),
};