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: 2 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 {
	Name      string `form:"name" json:"name" xml:"name"  binding:"required" label:"收货人"`
	Phone     string `form:"phone" json:"phone" xml:"phone"  binding:"required" label:"手机号码"`
	Province  string `form:"province" json:"province" xml:"province"  binding:"required" label:"省份"`
	City      string `form:"city" json:"city" xml:"city"  binding:"required" label:"城市"`
	Region    string `form:"region" json:"region" xml:"region"  binding:"required" label:"地区"`
	Detail    string `form:"detail" json:"detail" xml:"detail"  binding:"required" label:"详细地址"`
	IsDefault uint32 `form:"is_default" json:"is_default" xml:"is_default"  binding:"on-off" label:"是否默认地址"`
	PostCode  string `form:"post_code" json:"post_code" xml:"post_code"  label:"邮政编码"`
}

func (*Address) Marshal

func (r *Address) Marshal(mId id.MemberID) *addresspb.CreateRequest

type Delete

type Delete struct {
	Id uint64 `form:"id" json:"id" xml:"id"  binding:"required" label:"id"`
}

func (*Delete) Marshal

func (r *Delete) Marshal(mId id.MemberID) *addresspb.DeleteRequest

type Entity

type Entity struct {
	Id uint64 `form:"id" json:"id" xml:"id"  binding:"required" label:"id"`
	Address
}

func (*Entity) Marshal

func (r *Entity) Marshal(mId id.MemberID) *addresspb.Entity

Jump to

Keyboard shortcuts

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