|
|
@@ -11,9 +11,13 @@ import ( |
|
|
|
|
|
|
|
func UserInfo(c *gin.Context) { |
|
|
|
store := svc.GetCampStore(c) |
|
|
|
res := map[string]string{ |
|
|
|
"phone": store.Phone, |
|
|
|
"is_show_project": utils.IntToStr(store.IsShowProject), |
|
|
|
role := []string{"comm"} |
|
|
|
if store.IsShowProject == 1 { |
|
|
|
role = append(role, "project") |
|
|
|
} |
|
|
|
res := map[string]interface{}{ |
|
|
|
"phone": store.Phone, |
|
|
|
"role": role, |
|
|
|
} |
|
|
|
e.OutSuc(c, res, nil) |
|
|
|
return |
|
|
|