address

package
v0.0.0-...-6f9dc6e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	// contains filtered or unexported fields
}

func NewAddress

func NewAddress(ctx context.Context) *Address

func (*Address) Create

func (m *Address) Create(ctx context.Context, address *entity.Address) error

Create 创建

func (*Address) DeleteById

func (m *Address) DeleteById(ctx context.Context, aId id.AddressID) error

DeleteById 删除数据

func (*Address) GetItemById

func (m *Address) GetItemById(ctx context.Context, id id.AddressID) (*entity.Address, error)

GetItemById 通过 id 获取数据

func (*Address) GetList

func (m *Address) GetList(ctx context.Context, mId id.MemberID) ([]entity.Address, error)

GetList 获取列表

func (*Address) UpdateById

func (m *Address) UpdateById(ctx context.Context, id id.AddressID, data map[string]interface{}) error

UpdateById 通过id更新

func (*Address) UpdateByMemberId

func (m *Address) UpdateByMemberId(ctx context.Context, mId id.MemberID, data map[string]interface{}) error

UpdateByMemberId 通过会员id更新数据

func (*Address) UpdateUserItem

func (m *Address) UpdateUserItem(ctx context.Context, data entity.Address) error

UpdateUserItem 更新用户数据

Jump to

Keyboard shortcuts

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