Appearance
创建厂商 API
| Path | Method | Created At |
|---|---|---|
| /api/customers/suppliers/create | POST | 2025-11-29 00:39:11 |
Request
| Key | Rule | Description |
|---|---|---|
| name | string,max:32 | 厂商名称必填,长度不能超过32个字符 |
| agent_level | string,max:100 | 代理级别字段必填,长度不能超过100个字符 |
| service_level | string,max:100 | 服务级别字段必填,长度不能超过100个字符 |
| partner_relationship | in:intimacy,recognized,loose,breakthrough,communicating,target | 合作关系字段错误 |
| recommendation_index | in:1,2,3,4,5 | 推荐指数必须在1-5之间 |
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;
}