1/*
2 * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15// 商家数据结构
16export interface BusinessInfo {
17  id: string,
18  name: string,
19  cover: string,
20  isOpen: boolean,
21  address: string,
22  longitude: string,
23  latitude: string,
24  distance: string,
25  startTime: string,
26  endTime: string,
27  notice: string,
28  startPrice: number,
29  deliveryPrice: number,
30  phoneNumber: number,
31  score: string,
32  monthlySale: string,
33  perCapita: string,
34  deliveryTime: string,
35  ranking: string,
36  createBy: string,
37  createTime: string,
38  updateBy?: string,
39  updateTime?: string,
40  delFlag: boolean
41}
42
43// 商品数据结构
44export interface CommodityInfo {
45  id: string,
46  businessId: string,
47  name: string,
48  cover: string,
49  price: string,
50  salePrice: string,
51  priceExplain: string,
52  salesNumber: string,
53  totalNumber: string,
54  description: string,
55  standards: string,
56  weight: string,
57  brand: string,
58  breed: string,
59  made: number,
60  producer: string,
61  qualityDate: string,
62  packing: string,
63  category: string,
64  taste: string,
65  keepType: string,
66  createBy: string,
67  createTime: string,
68  updateBy?: string,
69  updateTime?: string,
70  delFlag: boolean
71}
72
73// 评论数据结构
74export interface CommentInfo {
75  id: string,
76  businessId: string,
77  userName: string,
78  star: number,
79  content: string,
80  createBy?: string,
81  createTime: string,
82  updateBy?: string,
83  updateTime?: string,
84  delFlag: boolean
85}
86
87export interface SelfPickUpInfo {
88  name: string,
89  address: string,
90  distance: string
91}