|
@@ -11,10 +11,11 @@ import (
|
|
|
)
|
|
|
|
|
|
type User struct {
|
|
|
- Id int `json:"id"`
|
|
|
- Username string `json:"username"`
|
|
|
- Mobile string `json:"mobile"`
|
|
|
- OpenId string `json:"openId,omitempty"`
|
|
|
+ Id int `json:"id"`
|
|
|
+ Username string `json:"username"`
|
|
|
+ Mobile string `json:"mobile"`
|
|
|
+ RiskLevel string `json:"riskLevel"`
|
|
|
+ OpenId string `json:"openId,omitempty"`
|
|
|
}
|
|
|
|
|
|
type AnalystDetail struct {
|
|
@@ -233,8 +234,9 @@ func GetUserByOpenId(openId string) (user User, err error) {
|
|
|
|
|
|
func convertToUser(userDTO userService.UserDTO) User {
|
|
|
return User{
|
|
|
- Id: userDTO.Id,
|
|
|
- Username: userDTO.Username,
|
|
|
- Mobile: userDTO.Mobile,
|
|
|
+ Id: userDTO.Id,
|
|
|
+ Username: userDTO.Username,
|
|
|
+ RiskLevel: userDTO.RiskLevel,
|
|
|
+ Mobile: userDTO.Mobile,
|
|
|
}
|
|
|
}
|