pendant.go 637 B

123456789101112131415161718192021222324
  1. package client
  2. import (
  3. "context"
  4. "go-common/app/service/main/usersuit/model"
  5. )
  6. const (
  7. _pendantEquip = "RPC.Equipment"
  8. _pendantEquips = "RPC.Equipments"
  9. )
  10. // Equipment obtian equipment by mid
  11. func (s *Service2) Equipment(c context.Context, arg *model.ArgEquipment) (res *model.PendantEquip, err error) {
  12. res = new(model.PendantEquip)
  13. err = s.client.Call(c, _pendantEquip, arg.Mid, res)
  14. return
  15. }
  16. // Equipments obtian equipment by mids
  17. func (s *Service2) Equipments(c context.Context, arg *model.ArgEquipments) (res map[int64]*model.PendantEquip, err error) {
  18. err = s.client.Call(c, _pendantEquips, arg.Mids, &res)
  19. return
  20. }