mchtsrv

package
v0.0.0-...-0218ea2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceGroupApp = new(ServiceGroup)

Functions

This section is empty.

Types

type MerchantService

type MerchantService struct{}

func (*MerchantService) CreateMerchant

func (merchantService *MerchantService) CreateMerchant(merchant mchtmod.Merchant, parentMerchantNo string) (err error)

CreateMerchant *

  • @Description: 创建商户
  • @receiver merchantService
  • @param merchant
  • @param parentMerchantNo 父商户编号
  • @return err

func (*MerchantService) DeleteMerchant

func (merchantService *MerchantService) DeleteMerchant(id string) (err error)

DeleteMerchant *

  • @Description: 删除商户(有角色,有登录过的用户不能删除)
  • @receiver merchantService
  • @param id
  • @return err

func (*MerchantService) FindMerchantByMerchantNo

func (merchantService *MerchantService) FindMerchantByMerchantNo(merchantNo string) (merchant mchtmod.Merchant, err error)

FindMerchantByMerchantNo *

  • @Description: 通过商户编号查询商户
  • @receiver merchantService
  • @param merchantNo
  • @return merchant
  • @return err

func (*MerchantService) FindMerchantChildren

func (merchantService *MerchantService) FindMerchantChildren(id string) (merchants []mchtmod.Merchant, err error)

FindMerchantChildren *

  • @Description: 查询所有子商户
  • @receiver merchantService
  • @param id
  • @return merchants
  • @return err

func (*MerchantService) FindMerchantInfo

func (merchantService *MerchantService) FindMerchantInfo(id string) (merchant mchtmod.Merchant, err error)

FindMerchantInfo *

  • @Description: 获取商户详情
  • @receiver merchantService
  • @param id
  • @return merchant
  • @return err

func (*MerchantService) GetAllMerchants

func (merchantService *MerchantService) GetAllMerchants(parentId string) (merchants []mchtmod.Merchant, err error)

GetAllMerchants *

  • @Description: 查询所有商户
  • @receiver merchantService
  • @param parentId
  • @return merchants
  • @return err

func (*MerchantService) GetMerchantPage

func (merchantService *MerchantService) GetMerchantPage(pageInfo *page.PageInfo) (err error, pageBean *page.PageBean)

GetMerchantPage *

  • @Description: 商户分页查询
  • @receiver merchantService
  • @param pageInfo
  • @return err
  • @return pageBean

func (*MerchantService) UpdateMerchant

func (merchantService *MerchantService) UpdateMerchant(merchantInput mchtreq.UpdateMerchantReq) (err error)

UpdateMerchant *

  • @Description: 更新商户
  • @receiver merchantService
  • @param merchant
  • @return err

type ServiceGroup

type ServiceGroup struct {
	MerchantService
}

Jump to

Keyboard shortcuts

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