Appearance
创建产品品牌 API
| Path | Method | Created At |
|---|---|---|
| /api/products/brands/create | POST | 2025-11-29 00:39:11 |
Request
| Key | Rule | Description |
|---|---|---|
| name | string,max:64 | trans:validate.NAME_LENGTH_MUST_THAN_64 |
| icon | url | trans:ICON_MUST_BE_URL |
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;
}