26 lines
564 B
Go
26 lines
564 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) orderCreate() web_iris.Party {
|
|
return web_iris.Party{Perfix: p.Perfix, PartyFunc: func(index iris.Party) {
|
|
index.Post(OrderBase+"/orderCreate", func(ctx *context.Context) {
|
|
|
|
})
|
|
}}
|
|
}
|
|
|
|
// 支付
|
|
func (p DefParty) orderPay() web_iris.Party {
|
|
return web_iris.Party{Perfix: p.Perfix, PartyFunc: func(index iris.Party) {
|
|
index.Post(OrderBase+"/orderPay", func(ctx *context.Context) {
|
|
|
|
})
|
|
}}
|
|
}
|