|
@@ -0,0 +1,40 @@
|
|
|
+package com.ym.mec.teacher.controller;
|
|
|
+
|
|
|
+import com.ym.mec.biz.dal.dto.TenantInfoDto;
|
|
|
+import com.ym.mec.biz.service.TenantInfoService;
|
|
|
+import com.ym.mec.common.controller.BaseController;
|
|
|
+import com.ym.mec.thirdparty.yqpay.Msg;
|
|
|
+import com.ym.mec.util.validator.ValidationKit;
|
|
|
+import io.swagger.annotations.*;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
+import org.springframework.validation.BindingResult;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import javax.validation.Valid;
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
+/**
|
|
|
+ * @author hgw
|
|
|
+ * Created by 2021-12-07
|
|
|
+ */
|
|
|
+@RequestMapping("/tenantInfo")
|
|
|
+@Api(tags = "机构管理")
|
|
|
+@RestController
|
|
|
+public class TenantInfoController extends BaseController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private TenantInfoService tenantInfoService;
|
|
|
+
|
|
|
+ @ApiOperation("查询单个机构详情")
|
|
|
+ @GetMapping(value = "/info/{id}")
|
|
|
+ public Object queryTenantInfo(@ApiParam(value = "机构ID", required = true) @PathVariable("id") Integer id) {
|
|
|
+ return succeed(tenantInfoService.queryTenantInfo(id));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation("查询单个机构详情")
|
|
|
+ @GetMapping(value = "/checkInfo/{id}")
|
|
|
+ public Object queryTenantInfoCheck(@ApiParam(value = "机构ID", required = true) @PathVariable("id") Integer id) {
|
|
|
+ return succeed(tenantInfoService.queryTenantInfoCheck(id));
|
|
|
+ }
|
|
|
+}
|