You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.4 KiB

package jnpf.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import jnpf.base.ActionResult;
import jnpf.model.AppUsersVO;
import jnpf.model.AppUserInfoVO;
import jnpf.service.AppService;
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;
/**
*
*
* @author Allen Pan
* @version V3.4.1
* @copyright LINKAGE
* @date 2021-07-08
*/
@Api(tags = "app用户信息", value = "User")
@RestController
@RequestMapping("/api/app/User")
public class AppUserController {
@Autowired
private AppService appService;
/**
*
*
* @return
*/
@ApiOperation("用户信息")
@GetMapping
public ActionResult getInfo() {
AppUsersVO userAllVO = appService.userInfo();
return ActionResult.success(userAllVO);
}
/**
*
*
* @return
*/
@ApiOperation("通讯录详情")
@GetMapping("/{id}")
public ActionResult userInfo(@PathVariable("id") String id) {
AppUserInfoVO userInfoVO = appService.getInfo(id);
return ActionResult.success(userInfoVO);
}
}