Implementing list endpoints
This commit is contained in:
@ -56,6 +56,12 @@ func (s *inventorysrvc) RemoveItem(ctx context.Context, p *inventory.InventoryRe
|
||||
return
|
||||
}
|
||||
|
||||
func (s *inventorysrvc) ListInventory(ctx context.Context, payload *inventory.ListInventoryPayload) (res []int, err error) {
|
||||
res = *s.inventories[*payload.CharacterID]
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
func (s *inventorysrvc) initCharacterInventory(characterId *int) (itemList *[]int) {
|
||||
list := make([]int, 0)
|
||||
itemList = &list
|
||||
|
Reference in New Issue
Block a user