feat: 添加登录设备ip相关功能
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.schisandra.auth.api;
|
||||
|
||||
import com.schisandra.auth.entity.Result;
|
||||
import com.schisandra.auth.entity.SchisandraAuthAddressDTO;
|
||||
import com.schisandra.auth.entity.SchisandraAuthUserDTO;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
@@ -29,6 +30,9 @@ public interface SchisandraAuthFeignService {
|
||||
@GetMapping("/auth/social/getAllSocialUsers")
|
||||
Result getAllSocialUsers();
|
||||
|
||||
@PostMapping("/auth/address/getUserAddress")
|
||||
Result<SchisandraAuthAddressDTO> getUserAddress(@RequestParam("userId") String userId);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@@ -0,0 +1,88 @@
|
||||
package com.schisandra.auth.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 登录设备ip dto
|
||||
*
|
||||
* @author landaiqing
|
||||
* @since 2024-07-20 15:33:38
|
||||
*/
|
||||
@Data
|
||||
public class SchisandraAuthAddressDTO implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String id;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String ip;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String location;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String agent;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String extJson;
|
||||
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
private String createdBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createdTime;
|
||||
|
||||
/**
|
||||
* 更新人
|
||||
*/
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer isDeleted;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String browser;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String operatingSystem;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String browserVersion;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user