产品线列表

请求地址

/api/productLine/lists

请求方法

POST

方法说明

获取产品线数据

输入信息

字段 类型 必填 说明
conditions object 过滤条件
    keyword string 关键词搜索,名称和备注
pager object 分页条件
    currentPage int 当前页
    pageSize int 每页条数

输入示例

{
    "conditions":{"keyword":""},
    "pager":{
        "currentPage":1,
        "pageSize":20
    }
}

返回信息

字段 类型 说明
items object 列表数据
    data Array 数据
        id bigint 产品线id
        name string 名称
        note string 备注
        is_default int 是否为默认产品线
        open_sea_rule object 公海池规则
        created_time datetime 创建时间
        updated_time datetime 修改时间
        auto_assign_rule object 自动分配规则
        users array 产品线用户集合
    current_page int 当前页码
    per_page int 每页条数

返回示例

{
    "code": 200,
    "data": {
        "items": {
            "current_page": 1,
            "data": [
                {
                    "id": 1,
                    "name": "默认产品线",
                    "note": "",
                    "is_default": 1,
                    "open_sea_rule": {
                        "prev_owner": {
                            "rule": 1,
                            "day": 4
                        },
                        "take_over": {
                            "rule": 0,
                            "num": 50
                        },
                        "notify": {
                            "rule": 0,
                            "day": 3
                        },
                        "free": {
                            "rule": 1,
                            "range": {
                                "paid": true,
                                "owner": true,
                                "favorite": true
                            },
                            "rules": {
                                "not_follow": true,
                                "not_paid": true,
                                "not_follow_day": 10,
                                "not_paid_day": 10,
                                "not_change_life_cycle": false,
                                "not_change_life_cycle_day": 10,
                                "life_cycles": false,
                                "life_cycles_day": 10,
                                "lifeCycleOptions": [],
                                "life_cycles_day1": 10,
                                "life_cycles_follow_day1": 10,
                                "life_cycles_day2": 10,
                                "life_cycles_follow_day2": 10,
                                "life_cycles_day3": 10,
                                "life_cycles_follow_day3": 10,
                                "life_cycles_day4": 10,
                                "life_cycles_follow_day4": 10,
                                "life_cycles_day5": 10,
                                "life_cycles_follow_day5": 10,
                                "life_cycles_day6": 10,
                                "life_cycles_follow_day6": 10,
                                "changeLifeCycleOptions": [],
                                "lifeCycleFollowOptions1": [],
                                "lifeCycleFollowOptions2": [],
                                "lifeCycleFollowOptions3": [],
                                "lifeCycleFollowOptions4": [],
                                "lifeCycleFollowOptions5": [],
                                "lifeCycleFollowOptions6": [],
                                "lifeCycleOptions1": [],
                                "lifeCycleOptions2": [],
                                "lifeCycleOptions3": [],
                                "lifeCycleOptions4": [],
                                "lifeCycleOptions5": [],
                                "lifeCycleOptions6": []
                            }
                        }
                    },
                    "take_rule": {
                        "limit_follow_client": 10,
                        "limit_client": 0,
                        "limit_clue_client": 0,
                        "limit_lock_client": 10
                    },
                    "created_at": "2023-03-20 21:15:26",
                    "updated_at": "2024-10-11 16:44:33",
                    "auto_assign_rule": {
                        "auto_assign": "1",
                        "assign_type": "1",
                        "users": []
                    },
                    "users": [
                        {
                            "id": "1",
                            "username": "admin",
                            "email": "",
                            "status": 1,
                            "remark": "大家好才是真的好。。",
                            "created_time": null,
                            "is_default": 1,
                            "name": "超级管理员",
                            "phone": "",
                            "dep_id": "339338009553928192",
                            "parent_id": 1,
                            "avatar": "",
                            "pwd_error_time": "2000-01-01 00:00:00",
                            "pwd_error_times": 0,
                            "is_lock": 0,
                            "wx_id": "",
                            "js_wx_pusher_open_id": "oA6Qg55AvfYS-T8jn748cFo7WKSY",
                            "last_active_time": "2024-10-18 15:39:32",
                            "department": {
                                "id": "339338009553928192",
                                "parent_id": "339091279205892096",
                                "name": "销售一部",
                                "created_time": "2022-03-01 09:28:06",
                                "created_id": 58
                            },
                            "avatar_url": "",
                            "is_super": true,
                            "pivot": {
                                "product_line_id": 1,
                                "user_id": 1
                            }
                        },
                        {
                            "id": "430322878131470336",
                            "username": "xiaoshou01",
                            "email": "",
                            "status": 1,
                            "remark": "",
                            "created_time": "2022-11-07 11:09:29",
                            "is_default": 0,
                            "name": "销售员01",
                            "phone": "",
                            "dep_id": "339338009553928192",
                            "parent_id": 1,
                            "avatar": null,
                            "pwd_error_time": "2000-01-01 00:00:00",
                            "pwd_error_times": 0,
                            "is_lock": 0,
                            "wx_id": "",
                            "js_wx_pusher_open_id": null,
                            "last_active_time": null,
                            "department": {
                                "id": "339338009553928192",
                                "parent_id": "339091279205892096",
                                "name": "销售一部",
                                "created_time": "2022-03-01 09:28:06",
                                "created_id": 58
                            },
                            "avatar_url": "",
                            "is_super": false,
                            "pivot": {
                                "product_line_id": 1,
                                "user_id": "430322878131470336"
                            }
                        },
                        {
                            "id": "474140555375280128",
                            "username": "xs01",
                            "email": "",
                            "status": 1,
                            "remark": "",
                            "created_time": "2023-03-08 09:05:17",
                            "is_default": 0,
                            "name": "销售小陈",
                            "phone": "",
                            "dep_id": "339338009553928192",
                            "parent_id": 1,
                            "avatar": null,
                            "pwd_error_time": "2000-01-01 00:00:00",
                            "pwd_error_times": 0,
                            "is_lock": 0,
                            "wx_id": "",
                            "js_wx_pusher_open_id": null,
                            "last_active_time": null,
                            "department": {
                                "id": "339338009553928192",
                                "parent_id": "339091279205892096",
                                "name": "销售一部",
                                "created_time": "2022-03-01 09:28:06",
                                "created_id": 58
                            },
                            "avatar_url": "",
                            "is_super": false,
                            "pivot": {
                                "product_line_id": 1,
                                "user_id": "474140555375280128"
                            }
                        }
                    ]
                }
            ],
            "next_page_url": null,
            "path": "",
            "per_page": 20,
            "prev_page_url": null,
            "to": 3,
            "total": 3
        }
    },
    "message": ""
}
作者:admin  创建时间:2024-10-18 15:39
最后编辑:admin  更新时间:2024-10-19 12:15