26 lines
578 B
Go
26 lines
578 B
Go
package api
|
|
|
|
import (
|
|
"github.com/kataras/iris/v12"
|
|
"github.com/kataras/iris/v12/context"
|
|
"pet-house.com/core/server/web/web_iris"
|
|
)
|
|
|
|
// 商品列表
|
|
func (p DefParty) goodsList() web_iris.Party {
|
|
return web_iris.Party{Perfix: p.Perfix, PartyFunc: func(index iris.Party) {
|
|
index.Post(GoodsBase+"/goodsList", func(ctx *context.Context) {
|
|
|
|
})
|
|
}}
|
|
}
|
|
|
|
// 商品详情
|
|
func (p DefParty) goodsDetail() web_iris.Party {
|
|
return web_iris.Party{Perfix: p.Perfix, PartyFunc: func(index iris.Party) {
|
|
index.Post(GoodsBase+"/goodsDetail", func(ctx *context.Context) {
|
|
|
|
})
|
|
}}
|
|
}
|