Sfoglia il codice sorgente

新增状态

master
zongjl 2 anni fa
parent
commit
b738cce5e3
1 ha cambiato i file con 16 aggiunte e 0 eliminazioni
  1. +16
    -0
      tuoheng-admin/src/main/java/com/tuoheng/admin/controller/TenantController.java

+ 16
- 0
tuoheng-admin/src/main/java/com/tuoheng/admin/controller/TenantController.java Vedi File

@@ -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);
}
}

Loading…
Annulla
Salva