提交 96988186 authored 作者: xinjunguo's avatar xinjunguo

--no commit message

上级 61326d5a
package com.zrqx.member.fg.organ.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.zrqx.core.constant.member.MemberRequestPath;
import com.zrqx.core.constant.resource.ResourceRequestPath;
import com.zrqx.core.model.member.Organ;
import com.zrqx.core.util.response.CallBack;
import com.zrqx.member.fg.organ.service.FgOrganService;
@RestController
@RequestMapping(MemberRequestPath.FG + MemberRequestPath.ORGAN)
@Api(description = "前台-机构库")
public class FgOrganController {
@Autowired
private FgOrganService service;
@ApiOperation(value = "查询", notes = "根据ID查询")
@GetMapping(value = ResourceRequestPath.OID)
public CallBack<Organ> getById(@PathVariable Integer oid) {
Organ organ = service.selectByPrimaryKey(oid);
return CallBack.success(organ);
}
}
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论