import { Context } from 'moleculer' ; import { IPlanet } from '@Interfaces' ; export namespace PlanetHelper { const prefix = 'planet' ; export const Defend = async ( ctx , params ) : Promise < IPlanet . DefendOutDto > => await ctx . call ( `${ prefix }.Defend` , params ) ; }