You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
637 B
24 lines
637 B
package client |
|
|
|
import ( |
|
"context" |
|
"go-common/app/service/main/usersuit/model" |
|
) |
|
|
|
const ( |
|
_pendantEquip = "RPC.Equipment" |
|
_pendantEquips = "RPC.Equipments" |
|
) |
|
|
|
// Equipment obtian equipment by mid |
|
func (s *Service2) Equipment(c context.Context, arg *model.ArgEquipment) (res *model.PendantEquip, err error) { |
|
res = new(model.PendantEquip) |
|
err = s.client.Call(c, _pendantEquip, arg.Mid, res) |
|
return |
|
} |
|
|
|
// Equipments obtian equipment by mids |
|
func (s *Service2) Equipments(c context.Context, arg *model.ArgEquipments) (res map[int64]*model.PendantEquip, err error) { |
|
err = s.client.Call(c, _pendantEquips, arg.Mids, &res) |
|
return |
|
}
|
|
|