user_record.go 376 B

12345678910111213141516171819
  1. package gatesink
  2. import (
  3. "encoding/json"
  4. "strconv"
  5. userservices "bet24.com/servers/micros/userservices/proto"
  6. )
  7. func (this *user) getUserRecordList(msg, data string) {
  8. userId := this.getUserId()
  9. if data != "" {
  10. id, _ := strconv.Atoi(data)
  11. userId = id
  12. }
  13. resp := userservices.GetUserRecordList(userId)
  14. d, _ := json.Marshal(resp)
  15. this.WriteMsg(msg, string(d))
  16. }