|
|
@@ -1,10 +1,15 @@ |
|
|
|
package com.tuoheng.admin.controller; |
|
|
|
|
|
|
|
import com.tuoheng.admin.dto.TenantDto; |
|
|
|
import com.tuoheng.admin.entity.Tenant; |
|
|
|
import com.tuoheng.admin.query.TenantQuery; |
|
|
|
import com.tuoheng.admin.service.ITenantService; |
|
|
|
import com.tuoheng.common.annotation.Log; |
|
|
|
import com.tuoheng.common.common.BaseController; |
|
|
|
import com.tuoheng.common.enums.LogType; |
|
|
|
import com.tuoheng.common.utils.JsonResult; |
|
|
|
import com.tuoheng.system.entity.Level; |
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
@@ -66,4 +71,15 @@ public class TenantController extends BaseController { |
|
|
|
public JsonResult delete(@PathVariable("tenantIds") Integer[] tenantIds) { |
|
|
|
return tenantService.deleteByIds(tenantIds); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 设置状态 |
|
|
|
* |
|
|
|
* @param entity 实体对象 |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@PutMapping("/status") |
|
|
|
public JsonResult status(@RequestBody Tenant entity) { |
|
|
|
return tenantService.setStatus(entity); |
|
|
|
} |
|
|
|
} |