文档
测试

查询某个分类全部属性

POST
http://localhost:5003/admin/attr/list/all

说明 / 示例

请求参数 ```java /** * 分类id */ private Integer catId; /** * 属性类型 */ private String attrType; ``` ```json { "catId":34, "attrType":"2", "enable":true // 状态 } ``` 响应结果 ```json { "status": 200, "error": "", "message": "success", "payload": [ { "attrId": 4, "attrName": "颜色", "icon": null, "valueSelect": null, "attrType": "2", "enable": true, "catId": 34, "verify": true }, { "attrId": 5, "attrName": "内存", "icon": null, "valueSelect": null, "attrType": "2", "enable": true, "catId": 34, "verify": true }, { "attrId": 8, "attrName": "版本", "icon": null, "valueSelect": null, "attrType": "2", "enable": true, "catId": 34, "verify": true } ] } ``` ```java /** * 属性id */ @TableId(value = "attr_id", type = IdType.AUTO) private Integer attrId; /** * 属性名 */ private String attrName; /** * 属性图标 */ private String icon; /** * 可选值列表[用逗号分隔] 这个作为在进行属性编辑时候默认字段方便快速选择 */ private String valueSelect; /** * 属性类型[1-基本属性,2-销售属性] */ private String attrType; /** * 启用状态[0 - 禁用,1 - 启用] */ private Boolean enable; /** * 分类id */ private Integer catId; /** * 是否对属性进行校验 不设置则可随意输入 1设置 2 不设置 */ private Boolean verify; ```