Browse Source

update

master
dengbiao 3 months ago
parent
commit
0579f4c610
2 changed files with 4 additions and 0 deletions
  1. +1
    -0
      app/admin/md/md_enterprise.go
  2. +3
    -0
      app/admin/svc/svc_enterprise.go

+ 1
- 0
app/admin/md/md_enterprise.go View File

@@ -50,6 +50,7 @@ type EnterpriseListReq struct {
Kind int `json:"kind" label:"种类"`
Pvd int `json:"pvd" label:"场景"`
Mode int `json:"mode" label:"模式"`
State int32 `json:"state" label:"状态"`
}

type EnterpriseDetailResp struct {


+ 3
- 0
app/admin/svc/svc_enterprise.go View File

@@ -38,6 +38,9 @@ func EnterpriseList(admin model.Admin, req md.EnterpriseListReq) (m []model.Ente
if req.Mode != 0 {
sess.And("mode = ?", req.Mode)
}
if req.State != 0 {
sess.And("state = ?", req.State)
}
total, err = sess.FindAndCount(&m)
if err != nil {
return


Loading…
Cancel
Save