Browse Source

3-18 增加卡券类型字段并更新接口

majun
majun 4 months ago
parent
commit
42ebfcbb57
  1. 2
      internal/dao/internal/coupon.go
  2. 2
      internal/model/do/coupon.go
  3. 2
      internal/model/entity/coupon.go
  4. 2
      manifest/config/config.yaml

2
internal/dao/internal/coupon.go

@ -26,7 +26,7 @@ type CouponColumns struct {
ImgUrl string // 放大看全图
StartTime string // 有效期起始
EndTime string // 有效期截止
Type string // 类型(1:卡券 2:二维码)
Type string // 类型(1:普通 2:二维码)
Deleted string // 是否删除?
CreatedAt string // 创建时间
UpdatedAt string // 更新时间

2
internal/model/do/coupon.go

@ -18,7 +18,7 @@ type Coupon struct {
ImgUrl interface{} // 放大看全图
StartTime interface{} // 有效期起始
EndTime interface{} // 有效期截止
Type interface{} // 类型(1:卡券 2:二维码)
Type interface{} // 类型(1:普通 2:二维码)
Deleted interface{} // 是否删除?
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间

2
internal/model/entity/coupon.go

@ -16,7 +16,7 @@ type Coupon struct {
ImgUrl string `json:"imgUrl" orm:"img_url" description:"放大看全图"` // 放大看全图
StartTime int `json:"startTime" orm:"start_time" description:"有效期起始"` // 有效期起始
EndTime int `json:"endTime" orm:"end_time" description:"有效期截止"` // 有效期截止
Type int `json:"type" orm:"type" description:"类型(1:卡券 2:二维码)"` // 类型(1:卡券 2:二维码)
Type int `json:"type" orm:"type" description:"类型(1:普通 2:二维码)"` // 类型(1:普通 2:二维码)
Deleted int `json:"deleted" orm:"deleted" description:"是否删除?"` // 是否删除?
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:"更新时间"` // 更新时间

2
manifest/config/config.yaml

@ -1,6 +1,6 @@
# https://goframe.org/docs/web/server-config-file-template
server:
address: ":8080"
address: ":8000"
# https://goframe.org/docs/core/glog-config
logger:

Loading…
Cancel
Save