kutesmart-海外运营平台工艺目录-按工艺 id、ecode、品类、款式或面料查询可选工艺
正式环境固定服务根地址:https://www.kutetailor.com/api/craft
由原 platform-fabric-craft 拆出,专注工艺查询、价格和冲突校验。
调用参数要求
{
"params": {
"action": "craft_by_ecode",
"accessToken": "<access_token>",
"ecode": "CFT001",
"categoryId": 10001
}
}
动作表
| action | 请求 | URL | 参数 | 返回 | 用途 |
|---|---|---|---|---|---|
| craft_by_id | GET | /craft/craft/getCraftById/{id} | Path:id | RS<CraftVO> | 根据工艺 id 查询。 |
| craft_by_ecode | GET | /craft/craft/getCraftByEcode | Query:ecode | RS<CraftVO> | 根据工艺编码查询。 |
| craft_by_ecode_category | GET | /craft/craft/getCraftByEcodeAndCategory | Query:craftCode、category | RS<CraftVO> | 按编码和品类查询工艺。 |
| craft_list | GET | /craft/craft/getCraftList | Query:craftIds | RS<List<StyleCraftVO>> | 批量查询工艺。 |
| craft_price | POST | /craft-price/listCraftPrice | Body:CalCraftPriceRequest | RS<List<CalCraftPriceVO>> | 根据工艺 id 和币种查询价格。 |
| craft_price_by_ids | POST | /craft-price/listCraftPriceByIds | Body:craftIds | RS<List<CalCraftPriceVO>> | 批量查询工艺价格。 |
| craft_conflict_by_ids | POST | /craft/craft-conflict/selectConflictByCraftIds/{ids} | Path:ids,Body:冲突请求 | RS<List<CraftConflictedVO>> | 简定制获取冲突列表。 |
| craft_conflict_by_ecode | GET | /craft/craft-conflict/selectConflictList/{ecode} | Path:ecode | RS<List<CraftConflictListVO>> | 按工艺编码查询冲突列表。 |
| lining_type_by_category | GET | /craft-lining-type/getCraftLiningType | Query:category | List<CraftLiningType> | 查询品类衬类型。 |
| embroidery_by_category | GET | /craft/craft-embroidery/selectEmbListByCategoryId | Query:categoryId | RS<List<EmbVO>> | 查询品类刺绣。 |
| trademark_group | GET | /craft/craft-trademark-group/selectGroupList | Query:categoryId、memberId | RS<List<AppCraftTrademarkGroupVO>> | 查询商标组。 |
推荐流程
- 用户给工艺编码时用
craft_by_ecode或craft_by_ecode_category。 - 用户从款式详情选多个工艺时用
craft_list补齐名称。 - 提交前用
craft_conflict_by_ids校验冲突,再用craft_price计算价格。 - 刺绣和商标组按品类分别查询。
安全边界
- 不维护工艺库、权限、审批、导入导出。
- 有冲突时不要继续提交订单,必须让用户重新选择。
来源
| 项目 | 路径 |
|---|---|
| 工艺接口 | rcmtm-cloud-craft/src/main/java/com/kutesmart/cloud/craft/controller |
| 接口清单 | doc/interface-list.md |
Scan to join WeChat group