package gatesink import ( "encoding/json" "strconv" userservices "bet24.com/servers/micros/userservices/proto" ) func (this *user) getUserRecordList(msg, data string) { userId := this.getUserId() if data != "" { id, _ := strconv.Atoi(data) userId = id } resp := userservices.GetUserRecordList(userId) d, _ := json.Marshal(resp) this.WriteMsg(msg, string(d)) }