domain.go
599 字节
package domain
import "fmt"
//查询参数
const (
ASC = "ASC"
DESC = "DESC"
)
const (
OrderReal = iota + 1 //实发订单
OrderIntention //意向订单
OrderAppletSeafood //小程序-海鲜干货
)
const (
BonusWaitPay = iota + 1 //等待支付分红
BonusPaid //已经支付分红
)
var (
QueryNoRow = fmt.Errorf("not row found")
)
// UserOrderTypes
// @category 合伙人类型
// @desc 根据用户类别获取用户能看到的订单类型
func UserOrderTypes(category int) []int {
return []int{OrderReal, OrderAppletSeafood}
}