Assistant Assistant
首页
  • 快速入门
  • 核心功能
  • 使用配置
生态
问答
💖支持
🚀起飞诶~~起飞
更新日志 (opens new window)
GitHub (opens new window)
首页
  • 快速入门
  • 核心功能
  • 使用配置
生态
问答
💖支持
🚀起飞诶~~起飞
更新日志 (opens new window)
GitHub (opens new window)
  • 问答
    • 如何更改Assistant的模板?

问答

  • 如何更改Assistant的模板?

# 如何更改Assistant的模板?

可以参考一下格式

import request from '$axiosPath';


#foreach($method in $apiJsInfo.getApiMethodList())
  export function $method.getMethodName()(#foreach($param in $method.getMethodParam())$param#if($velocityCount!= $method.getMethodParam().size()),#end #end) {
      return request({
          url: '$method.getMethodUrl()/'#if($method.getMethodType() == 'get'&&$method.getIsRestFul()==true)#foreach($param in $method.getMethodParam())+ $param +'/'#end#end,
          method: $method.getMethodType(),
      #if($method.getMethodType() == 'get'&&$method.getIsRestFul()==false)
  params: {
  #foreach($param in $method.getMethodParam())
      $param:$param,
  #end
  }
  #elseif($method.getMethodType() == 'post')
  data: {
  #foreach($param in $method.getMethodParam())
      $param:$param,
  #end
  }
  #end
});
}
#end
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
帮助我们改善此页面! (opens new window)
上次更新: 2024/06/22, 16:36:11
Theme by Vdoing | Copyright © 2016-2024 TimeMachine Lab | Sponsored by JetBrains | 渝ICP备2021000141号-1

友情链接:GeniusBlog

  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式