Skip to content

编辑销售目标 API

PathMethodCreated At
/api/sales-targets/PUT2025-11-29 00:39:11

Request

KeyRuleDescription
idstring,size:24销售目标不存在
sales_target_of_yeardecimal:0,4销售目标必须是正数
gross_profit_margin_targetdecimal:0,4销售毛利率目标必须是正数

Response

KeyTypeExampleComment
codeint0编号:0表示成功,非0表示错误
messagestringsuccess成功为 success, 失败则错误消息

TypeScript Result Example:

TypeScript
interface Result {
  /** 编号:0表示成功,非0表示错误 */
  code: number;
  /** 成功为 success, 失败则错误消息 */
  message: string;
}