|
|
|
@@ -7,6 +7,7 @@ import com.xueyi.common.log.annotation.Log; |
|
|
|
import com.xueyi.common.log.enums.BusinessType; |
|
|
|
import com.xueyi.common.security.annotation.RequiresPermissions; |
|
|
|
import com.xueyi.common.web.entity.controller.BaseController; |
|
|
|
import com.xueyi.system.api.version.domain.vo.ApkReleaseVo; |
|
|
|
import com.xueyi.system.version.domain.dto.DmApkVersionDto; |
|
|
|
import com.xueyi.system.version.domain.query.DmApkVersionQuery; |
|
|
|
import com.xueyi.system.version.service.IDmApkVersionService; |
|
|
|
@@ -31,6 +32,21 @@ public class DmApkVersionController extends BaseController<DmApkVersionQuery, Dm |
|
|
|
return "版本管理" ; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/api/apk_release_notify") |
|
|
|
@RequiresPermissions(Auth.DM_APK_VERSION_ADD) |
|
|
|
@Log(title = "版本管理管理", businessType = BusinessType.INSERT) |
|
|
|
public AjaxResult apkReleaseNotify( @RequestBody ApkReleaseVo apkReleaseVo) { |
|
|
|
// 向数据库插入一条数据 |
|
|
|
DmApkVersionDto apkVersion = new DmApkVersionDto(); |
|
|
|
apkVersion.setApkVersion(apkReleaseVo.getApkVersionName()); |
|
|
|
apkVersion.setCodeVersion(apkReleaseVo.getCodeVersionName()); |
|
|
|
apkVersion.setReleaseTime(apkReleaseVo.getReleaseTime()); |
|
|
|
apkVersion.setPath(apkReleaseVo.getPath()); |
|
|
|
return super.add(apkVersion); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 查询版本管理列表 |
|
|
|
*/ |
|
|
|
|