This commit is contained in:
邹宗楠
2022-06-28 15:31:25 +08:00
parent 86f18cc35f
commit 301a430666
5 changed files with 47 additions and 29 deletions

View File

@@ -70,6 +70,7 @@ func CreateOrder(ctx *jxcontext.Context, type1, orderType int, way string, price
Address: address,
DistrictCode: dCode,
CityCode: cCode,
PayMethod: 3,
}
dao.WrapAddIDCULEntity(order, ctx.GetUserName())
if err = dao.CreateEntityTx(txDB, order); err != nil {

View File

@@ -321,6 +321,11 @@ func AddMyDeliveryAddress(ctx *jxcontext.Context, address *model.UserDeliveryAdd
return list[0], err
}
// GetAddressDetail 获取配送地址详情
func GetAddressDetail(id int, userId string) {
}
func DeleteUserDeliveryAddress(ctx *jxcontext.Context, userID string, addressID int) (err error) {
num, err := dao.DeleteEntityLogically(dao.GetDB(), &model.UserDeliveryAddress{}, nil, ctx.GetUserName(), map[string]interface{}{
model.FieldID: addressID,