apkconfig

This commit is contained in:
wangjinlei
2024-07-09 15:06:03 +08:00
parent fe7f375f37
commit ec17636fe6
5 changed files with 38 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
package com.peanut.modules.common.controller;
import com.peanut.common.utils.R;
import com.peanut.modules.common.service.ApkConfigService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
@Slf4j
@RestController("commonApkConfigController")
@RequestMapping("/common/apkConfig")
public class ApkConfigController {
@Autowired
private ApkConfigService apkConfigService;
@RequestMapping("/getApkUrl")
public R getApkUrl(@RequestBody Map<String,Integer> map){
String url = apkConfigService.getApkUrl(map.get("type"));
return R.ok().put("result",url);
}
}