Kaynağa Gözat

新增状态

master
zongjl 2 yıl önce
ebeveyn
işleme
b738cce5e3
1 değiştirilmiş dosya ile 16 ekleme ve 0 silme
  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 Dosyayı Görüntüle

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

Yükleniyor…
İptal
Kaydet