zhengyiming
2025-02-17 b0371b64792e2a071e273cd57496c9f38a3118c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
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: '年',
        },
      ],
    },
  }),
};