金融产品API


  • administrators

    1.产品模型

    public class ProductDto {
     
        @TenantId
        private String tid;
        @Indexed
        @MerchantId
        private String mid;
     
        @Id
        private String id;
        @Indexed
        private String creator;     // 创建人
        private String creatorName;
        private String updater;
        private String updaterName;
        @Indexed
        private String type;        // 产品类型
        private String name;        // 产品名称
        private Long createAt;      //创建时间
        private Long updateAt;
        private Integer status; //0 下架, 1 上架
        private String from; // manage,staff
        private String introduction;
        private ProductImage image;
     
        private String incomeType;
        private Double incomeIndex;
        private @Valid ProductTerm productTerm;
     
        //其他
        private String code;        // 产品代码
        private String navVal; //    NAV_VAL                最新净值
        private String expRateSevenDay; //    EXP_RATE_SEVENDAY           7日年化收益率
        private String incPerTenThousand; //    INC_PER_TENTHOUSAND            每万份收益
        private String comm1d; //    COMM_1D               日收益率(%)
        private String comm1M;  //    COMM_1M              "一个月收益率 (%)
        private String comm3M; //    COMM_3M                三个月收益率 (%)
        private String[] tags;      //产品标签
     
        //存款
        private ProductTerm depositTerm;   //存期 单位 月
        private Double depositInterestRate; //年利率 单位 比分比
        private Double purchaseAmount;  //起购金额 单位 元
     
        //贷款
        private ProductTerm loanTerm; // 贷款期限
        private Double loanRates; //贷款利率
        private Double loanAmount; //贷款额度
     
        //电子银行
        private String advantage; //产品优势
        private String condition; //申请条件
        private Set<String> keywords;
    }
    

    2.获取产品明细

    /**
     * @api {GET} /api/v1/adviserZone/product/:productId [C/S] (产品)(投顾) 获取理财产品明细
     * @apiGroup adviserZone
     * @apiVersion __API_VERSION__
     * @apiPrivate
     * @apiHeader {String} X-Consumer-Custom-ID="@xxx:finogeeks.club"
     * @apiParam (PathParam)   {string}   productId  产品ID
     * @apiSuccessExample {json} Success Status:
     * HTTP/1.1 200
     * <pre>
     *{
    *    "id":"680c1a26-447d-416d-bd1e-b6097d61d90a",
    *    "updater":"@staff_staff1:111111.finogeeks.com",
    *    "type":"deposit",
    *    "typeName":"存款",
    *    "name":"新增存款修改",
    *    "updateAt":1593344444282,
    *    "updateUser":{
    *        "displayname":"test1",
    *        "avatar_url":"https://swan.finogeeks.club/api/v1/netdisk/download/3131313131312e66696e6f6765656b732e636f6d5ecc739b26079d0001848d*2d?                           jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJmY2lkIjoiQHN0YWZmX3N0YWZmMToxMTExMTEuZmlub2dlZWtzLmNvbSIsImlzcyI6ImpXMDFNV3B1OTBn*dkZSU09naThSWEVvVXFMckJNbGgzIiwiZXhwIjoxNTkwODQ3NzI3LCJp*YXQiOjE1OTAxMjc3Mjd9.-POfSLfBiw_J1hMjVdzeAvajzLEpkxwql1puekdi0fY&mp3=true"
    *    },
    *    "status":0,
    *    "from":"manage",
    *    "viewCount":0,
    *    "code":"1472995",
    *    "introduction":"存款产品介绍",
    *    "image":{
    *        "netdiskId":"3131313131312e66696e6f6765656b732e636f6d5ef881b6ddfa9b0001649a52",
    *        "width":0,
    *        "height":0,
    *        "orientation":"0",
    *        "type":"-"
    *    },
    *    "tags":[
    *        "第一个标签",
    *        "第二个标签",
    *        "第三个标签"
    *    ],
    *    "depositTerm":{
    *        "min":1,
    *        "max":3
    *    },
    *    "depositInterestRate":0.012,
     *   "purchaseAmount":1
     *   "createAt": 1554640066176,
     *   "canAllot", 1,  //是否可申购,0 不可申购 1可申购 -1 未知
     *   "canRedeem", 1, //是否可赎回,0 不可赎回 1可赎回 -1 未知
     *   "amacRisk5Level" //风险等级,1 低风险 2 中低风险 3 中风险 4 中高风险 5 高风险
     * }
     * </pre>
     * @apiErrorExample Error Status:
     * HTTP/1.1 500
     */