address

package
v0.0.0-...-e6e6a7d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(c *gin.Context)

func Default

func Default(c *gin.Context)

func Del

func Del(c *gin.Context)

func Info

func Info(c *gin.Context)

func List

func List(c *gin.Context)

func SetDefault

func SetDefault(c *gin.Context)

func TypeList

func TypeList(c *gin.Context)

func Update

func Update(c *gin.Context)

Types

type ReqCreate

type ReqCreate struct {
	Region    string `json:"region"`
	Detail    string `json:"detail"`
	Name      string `json:"name"`
	Mobile    string `json:"mobile"`
	TypeId    int    `json:"typeId"`
	IsDefault int    `json:"isDefault"`
}

type ReqDel

type ReqDel struct {
	Id int `json:"id"`
}

type ReqInfo

type ReqInfo struct {
	Id int `form:"id"`
}

type ReqSetDefault

type ReqSetDefault struct {
	Id int `json:"id"`
}

type ReqUpdate

type ReqUpdate struct {
	Id        int    `json:"id"`
	Region    string `json:"region"`
	Detail    string `json:"detail"`
	Name      string `json:"name"`
	Mobile    string `json:"mobile"`
	TypeId    int    `json:"typeId"`
	IsDefault int    `json:"isDefault"`
}

type RespAddressInfo

type RespAddressInfo struct {
	Id            int    `json:"id" form:"id" gorm:"primary_key"`       // 地址ID
	Truename      string `json:"truename" form:"truename" `             // 会员姓名
	ProvinceId    int    `json:"province_id" form:"province_id" `       // 省份id
	CityId        int    `json:"city_id" form:"city_id" `               // 市级ID
	AreaId        int    `json:"area_id" form:"area_id" `               // 地区ID
	Address       string `json:"address" form:"address" `               // 地址
	CombineDetail string `json:"combine_detail" form:"combine_detail" ` // 地区内容组合
	MobilePhone   string `json:"mobile_phone" form:"mobile_phone" `     // 手机电话
	IsDefault     int    `json:"is_default" form:"is_default" `         // 1默认收货地址
	Type          string `json:"type" form:"type" `                     // '个人','公司','其他'....
}

Jump to

Keyboard shortcuts

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