```
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

feat(pet): 修改宠物价格字段类型为uint32

统一宠物价格相关字段的数据类型,将sale_price从float32改为uint32,
以保持数据类型一致性并避免浮点数精度问题。

- 更新controller中PriseReq结构体的Price字段类型
- 修改model中Pet结构体的SalePrice字段类型
- 调整service中UPdatePrice方法的参数类型
```
This commit is contained in:
昔念
2026-03-11 01:32:49 +08:00
parent 6430de9c5d
commit baa75334ea
3 changed files with 9 additions and 9 deletions

View File

@@ -86,9 +86,9 @@ type PetLevelRes struct {
}
type PriseReq struct {
g.Meta `path:"/modpirse" method:"POST"`
Ctime uint32 `json:"catch_time"`
Price float32 `json:"sale_price"`
IsSale uint32 `json:"is_sale"`
Ctime uint32 `json:"catch_time"`
Price uint32 `json:"sale_price"`
IsSale uint32 `json:"is_sale"`
}
func (c *PetBagController) ModPrise(ctx context.Context, req *PriseReq) (res *cool.BaseRes, err error) {