req

package
v1.0.0-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PlatformID    string = "PlatformID"
	MiniProgramID        = "MiniProgramID"
	PayMchID             = "PayMchID"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitCodeParam

type CommitCodeParam struct {
	MiniProgramID string `binding:"required"` // 小程序ID
	TemplateID    int    `binding:"required"` // 模板编号

}

提交代码

type ListMiniAppParam

type ListMiniAppParam struct {
	PageParam
	AppID      string // 小程序appid
	PlatformID string // 开放平台ID
	Version    string // 版本号
	State      int8   // -1-授权失效 1授权成功,2审核中,3审核通过,4审核失败,5已发布
	OrderBase
}

ListMiniAppParam 列表

func (*ListMiniAppParam) Order

func (p *ListMiniAppParam) Order() string

Order 获取排序

type MiniAppConfigParam

type MiniAppConfigParam struct {
	AppID       string `binding:"required"` // 小程序appid
	MchID       string // 支付商户号id
	Secret      string // 小程序secret
	ExtConfig   string // 小程序扩展配置,发布时会注入至ext.json
	AutoAudit   int8   // 自动提审(升级) -1否 1是
	AutoRelease int8   // 自动发布-1否 1是
}

MiniAppConfigParam 小程序配置

type OrderBase

type OrderBase struct {
	OrderColumn string // 排序列
	OrderClase  string // 排序方式,desc倒序, asc正序
}

排序入参

func (*OrderBase) GetSafeClase

func (p *OrderBase) GetSafeClase() string

type PageParam

type PageParam struct {
	// id分页时使用,如无特殊说明不用此字段
	LastId   int `json:"last_id"`
	Page     int `json:"page" binding:"min=1"`
	PageSize int `json:"page_size" binding:"min=1,max=50"`
}

分页基础入参

func (*PageParam) Offset

func (p *PageParam) Offset() int

type PlatformParam

type PlatformParam struct {
	PlatformID      string `binding:"required"` // 平台 appid
	PlatformSecret  string // 平台 appsecret
	PlatformToken   string // 平台 token
	PlatformKey     string // 平台 消息解密key
	ServerDomain    string // 服务器域名
	BizDomain       string // 业务域名
	AuthRedirectURL string // 用户授权成功回跳地址
}

平台编辑

type SpeedUpAuditParam

type SpeedUpAuditParam struct {
	MiniProgramID string `binding:"required"` // 小程序ID
	AuditID       uint64 `binding:"required"` // 要加急的审核单号
}

SpeedUpAuditParam 加急审核

type WxACodeParam

type WxACodeParam struct {
	MiniProgramID string `binding:"required"` // 小程序appid
	Page          string
	Scene         string `binding:"omitempty,min=1,max=32"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL