package com.yh.saas.plugin.operation.controller;


import com.yh.saas.plugin.operation.entity.TenantOperateHis;
import com.yh.saas.plugin.operation.service.IOperateHisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 租户操作历史
 *
 * @author hs
 */
@RequestMapping("/tenantOperateHis")
@RestController
public class TenantOprateHisController {


        @Autowired
        private IOperateHisService operateHisService;

        /**
         * 获取租户操作历史
         *
         * @param tenantId 租户ID
         * @return 租户详情
         */
        @GetMapping("/query/getOperateHis")
        public List<TenantOperateHis> getOperateHis(@RequestParam String tenantId) {
        return operateHisService.getOperateHis(tenantId);
    }

}
