homepage

package
Version: v0.0.0-...-5652a87 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSetParameters1

func NewSetParameters1(shopId int64) interface{}

默认模板

func NewSetParameters2

func NewSetParameters2(shopId int64, url string) interface{}

自定义url

func Set

func Set(clt *mp.Client, para interface{}) (err error)

设置商家主页

要求 para 经过 encoding/json 后满足指定的格式要求

Types

type Homepage

type Homepage struct {
	ShopId     int64  `json:"shop_id"`     // 门店ID
	TemplateId int64  `json:"template_id"` // 模板类型
	URL        string `json:"url"`         // 商家主页链接
}

func Get

func Get(clt *mp.Client, shopId int64) (homepage *Homepage, err error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL