浏览代码

快手 应用创建,获取

yumeng 5 年之前
父节点
当前提交
f18effc7dd
共有 23 个文件被更改,包括 2169 次插入6 次删除
  1. 244 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/controller/KuaiShouAppCreateController.java
  2. 244 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/controller/KuaiShouAppListController.java
  3. 19 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/controller/KuaiShouController.java
  4. 118 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/entity/KuaiShouAppCreate.java
  5. 112 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/entity/KuaiShouAppList.java
  6. 14 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/KuaiShouAppCreateMapper.java
  7. 14 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/KuaiShouAppListMapper.java
  8. 5 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/xml/KuaiShouAppCreateMapper.xml
  9. 5 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/xml/KuaiShouAppListMapper.xml
  10. 14 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/IKuaiShouAppCreateService.java
  11. 14 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/IKuaiShouAppListService.java
  12. 20 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/IKuaishouInterfaceService.java
  13. 19 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/impl/KuaiShouAppCreateServiceImpl.java
  14. 19 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/impl/KuaiShouAppListServiceImpl.java
  15. 134 3
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/impl/KuaishouInterfaceServiceImpl.java
  16. 218 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/KuaiShouAppCreateList.vue
  17. 213 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/KuaiShouAppListList.vue
  18. 184 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouAppCreateModal.vue
  19. 191 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouAppCreateModal__Style#Drawer.vue
  20. 178 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouAppListModal.vue
  21. 185 0
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouAppListModal__Style#Drawer.vue
  22. 1 1
      module-common/src/main/java/cn/com/ctop/common/utils/FileUploadTool.java
  23. 4 2
      module-kuaishou/src/main/java/constant/KuaishouInterfaceConstant.java

+ 244 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/controller/KuaiShouAppCreateController.java

@@ -0,0 +1,244 @@
+package org.jeecg.modules.kuaishou.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.jeecg.common.util.oConvertUtils;
+import org.jeecg.modules.kuaishou.entity.KuaiShouAppCreate;
+import org.jeecg.modules.kuaishou.service.IKuaiShouAppCreateService;
+import java.util.Date;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+
+ /**
+ * @Description: 创建应用
+ * @Author: jeecg-boot
+ * @Date:   2019-07-26
+ * @Version: V1.0
+ */
+@Slf4j
+@Api(tags="创建应用")
+@RestController
+@RequestMapping("/kuaishou/kuaiShouAppCreate")
+public class KuaiShouAppCreateController {
+	@Autowired
+	private IKuaiShouAppCreateService kuaiShouAppCreateService;
+	
+	/**
+	  * 分页列表查询
+	 * @param kuaiShouAppCreate
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	@AutoLog(value = "创建应用-分页列表查询")
+	@ApiOperation(value="创建应用-分页列表查询", notes="创建应用-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<KuaiShouAppCreate>> queryPageList(KuaiShouAppCreate kuaiShouAppCreate,
+									  @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+									  @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+									  HttpServletRequest req) {
+		Result<IPage<KuaiShouAppCreate>> result = new Result<IPage<KuaiShouAppCreate>>();
+		QueryWrapper<KuaiShouAppCreate> queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouAppCreate, req.getParameterMap());
+		Page<KuaiShouAppCreate> page = new Page<KuaiShouAppCreate>(pageNo, pageSize);
+		IPage<KuaiShouAppCreate> pageList = kuaiShouAppCreateService.page(page, queryWrapper);
+		result.setSuccess(true);
+		result.setResult(pageList);
+		return result;
+	}
+	
+	/**
+	  *   添加
+	 * @param kuaiShouAppCreate
+	 * @return
+	 */
+	@AutoLog(value = "创建应用-添加")
+	@ApiOperation(value="创建应用-添加", notes="创建应用-添加")
+	@PostMapping(value = "/add")
+	public Result<KuaiShouAppCreate> add(@RequestBody KuaiShouAppCreate kuaiShouAppCreate) {
+		Result<KuaiShouAppCreate> result = new Result<KuaiShouAppCreate>();
+		try {
+			kuaiShouAppCreateService.save(kuaiShouAppCreate);
+			result.success("添加成功!");
+		} catch (Exception e) {
+			log.error(e.getMessage(),e);
+			result.error500("操作失败");
+		}
+		return result;
+	}
+	
+	/**
+	  *  编辑
+	 * @param kuaiShouAppCreate
+	 * @return
+	 */
+	@AutoLog(value = "创建应用-编辑")
+	@ApiOperation(value="创建应用-编辑", notes="创建应用-编辑")
+	@PutMapping(value = "/edit")
+	public Result<KuaiShouAppCreate> edit(@RequestBody KuaiShouAppCreate kuaiShouAppCreate) {
+		Result<KuaiShouAppCreate> result = new Result<KuaiShouAppCreate>();
+		KuaiShouAppCreate kuaiShouAppCreateEntity = kuaiShouAppCreateService.getById(kuaiShouAppCreate.getId());
+		if(kuaiShouAppCreateEntity==null) {
+			result.error500("未找到对应实体");
+		}else {
+			boolean ok = kuaiShouAppCreateService.updateById(kuaiShouAppCreate);
+			//TODO 返回false说明什么?
+			if(ok) {
+				result.success("修改成功!");
+			}
+		}
+		
+		return result;
+	}
+	
+	/**
+	  *   通过id删除
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "创建应用-通过id删除")
+	@ApiOperation(value="创建应用-通过id删除", notes="创建应用-通过id删除")
+	@DeleteMapping(value = "/delete")
+	public Result<?> delete(@RequestParam(name="id",required=true) String id) {
+		try {
+			kuaiShouAppCreateService.removeById(id);
+		} catch (Exception e) {
+			log.error("删除失败",e.getMessage());
+			return Result.error("删除失败!");
+		}
+		return Result.ok("删除成功!");
+	}
+	
+	/**
+	  *  批量删除
+	 * @param ids
+	 * @return
+	 */
+	@AutoLog(value = "创建应用-批量删除")
+	@ApiOperation(value="创建应用-批量删除", notes="创建应用-批量删除")
+	@DeleteMapping(value = "/deleteBatch")
+	public Result<KuaiShouAppCreate> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		Result<KuaiShouAppCreate> result = new Result<KuaiShouAppCreate>();
+		if(ids==null || "".equals(ids.trim())) {
+			result.error500("参数不识别!");
+		}else {
+			this.kuaiShouAppCreateService.removeByIds(Arrays.asList(ids.split(",")));
+			result.success("删除成功!");
+		}
+		return result;
+	}
+	
+	/**
+	  * 通过id查询
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "创建应用-通过id查询")
+	@ApiOperation(value="创建应用-通过id查询", notes="创建应用-通过id查询")
+	@GetMapping(value = "/queryById")
+	public Result<KuaiShouAppCreate> queryById(@RequestParam(name="id",required=true) String id) {
+		Result<KuaiShouAppCreate> result = new Result<KuaiShouAppCreate>();
+		KuaiShouAppCreate kuaiShouAppCreate = kuaiShouAppCreateService.getById(id);
+		if(kuaiShouAppCreate==null) {
+			result.error500("未找到对应实体");
+		}else {
+			result.setResult(kuaiShouAppCreate);
+			result.setSuccess(true);
+		}
+		return result;
+	}
+
+  /**
+      * 导出excel
+   *
+   * @param request
+   * @param response
+   */
+  @RequestMapping(value = "/exportXls")
+  public ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response) {
+      // Step.1 组装查询条件
+      QueryWrapper<KuaiShouAppCreate> queryWrapper = null;
+      try {
+          String paramsStr = request.getParameter("paramsStr");
+          if (oConvertUtils.isNotEmpty(paramsStr)) {
+              String deString = URLDecoder.decode(paramsStr, "UTF-8");
+              KuaiShouAppCreate kuaiShouAppCreate = JSON.parseObject(deString, KuaiShouAppCreate.class);
+              queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouAppCreate, request.getParameterMap());
+          }
+      } catch (UnsupportedEncodingException e) {
+          e.printStackTrace();
+      }
+
+      //Step.2 AutoPoi 导出Excel
+      ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
+      List<KuaiShouAppCreate> pageList = kuaiShouAppCreateService.list(queryWrapper);
+      //导出文件名称
+      mv.addObject(NormalExcelConstants.FILE_NAME, "创建应用列表");
+      mv.addObject(NormalExcelConstants.CLASS, KuaiShouAppCreate.class);
+      mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("创建应用列表数据", "导出人:Jeecg", "导出信息"));
+      mv.addObject(NormalExcelConstants.DATA_LIST, pageList);
+      return mv;
+  }
+
+  /**
+      * 通过excel导入数据
+   *
+   * @param request
+   * @param response
+   * @return
+   */
+  @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+  public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+      MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
+      Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
+      for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
+          MultipartFile file = entity.getValue();// 获取上传文件对象
+          ImportParams params = new ImportParams();
+          params.setTitleRows(2);
+          params.setHeadRows(1);
+          params.setNeedSave(true);
+          try {
+              List<KuaiShouAppCreate> listKuaiShouAppCreates = ExcelImportUtil.importExcel(file.getInputStream(), KuaiShouAppCreate.class, params);
+              kuaiShouAppCreateService.saveBatch(listKuaiShouAppCreates);
+              return Result.ok("文件导入成功!数据行数:" + listKuaiShouAppCreates.size());
+          } catch (Exception e) {
+              log.error(e.getMessage(),e);
+              return Result.error("文件导入失败:"+e.getMessage());
+          } finally {
+              try {
+                  file.getInputStream().close();
+              } catch (IOException e) {
+                  e.printStackTrace();
+              }
+          }
+      }
+      return Result.ok("文件导入失败!");
+  }
+
+}

+ 244 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/controller/KuaiShouAppListController.java

@@ -0,0 +1,244 @@
+package org.jeecg.modules.kuaishou.controller;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Map;
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.jeecg.common.util.oConvertUtils;
+import org.jeecg.modules.kuaishou.entity.KuaiShouAppList;
+import org.jeecg.modules.kuaishou.service.IKuaiShouAppListService;
+import java.util.Date;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.extern.slf4j.Slf4j;
+
+import org.jeecgframework.poi.excel.ExcelImportUtil;
+import org.jeecgframework.poi.excel.def.NormalExcelConstants;
+import org.jeecgframework.poi.excel.entity.ExportParams;
+import org.jeecgframework.poi.excel.entity.ImportParams;
+import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+import org.springframework.web.multipart.MultipartHttpServletRequest;
+import org.springframework.web.servlet.ModelAndView;
+import com.alibaba.fastjson.JSON;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+
+ /**
+ * @Description: 快手-应用列表
+ * @Author: jeecg-boot
+ * @Date:   2019-07-26
+ * @Version: V1.0
+ */
+@Slf4j
+@Api(tags="快手-应用列表")
+@RestController
+@RequestMapping("/kuaishou/kuaiShouAppList")
+public class KuaiShouAppListController {
+	@Autowired
+	private IKuaiShouAppListService kuaiShouAppListService;
+	
+	/**
+	  * 分页列表查询
+	 * @param kuaiShouAppList
+	 * @param pageNo
+	 * @param pageSize
+	 * @param req
+	 * @return
+	 */
+	@AutoLog(value = "快手-应用列表-分页列表查询")
+	@ApiOperation(value="快手-应用列表-分页列表查询", notes="快手-应用列表-分页列表查询")
+	@GetMapping(value = "/list")
+	public Result<IPage<KuaiShouAppList>> queryPageList(KuaiShouAppList kuaiShouAppList,
+									  @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+									  @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+									  HttpServletRequest req) {
+		Result<IPage<KuaiShouAppList>> result = new Result<IPage<KuaiShouAppList>>();
+		QueryWrapper<KuaiShouAppList> queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouAppList, req.getParameterMap());
+		Page<KuaiShouAppList> page = new Page<KuaiShouAppList>(pageNo, pageSize);
+		IPage<KuaiShouAppList> pageList = kuaiShouAppListService.page(page, queryWrapper);
+		result.setSuccess(true);
+		result.setResult(pageList);
+		return result;
+	}
+	
+	/**
+	  *   添加
+	 * @param kuaiShouAppList
+	 * @return
+	 */
+	@AutoLog(value = "快手-应用列表-添加")
+	@ApiOperation(value="快手-应用列表-添加", notes="快手-应用列表-添加")
+	@PostMapping(value = "/add")
+	public Result<KuaiShouAppList> add(@RequestBody KuaiShouAppList kuaiShouAppList) {
+		Result<KuaiShouAppList> result = new Result<KuaiShouAppList>();
+		try {
+			kuaiShouAppListService.save(kuaiShouAppList);
+			result.success("添加成功!");
+		} catch (Exception e) {
+			log.error(e.getMessage(),e);
+			result.error500("操作失败");
+		}
+		return result;
+	}
+	
+	/**
+	  *  编辑
+	 * @param kuaiShouAppList
+	 * @return
+	 */
+	@AutoLog(value = "快手-应用列表-编辑")
+	@ApiOperation(value="快手-应用列表-编辑", notes="快手-应用列表-编辑")
+	@PutMapping(value = "/edit")
+	public Result<KuaiShouAppList> edit(@RequestBody KuaiShouAppList kuaiShouAppList) {
+		Result<KuaiShouAppList> result = new Result<KuaiShouAppList>();
+		KuaiShouAppList kuaiShouAppListEntity = kuaiShouAppListService.getById(kuaiShouAppList.getId());
+		if(kuaiShouAppListEntity==null) {
+			result.error500("未找到对应实体");
+		}else {
+			boolean ok = kuaiShouAppListService.updateById(kuaiShouAppList);
+			//TODO 返回false说明什么?
+			if(ok) {
+				result.success("修改成功!");
+			}
+		}
+		
+		return result;
+	}
+	
+	/**
+	  *   通过id删除
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "快手-应用列表-通过id删除")
+	@ApiOperation(value="快手-应用列表-通过id删除", notes="快手-应用列表-通过id删除")
+	@DeleteMapping(value = "/delete")
+	public Result<?> delete(@RequestParam(name="id",required=true) String id) {
+		try {
+			kuaiShouAppListService.removeById(id);
+		} catch (Exception e) {
+			log.error("删除失败",e.getMessage());
+			return Result.error("删除失败!");
+		}
+		return Result.ok("删除成功!");
+	}
+	
+	/**
+	  *  批量删除
+	 * @param ids
+	 * @return
+	 */
+	@AutoLog(value = "快手-应用列表-批量删除")
+	@ApiOperation(value="快手-应用列表-批量删除", notes="快手-应用列表-批量删除")
+	@DeleteMapping(value = "/deleteBatch")
+	public Result<KuaiShouAppList> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+		Result<KuaiShouAppList> result = new Result<KuaiShouAppList>();
+		if(ids==null || "".equals(ids.trim())) {
+			result.error500("参数不识别!");
+		}else {
+			this.kuaiShouAppListService.removeByIds(Arrays.asList(ids.split(",")));
+			result.success("删除成功!");
+		}
+		return result;
+	}
+	
+	/**
+	  * 通过id查询
+	 * @param id
+	 * @return
+	 */
+	@AutoLog(value = "快手-应用列表-通过id查询")
+	@ApiOperation(value="快手-应用列表-通过id查询", notes="快手-应用列表-通过id查询")
+	@GetMapping(value = "/queryById")
+	public Result<KuaiShouAppList> queryById(@RequestParam(name="id",required=true) String id) {
+		Result<KuaiShouAppList> result = new Result<KuaiShouAppList>();
+		KuaiShouAppList kuaiShouAppList = kuaiShouAppListService.getById(id);
+		if(kuaiShouAppList==null) {
+			result.error500("未找到对应实体");
+		}else {
+			result.setResult(kuaiShouAppList);
+			result.setSuccess(true);
+		}
+		return result;
+	}
+
+  /**
+      * 导出excel
+   *
+   * @param request
+   * @param response
+   */
+  @RequestMapping(value = "/exportXls")
+  public ModelAndView exportXls(HttpServletRequest request, HttpServletResponse response) {
+      // Step.1 组装查询条件
+      QueryWrapper<KuaiShouAppList> queryWrapper = null;
+      try {
+          String paramsStr = request.getParameter("paramsStr");
+          if (oConvertUtils.isNotEmpty(paramsStr)) {
+              String deString = URLDecoder.decode(paramsStr, "UTF-8");
+              KuaiShouAppList kuaiShouAppList = JSON.parseObject(deString, KuaiShouAppList.class);
+              queryWrapper = QueryGenerator.initQueryWrapper(kuaiShouAppList, request.getParameterMap());
+          }
+      } catch (UnsupportedEncodingException e) {
+          e.printStackTrace();
+      }
+
+      //Step.2 AutoPoi 导出Excel
+      ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
+      List<KuaiShouAppList> pageList = kuaiShouAppListService.list(queryWrapper);
+      //导出文件名称
+      mv.addObject(NormalExcelConstants.FILE_NAME, "快手-应用列表列表");
+      mv.addObject(NormalExcelConstants.CLASS, KuaiShouAppList.class);
+      mv.addObject(NormalExcelConstants.PARAMS, new ExportParams("快手-应用列表列表数据", "导出人:Jeecg", "导出信息"));
+      mv.addObject(NormalExcelConstants.DATA_LIST, pageList);
+      return mv;
+  }
+
+  /**
+      * 通过excel导入数据
+   *
+   * @param request
+   * @param response
+   * @return
+   */
+  @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+  public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+      MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;
+      Map<String, MultipartFile> fileMap = multipartRequest.getFileMap();
+      for (Map.Entry<String, MultipartFile> entity : fileMap.entrySet()) {
+          MultipartFile file = entity.getValue();// 获取上传文件对象
+          ImportParams params = new ImportParams();
+          params.setTitleRows(2);
+          params.setHeadRows(1);
+          params.setNeedSave(true);
+          try {
+              List<KuaiShouAppList> listKuaiShouAppLists = ExcelImportUtil.importExcel(file.getInputStream(), KuaiShouAppList.class, params);
+              kuaiShouAppListService.saveBatch(listKuaiShouAppLists);
+              return Result.ok("文件导入成功!数据行数:" + listKuaiShouAppLists.size());
+          } catch (Exception e) {
+              log.error(e.getMessage(),e);
+              return Result.error("文件导入失败:"+e.getMessage());
+          } finally {
+              try {
+                  file.getInputStream().close();
+              } catch (IOException e) {
+                  e.printStackTrace();
+              }
+          }
+      }
+      return Result.ok("文件导入失败!");
+  }
+
+}

+ 19 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/controller/KuaiShouController.java

@@ -205,4 +205,23 @@ public class KuaiShouController {
     }
 
 
+    @RequestMapping(value = "/app/create", consumes = "multipart/form-data;charset=utf-8")
+    public void appCreate(@RequestParam("multipartFile") MultipartFile multipartFile, HttpServletRequest request) throws IOException {
+
+        String accessToken = "8903c5a4ddbec0c236eb536b8bec58db";
+        Long advertiserId = 23212L;
+
+        kuaishouInterfaceService.appCreate(advertiserId, accessToken, multipartFile, request);
+
+    }
+
+    @RequestMapping(value = "/getAppList", consumes = "multipart/form-data;charset=utf-8")
+    public void getAppList() throws IOException {
+
+        String accessToken = "8903c5a4ddbec0c236eb536b8bec58db";
+        Long advertiserId = 23212L;
+
+        kuaishouInterfaceService.getAppList(advertiserId, accessToken);
+
+    }
 }

+ 118 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/entity/KuaiShouAppCreate.java

@@ -0,0 +1,118 @@
+package org.jeecg.modules.kuaishou.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.util.Date;
+
+/**
+ * @Description: 创建应用
+ * @Author: jeecg-boot
+ * @Date: 2019-07-26
+ * @Version: V1.0
+ */
+@Data
+@TableName("ctop_kuaishou_app_create")
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@ApiModel(value = "ctop_kuaishou_app_create对象", description = "创建应用")
+public class KuaiShouAppCreate {
+
+    /**
+     * id
+     */
+    @TableId(type = IdType.AUTO)
+    @ApiModelProperty(value = "id")
+    private Long id;
+    /**
+     * 账户ID
+     */
+    @Excel(name = "账户ID", width = 15)
+    @ApiModelProperty(value = "账户ID")
+    private Long accountId;
+    /**
+     * 本地存储地址
+     */
+    @Excel(name = "本地存储地址", width = 15)
+    @ApiModelProperty(value = "本地存储地址")
+    private Object savaPath;
+    /**
+     * 上传应用地址
+     */
+    @Excel(name = "上传应用地址", width = 15)
+    @ApiModelProperty(value = "上传应用地址")
+    private Object url;
+    /**
+     * 应用标记
+     */
+    @Excel(name = "应用标记", width = 15)
+    @ApiModelProperty(value = "应用标记")
+    private String appVersion;
+    /**
+     * 应用名称
+     */
+    @Excel(name = "应用名称", width = 15)
+    @ApiModelProperty(value = "应用名称")
+    private String appName;
+    /**
+     * 图片token
+     */
+    @Excel(name = "图片token", width = 15)
+    @ApiModelProperty(value = "图片token")
+    private Object imageToken;
+    /**
+     * 应用包名
+     */
+    @Excel(name = "应用包名", width = 15)
+    @ApiModelProperty(value = "应用包名")
+    private String packageName;
+    /**
+     * 应用类型 1: Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏
+     */
+    @Excel(name = "应用类型 1: Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏", width = 15)
+    @ApiModelProperty(value = "应用类型 1: Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏")
+    private Integer platform;
+    /**
+     * 请求成功后 返回应用地址
+     */
+    @Excel(name = "请求成功后 返回应用地址", width = 15)
+    @ApiModelProperty(value = "请求成功后 返回应用地址")
+    private Object returnUrl;
+    /**
+     * 应用id
+     */
+    @Excel(name = "应用id", width = 15)
+    @ApiModelProperty(value = "应用id")
+    private Long appId;
+    /**
+     * 文件上传时间
+     */
+    @Excel(name = "文件上传时间", width = 15)
+    @ApiModelProperty(value = "文件上传时间")
+    private String uploadTime;
+    /**
+     * 创建时间
+     */
+    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "创建时间")
+    private Date createTime;
+    /**
+     * 修改时间
+     */
+    @Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "修改时间")
+    private Date updateTime;
+}

+ 112 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/entity/KuaiShouAppList.java

@@ -0,0 +1,112 @@
+package org.jeecg.modules.kuaishou.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.util.Date;
+
+/**
+ * @Description: 快手-应用列表
+ * @Author: jeecg-boot
+ * @Date: 2019-07-26
+ * @Version: V1.0
+ */
+@Data
+@TableName("ctop_kuaishou_app_list")
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@ApiModel(value = "ctop_kuaishou_app_list对象", description = "快手-应用列表")
+public class KuaiShouAppList {
+
+    /**
+     * id
+     */
+    @TableId(type = IdType.AUTO)
+    @ApiModelProperty(value = "id")
+    private Long id;
+    /**
+     * 账户ID
+     */
+    @Excel(name = "账户ID", width = 15)
+    @ApiModelProperty(value = "账户ID")
+    private Long accountId;
+    /**
+     * 应用id
+     */
+    @Excel(name = "应用id", width = 15)
+    @ApiModelProperty(value = "应用id")
+    private Long appId;
+    /**
+     * 应用地址
+     */
+    @Excel(name = "应用地址", width = 15)
+    @ApiModelProperty(value = "应用地址")
+    private Object url;
+    /**
+     * 应用标记
+     */
+    @Excel(name = "应用标记", width = 15)
+    @ApiModelProperty(value = "应用标记")
+    private String appVersion;
+    /**
+     * 应用名称
+     */
+    @Excel(name = "应用名称", width = 15)
+    @ApiModelProperty(value = "应用名称")
+    private String appName;
+    /**
+     * 应用图标链接地址
+     */
+    @Excel(name = "应用图标链接地址", width = 15)
+    @ApiModelProperty(value = "应用图标链接地址")
+    private Object appIconUrl;
+    /**
+     * 图片token
+     */
+    @Excel(name = "图片token", width = 15)
+    @ApiModelProperty(value = "图片token")
+    private Object imageToken;
+    /**
+     * 应用包名
+     */
+    @Excel(name = "应用包名", width = 15)
+    @ApiModelProperty(value = "应用包名")
+    private String packageName;
+    /**
+     * 应用类型 1: Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏
+     */
+    @Excel(name = "应用类型 1: Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏", width = 15)
+    @ApiModelProperty(value = "应用类型 1: Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏")
+    private Integer platform;
+    /**
+     * 返回修改时间
+     */
+    @Excel(name = "返回修改时间", width = 15)
+    @ApiModelProperty(value = "返回修改时间")
+    private String returnTime;
+    /**
+     * 创建时间
+     */
+    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "创建时间")
+    private Date createTime;
+    /**
+     * 修改时间
+     */
+    @Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "修改时间")
+    private Date updateTime;
+}

+ 14 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/KuaiShouAppCreateMapper.java

@@ -0,0 +1,14 @@
+package org.jeecg.modules.kuaishou.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.jeecg.modules.kuaishou.entity.KuaiShouAppCreate;
+
+/**
+ * @Description: 创建应用
+ * @Author: jeecg-boot
+ * @Date: 2019-07-26
+ * @Version: V1.0
+ */
+public interface KuaiShouAppCreateMapper extends BaseMapper<KuaiShouAppCreate> {
+
+}

+ 14 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/KuaiShouAppListMapper.java

@@ -0,0 +1,14 @@
+package org.jeecg.modules.kuaishou.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.jeecg.modules.kuaishou.entity.KuaiShouAppList;
+
+/**
+ * @Description: 快手-应用列表
+ * @Author: jeecg-boot
+ * @Date: 2019-07-26
+ * @Version: V1.0
+ */
+public interface KuaiShouAppListMapper extends BaseMapper<KuaiShouAppList> {
+
+}

+ 5 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/xml/KuaiShouAppCreateMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.jeecg.modules.kuaishou.mapper.KuaiShouAppCreateMapper">
+
+</mapper>

+ 5 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/mapper/xml/KuaiShouAppListMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.jeecg.modules.kuaishou.mapper.KuaiShouAppListMapper">
+
+</mapper>

+ 14 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/IKuaiShouAppCreateService.java

@@ -0,0 +1,14 @@
+package org.jeecg.modules.kuaishou.service;
+
+import org.jeecg.modules.kuaishou.entity.KuaiShouAppCreate;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * @Description: 创建应用
+ * @Author: jeecg-boot
+ * @Date:   2019-07-26
+ * @Version: V1.0
+ */
+public interface IKuaiShouAppCreateService extends IService<KuaiShouAppCreate> {
+
+}

+ 14 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/IKuaiShouAppListService.java

@@ -0,0 +1,14 @@
+package org.jeecg.modules.kuaishou.service;
+
+import org.jeecg.modules.kuaishou.entity.KuaiShouAppList;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * @Description: 快手-应用列表
+ * @Author: jeecg-boot
+ * @Date:   2019-07-26
+ * @Version: V1.0
+ */
+public interface IKuaiShouAppListService extends IService<KuaiShouAppList> {
+
+}

+ 20 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/IKuaishouInterfaceService.java

@@ -157,6 +157,25 @@ public interface IKuaishouInterfaceService {
 
 
     /**
+     * 创建应用
+     *
+     * @param advertiserId
+     * @param accessToken
+     * @param multipartFile
+     * @param request
+     */
+    void appCreate(Long advertiserId, String accessToken, MultipartFile multipartFile, HttpServletRequest request);
+
+
+    /**
+     * 获取应用列表
+     *
+     * @param advertiserId
+     * @param accessToken
+     */
+    void getAppList(Long advertiserId, String accessToken);
+
+    /**
      * 文件上传 发送请求
      *
      * @param url
@@ -166,4 +185,5 @@ public interface IKuaishouInterfaceService {
      */
     String exceptInfoForRestTemplate(String url, Map<String, Object> paramMap, Map<String, String> headerMap, String filePath);
 
+
 }

+ 19 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/impl/KuaiShouAppCreateServiceImpl.java

@@ -0,0 +1,19 @@
+package org.jeecg.modules.kuaishou.service.impl;
+
+import org.jeecg.modules.kuaishou.entity.KuaiShouAppCreate;
+import org.jeecg.modules.kuaishou.mapper.KuaiShouAppCreateMapper;
+import org.jeecg.modules.kuaishou.service.IKuaiShouAppCreateService;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: 创建应用
+ * @Author: jeecg-boot
+ * @Date:   2019-07-26
+ * @Version: V1.0
+ */
+@Service
+public class KuaiShouAppCreateServiceImpl extends ServiceImpl<KuaiShouAppCreateMapper, KuaiShouAppCreate> implements IKuaiShouAppCreateService {
+
+}

+ 19 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/impl/KuaiShouAppListServiceImpl.java

@@ -0,0 +1,19 @@
+package org.jeecg.modules.kuaishou.service.impl;
+
+import org.jeecg.modules.kuaishou.entity.KuaiShouAppList;
+import org.jeecg.modules.kuaishou.mapper.KuaiShouAppListMapper;
+import org.jeecg.modules.kuaishou.service.IKuaiShouAppListService;
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+/**
+ * @Description: 快手-应用列表
+ * @Author: jeecg-boot
+ * @Date:   2019-07-26
+ * @Version: V1.0
+ */
+@Service
+public class KuaiShouAppListServiceImpl extends ServiceImpl<KuaiShouAppListMapper, KuaiShouAppList> implements IKuaiShouAppListService {
+
+}

+ 134 - 3
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/service/impl/KuaishouInterfaceServiceImpl.java

@@ -848,9 +848,7 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
             requestJson.put("advertiser_id", advertiserId);
             Map<String, String> header = new HashMap<String, String>();
             header.put("Content-Type", " application/json");
-
             header.put("Access-Token", accessToken);
