类 ItemRestController


  • @RestController
    @RequestMapping(value="/vue/item",
                    produces="application/json")
    public class ItemRestController
    extends Object
    作者:
    qinman, zhangchongjie
    Date:
    2022/12/20
    • 构造器详细资料

      • ItemRestController

        public ItemRestController()
    • 方法详细资料

      • copyItem

        @PostMapping("/copyItem")
        public net.risesoft.pojo.Y9Result<String> copyItem​(@RequestParam(required=true)
                                                           String id)
        复制事项
        参数:
        id -
        返回:
      • delete

        @PostMapping("/delete")
        public net.risesoft.pojo.Y9Result<String> delete​(@RequestParam
                                                         String id)
        删除事项
        参数:
        id - 事项id
        返回:
      • getBindItemList

        @GetMapping("/getBindItemList")
        public net.risesoft.pojo.Y9Result<List<SpmApproveItem>> getBindItemList​(@RequestParam(required=true)
                                                                                String itemId,
                                                                                @RequestParam(required=true)
                                                                                String itemName)
        获取绑定的事项列表(不包含选择的事项)
        参数:
        itemId - 事项id
        返回:
      • getDept

        @RequestMapping("/getDept")
        public net.risesoft.pojo.Y9Result<String> getDept​(@RequestParam
                                                          String id)
        获取部门
        参数:
        id - 部门id
        返回:
      • list

        @GetMapping("/list")
        public net.risesoft.pojo.Y9Result<List<SpmApproveItem>> list()
        事项列表
        返回:
      • newOrModify

        @GetMapping("/newOrModify")
        public net.risesoft.pojo.Y9Result<Map<String,​Object>> newOrModify​(@RequestParam(required=false)
                                                                                String id)
        获取新增或修改数据
        参数:
        id - 事项id
        返回:
      • publishToSystemApp

        @PostMapping("/publishToSystemApp")
        public net.risesoft.pojo.Y9Result<String> publishToSystemApp​(@RequestParam
                                                                     String itemId)
        发布为应用系统
        参数:
        itemId - 事项id
        返回:
      • readAppIconFile

        @GetMapping("/readAppIconFile")
        public net.risesoft.pojo.Y9Result<Map<String,​Object>> readAppIconFile()
        图片文件读取
        返回:
      • save

        @PostMapping("/save")
        public net.risesoft.pojo.Y9Result<SpmApproveItem> save​(String itemJson)
        保存事项
        参数:
        itemJson - 事项信息json
        返回:
      • saveOrder

        @PostMapping("/saveOrder")
        public net.risesoft.pojo.Y9Result<String> saveOrder​(@RequestParam
                                                            String[] idAndTabIndexs)
        保存事项排序
        参数:
        idAndTabIndexs - 事项id和排序索引json
        返回:
      • searchAppIcon

        @GetMapping("/searchAppIcon")
        public net.risesoft.pojo.Y9Result<Map<String,​Object>> searchAppIcon​(@RequestParam(required=false)
                                                                                  String name)
        图标搜索
        参数:
        name - 搜索词
        返回:
      • uploadItemIcon

        @PostMapping("/uploadItemIcon")
        public net.risesoft.pojo.Y9Result<Map<String,​Object>> uploadItemIcon​(@RequestParam
                                                                                   org.springframework.web.multipart.MultipartFile files)
        上传图标
        参数:
        files -
        返回: