Appearance
编辑销售目标 API
| Path | Method | Created At |
|---|---|---|
| /api/sales-targets/ | PUT | 2025-11-29 00:39:11 |
Request
| Key | Rule | Description |
|---|---|---|
| id | string,size:24 | 销售目标不存在 |
| sales_target_of_year | decimal:0,4 | 销售目标必须是正数 |
| gross_profit_margin_target | decimal:0,4 | 销售毛利率目标必须是正数 |
Response
| Key | Type | Example | Comment |
|---|---|---|---|
| code | int | 0 | 编号:0表示成功,非0表示错误 |
| message | string | success | 成功为 success, 失败则错误消息 |
TypeScript Result Example:
TypeScript
interface Result {
/** 编号:0表示成功,非0表示错误 */
code: number;
/** 成功为 success, 失败则错误消息 */
message: string;
}