-
             String result = HttpUtils.kuaiShouhttpPostRequest(url, requestJson.toJSONString(), header);
             JSONObject resultJson = JSONObject.parseObject(result);
             if (!Check.isNull(resultJson)) {
@@ -915,7 +913,7 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
         try {
             String savaPath = "D:\\tets1";
             FileUploadTool fileUploadTool = new FileUploadTool();
-            FileEntity entity = new FileEntity();
+            FileEntity entity;
             entity = fileUploadTool.createFile(multipartFile, request, savaPath);
             if (!Check.isNull(entity)) {
                 String url = PropertiesUtils.getConfig("kuaishou_api_url") + KuaishouInterfaceConstant.VIDEO_UPLOAD;
@@ -1208,6 +1206,139 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
 
     }
 
+    /**
+     * 创建应用
+     *
+     * @param advertiserId
+     * @param accessToken
+     * @param multipartFile
+     * @param request
+     */
+    @Autowired
+    private KuaiShouAppCreateMapper appCreateMapper;
+
+    @Override
+    public void appCreate(Long advertiserId, String accessToken, MultipartFile multipartFile, HttpServletRequest request) {
+        Map<String, Object> returnMap = new HashMap<>();
+        try {
+            String savaPath = "D:\\tets1\\app";
+            FileUploadTool fileUploadTool = new FileUploadTool();
+            FileEntity entity;
+            entity = fileUploadTool.createFile(multipartFile, request, savaPath);
+            if (!Check.isNull(entity)) {
+                String url = PropertiesUtils.getConfig("kuaishou_api_url") + KuaishouInterfaceConstant.APP_CREATE;
+                JSONObject requestJson = new JSONObject();
+                requestJson.put("app_version", "2.3.6");
+                requestJson.put("app_name", "微信开发1");
+                requestJson.put("image_token", "market81dd2187353e4cb19918b61276797ce5.jpg");
+                requestJson.put("advertiser_id", advertiserId);
+                requestJson.put("package_name", "2");
+                requestJson.put("platform", 1);
+                Map<String, String> header = new HashMap<String, String>();
+                header.put("Content-Type", "multipart/form-data");
+                header.put("Access-Token", accessToken);
+                String result = exceptInfoForRestTemplate(url, requestJson, header, entity.getPath());
+                JSONObject resultJson = JSONObject.parseObject(result);
+                if (!Check.isNull(result)) {
+                    Integer code = resultJson.getInteger("code");
+                    if (code == 0) {
+                        JSONObject dataJson = resultJson.getJSONObject("data");
+                        if (!Check.isNull(dataJson)) {
+                            KuaiShouAppCreate appCreate = new KuaiShouAppCreate();
+                            appCreate.setAccountId(advertiserId);
+                            appCreate.setSavaPath(entity.getPath());
+                            appCreate.setUrl(requestJson.getString("url"));// 上传应用地址
+                            appCreate.setAppVersion(requestJson.getString("app_version"));
+                            appCreate.setAppName(requestJson.getString("app_name"));
+                            appCreate.setImageToken(requestJson.getString("image_token"));
+                            appCreate.setPackageName(requestJson.getString("package_name"));
+                            appCreate.setPlatform(requestJson.getInteger("platform"));
+                            appCreate.setReturnUrl(dataJson.getString("url"));
+                            appCreate.setAppId(dataJson.getLong("app_id"));
+                            appCreate.setUploadTime(DateUtils.timeStamp2Date(entity.getUploadTime()));
+                            int i = appCreateMapper.insert(appCreate);
+                            if (i > 0) {
+                                logger.info("快手创建应用成功");
+                            }
+                        }
+
+                    } else {
+                        logger.error("快手创建应用返回信息异常 ,advertiserId:{},异常信息:{}", advertiserId, resultJson);
+                    }
+
+                } else {
+                    logger.error("快手创建应用返回信息为空,advertiserId:{}", advertiserId);
+                }
+            }
+        } catch (Exception e) {
+            logger.error("创建应用失败,advertiser_id:{}", advertiserId);
+            returnMap.put("code", -1);
+            returnMap.put("message", "error");
+            returnMap.put("desc", "Interface exception");
+            e.printStackTrace();
+        }
+    }
+
+    /**
+     * 获取应用列表
+     *
+     * @param advertiserId
+     * @param accessToken
+     */
+    @Autowired
+    private KuaiShouAppListMapper appListMapper;
+
+    @Override
+    public void getAppList(Long advertiserId, String accessToken) {
+        try {
+            String url = PropertiesUtils.getConfig("kuaishou_api_url") + KuaishouInterfaceConstant.APP_LIST;
+            Map<String, String> headers = new HashMap<String, String>();
+            headers.put("Access-Token", accessToken);
+            headers.put("Content-Type", " application/json");
+            JSONObject json = new JSONObject();
+            json.put("advertiser_id", advertiserId);
+            String result = HttpUtils.kuaiShouhttpPostRequest(url, json.toJSONString(), headers);
+            JSONObject resultJson = JSONObject.parseObject(result);
+            if (!Check.isNull(resultJson)) {
+                Integer code = resultJson.getInteger("code");
+                if (code == 0) {
+                    Map<String, Object> deleteMap = new HashMap<>();
+                    deleteMap.put("account_id", advertiserId);
+                    appListMapper.deleteByMap(deleteMap);
+                    JSONArray dataArr = resultJson.getJSONArray("data");
+                    if (!Check.isNull(dataArr)) {
+                        for (int i = 0; i < dataArr.size(); i++) {
+                            JSONObject dataJson = JSONObject.parseObject(dataArr.get(i).toString());
+                            if (!Check.isNull(dataJson)) {
+                                KuaiShouAppList appList = new KuaiShouAppList();
+                                appList.setAccountId(advertiserId);
+                                appList.setPlatform(dataJson.getInteger("platform"));
+                                appList.setUrl(dataJson.getString("url"));
+                                appList.setAppId(dataJson.getLong("app_id"));
+                                appList.setAppVersion(dataJson.getString("app_version"));
+                                appList.setAppName(dataJson.getString("app_name"));
+                                appList.setAppIconUrl(dataJson.getString("app_icon_url"));
+                                appList.setImageToken(dataJson.getString("image_token"));
+                                appList.setPackageName(dataJson.getString("package_name"));
+                                appList.setReturnTime(DateUtils.timeStamp2Date(dataJson.getTimestamp("update_time")));
+                                appListMapper.insert(appList);
+                            }
+                        }
+                    }
+
+                } else {
+                    logger.error("获取地域列表失败");
+                }
+            } else {
+                logger.error("获取地域列表返回结果为空");
+            }
+
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+
+    }
+
 
     public Object jsonToObj(Object t, String jsonStr) throws
             JsonParseException, JsonMappingException, IOException {

+ 218 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/KuaiShouAppCreateList.vue

@@ -0,0 +1,218 @@
+<template>
+  <a-card :bordered="false">
+
+    <!-- 查询区域 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline">
+        <a-row :gutter="24">
+
+          <a-col :md="6" :sm="8">
+            <a-form-item label="账户ID">
+              <a-input placeholder="请输入账户ID" v-model="queryParam.accountId"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="本地存储地址">
+              <a-input placeholder="请输入本地存储地址" v-model="queryParam.savaPath"></a-input>
+            </a-form-item>
+          </a-col>
+        <template v-if="toggleSearchStatus">
+        <a-col :md="6" :sm="8">
+            <a-form-item label="上传应用地址">
+              <a-input placeholder="请输入上传应用地址" v-model="queryParam.url"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="应用标记">
+              <a-input placeholder="请输入应用标记" v-model="queryParam.appVersion"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="应用名称">
+              <a-input placeholder="请输入应用名称" v-model="queryParam.appName"></a-input>
+            </a-form-item>
+          </a-col>
+          </template>
+          <a-col :md="6" :sm="8" >
+            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
+              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
+              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
+              <a @click="handleToggleSearch" style="margin-left: 8px">
+                {{ toggleSearchStatus ? '收起' : '展开' }}
+                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
+              </a>
+            </span>
+          </a-col>
+
+        </a-row>
+      </a-form>
+    </div>
+
+    <!-- 操作按钮区域 -->
+    <div class="table-operator">
+      <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
+      <a-button type="primary" icon="download" @click="handleExportXls('创建应用')">导出</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+        <a-button type="primary" icon="import">导入</a-button>
+      </a-upload>
+      <a-dropdown v-if="selectedRowKeys.length > 0">
+        <a-menu slot="overlay">
+          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
+        </a-menu>
+        <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
+      </a-dropdown>
+    </div>
+
+    <!-- table区域-begin -->
+    <div>
+      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
+        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
+      </div>
+
+      <a-table
+        ref="table"
+        size="middle"
+        bordered
+        rowKey="id"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
+        @change="handleTableChange">
+
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleEdit(record)">编辑</a>
+
+          <a-divider type="vertical" />
+          <a-dropdown>
+            <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
+            <a-menu slot="overlay">
+              <a-menu-item>
+                <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
+                  <a>删除</a>
+                </a-popconfirm>
+              </a-menu-item>
+            </a-menu>
+          </a-dropdown>
+        </span>
+
+      </a-table>
+    </div>
+    <!-- table区域-end -->
+
+    <!-- 表单区域 -->
+    <kuaiShouAppCreate-modal ref="modalForm" @ok="modalFormOk"></kuaiShouAppCreate-modal>
+  </a-card>
+</template>
+
+<script>
+  import KuaiShouAppCreateModal from './modules/KuaiShouAppCreateModal'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+
+  export default {
+    name: "KuaiShouAppCreateList",
+    mixins:[JeecgListMixin],
+    components: {
+      KuaiShouAppCreateModal
+    },
+    data () {
+      return {
+        description: '创建应用管理页面',
+        // 表头
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+           },
+		   {
+            title: '账户ID',
+            align:"center",
+            dataIndex: 'accountId'
+           },
+		   {
+            title: '本地存储地址',
+            align:"center",
+            dataIndex: 'savaPath'
+           },
+		   {
+            title: '上传应用地址',
+            align:"center",
+            dataIndex: 'url'
+           },
+		   {
+            title: '应用标记',
+            align:"center",
+            dataIndex: 'appVersion'
+           },
+		   {
+            title: '应用名称',
+            align:"center",
+            dataIndex: 'appName'
+           },
+		   {
+            title: '图片token',
+            align:"center",
+            dataIndex: 'imageToken'
+           },
+		   {
+            title: '应用包名',
+            align:"center",
+            dataIndex: 'packageName'
+           },
+		   {
+            title: '应用类型 1: Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏',
+            align:"center",
+            dataIndex: 'platform'
+           },
+		   {
+            title: '请求成功后 返回应用地址',
+            align:"center",
+            dataIndex: 'returnUrl'
+           },
+		   {
+            title: '应用id',
+            align:"center",
+            dataIndex: 'appId'
+           },
+		   {
+            title: '文件上传时间',
+            align:"center",
+            dataIndex: 'uploadTime'
+           },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align:"center",
+            scopedSlots: { customRender: 'action' },
+          }
+        ],
+		url: {
+          list: "/kuaishou/kuaiShouAppCreate/list",
+          delete: "/kuaishou/kuaiShouAppCreate/delete",
+          deleteBatch: "/kuaishou/kuaiShouAppCreate/deleteBatch",
+          exportXlsUrl: "kuaishou/kuaiShouAppCreate/exportXls",
+          importExcelUrl: "kuaishou/kuaiShouAppCreate/importExcel",
+       },
+    }
+  },
+  computed: {
+    importExcelUrl: function(){
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+    }
+  },
+    methods: {
+     
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less'
+</style>

+ 213 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/KuaiShouAppListList.vue

@@ -0,0 +1,213 @@
+<template>
+  <a-card :bordered="false">
+
+    <!-- 查询区域 -->
+    <div class="table-page-search-wrapper">
+      <a-form layout="inline">
+        <a-row :gutter="24">
+
+          <a-col :md="6" :sm="8">
+            <a-form-item label="账户ID">
+              <a-input placeholder="请输入账户ID" v-model="queryParam.accountId"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="应用id">
+              <a-input placeholder="请输入应用id" v-model="queryParam.appId"></a-input>
+            </a-form-item>
+          </a-col>
+        <template v-if="toggleSearchStatus">
+        <a-col :md="6" :sm="8">
+            <a-form-item label="应用地址">
+              <a-input placeholder="请输入应用地址" v-model="queryParam.url"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="应用标记">
+              <a-input placeholder="请输入应用标记" v-model="queryParam.appVersion"></a-input>
+            </a-form-item>
+          </a-col>
+          <a-col :md="6" :sm="8">
+            <a-form-item label="应用名称">
+              <a-input placeholder="请输入应用名称" v-model="queryParam.appName"></a-input>
+            </a-form-item>
+          </a-col>
+          </template>
+          <a-col :md="6" :sm="8" >
+            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
+              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
+              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
+              <a @click="handleToggleSearch" style="margin-left: 8px">
+                {{ toggleSearchStatus ? '收起' : '展开' }}
+                <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
+              </a>
+            </span>
+          </a-col>
+
+        </a-row>
+      </a-form>
+    </div>
+
+    <!-- 操作按钮区域 -->
+    <div class="table-operator">
+      <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
+      <a-button type="primary" icon="download" @click="handleExportXls('快手-应用列表')">导出</a-button>
+      <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
+        <a-button type="primary" icon="import">导入</a-button>
+      </a-upload>
+      <a-dropdown v-if="selectedRowKeys.length > 0">
+        <a-menu slot="overlay">
+          <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
+        </a-menu>
+        <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
+      </a-dropdown>
+    </div>
+
+    <!-- table区域-begin -->
+    <div>
+      <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
+        <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
+        <a style="margin-left: 24px" @click="onClearSelected">清空</a>
+      </div>
+
+      <a-table
+        ref="table"
+        size="middle"
+        bordered
+        rowKey="id"
+        :columns="columns"
+        :dataSource="dataSource"
+        :pagination="ipagination"
+        :loading="loading"
+        :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
+        @change="handleTableChange">
+
+        <span slot="action" slot-scope="text, record">
+          <a @click="handleEdit(record)">编辑</a>
+
+          <a-divider type="vertical" />
+          <a-dropdown>
+            <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
+            <a-menu slot="overlay">
+              <a-menu-item>
+                <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
+                  <a>删除</a>
+                </a-popconfirm>
+              </a-menu-item>
+            </a-menu>
+          </a-dropdown>
+        </span>
+
+      </a-table>
+    </div>
+    <!-- table区域-end -->
+
+    <!-- 表单区域 -->
+    <kuaiShouAppList-modal ref="modalForm" @ok="modalFormOk"></kuaiShouAppList-modal>
+  </a-card>
+</template>
+
+<script>
+  import KuaiShouAppListModal from './modules/KuaiShouAppListModal'
+  import { JeecgListMixin } from '@/mixins/JeecgListMixin'
+
+  export default {
+    name: "KuaiShouAppListList",
+    mixins:[JeecgListMixin],
+    components: {
+      KuaiShouAppListModal
+    },
+    data () {
+      return {
+        description: '快手-应用列表管理页面',
+        // 表头
+        columns: [
+          {
+            title: '#',
+            dataIndex: '',
+            key:'rowIndex',
+            width:60,
+            align:"center",
+            customRender:function (t,r,index) {
+              return parseInt(index)+1;
+            }
+           },
+		   {
+            title: '账户ID',
+            align:"center",
+            dataIndex: 'accountId'
+           },
+		   {
+            title: '应用id',
+            align:"center",
+            dataIndex: 'appId'
+           },
+		   {
+            title: '应用地址',
+            align:"center",
+            dataIndex: 'url'
+           },
+		   {
+            title: '应用标记',
+            align:"center",
+            dataIndex: 'appVersion'
+           },
+		   {
+            title: '应用名称',
+            align:"center",
+            dataIndex: 'appName'
+           },
+		   {
+            title: '应用图标链接地址',
+            align:"center",
+            dataIndex: 'appIconUrl'
+           },
+		   {
+            title: '图片token',
+            align:"center",
+            dataIndex: 'imageToken'
+           },
+		   {
+            title: '应用包名',
+            align:"center",
+            dataIndex: 'packageName'
+           },
+		   {
+            title: '应用类型 1: Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏',
+            align:"center",
+            dataIndex: 'platform'
+           },
+		   {
+            title: '返回修改时间',
+            align:"center",
+            dataIndex: 'returnTime'
+           },
+          {
+            title: '操作',
+            dataIndex: 'action',
+            align:"center",
+            scopedSlots: { customRender: 'action' },
+          }
+        ],
+		url: {
+          list: "/kuaishou/kuaiShouAppList/list",
+          delete: "/kuaishou/kuaiShouAppList/delete",
+          deleteBatch: "/kuaishou/kuaiShouAppList/deleteBatch",
+          exportXlsUrl: "kuaishou/kuaiShouAppList/exportXls",
+          importExcelUrl: "kuaishou/kuaiShouAppList/importExcel",
+       },
+    }
+  },
+  computed: {
+    importExcelUrl: function(){
+      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
+    }
+  },
+    methods: {
+     
+    }
+  }
+</script>
+<style scoped>
+  @import '~@assets/less/common.less'
+</style>

+ 184 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouAppCreateModal.vue

@@ -0,0 +1,184 @@
+<template>
+  <a-modal
+    :title="title"
+    :width="800"
+    :visible="visible"
+    :confirmLoading="confirmLoading"
+    @ok="handleOk"
+    @cancel="handleCancel"
+    cancelText="关闭">
+    
+    <a-spin :spinning="confirmLoading">
+      <a-form :form="form">
+      
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="账户ID">
+          <a-input placeholder="请输入账户ID" v-decorator="['accountId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="本地存储地址">
+          <a-input placeholder="请输入本地存储地址" v-decorator="['savaPath', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="上传应用地址">
+          <a-input placeholder="请输入上传应用地址" v-decorator="['url', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用标记">
+          <a-input placeholder="请输入应用标记" v-decorator="['appVersion', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用名称">
+          <a-input placeholder="请输入应用名称" v-decorator="['appName', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="图片token">
+          <a-input placeholder="请输入图片token" v-decorator="['imageToken', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用包名">
+          <a-input placeholder="请输入应用包名" v-decorator="['packageName', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用类型 1: Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏">
+          <a-input-number v-decorator="[ 'platform', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="请求成功后 返回应用地址">
+          <a-input placeholder="请输入请求成功后 返回应用地址" v-decorator="['returnUrl', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用id">
+          <a-input placeholder="请输入应用id" v-decorator="['appId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="文件上传时间">
+          <a-input placeholder="请输入文件上传时间" v-decorator="['uploadTime', {}]" />
+        </a-form-item>
+		
+      </a-form>
+    </a-spin>
+  </a-modal>
+</template>
+
+<script>
+  import { httpAction } from '@/api/manage'
+  import pick from 'lodash.pick'
+  import moment from "moment"
+
+  export default {
+    name: "KuaiShouAppCreateModal",
+    data () {
+      return {
+        title:"操作",
+        visible: false,
+        model: {},
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+
+        confirmLoading: false,
+        form: this.$form.createForm(this),
+        validatorRules:{
+        },
+        url: {
+          add: "/kuaishou/kuaiShouAppCreate/add",
+          edit: "/kuaishou/kuaiShouAppCreate/edit",
+        },
+      }
+    },
+    created () {
+    },
+    methods: {
+      add () {
+        this.edit({});
+      },
+      edit (record) {
+        this.form.resetFields();
+        this.model = Object.assign({}, record);
+        this.visible = true;
+        this.$nextTick(() => {
+          this.form.setFieldsValue(pick(this.model,'accountId','savaPath','url','appVersion','appName','imageToken','packageName','platform','returnUrl','appId','uploadTime'))
+		  //时间格式化
+        });
+
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      handleOk () {
+        const that = this;
+        // 触发表单验证
+        this.form.validateFields((err, values) => {
+          if (!err) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            let formData = Object.assign(this.model, values);
+            //时间格式化
+            
+            console.log(formData)
+            httpAction(httpurl,formData,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+              that.close();
+            })
+
+
+
+          }
+        })
+      },
+      handleCancel () {
+        this.close()
+      },
+
+
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+
+</style>

+ 191 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouAppCreateModal__Style#Drawer.vue

@@ -0,0 +1,191 @@
+<template>
+  <a-drawer
+      :title="title"
+      :width="800"
+      placement="right"
+      :closable="false"
+      @close="close"
+      :visible="visible"
+  >
+
+    <a-spin :spinning="confirmLoading">
+      <a-form :form="form">
+      
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="账户ID">
+          <a-input placeholder="请输入账户ID" v-decorator="['accountId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="本地存储地址">
+          <a-input placeholder="请输入本地存储地址" v-decorator="['savaPath', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="上传应用地址">
+          <a-input placeholder="请输入上传应用地址" v-decorator="['url', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用标记">
+          <a-input placeholder="请输入应用标记" v-decorator="['appVersion', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用名称">
+          <a-input placeholder="请输入应用名称" v-decorator="['appName', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="图片token">
+          <a-input placeholder="请输入图片token" v-decorator="['imageToken', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用包名">
+          <a-input placeholder="请输入应用包名" v-decorator="['packageName', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用类型 1: Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏">
+          <a-input-number v-decorator="[ 'platform', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="请求成功后 返回应用地址">
+          <a-input placeholder="请输入请求成功后 返回应用地址" v-decorator="['returnUrl', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用id">
+          <a-input placeholder="请输入应用id" v-decorator="['appId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="文件上传时间">
+          <a-input placeholder="请输入文件上传时间" v-decorator="['uploadTime', {}]" />
+        </a-form-item>
+		
+      </a-form>
+    </a-spin>
+    <a-button type="primary" @click="handleOk">确定</a-button>
+    <a-button type="primary" @click="handleCancel">取消</a-button>
+  </a-drawer>
+</template>
+
+<script>
+  import { httpAction } from '@/api/manage'
+  import pick from 'lodash.pick'
+  import moment from "moment"
+
+  export default {
+    name: "KuaiShouAppCreateModal",
+    data () {
+      return {
+        title:"操作",
+        visible: false,
+        model: {},
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+
+        confirmLoading: false,
+        form: this.$form.createForm(this),
+        validatorRules:{
+        },
+        url: {
+          add: "/kuaishou/kuaiShouAppCreate/add",
+          edit: "/kuaishou/kuaiShouAppCreate/edit",
+        },
+      }
+    },
+    created () {
+    },
+    methods: {
+      add () {
+        this.edit({});
+      },
+      edit (record) {
+        this.form.resetFields();
+        this.model = Object.assign({}, record);
+        this.visible = true;
+        this.$nextTick(() => {
+          this.form.setFieldsValue(pick(this.model,'accountId','savaPath','url','appVersion','appName','imageToken','packageName','platform','returnUrl','appId','uploadTime'))
+		  //时间格式化
+        });
+
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      handleOk () {
+        const that = this;
+        // 触发表单验证
+        this.form.validateFields((err, values) => {
+          if (!err) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            let formData = Object.assign(this.model, values);
+            //时间格式化
+            
+            console.log(formData)
+            httpAction(httpurl,formData,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+              that.close();
+            })
+
+
+
+          }
+        })
+      },
+      handleCancel () {
+        this.close()
+      },
+
+
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+/** Button按钮间距 */
+  .ant-btn {
+    margin-left: 30px;
+    margin-bottom: 30px;
+    float: right;
+  }
+</style>

+ 178 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouAppListModal.vue

@@ -0,0 +1,178 @@
+<template>
+  <a-modal
+    :title="title"
+    :width="800"
+    :visible="visible"
+    :confirmLoading="confirmLoading"
+    @ok="handleOk"
+    @cancel="handleCancel"
+    cancelText="关闭">
+    
+    <a-spin :spinning="confirmLoading">
+      <a-form :form="form">
+      
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="账户ID">
+          <a-input placeholder="请输入账户ID" v-decorator="['accountId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用id">
+          <a-input placeholder="请输入应用id" v-decorator="['appId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用地址">
+          <a-input placeholder="请输入应用地址" v-decorator="['url', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用标记">
+          <a-input placeholder="请输入应用标记" v-decorator="['appVersion', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用名称">
+          <a-input placeholder="请输入应用名称" v-decorator="['appName', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用图标链接地址">
+          <a-input placeholder="请输入应用图标链接地址" v-decorator="['appIconUrl', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="图片token">
+          <a-input placeholder="请输入图片token" v-decorator="['imageToken', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用包名">
+          <a-input placeholder="请输入应用包名" v-decorator="['packageName', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用类型 1: Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏">
+          <a-input-number v-decorator="[ 'platform', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="返回修改时间">
+          <a-input placeholder="请输入返回修改时间" v-decorator="['returnTime', {}]" />
+        </a-form-item>
+		
+      </a-form>
+    </a-spin>
+  </a-modal>
+</template>
+
+<script>
+  import { httpAction } from '@/api/manage'
+  import pick from 'lodash.pick'
+  import moment from "moment"
+
+  export default {
+    name: "KuaiShouAppListModal",
+    data () {
+      return {
+        title:"操作",
+        visible: false,
+        model: {},
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+
+        confirmLoading: false,
+        form: this.$form.createForm(this),
+        validatorRules:{
+        },
+        url: {
+          add: "/kuaishou/kuaiShouAppList/add",
+          edit: "/kuaishou/kuaiShouAppList/edit",
+        },
+      }
+    },
+    created () {
+    },
+    methods: {
+      add () {
+        this.edit({});
+      },
+      edit (record) {
+        this.form.resetFields();
+        this.model = Object.assign({}, record);
+        this.visible = true;
+        this.$nextTick(() => {
+          this.form.setFieldsValue(pick(this.model,'accountId','appId','url','appVersion','appName','appIconUrl','imageToken','packageName','platform','returnTime'))
+		  //时间格式化
+        });
+
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      handleOk () {
+        const that = this;
+        // 触发表单验证
+        this.form.validateFields((err, values) => {
+          if (!err) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            let formData = Object.assign(this.model, values);
+            //时间格式化
+            
+            console.log(formData)
+            httpAction(httpurl,formData,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+              that.close();
+            })
+
+
+
+          }
+        })
+      },
+      handleCancel () {
+        this.close()
+      },
+
+
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+
+</style>

+ 185 - 0
jeecg-boot-module-system/src/main/java/org/jeecg/modules/kuaishou/vue/modules/KuaiShouAppListModal__Style#Drawer.vue

@@ -0,0 +1,185 @@
+<template>
+  <a-drawer
+      :title="title"
+      :width="800"
+      placement="right"
+      :closable="false"
+      @close="close"
+      :visible="visible"
+  >
+
+    <a-spin :spinning="confirmLoading">
+      <a-form :form="form">
+      
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="账户ID">
+          <a-input placeholder="请输入账户ID" v-decorator="['accountId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用id">
+          <a-input placeholder="请输入应用id" v-decorator="['appId', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用地址">
+          <a-input placeholder="请输入应用地址" v-decorator="['url', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用标记">
+          <a-input placeholder="请输入应用标记" v-decorator="['appVersion', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用名称">
+          <a-input placeholder="请输入应用名称" v-decorator="['appName', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用图标链接地址">
+          <a-input placeholder="请输入应用图标链接地址" v-decorator="['appIconUrl', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="图片token">
+          <a-input placeholder="请输入图片token" v-decorator="['imageToken', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用包名">
+          <a-input placeholder="请输入应用包名" v-decorator="['packageName', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="应用类型 1: Android 应用下载,2: Android 网页游戏,3: iOS 应用下载, 4:iOS 网页游戏">
+          <a-input-number v-decorator="[ 'platform', {}]" />
+        </a-form-item>
+        <a-form-item
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          label="返回修改时间">
+          <a-input placeholder="请输入返回修改时间" v-decorator="['returnTime', {}]" />
+        </a-form-item>
+		
+      </a-form>
+    </a-spin>
+    <a-button type="primary" @click="handleOk">确定</a-button>
+    <a-button type="primary" @click="handleCancel">取消</a-button>
+  </a-drawer>
+</template>
+
+<script>
+  import { httpAction } from '@/api/manage'
+  import pick from 'lodash.pick'
+  import moment from "moment"
+
+  export default {
+    name: "KuaiShouAppListModal",
+    data () {
+      return {
+        title:"操作",
+        visible: false,
+        model: {},
+        labelCol: {
+          xs: { span: 24 },
+          sm: { span: 5 },
+        },
+        wrapperCol: {
+          xs: { span: 24 },
+          sm: { span: 16 },
+        },
+
+        confirmLoading: false,
+        form: this.$form.createForm(this),
+        validatorRules:{
+        },
+        url: {
+          add: "/kuaishou/kuaiShouAppList/add",
+          edit: "/kuaishou/kuaiShouAppList/edit",
+        },
+      }
+    },
+    created () {
+    },
+    methods: {
+      add () {
+        this.edit({});
+      },
+      edit (record) {
+        this.form.resetFields();
+        this.model = Object.assign({}, record);
+        this.visible = true;
+        this.$nextTick(() => {
+          this.form.setFieldsValue(pick(this.model,'accountId','appId','url','appVersion','appName','appIconUrl','imageToken','packageName','platform','returnTime'))
+		  //时间格式化
+        });
+
+      },
+      close () {
+        this.$emit('close');
+        this.visible = false;
+      },
+      handleOk () {
+        const that = this;
+        // 触发表单验证
+        this.form.validateFields((err, values) => {
+          if (!err) {
+            that.confirmLoading = true;
+            let httpurl = '';
+            let method = '';
+            if(!this.model.id){
+              httpurl+=this.url.add;
+              method = 'post';
+            }else{
+              httpurl+=this.url.edit;
+               method = 'put';
+            }
+            let formData = Object.assign(this.model, values);
+            //时间格式化
+            
+            console.log(formData)
+            httpAction(httpurl,formData,method).then((res)=>{
+              if(res.success){
+                that.$message.success(res.message);
+                that.$emit('ok');
+              }else{
+                that.$message.warning(res.message);
+              }
+            }).finally(() => {
+              that.confirmLoading = false;
+              that.close();
+            })
+
+
+
+          }
+        })
+      },
+      handleCancel () {
+        this.close()
+      },
+
+
+    }
+  }
+</script>
+
+<style lang="less" scoped>
+/** Button按钮间距 */
+  .ant-btn {
+    margin-left: 30px;
+    margin-bottom: 30px;
+    float: right;
+  }
+</style>

+ 1 - 1
module-common/src/main/java/cn/com/ctop/common/utils/FileUploadTool.java

@@ -21,7 +21,7 @@ public class FileUploadTool {
     private static String[] allowFiles = {".rar", ".doc", ".docx", ".zip",
             ".pdf", ".txt", ".swf", ".xlsx", ".gif", ".png", ".jpg", ".jpeg",
             ".bmp", ".xls", ".mp4", ".flv", ".ppt", ".avi", ".mpg", ".wmv",
-            ".3gp", ".mov", ".asf", ".asx", ".vob", ".wmv9", ".rm", ".rmvb"};
+            ".3gp", ".mov", ".asf", ".asx", ".vob", ".wmv9", ".rm", ".rmvb", ".apk"};
     // 允许转码的视频格式(ffmpeg)
     private static String[] allowFLV = {".avi", ".mpg", ".wmv", ".3gp",
             ".mov", ".asf", ".asx", ".vob"};

+ 4 - 2
module-kuaishou/src/main/java/constant/KuaishouInterfaceConstant.java

@@ -13,13 +13,15 @@ public class KuaishouInterfaceConstant {
     public static final String CREATIVE_LIST = "/rest/openapi/v1/creative/list"; //创意信息
     public static final String CAMPAIGN_CREATE = "/rest/openapi/v1/campaign/create"; //创建广告计划
     public static final String AD_UNIT_CREATE = "/rest/openapi/v1/ad_unit/create"; //创建广告组
-    public static final String APP_LIST = "/rest/openapi/v1/file/ad/app/list"; //创建广告获取应用列表
+
     public static final String DEEP_CONVERSION_INFOS = "/rest/openapi/v1/ad_unit/ocpc/conversion_infos"; //获取可选的深度转化类型
     public static final String VIDEO_UPLOAD = "/rest/openapi/v1/file/ad/video/upload"; //视频文件上传
     public static final String VIDEO_GET = "/rest/openapi/v1/file/ad/video/get"; //视频文件获取
     public static final String IMAGE_GET = "/rest/openapi/v1/file/ad/image/get"; //图片文件获取获取地域信息图片文件获取
-    public static final String  REGION_LIST= "/rest/openapi/v1/region/list"; //图片文件获取获取地域信息图片文件获取
+    public static final String REGION_LIST = "/rest/openapi/v1/region/list"; //图片文件获取获取地域信息图片文件获取
     public static final String IMAGE_UPLOAD = "/rest/openapi/v1/file/ad/image/upload"; //视频文件上传
+    public static final String APP_CREATE = "/rest/openapi/v1/file/ad/app/create"; //创建应用
+    public static final String APP_LIST = "/rest/openapi/v1/file/ad/app/list"; //创建广告获取应用列表
 
 
 }