Browse Source

update

master
DengBiao 8 months ago
parent
commit
17e6aeb3f3
3 changed files with 16 additions and 6 deletions
  1. +2
    -0
      app/admin/hdl/hdl_scheme.go
  2. +1
    -0
      app/admin/md/md_scheme.go
  3. +13
    -6
      app/router/admin_router.go

+ 2
- 0
app/admin/hdl/hdl_scheme.go View File

@@ -44,8 +44,10 @@ func SchemeList(c *gin.Context) {
return return
} }
temp.EnterpriseList = append(temp.EnterpriseList, struct { temp.EnterpriseList = append(temp.EnterpriseList, struct {
Id int `json:"id"`
Name string `json:"name"` Name string `json:"name"`
}{ }{
Id: enterprise.Id,
Name: enterprise.Name, Name: enterprise.Name,
}) })
} }


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

@@ -7,6 +7,7 @@ import (
type SchemeListResp struct { type SchemeListResp struct {
Data model.Scheme `json:"data"` Data model.Scheme `json:"data"`
EnterpriseList []struct { EnterpriseList []struct {
Id int `json:"id"`
Name string `json:"name"` Name string `json:"name"`
} `json:"enterprise_list"` } `json:"enterprise_list"`
} }


+ 13
- 6
app/router/admin_router.go View File

@@ -124,7 +124,7 @@ func rRole(r *gin.RouterGroup) {
r.POST("/bindAdminRole", hdl.BindAdminRole) //绑定角色 r.POST("/bindAdminRole", hdl.BindAdminRole) //绑定角色
} }
func rGoodsPay(r *gin.RouterGroup) { func rGoodsPay(r *gin.RouterGroup) {
r.GET("/enterpriseList", hdl.EnterpriseList) //校企列表
r.POST("/enterpriseList", hdl.EnterpriseList) //校企列表
r.GET("/goodsList", goodsHdl.GetMallGoodsList) //商品列表 r.GET("/goodsList", goodsHdl.GetMallGoodsList) //商品列表
r.POST("/calcAmount", orderHdl.GoodsPayCalcAmount) //商品下单计算价格 r.POST("/calcAmount", orderHdl.GoodsPayCalcAmount) //商品下单计算价格
r.POST("/create", orderHdl.GoodsPayCreate) //商品下单 r.POST("/create", orderHdl.GoodsPayCreate) //商品下单
@@ -139,6 +139,12 @@ func rOrder(r *gin.RouterGroup) {
r.POST("/edit", orderHdl.OrderEdit) //用户订单修改购买人信息 r.POST("/edit", orderHdl.OrderEdit) //用户订单修改购买人信息
r.POST("/editNum", orderHdl.OrderEditNum) //用户订单修改订单数 r.POST("/editNum", orderHdl.OrderEditNum) //用户订单修改订单数
} }

func rFinanceManage(r *gin.RouterGroup) {
r.POST("/list", orderHdl.OrderList) //用户订单
r.POST("/total", orderHdl.OrderTotal) //用户订单统计
}

func AdminRoute(r *gin.RouterGroup) { func AdminRoute(r *gin.RouterGroup) {
r.GET("/demo", hdl.Demo) r.GET("/demo", hdl.Demo)


@@ -160,9 +166,10 @@ func AdminRoute(r *gin.RouterGroup) {
rCategory(r.Group("/category")) //商品类目 rCategory(r.Group("/category")) //商品类目
rGoods(r.Group("/goods")) //商品 rGoods(r.Group("/goods")) //商品


rRole(r.Group("/role")) //权限管理
rSetCenter(r.Group("/setCenter")) //设置中心
rUser(r.Group("/user")) //用户管理
rGoodsPay(r.Group("/goodsPay")) //商品下单
rOrder(r.Group("/order")) //用户订单
rRole(r.Group("/role")) //权限管理
rSetCenter(r.Group("/setCenter")) //设置中心
rUser(r.Group("/user")) //用户管理
rGoodsPay(r.Group("/goodsPay")) //商品下单
rOrder(r.Group("/order")) //用户订单
rFinanceManage(r.Group("/financeManage")) //财务管理
} }

Loading…
Cancel
Save