test

作者: guessguess | 来源:发表于2024-07-23 10:44 被阅读0次

    1 应用市场

    1.0产品线列表

    url:/product/list
    method:get
    Response: 
    public class Result {
        private Integer code;
        private String msg;
        private List<ProductDTO > data;
        private Integer total;
    }
    public class ProductDTO {
        private Long id;
        private String name;
    }
    

    1.1 应用市场首页-已完成

    url:/matrix-version/index/list/publish
    method: post
    RequestBody:
    public class MartixListCondition {
        private List<Long> productIds; 产线线id
        private String searchKey; 搜索关键字
        private Integer index; 分页
        private Integer limit; 分页
        private Long publishStartTime; 发布开始时间
        private Long publishEndTime;  发布结束时间
    }
    
    Response: 
    public class Result {
        private Integer code;
        private String msg;
        private List<MatrixDTO> data;
        private Integer total;
    }
    public class MatrixDTO {
        private String name;//插件名称
        private Integer productid;//产品线Id
        private List<MatrixVersionDTO> matrixVersion;
    }
    public class MatrixVersionDTO {
        private Long id;//插件版本id
        private String version;//版本
        private Long publishtime;//发布时间
        private String description;//描述
        private Long size;//大小
    }
    

    1.2 查看插件详情-返回最新以及历史版本-已完成

    url:/matrix-version/index/lasted/detail/{id} id为MatrixId
    method: get
    Response: 
    public class Result {
        private Integer code;
        private String msg;
        private MatrixVersionDetailDTO data;
        private Integer total;
    }
    public class MatrixVersionDetailDTO {
        private Long id;
        private Long productId;
        private String productName;
        private String version;
        private Long size;
        private Long publishTime;
        private List<MatrixVersionDTO> history; //历史版本信息
    }
    public class MatrixVersionDTO {
        private Long id;
        private String version;
        private Long publishtime;
        private String description;
        private Long size;
    }
    

    1.3 查看插件详情-已完成

    url:/matrix-version/index/detail/{id} id为versionId
    method: get
    Response: 
    public class Result {
        private Integer code;
        private String msg;
        private MatrixVersionDetailDTO data;
        private Integer total;
    }
    public class MatrixVersionDetailDTO {
        private Long id;
        private Long productId;
        private String productName;
        private String version;
        private Long size;
        private Long publishTime;
        private MatrixDTO matrix;
    }
    public class MatrixDTO {
        private Long id;
        private String name;
    }
    

    1.3 下载

    url: /matrix-version/index/download/{id}
    method: get
    

    1.4 依赖列表-已完成

    url: /matrix-version/index/dependiences/{id}
    method: get
    Response: 
    public class Result {
        private Integer code;
        private String msg;
        private List<DependiencesDTO> data;
        private Integer total;
    }
    public class JarInfo {
        private String name; 
        private String version;
            private Long size;
    }
    

    2.开发者

    2.1 插件列表-已发布--已完成

    url:/matrix-version/index/list/publish
    method: post
    RequestBody:
    public class MartixListCondition {
        private List<Long> productIds; 产线线id
        private String searchKey; 搜索关键字
        private Integer index; 分页
        private Integer limit; 分页
        private Long publishStartTime; 发布开始时间
        private Long publishEndTime;  发布结束时间
        private Integer publishStatus; 1-已发布
    }
    
    Response: 
    public class Result {
        private Integer code;
        private String msg;
        private List<MatrixDTO> data;
        private Integer total;
    }
    public class MatrixDTO {
        private String name;//插件名称
        private Integer productid;//产品线Id
        private List<MatrixVersionDTO> matrixVersion;
    }
    public class MatrixVersionDTO {
        private Long id;//插件版本id
        private String version;//版本
        private Long publishtime;//发布时间
        private String description;//描述
        private Long size;//大小
    }
    

    2.2 插件列表-未发布--已完成

    url:/matrix-version/index/list/unpublish
    method: post
    RequestBody:
    public class MartixListCondition {
        private List<Long> productIds; 产线线id
        private String searchKey; 搜索关键字
        private Integer index; 分页
        private Integer limit; 分页
            private Integer validateStatus; -1校验失败,0未校验,1已校验 null所有
    }
    
    Response: 
    public class Result {
        private Integer code;
        private String msg;
        private List<MatrixVersionDTO> data;
        private Integer total;
    }
    public class MatrixVersionDTO {
        private MatrixDTO matrix;//插件信息
        private Long id;//插件版本id
        private String version;//版本
        private String description;//描述
        private Long size;//大小
        private Integer validateStatus;//校验状态
        private Long createtime;//创建时间
    }
    public class MatrixDTO {
        private Long id;
        private String name;
        private Long productid;
        private String productName;
    }
    

    2.3 插件基础信息列表-已完成

    url:/matrix/list
    method: post
    RequestBody:
    public class MartixListCondition {
        private List<Long> productIds; 产线线id
        private String searchKey; 搜索关键字
        private Integer index; 分页
        private Integer limit; 分页
    }
    
    Response: 
    public class Result {
        private Integer code;
        private String msg;
        private List<MatrixDTO> data;
        private Integer total;
    }
    public class MatrixDTO {
        private Long id;
        private String name;
        private Integer productid;
        private String productName;
        private Long updatetime;
        private Long createtime;
        private String description;
        private Integer versionCount;//数量
    }
    

    2.4下载统计-月 环比

    url: /matrix/statistics/month/download
    method: get
    
    Response: 
    public class Result {
        private Integer code;
        private String msg;
        private MonthDownloadStatistics  data;
        private Integer total;
    }
    public class MonthDownloadStatistics  {
        private Long downloadCount;
        private Integer changeFlag; //-2,-1,0,1 缺失对比数据,下降,无变化,上升
        private String percentStr; //百分比,2位数字
    }
    
    

    2.5 总下载统计-按产品线划分

    url:  /matrix/statistics/product/download
    method: get
    RequestBody:
    public class MartixListCondition {
        private List<Long> productIds; 产线线id
        private String searchKey; 搜索关键字
        private Integer index; 分页
        private Integer limit; 分页
    }
    
    Response: 
    public class Result {
        private Integer code;
        private String msg;
        private ProductDownloadStatistics  data;
        private Integer total;
    }
    public class ProductDownloadStatistics {
        private List<ProductDTO> products;
    }
    public class ProductDTO {
        private Long id;
        private String name;
        private Long downLoadCount;
    }
    

    2.6 更新插件基本信息-已完成

    uri: /matrix/update
    method: post
    请求体:
    public class MatrixDTO {
        private Long id;
        private String name;
        private Integer productid;
        private String description;
    }
    

    2.7 删除插件---已完成

    uri: /matrix/delete
    method: post
    请求体:
    public class MatrixDTO {
        private Long id;
    }
    

    2.8创建插件---已完成

    uri: /matrix/create
    method: post
    请求体:
    public class MatrixDTO {
        private Long id;
        private String name;
        private Integer productid;
        private String description;
    }
    Response: 
    public class Result {
        private Integer code;
        private String msg;
        private Long data;//创建后的插件id
        private Integer total;
    }
    

    2.9创建插件版本信息---已完成

    uri: 
    method: post
    请求体:
    public class MatrixVersionDTO {
        private String version;
        private Long fusionMatrixId;
        private String description;
    }
    
    Response: 
    public class Result {
        private Integer code;
        private String msg;
        private Long data; --插件版本对应的id
        private Integer total;
    }
    

    2.10 上传文件 & 删除文件

    uri: /matrix-version/file/clean/{filetype}/{id}
    uri: /matrix-version/file/clean/all/{id}
    
    
    uri: /matrix-version/file/upload/{filetype}/{id}
    method: post
    文件 multiFile
    文件类型 filetype = web-前端 dependencies-后端 config-配置 bin-脚本
    

    2.11 插件校验---已完成

    uri: /matrix-version/validate?versionId=xxxx
    method: get
    
    Response: 
    public class Result {
        private Integer code;
        private String msg;
        private Long List<ValidateInfoDTO>; --异常信息 若无则通过
        private Integer total;
    }
    public class ValidateInfoDTO {
        private String type; //frontend-前端 backend-后端 config-配置 bin-脚本
        private String msg; //原因
    }
    
    

    2.12 插件发布---已完成

    uri: /matrix-version/publish
    method: post
    请求体:id数组
    
    

    2.13 查看详情-已发布-已完成

    url:/matrix-version/index/detail/{id}
    method: get
    Response: 
    public class Result {
        private Integer code;
        private String msg;
        private MatrixVersionDetailDTO data;
        private Integer total;
    }
    public class MatrixVersionDetailDTO {
        private Long id;
        private Long productId;
        private String productName;
        private String version;
        private Long size;
        private Long publishTime;
        private List<MatrixVersionDTO> history; //历史版本信息
    }
    public class MatrixVersionDTO {
        private Long id;
        private String version;
        private Long publishtime;
        private String description;
        private Long size;
    }
    

    2.14 查看详情-未发布-已完成

    url:/matrix-version/unpublish/detail/{id}
    method: get
    Response: 
    public class Result {
        private Integer code;
        private String msg;
        private MatrixVersionDetailDTO data;
        private Integer total;
    }
    public class MatrixVersionDetailDTO {
        private Long id;
        private String version;
        private Long size;
            private Integer validateStatus;
            private String description;
            private Long createTime;
        private MatrixDTO matrix;
    }
    
    public class MatrixDTO {
        private Long id;
        private String name;
        private Integer productid;
        private String productName;
    }
    

    2.15 删除插件-已完成

    uri: /matrix-version/delete/{id}
    method: post
    

    2.16 下架插件---已完成

    uri: /matrix-version/offshell
    method: post
    请求体: id数组
    

    2.17 根据产品线查询插件信息

    uri: /matrix/list/{productid}
    method: get
    响应体
    Response: 
    public class Result {
        private Integer code;
        private String msg;
        private List<MatrixDTO > data;
        private Integer total;
    }
    
    public class MatrixDTO {
        private Long id;
        private String name;
    }
    

    相关文章

      网友评论

          本文标题:test

          本文链接:https://www.haomeiwen.com/subject/sqwyhjtx.html