statusupdate

package
v0.0.0-...-905ac7b Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataMap

type DataMap struct {
	OperateResulst OperateResulst `json:"OperateResulst"`
}

type OperateResulst

type OperateResulst struct {
	/**
	 * 操作是否成功
	 */
	Success bool `json:"success"`
	/**
	 * 失败原因 在线状态不合法:vendorBizOpen未设置或者不在枚举值范围内; 门店类型不合法:没有传shopType标识,或者没有shopType场景的情况下shopType不为默认值 10; 门店请求存在重复: 请求中有重复的门店; 门店没有绑定品牌:请求的门店没有在美团绑定到对应品牌下;
	 */
	FailMsg string `json:"failMsg"`
}

type ResultData

type ResultData struct {
	/**
	 * Key:vendorShopId(品牌门店Id) Value:OperateResulst(数据校验结果)
	 */
	Data DataMap `json:"data"`
}

type StatusUpdateRequest

type StatusUpdateRequest struct {
	Biz []VendorBizConfigRequest `json:"biz"`
}

func (*StatusUpdateRequest) DoInvoke

func (req *StatusUpdateRequest) DoInvoke(client mtclient.MeituanClient, appAuthToken string) (*StatusUpdateResponse, error)

type StatusUpdateResponse

type StatusUpdateResponse struct {
	Code    string     `json:"code"`
	Msg     string     `json:"msg"`
	Data    ResultData `json:"data"`
	TraceId string     `json:"traceId"`
}

func (*StatusUpdateResponse) IsSuccess

func (response *StatusUpdateResponse) IsSuccess() bool

type VendorBizConfigRequest

type VendorBizConfigRequest struct {
	/**
	 *  厂商门店ID
	 */
	VendorShopId string `json:"vendorShopId"`
	/**
	 *  线上点业务开关,合同录入后,根据这个开关决定是否展示线上点入口 10: 开 20:关
	 */
	VendorBizOpen int32 `json:"vendorBizOpen"`
	/**
	 *  分店类型,品牌方自定义(默认是10-无含义),美团可用于区分C端门店样式展示的区分(具体有需求同美团PM沟通)
	 */
	ShopType int32 `json:"shopType"`
}

Jump to

Keyboard shortcuts

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