add task apis

This commit is contained in:
2026-08-31 18:15:26 +08:00
parent 6758ced988
commit ebd9c932d2
26 changed files with 1175 additions and 98 deletions
@@ -117,12 +117,12 @@ func (l *WebCreateOneLogic) WebCreateOne(in *order.CreateOrderOneRequest) (*orde
OrderSn: data.OrderSn,
ProductId: int(in.ProductId),
ProductName: productInfo.Name,
Price: productInfo.Price,
Price: utils.RoundFloat(productInfo.Price),
Number: int(in.Num),
}
data.ProductIds = strconv.FormatInt(in.ProductId, utils.NumberTen)
data.TotalPrice = float64(in.Num) * productInfo.Price
data.TotalPrice = utils.RoundFloat(float64(in.Num) * productInfo.Price)
mobileObj := model.OrderModel{}.Init()
mobileObj.Begin()