From 79dc513129e08b21bed6028936cc26660e517c14 Mon Sep 17 00:00:00 2001 From: RIceWqy <1840169763@qq.com> Date: Sun, 24 Dec 2023 18:13:21 +0800 Subject: [PATCH] init --- module/coupon/Coupon.go | 2 +- module/service/Service.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/module/coupon/Coupon.go b/module/coupon/Coupon.go index 980017c..64d2850 100644 --- a/module/coupon/Coupon.go +++ b/module/coupon/Coupon.go @@ -11,7 +11,7 @@ type Coupon struct { ID int `json:"id"` // 优惠券ID Name string `json:"name"` // 优惠券名称 Type string `json:"type"` // 优惠券类型 - GoodsIDs string `json:"goods_ids"` // 商品ID + GoodsID string `json:"goods_ids"` // 商品ID Amount string `json:"amount"` // 优惠券金额 Enough string `json:"enough"` // 满足条件金额 Stock int `json:"stock"` // 库存数量 diff --git a/module/service/Service.go b/module/service/Service.go index 85083c4..c546cf8 100644 --- a/module/service/Service.go +++ b/module/service/Service.go @@ -7,7 +7,8 @@ func (Service) TableName() string { // Service 结构体表示服务信息 type Service struct { ID int `json:"id"` // 服务ID - Name string `json:"name"` // 服务名称 + Name string `json:"name"` // 服务名称 Image string `json:"image"` // 服务图片 + GoodsID int `json:"goods_id"` // 商品ID Description string `json:"description"` // 服务描述 }