# 1.4.1 根据产品id获取产品信息

根据产品id获取产品信息

请求方式:GET

请求地址:{API_HOST}/api/v2/open/adviserZone/product/:productId

请求头部:

key value
Content-Type application/json
X-Consumer-Custom-ID "@staff_super:im.finogeeks.com"

请求参数说明:

参数 类型 是否必须 说明 默认值
productId string 产品id

返回值示例:

{
    "id": "8c024e37-52e3-4495-85fa-213a764fda3e", //基金产品id
    "creator": "@staff_sshh123:000000.finogeeks.com", //创建人
    "updater": "@staff_sshh123:000000.finogeeks.com", //更新人
    "type": "hybridFund",       //基金类型
    "typeName": "混合型基金",     //基金类型名
    "name": "中欧创新",           //产品名称
    "createAt": 1605515891247,   //创建时间
    "updateAt": 1605515891247,   //更新时间
    "updateUser": {
        "displayname": "sshh",
        "avatar_url": "https://swan.finogeeks.club/statics/images/icbc_avatar_staff.png"
    },
    "status": 1,  //产品状态
    "from": "manage",
    "viewCount": 0,
    "code": "502112",
    "image": {
        "netdiskId": "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1605525907004&di=1ade6d00414daae8a12d492cd90acaf1&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201804%2F11%2F20180411104917_yssjs.jpg",
        "width": 0,
        "height": 0,
        "orientation": "0",
        "type": "-"
    },
    "tags": [],
    "financial": {},
    "fund": {
        "fundIncomingType": "comm3M",
        "fundIncomingIndex": "0.01",
        "fundValType": "navVal",
        "fundValIndex": "123",
        "currency": "元"
    },
    "purchaseAmount": 1 //起购金额
}

# 1.4.2 通过产品代码返回产品详情

通过产品代码返回产品详情

请求方式:GET

请求地址:{API_HOST}/api/v2/open/adviserZone/product/code/:code

请求头部:

key value
Content-Type application/json
X-Consumer-Custom-ID "@staff_super:im.finogeeks.com"

请求参数说明:

参数 类型 是否必须 说明 默认值
code string 产品代码

返回值示例:

{
    "id": "8c024e37-52e3-4495-85fa-213a764fda3e", //基金产品id
    "creator": "@staff_sshh123:000000.finogeeks.com", //创建人
    "updater": "@staff_sshh123:000000.finogeeks.com", //更新人
    "type": "hybridFund",       //基金类型
    "typeName": "混合型基金",     //基金类型名
    "name": "中欧创新",           //产品名称
    "createAt": 1605515891247,   //创建时间
    "updateAt": 1605515891247,   //更新时间
    "updateUser": {
        "displayname": "sshh",
        "avatar_url": "https://swan.finogeeks.club/statics/images/icbc_avatar_staff.png"
    },
    "status": 1,  //上架状态 (0 下架, 1 上架)
    "from": "manage",
    "code": "502112",
    "image": {
        "netdiskId": "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1605525907004&di=1ade6d00414daae8a12d492cd90acaf1&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201804%2F11%2F20180411104917_yssjs.jpg",
        "width": 0,
        "height": 0,
        "orientation": "0",
        "type": "-"
    },
    "tags": [],
    "financial": {},
    "fund": {
        "fundIncomingType": "comm3M",
        "fundIncomingIndex": "0.01",
        "fundValType": "navVal",
        "fundValIndex": "123",
        "currency": "元"
    },
    "purchaseAmount": 1 //起购金额
}

# 1.4.3 新增产品

新增产品

请求方式:POST

请求地址:{API_HOST}/api/v2/open/adviserZone/product

请求头部:

key value
Content-Type application/json
X-Consumer-Custom-ID "@staff_super:im.finogeeks.com"

请求参数说明:

参数 类型 是否必须 说明 默认值
type string 产品类型
name string 产品名称
code string 产品代码
h5Url string 产品点击链接url地址
tags []string 产品标签
introduction string 产品介绍
sellType string //direct 表示直销,agent 表示代销
image Object 产品图片
image.netdiskId string 图片网盘id或图片完整url
image.width number 产品图片width
image.height number 产品图片height
image.orientation string 产品图片orientation
image.type string 产品图片type
financial Object 银行理财产品简介,如果是银行理财产品,则该字段赋值
financial.incomeType Json 银行产品收益类型
financial.incomeIndex number 银行产品收益值
financial.productTerm Json 定期理财产品期限
financial.depositTerm Json 存款存期
financial.depositInterestRate number 存款年利率
financial.loanTerm Json 贷款期限存期
financial.loanRates Json 贷款利率
financial.loanAmount Json 贷款额度
financial.advantage Json 银行理财产品优势
financial.condition Json 银行理财产品申请条件
financial.keywords []string 银行理财产品keywords
fund Json 基金产品简介,如果是基金产品,则改字段对应赋值
fund.fundIncomingType string 收益类型
fund.fundIncomingIndex string 收益类型数据
fund.fundValType string 收益计算方式
fund.fundValIndex string 收益计算数据
purchaseAmount double 起购金额

