|
@@ -16,7 +16,6 @@ import org.jeecg.common.system.base.controller.JeecgController;
|
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
|
import org.jeecg.common.system.vo.LoginUser;
|
|
|
import org.jeecg.modules.adweb.common.constant.AdwebConstant;
|
|
|
-import org.jeecg.modules.adweb.common.domain.HttpApiResult;
|
|
|
import org.jeecg.modules.adweb.common.util.ListUtil;
|
|
|
import org.jeecg.modules.adweb.site.entity.AdwebSite;
|
|
|
import org.jeecg.modules.adweb.site.service.IAdwebSiteService;
|
|
@@ -181,7 +180,7 @@ public class AdwebSiteController extends JeecgController<AdwebSite, IAdwebSiteSe
|
|
|
* "id", "name", "code", "domain","domain_dev","status"
|
|
|
*/
|
|
|
@GetMapping("/getSiteListByUid")
|
|
|
- public HttpApiResult getAllSites() {
|
|
|
+ public Result<?> getAllSites() {
|
|
|
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
QueryWrapper<AdwebSite> queryWrapper = new QueryWrapper<>();
|
|
|
if (sysAdwebApi.isAdmin()) {
|
|
@@ -211,10 +210,8 @@ public class AdwebSiteController extends JeecgController<AdwebSite, IAdwebSiteSe
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- HttpApiResult httpApiResult = new HttpApiResult();
|
|
|
- httpApiResult.setData(siteList);
|
|
|
- httpApiResult.setCount(siteList.size());
|
|
|
- return httpApiResult;
|
|
|
+
|
|
|
+ return Result.ok(siteList);
|
|
|
}
|
|
|
|
|
|
}
|