| | |
| | | import org.springframework.web.bind.annotation.GetMapping;
|
| | | import org.springframework.web.bind.annotation.PathVariable;
|
| | | import org.springframework.web.bind.annotation.PostMapping;
|
| | | import org.springframework.web.bind.annotation.PutMapping;
|
| | | import org.springframework.web.bind.annotation.RequestBody;
|
| | | import org.springframework.web.bind.annotation.RequestHeader;
|
| | | import com.ruoyi.common.core.constant.SecurityConstants;
|
| | |
| | | */
|
| | | @PostMapping("/user/register")
|
| | | public R<Boolean> registerUserInfo(@RequestBody SysUser sysUser, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
| | |
|
| | | /**
|
| | | * 记录用户登录IP地址和登录时间
|
| | | *
|
| | | * @param sysUser 用户信息
|
| | | * @param source 请求来源
|
| | | * @return 结果
|
| | | */
|
| | | @PutMapping("/user/recordlogin")
|
| | | public R<Boolean> recordUserLogin(@RequestBody SysUser sysUser, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
| | | }
|