bus

package
v0.0.0-...-7a73484 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

*

  • @Author: Gosin
  • @Date: 2020/4/7 18:24

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bus

type Bus struct {
	client.Baseclient
}

func (*Bus) Init

func (bus *Bus) Init() *Bus

func (*Bus) SearchAdminBus

func (bus *Bus) SearchAdminBus(ctx context.Context, args *bus.ArgsAdminBusAuditPage, reply *bus.ReplyAdminBusAuditPage) error

SearchAdminBus ES商户后台搜索

func (*Bus) SetAdminBus

func (bus *Bus) SetAdminBus(ctx context.Context, busId *int, reply *bool) error

SetBus 设置商户信息到ES

type Member

type Member struct {
	client.Baseclient
}

func (*Member) AddMember

func (m *Member) AddMember(ctx context.Context, memberId *int, reply *bool) error

添加会员信息

func (*Member) EditMember

func (m *Member) EditMember(ctx context.Context, memberBase *bus2.ArgsMemberBase, reply *bool) error

func (*Member) GetUserInfoByPhoneMatch

func (m *Member) GetUserInfoByPhoneMatch(ctx context.Context, args *bus2.ArgsGetUserInfoByPhoneMatch, reply *bus2.ReplyGetUserInfoByPhoneMatch) error

根据手机号模糊匹配门店会员

func (*Member) Init

func (m *Member) Init() *Member

func (*Member) SearchMember

func (m *Member) SearchMember(ctx context.Context, args *bus2.ArgsMemberParam, reply *bus2.MemberList) error

店铺会员检索

func (*Member) SetMemberConsumeCount

func (m *Member) SetMemberConsumeCount(ctx context.Context, memberId *int, reply *bool) error

更新会员的累计消费次数,累计消费金额,最后消费时间,持卡量 到es中

type Shop

type Shop struct {
	client.Baseclient
}

func (*Shop) GetShopInfo

func (s *Shop) GetShopInfo(ctx context.Context, shopId int, reply *news.ShopInfo) error

根据门店id查询es 门店信息

func (*Shop) Init

func (s *Shop) Init() *Shop

func (*Shop) SetShop

func (s *Shop) SetShop(ctx context.Context, shopId *int, reply *bool) error

新增、更新门店基本信息

func (*Shop) SetShopProperty

func (s *Shop) SetShopProperty(ctx context.Context, shopId *int, reply *bool) error

设置门店的销量、平均分、平均消费价格

func (*Shop) SetShopSafeCode

func (s *Shop) SetShopSafeCode(ctx context.Context, busId *int, reply *bool) error

更新门店安全码颜色

func (*Shop) SetShopStatus

func (s *Shop) SetShopStatus(ctx context.Context, shopId *int, reply *bool) error

更新门店status

func (*Shop) SetShopsActivity

func (s *Shop) SetShopsActivity(ctx context.Context, args *cards.ArgsSetShopsActivity, reply *bool) error

更新门店的活动

Jump to

Keyboard shortcuts

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