Newer
Older
huludao / src / main / java / com / newfiber / api / pc / controller / Common / RestTemplateController.java
@新烽开发者 新烽开发者 on 22 Jul 791 bytes init
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));
    }
}