gengoprod

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Overview

Code generated by gotoc_rmq. DO NOT EDIT. gotoc version: 0.0.3 source: samples/rmq/prod.rmq.gtc

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitRMQ

func InitRMQ(cfg *rmqimpl.Config) error

func PubProdSync

func PubProdSync(key string, o *ProdSync) error

PubProdSync 发送商品消息方法

func SubProdSyncXiaohong

func SubProdSyncXiaohong(handle func(*ProdSync) error, errHandle func(error)) error

SubProdSyncXiaohong 小红消费商品方法

func SubProdSyncXiaoming

func SubProdSyncXiaoming(handle func(*ProdSync) error, errHandle func(error)) error

SubProdSyncXiaoming 小明消费商品方法

Types

type ProdItem

type ProdItem struct {
	//
	Id int64 `json:"id"`
	//
	Type string `json:"type"`
}

ProdItem 商品Item定义

type ProdSync

type ProdSync struct {
	//
	CreateDate int64 `json:"createDate"`
	//
	Prods []*ProdItem `json:"prods"`
}

ProdSync 商品同步消息

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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