返回值: 成功返回200 ,参数错误返回状态码 400 ,异常返回状态码 500

类型字典表

字段 含义
equityFund 股票型基金
hybridFund 混合型基金
bondFund 债券型基金
otherFund 其他型基金
fof FOF型基金
qdii QDII型基金
currency 货币型基金

# 1.4.4 修改产品信息

修改产品信息

请求方式:PUT

请求地址:{API_HOST}/api/v2/open/adviserZone/product/:id

请求头部:

key value
Content-Type application/json
X-Consumer-Custom-ID "@staff_super:im.finogeeks.com"

请求参数说明:这是一个全量的修改接口,修改参数与新增接口一样。无论是否要修改的参数,都要一并传给后台

参数 类型 是否必须 说明 默认值
type string 产品类型
name string 产品名称
code string 产品代码
h5Url string 产品点击链接url地址
tags []string 产品标签
introduction string 产品介绍
sellType string //direct 表示直销,agent 表示代销
image Object 产品图片
image.netdiskId string 图片网盘id或图片完整url
image.width number 产品图片width
image.height number 产品图片height
image.orientation string 产品图片orientation
image.type string 产品图片type
financial Object 银行理财产品简介,如果是银行理财产品,则该字段赋值
financial.incomeType Json 银行产品收益类型
financial.incomeIndex number 银行产品收益值
financial.productTerm Json 定期理财产品期限
financial.depositTerm Json 存款存期
financial.depositInterestRate number 存款年利率
financial.loanTerm Json 贷款期限存期
financial.loanRates Json 贷款利率
financial.loanAmount Json 贷款额度
financial.advantage Json 银行理财产品优势
financial.condition Json 银行理财产品申请条件
financial.keywords []string 银行理财产品keywords
fund Json 基金产品简介,如果是基金产品,则改字段对应赋值
fund.fundIncomingType string 收益类型
fund.fundIncomingIndex string 收益类型数据
fund.fundValType string 收益计算方式
fund.fundValIndex string 收益计算数据
purchaseAmount double 起购金额

返回值: 成功返回200 ,参数错误返回状态码 400 ,异常返回状态码 500

# 1.4.5 分页获取所有的产品信息

分页获取所有的产品信息

请求方式:GET

请求地址:{API_HOST}/api/v2/open/adviserZone/product

请求头部:

key value
Content-Type application/json
X-Consumer-Custom-ID "@staff_super:im.finogeeks.com"

请求参数说明:

{
    "content": [
        {
            "id": "8c024e37-52e3-4495-85fa-213a764fda3e",
            "creator": "",
            "updater": "",
            "type": "hybridFund",
            "typeName": "混合型基金",
            "name": "aaaa",
            "createAt": 1605515891247,
            "updateAt": 1605516015734,
            "updateUser": {
                "displayname": "sshh"
            },
            "status": 1,
            "from": "manage",
            "viewCount": 0,
            "code": "",
            "image": {
                "netdiskId": "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1605525907004&di=1ade6d00414daae8a12d492cd90acaf1&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201804%2F11%2F20180411104917_yssjs.jpg",
                "width": 0,
                "height": 0,
                "orientation": "0",
                "type": "-"
            },
            "tags": [],
            "financial": {},
            "fund": {
                "fundIncomingType": "comm3M",
                "fundIncomingIndex": "0.11",
                "fundValType": "navVal",
                "fundValIndex": "123",
                "currency": "元"
            },
            "purchaseAmount": 1
        }
    ],
    "pageable": {
        "sort": {
            "sorted": false,
            "unsorted": true
        },
        "pageNumber": 0,
        "pageSize": 10,
        "offset": 0,
        "unpaged": false,
        "paged": true
    },
    "totalElements": 258,
    "last": false,
    "totalPages": 26,
    "sort": {
        "sorted": false,
        "unsorted": true
    },
    "first": true,
    "numberOfElements": 10,
    "size": 10,
    "number": 0
}