package com.newfiber.api.pc.controller.Common; import com.newfiber.api.core.bean.RespBodyObj; import com.newfiber.api.pc.model.UserManager.UserInfo; import com.newfiber.api.pc.service.RestTemplateService; import java.util.List; import javax.annotation.Resource; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class RestTemplateController { @Resource private RestTemplateService restTemplateService; @PostMapping(value = "user/list_by_org_no/{orgNo}") public RespBodyObj<List<UserInfo>> userListByOrgNo(@PathVariable String orgNo) { return RespBodyObj.ok(restTemplateService.listByOrgNo(orgNo)); } }