浏览代码

增加系统配置接口

kobe6258 4 月之前
父节点
当前提交
d5c6f5e54f
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      controllers/product.go
  2. 1 0
      services/product.go

+ 1 - 0
controllers/product.go

@@ -508,6 +508,7 @@ func (this *ProductController) ProductList() {
 				IsPermanent:   product.IsPermanent,
 				Description:   product.Description,
 				SourceId:      product.SourceId,
+				CreatedTime:   product.CreatedTime.Format(time.DateTime),
 			}
 			if product.CoverUrl == "" && product.CoverSrc > 0 {
 				image, imageErr := models.GetImageById(product.CoverSrc)

+ 1 - 0
services/product.go

@@ -175,6 +175,7 @@ type ProductView struct {
 	SaleStatus      string
 	Creator         string
 	Description     string
+	CreatedTime     string
 }
 
 func GetRiskLevel(productType string, id int) (riskLevel string, productName string, permissionName string, err error) {