DengBiao pirms 7 mēnešiem
vecāks
revīzija
866311395e
2 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      app/admin/hdl/hdl_merchant.go
  2. +1
    -0
      app/admin/md/md_merchant.go

+ 2
- 1
app/admin/hdl/hdl_merchant.go Parādīt failu

@@ -115,7 +115,8 @@ func MerchantUpdate(c *gin.Context) {
merchant.EnterpriseId = req.EnterpriseId
merchant.Name = req.Name
merchant.UpdateAt = now.Format("2006-01-02 15:04:05")
_, err = merchantDb.MerchantUpdate(merchant, "name", "enterprise_id", "update_at")
merchant.CreateAt = req.CreateAt
_, err = merchantDb.MerchantUpdate(merchant, "name", "enterprise_id", "update_at", "create_at")
if err != nil {
e.OutErr(c, e.ERR_DB_ORM, err.Error())
return


+ 1
- 0
app/admin/md/md_merchant.go Parādīt failu

@@ -9,6 +9,7 @@ type MerchantUpdateReq struct {
Id int `json:"id" binding:"required" label:"id"`
Name string `json:"name" binding:"required" label:"名称"`
EnterpriseId int `json:"enterprise_id" binding:"required" label:"校企id"`
CreateAt string `json:"create_at" binding:"required" label:"创建时间"`
}

type MerchantListReq struct {


Notiek ielāde…
Atcelt
Saglabāt