类 TradeAccountDirective

所有已实现的接口:
Directive, HttpDirective, freemarker.template.TemplateDirectiveModel, freemarker.template.TemplateModel

@Component public class TradeAccountDirective extends AbstractTemplateDirective
tradeAccount 账户查询指令

参数列表

  • id 账户id,结果返回object TradeAccount
  • ids 多个账户id,逗号或空格间隔,当id为空时生效,结果返回map(id,object)
使用示例

<@trade.account id=1>${object.amount}</@trade.account>

<@trade.account ids=1,2,3><#list map as k,v>${k}:${v.amount}<#sep>,</#list></@trade.account>

  <script>
   $.getJSON('${site.dynamicPath}api/directive/trade/account?id=1&appToken=接口访问授权Token', function(data){    
     console.log(data.amount);
   });
   </script>
 
  • 字段详细资料

  • 构造器详细资料

    • TradeAccountDirective

      public TradeAccountDirective()
  • 方法详细资料