作者 yangfu

1.用户信息修改

... ... @@ -31,12 +31,14 @@ func UserInfo(header *protocol.RequestHeader, request *protocol.UserInfoRequest)
Name: "福州素天下有限公司",
},
JoinWay: partnerInfo.PartnerCategoryInfo(),
District: partnerInfo.RegionInfo,
District: map[string]interface{}{"id": partnerInfo.RegionInfo.RegionId, "name": partnerInfo.RegionInfo.RegionName},
SerialNo: partnerInfo.Id,
CooperateTime: partnerInfo.CooperateTime.Unix() * 1000,
}
if len(partnerInfo.Salesman) > 0 {
rsp.User.Salesman = partnerInfo.Salesman[0]
rsp.User.Salesman = map[string]interface{}{"uname": partnerInfo.Salesman[0].Name, "phone": partnerInfo.Salesman[0].Telephone}
} else {
rsp.User.Salesman = map[string]interface{}{}
}
return
}
... ...
... ... @@ -22,12 +22,12 @@ type User struct {
// 合伙类别 (1.研发合伙人 2.业务合伙人 3.事业)
JoinWay *domain.PartnerCategoryInfo `json:"joinWay"`
//合作区域
District *domain.RegionInfo `json:"district"`
District interface{} `json:"district"`
//合作编码
SerialNo int64 `json:"serialNo"`
//合作时间
CooperateTime int64 `json:"cooperateTime"`
Salesman *domain.Salesman `json:"salesman"`
CooperateTime int64 `json:"cooperationTime"`
Salesman interface{} `json:"salesman"`
}
type Company struct {
... ...