ums_member_receive_address

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {

	/**
	 * 添加收货地址
	 */
	Add(ctx context.Context, param dto.UmsMemberReceiveAddress) (int64, error)

	/**
	 * 删除收货地址
	 * @param id 地址表的id
	 */
	Delete(ctx context.Context, id int64) (int64, error)

	/**
	 * 修改收货地址
	 * @param id 地址表的id
	 * @param address 修改的收货地址信息
	 */
	Update(ctx context.Context, id int64, param dto.UmsMemberReceiveAddress) (int64, error)

	/**
	 * 返回当前用户的收货地址
	 */
	List(ctx context.Context) ([]dto.UmsMemberReceiveAddress, error)

	/**
	 * 获取地址详情
	 * @param id 地址id
	 */
	GetItem(ctx context.Context, id int64) (*dto.UmsMemberReceiveAddress, error)
	// contains filtered or unexported methods
}

用户地址管理Service

func New

func New() Service

Jump to

Keyboard shortcuts

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