types.go 76 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711
  1. // Code generated by goctl. DO NOT EDIT.
  2. package types
  3. // The basic response with data | 基础带数据信息
  4. // swagger:model BaseDataInfo
  5. type BaseDataInfo struct {
  6. // Error code | 错误代码
  7. Code int `json:"code"`
  8. // Message | 提示信息
  9. Msg string `json:"msg"`
  10. // Data | 数据
  11. Data string `json:"data,omitempty"`
  12. }
  13. // The basic response with data | 基础带数据信息
  14. // swagger:model BaseListInfo
  15. type BaseListInfo struct {
  16. // The total number of data | 数据总数
  17. Total uint64 `json:"total"`
  18. // Data | 数据
  19. Data string `json:"data,omitempty"`
  20. }
  21. // The basic response without data | 基础不带数据信息
  22. // swagger:model BaseMsgResp
  23. type BaseMsgResp struct {
  24. // Error code | 错误代码
  25. Code int `json:"code"`
  26. // Message | 提示信息
  27. Msg string `json:"msg"`
  28. }
  29. // The page request parameters | 列表请求参数
  30. // swagger:model PageInfo
  31. type PageInfo struct {
  32. // Page number | 第几页
  33. // required : true
  34. // min : 0
  35. Page uint64 `json:"page" validate:"required,number,gt=0"`
  36. // Page size | 单页数据行数
  37. // required : true
  38. // max : 100000
  39. PageSize uint64 `json:"pageSize" validate:"required,number,lt=100000"`
  40. }
  41. // Basic ID request | 基础ID参数请求
  42. // swagger:model IDReq
  43. type IDReq struct {
  44. // ID
  45. // Required: true
  46. Id uint64 `json:"id" validate:"number"`
  47. }
  48. // Basic IDs request | 基础ID数组参数请求
  49. // swagger:model IDsReq
  50. type IDsReq struct {
  51. // IDs
  52. // Required: true
  53. Ids []uint64 `json:"ids"`
  54. }
  55. // Basic ID request | 基础ID地址参数请求
  56. // swagger:model IDPathReq
  57. type IDPathReq struct {
  58. // ID
  59. // Required: true
  60. Id uint64 `path:"id"`
  61. }
  62. // Basic ID request (int32) | 基础ID参数请求 (int32)
  63. // swagger:model IDInt32Req
  64. type IDInt32Req struct {
  65. // ID
  66. // Required: true
  67. Id int32 `json:"id" validate:"number"`
  68. }
  69. // Basic IDs request (int32) | 基础ID数组参数请求 (int32)
  70. // swagger:model IDsInt32Req
  71. type IDsInt32Req struct {
  72. // IDs
  73. // Required: true
  74. Ids []int32 `json:"ids"`
  75. }
  76. // Basic ID request (int32) | 基础ID地址参数请求 (int32)
  77. // swagger:model IDInt32PathReq
  78. type IDInt32PathReq struct {
  79. // ID
  80. // Required: true
  81. Id int32 `path:"id"`
  82. }
  83. // Basic ID request (uint32) | 基础ID参数请求 (uint32)
  84. // swagger:model IDUint32Req
  85. type IDUint32Req struct {
  86. // ID
  87. // Required: true
  88. Id uint32 `json:"id" validate:"number"`
  89. }
  90. // Basic IDs request (uint32) | 基础ID数组参数请求 (uint32)
  91. // swagger:model IDsUint32Req
  92. type IDsUint32Req struct {
  93. // IDs
  94. // Required: true
  95. Ids []uint32 `json:"ids"`
  96. }
  97. // Basic ID request (uint32) | 基础ID地址参数请求 (uint32)
  98. // swagger:model IDUint32PathReq
  99. type IDUint32PathReq struct {
  100. // ID
  101. // Required: true
  102. Id uint32 `path:"id"`
  103. }
  104. // Basic ID request (int64) | 基础ID参数请求 (int64)
  105. // swagger:model IDInt64Req
  106. type IDInt64Req struct {
  107. // ID
  108. // Required: true
  109. Id int64 `json:"id" validate:"number"`
  110. }
  111. // Basic IDs request (int64) | 基础ID数组参数请求 (int64)
  112. // swagger:model IDsInt64Req
  113. type IDsInt64Req struct {
  114. // IDs
  115. // Required: true
  116. Ids []int64 `json:"ids"`
  117. }
  118. // Basic ID request (int64) | 基础ID地址参数请求 (int64)
  119. // swagger:model IDInt64PathReq
  120. type IDInt64PathReq struct {
  121. // ID
  122. // Required: true
  123. Id int64 `path:"id"`
  124. }
  125. // Basic UUID request in path | 基础UUID地址参数请求
  126. // swagger:model UUIDPathReq
  127. type UUIDPathReq struct {
  128. // ID
  129. // Required: true
  130. Id string `path:"id"`
  131. }
  132. // Basic UUID request | 基础UUID参数请求
  133. // swagger:model UUIDReq
  134. type UUIDReq struct {
  135. // ID
  136. // required : true
  137. // max length : 36
  138. // min length : 36
  139. Id string `json:"id" validate:"required,len=36"`
  140. }
  141. // Basic UUID array request | 基础UUID数组参数请求
  142. // swagger:model UUIDsReq
  143. type UUIDsReq struct {
  144. // Ids
  145. // Required: true
  146. Ids []string `json:"ids"`
  147. }
  148. // The base ID response data | 基础ID信息
  149. // swagger:model BaseIDInfo
  150. type BaseIDInfo struct {
  151. // ID
  152. Id *uint64 `json:"id,optional"`
  153. // Create date | 创建日期
  154. CreatedAt *int64 `json:"createdAt,optional"`
  155. // Update date | 更新日期
  156. UpdatedAt *int64 `json:"updatedAt,optional"`
  157. }
  158. // The base ID response data (int64) | 基础ID信息 (int64)
  159. // swagger:model BaseIDInt64Info
  160. type BaseIDInt64Info struct {
  161. // ID
  162. Id *int64 `json:"id,optional"`
  163. // Create date | 创建日期
  164. CreatedAt *int64 `json:"createdAt,optional"`
  165. // Update date | 更新日期
  166. UpdatedAt *int64 `json:"updatedAt,optional"`
  167. }
  168. // The base ID response data (int32) | 基础ID信息 (int32)
  169. // swagger:model BaseIDInt32Info
  170. type BaseIDInt32Info struct {
  171. // ID
  172. Id *int32 `json:"id,optional"`
  173. // Create date | 创建日期
  174. CreatedAt *int64 `json:"createdAt,optional"`
  175. // Update date | 更新日期
  176. UpdatedAt *int64 `json:"updatedAt,optional"`
  177. }
  178. // The base ID response data (uint32) | 基础ID信息 (uint32)
  179. // swagger:model BaseIDUint32Info
  180. type BaseIDUint32Info struct {
  181. // ID
  182. Id *uint32 `json:"id,optional"`
  183. // Create date | 创建日期
  184. CreatedAt *int64 `json:"createdAt,optional"`
  185. // Update date | 更新日期
  186. UpdatedAt *int64 `json:"updatedAt,optional"`
  187. }
  188. // The base UUID response data | 基础UUID信息
  189. // swagger:model BaseUUIDInfo
  190. type BaseUUIDInfo struct {
  191. // ID
  192. Id *string `json:"id,optional"`
  193. // Create date | 创建日期
  194. CreatedAt *int64 `json:"createdAt,optional"`
  195. // Update date | 更新日期
  196. UpdatedAt *int64 `json:"updatedAt,optional"`
  197. }
  198. type Condition struct {
  199. Equal int `json:"equal"`
  200. LabelIdList []uint64 `json:"labelIdList"`
  201. }
  202. type Action struct {
  203. Type int `json:"type"`
  204. Content string `json:"content"`
  205. Meta Meta `json:"meta,optional"`
  206. }
  207. type Meta struct {
  208. Filename string `json:"filename,optional"`
  209. }
  210. type ActionForward struct {
  211. Wxid string `json:"wxid"`
  212. Action []Action `json:"action"`
  213. }
  214. // The response data of server information | Server信息
  215. // swagger:model ServerInfo
  216. type ServerInfo struct {
  217. BaseIDInfo
  218. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  219. Status *uint8 `json:"status,optional"`
  220. // 名称
  221. Name *string `json:"name,optional"`
  222. // 公网ip
  223. PublicIp *string `json:"publicIp,optional"`
  224. // 内网ip
  225. PrivateIp *string `json:"privateIp,optional"`
  226. // 管理端口
  227. AdminPort *string `json:"adminPort,optional"`
  228. }
  229. // The response data of server list | Server列表数据
  230. // swagger:model ServerListResp
  231. type ServerListResp struct {
  232. BaseDataInfo
  233. // Server list data | Server列表数据
  234. Data ServerListInfo `json:"data"`
  235. }
  236. // Server list data | Server列表数据
  237. // swagger:model ServerListInfo
  238. type ServerListInfo struct {
  239. BaseListInfo
  240. // The API list data | Server列表数据
  241. Data []ServerInfo `json:"data"`
  242. }
  243. // Get server list request params | Server列表请求参数
  244. // swagger:model ServerListReq
  245. type ServerListReq struct {
  246. PageInfo
  247. // 名称
  248. Name *string `json:"name,optional"`
  249. // 公网ip
  250. PublicIp *string `json:"publicIp,optional"`
  251. // 内网ip
  252. PrivateIp *string `json:"privateIp,optional"`
  253. }
  254. // Server information response | Server信息返回体
  255. // swagger:model ServerInfoResp
  256. type ServerInfoResp struct {
  257. BaseDataInfo
  258. // Server information | Server数据
  259. Data ServerInfo `json:"data"`
  260. }
  261. // The response data of wx information | Wx信息
  262. // swagger:model WxInfo
  263. type WxInfo struct {
  264. BaseIDInfo
  265. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  266. Status *uint8 `json:"status,optional"`
  267. // 服务器id
  268. ServerId *uint64 `json:"serverId,optional"`
  269. // 服务器名称
  270. ServerName *string `json:"serverName,optional"`
  271. // 端口号
  272. Port *string `json:"port,optional"`
  273. // 进程号
  274. ProcessId *string `json:"processId,optional"`
  275. // 回调地址
  276. Callback *string `json:"callback,optional"`
  277. // 微信id
  278. Wxid *string `json:"wxid,optional"`
  279. // 微信账号
  280. Account *string `json:"account,optional"`
  281. // 微信昵称
  282. Nickname *string `json:"nickname,optional"`
  283. // 手机号
  284. Tel *string `json:"tel,optional"`
  285. // 微信头像
  286. HeadBig *string `json:"headBig,optional"`
  287. // 组织ID
  288. OrganizationId *uint64 `json:"organizationId,optional"`
  289. // 组织名称
  290. OrganizationName *string `json:"organizationName,optional"`
  291. // 模式ID
  292. AgentId *uint64 `json:"agentId,optional"`
  293. // 模式信息
  294. AgentInfo *AgentInfo `json:"agentInfo,optional"`
  295. // 大模型服务地址
  296. ApiBase *string `json:"apiBase,optional"`
  297. // 大模型服务密钥
  298. ApiKey *string `json:"apiKey,optional"`
  299. // 白名单
  300. AllowList []ContactInfo `json:"allowList,optional"`
  301. // 群白名单
  302. GroupAllowList []ContactInfo `json:"groupAllowList,optional"`
  303. // 黑名单
  304. BlockList []ContactInfo `json:"blockList,optional"`
  305. // 群黑名单
  306. GroupBlockList []ContactInfo `json:"groupBlockList,optional"`
  307. }
  308. // swagger:model UpdateBlockAndAllowListReq
  309. type UpdateBlockAndAllowListReq struct {
  310. BaseIDInfo
  311. // 白名单
  312. AllowList []string `json:"allowList,optional"`
  313. // 群白名单
  314. GroupAllowList []string `json:"groupAllowList,optional"`
  315. // 黑名单
  316. BlockList []string `json:"blockList,optional"`
  317. // 群黑名单
  318. GroupBlockList []string `json:"groupBlockList,optional"`
  319. }
  320. // The response data of wx list | Wx列表数据
  321. // swagger:model WxListResp
  322. type WxListResp struct {
  323. BaseDataInfo
  324. // Wx list data | Wx列表数据
  325. Data WxListInfo `json:"data"`
  326. }
  327. // Wx list data | Wx列表数据
  328. // swagger:model WxListInfo
  329. type WxListInfo struct {
  330. BaseListInfo
  331. // The API list data | Wx列表数据
  332. Data []WxInfo `json:"data"`
  333. }
  334. // Get wx list request params | Wx列表请求参数
  335. // swagger:model WxListReq
  336. type WxListReq struct {
  337. PageInfo
  338. // 服务器id
  339. ServerId *uint64 `json:"serverId,optional"`
  340. // 租户id
  341. OrganizationId *uint64 `json:"organizationId,optional"`
  342. // 租户名称
  343. OrganizationName *string `json:"organizationName,optional"`
  344. // 端口号
  345. Port *string `json:"port,optional"`
  346. // 进程号
  347. ProcessId *string `json:"processId,optional"`
  348. // 回调地址
  349. Callback *string `json:"callback,optional"`
  350. }
  351. // Wx information response | Wx信息返回体
  352. // swagger:model WxInfoResp
  353. type WxInfoResp struct {
  354. BaseDataInfo
  355. // Wx information | Wx数据
  356. Data WxInfo `json:"data"`
  357. }
  358. // 获取黑白名单列表返回体
  359. // swagger:model AllowBlockListResp
  360. type AllowBlockListResp struct {
  361. BaseDataInfo
  362. // Wx information | Wx数据
  363. Data AllowBlockListRespData `json:"data"`
  364. }
  365. // AllowBlockListRespData
  366. type AllowBlockListRespData struct {
  367. // 白名单
  368. AllowList []*AllowBlockData `json:"allowList,optional"`
  369. // 群白名单
  370. GroupAllowList []*AllowBlockData `json:"groupAllowList,optional"`
  371. // 黑名单
  372. BlockList []*AllowBlockData `json:"blockList,optional"`
  373. // 群黑名单
  374. GroupBlockList []*AllowBlockData `json:"groupBlockList,optional"`
  375. }
  376. // AllowBlockData
  377. type AllowBlockData struct {
  378. // 微信id 公众号微信ID
  379. Wxid string `json:"wxid,optional"`
  380. // 微信昵称 群备注名称
  381. Nickname string `json:"nickname,optional"`
  382. }
  383. // The data of agent information | Agent信息
  384. // swagger:model AgentInfo
  385. type AgentInfo struct {
  386. BaseIDInfo
  387. // name | 角色名称
  388. Name *string `json:"name,optional"`
  389. // role | 角色设定
  390. Role *string `json:"role,optional"`
  391. // status | 状态 1-正常 2-禁用
  392. Status *int `json:"status,optional"`
  393. // background | 背景介绍
  394. Background *string `json:"background,optional"`
  395. // examples | 对话案例
  396. Examples *string `json:"examples,optional"`
  397. DatasetId *string `json:"dataset_id,optional"`
  398. CollectionId *string `json:"collection_id,optional"`
  399. }
  400. // The response data of agent list | Agent列表数据
  401. // swagger:model AgentListResp
  402. type AgentListResp struct {
  403. BaseDataInfo
  404. // Agent list data | Agent列表数据
  405. Data AgentListInfo `json:"data"`
  406. }
  407. // Agent list data | Agent列表数据
  408. // swagger:model AgentListInfo
  409. type AgentListInfo struct {
  410. BaseListInfo
  411. // The API list data | Agent列表数据
  412. Data []AgentInfo `json:"data"`
  413. }
  414. // Get agent list request params | Agent列表请求参数
  415. // swagger:model AgentListReq
  416. type AgentListReq struct {
  417. PageInfo
  418. // name | 角色名称
  419. Name *string `json:"name,optional"`
  420. // role | 角色设定
  421. Role *string `json:"role,optional"`
  422. // background | 背景介绍
  423. Background *string `json:"background,optional"`
  424. // status | 状态 1-可用 2-不可用
  425. Status *int `json:"status,optional"`
  426. }
  427. // Agent information response | Agent信息返回体
  428. // swagger:model AgentInfoResp
  429. type AgentInfoResp struct {
  430. BaseDataInfo
  431. // Agent information | Agent数据
  432. Data AgentInfo `json:"data"`
  433. }
  434. type VectorModel struct {
  435. Model *string `json:"model"`
  436. Name *string `json:"name"`
  437. CharsPointsPrice *uint64 `json:"charsPointsPrice"`
  438. DefaultToken *uint64 `json:"defaultToken"`
  439. MaxToken *uint64 `json:"maxToken"`
  440. Weight *uint64 `json:"weight"`
  441. }
  442. type AgentModel struct {
  443. Model *string `json:"model"`
  444. Name *string `json:"name"`
  445. MaxContext *uint64 `json:"maxContext"`
  446. MaxResponse *uint64 `json:"maxResponse"`
  447. CharsPointsPrice *uint64 `json:"charsPointsPrice"`
  448. }
  449. type DatasetId struct {
  450. ID *string `json:"id"`
  451. ParentID *string `json:"parentId"`
  452. TeamId *string `json:"teamId"`
  453. TmbId *string `json:"tmbId"`
  454. Type *string `json:"type"`
  455. Status *string `json:"status"`
  456. Avatar *string `json:"avatar"`
  457. Name *string `json:"name"`
  458. VectorModel *string `json:"vectorModel"`
  459. AgentModel *string `json:"agentModel"`
  460. Intro *string `json:"intro"`
  461. }
  462. // Dataset info | 知识库详情
  463. // swagger:model DatasetInfo
  464. type DatasetInfo struct {
  465. ID *string `json:"id"`
  466. ParentID *string `json:"parentId"`
  467. TeamId *string `json:"teamId"`
  468. TmbId *string `json:"tmbId"`
  469. Type *string `json:"type"`
  470. Name *string `json:"name"`
  471. Intro *string `json:"intro"`
  472. Status *string `json:"status"`
  473. Avatar *string `json:"avatar"`
  474. VectorModel VectorModel `json:"vectorModel"`
  475. AgentModel AgentModel `json:"agentModel"`
  476. Permission *string `json:"permission"`
  477. CanWrite *bool `json:"canWrite"`
  478. IsOwner *bool `json:"isOwner"`
  479. }
  480. type Index struct {
  481. DefaultIndex *bool `json:"defaultIndex"`
  482. Type *string `json:"type"`
  483. DataId *string `json:"dataId"`
  484. Text *string `json:"text"`
  485. ID *string `json:"id"`
  486. }
  487. // Collection Info | 集合详情
  488. // swagger:model CollectionInfo
  489. type CollectionInfo struct {
  490. ID *string `json:"id"`
  491. ParentID *string `json:"parentId"`
  492. TmbId *string `json:"tmbId,optional"`
  493. Type *string `json:"type"`
  494. Name *string `json:"name"`
  495. DataAmount *uint64 `json:"dataAmount,optional"`
  496. TrainingAmount *uint64 `json:"trainingAmount,optional"`
  497. TrainingType *string `json:"trainingType,optional"`
  498. ChunkSize *uint64 `json:"chunkSize,optional"`
  499. ChunkSplitter *string `json:"chunkSplitter,optional"`
  500. QaPrompt *string `json:"qaPrompt,optional"`
  501. RawTextLength *uint64 `json:"rawTextLength,optional"`
  502. CanWrite *bool `json:"canWrite,optional"`
  503. SourceName *string `json:"sourceName,optional"`
  504. DatasetId DatasetId `json:"datasetId,optional"`
  505. }
  506. // swagger:model CollectionDetailReq
  507. type CollectionDetailReq struct {
  508. ID *string `json:"id"`
  509. }
  510. // swagger:model CollectionInfoResp
  511. type CollectionInfoResp struct {
  512. BaseDataInfo
  513. Data CollectionInfo `json:"data"`
  514. }
  515. // swagger:model DataDetailReq
  516. type DataDetailReq struct {
  517. ID *string `json:"id"`
  518. }
  519. // swagger:model DataDetailResp
  520. type DataDetailResp struct {
  521. BaseDataInfo
  522. Data DataInfo `json:"data"`
  523. }
  524. // swagger:model CollectionSimpleInfo
  525. type CollectionSimpleInfo struct {
  526. ID *string `json:"id"`
  527. ParentID *string `json:"parentId"`
  528. TmbId *string `json:"tmbId,optional"`
  529. Type *string `json:"type"`
  530. Name *string `json:"name"`
  531. DataAmount *uint64 `json:"dataAmount,optional"`
  532. TrainingAmount *uint64 `json:"trainingAmount,optional"`
  533. }
  534. // swagger:model DataInfo
  535. type DataInfo struct {
  536. ID *string `json:"id"`
  537. Q *string `json:"q"`
  538. A *string `json:"a"`
  539. ChunkIndex *uint64 `json:"chunkIndex"`
  540. Indexes []Index `json:"indexes"`
  541. DatasetId *string `json:"datasetId"`
  542. CollectionId *string `json:"collectionId"`
  543. SourceName *string `json:"sourceName"`
  544. CanWrite *bool `json:"canWrite"`
  545. IsOwner *bool `json:"isOwner"`
  546. }
  547. // swagger:model DataSimpleInfo
  548. type DataSimpleInfo struct {
  549. ID *string `json:"id"`
  550. Q *string `json:"q"`
  551. A *string `json:"a"`
  552. ChunkIndex *uint64 `json:"chunkIndex"`
  553. DatasetId *string `json:"datasetId"`
  554. CollectionId *string `json:"collectionId"`
  555. }
  556. // Get collection list request params | Collection列表请求参数
  557. // swagger:model CollectionListReq
  558. type CollectionListReq struct {
  559. // required : true
  560. // min : 0
  561. PageNum *int `json:"pageNum" validate:"required,number,gt=0"`
  562. // required : true
  563. // max : 100000
  564. PageSize *int `json:"pageSize" validate:"required,number,lt=100000"`
  565. // required : true
  566. DatasetId *string `json:"datasetId" validate:"required"`
  567. }
  568. // Collection list response | Collection List信息返回体
  569. // swagger:model CollectionListResp
  570. type CollectionListResp struct {
  571. BaseDataInfo
  572. // Agent information | Agent数据
  573. Data []CollectionSimpleInfo `json:"data"`
  574. // required : true
  575. // min : 0
  576. PageNum *int `json:"pageNum" validate:"required,number,gt=0"`
  577. // required : true
  578. // max : 100000
  579. PageSize *int `json:"pageSize" validate:"required,number,lt=100000"`
  580. Total *int `json:"total"`
  581. }
  582. // Get collection list request params | Collection列表请求参数
  583. // swagger:model DataListReq
  584. type DataListReq struct {
  585. // required : true
  586. // min : 0
  587. PageNum *int `json:"page" validate:"required,number,gt=0"`
  588. // required : true
  589. // max : 100000
  590. PageSize *int `json:"pageSize" validate:"required,number,lt=100000"`
  591. // required : true
  592. CollectionId *string `json:"collectionId" validate:"required"`
  593. }
  594. // Data list response | Data List信息返回体
  595. // swagger:model DataListResp
  596. type DataListResp struct {
  597. BaseDataInfo
  598. // Agent information | Agent数据
  599. Data []DataSimpleInfo `json:"data"`
  600. // required : true
  601. // min : 0
  602. PageNum *int `json:"pageNum" validate:"required,number,gt=0"`
  603. // required : true
  604. // max : 100000
  605. PageSize *int `json:"pageSize" validate:"required,number,lt=100000"`
  606. Total *int `json:"total"`
  607. }
  608. // Data create request | 信息请求体
  609. // swagger:model CreateDataInfoReq
  610. type CreateDataInfoReq struct {
  611. // required : true
  612. CollectionId *string `json:"collectionId" validate:"required"`
  613. // Q
  614. // required : true
  615. Q *string `json:"q" validate:"required"`
  616. // A
  617. // required : true
  618. A *string `json:"a" validate:"required"`
  619. }
  620. // IndexSingle {
  621. // Text A *string `json:"text"`
  622. // }
  623. //
  624. // Data create request | 信息返回体
  625. // swagger:model UpdateDataInfoReq
  626. type UpdateDataInfoReq struct {
  627. // ID
  628. // required : true
  629. DataId *string `json:"id" validate:"required"`
  630. // Q
  631. // required : true
  632. Q *string `json:"q" validate:"required"`
  633. // A
  634. // required : true
  635. A *string `json:"a" validate:"required"`
  636. }
  637. // swagger:model DeleteDataReq
  638. type DeleteDataReq struct {
  639. // required : true
  640. ID *string `json:"id" validate:"required"`
  641. }
  642. // swagger:model UploadDataReq
  643. type UploadDataReq struct {
  644. AgentId *string `form:"agentId"`
  645. }
  646. // ContactLabelList | Contact标签列表
  647. type ContactLabelList struct {
  648. // label
  649. Label *string `json:"label,optional"`
  650. // value
  651. Value *uint64 `json:"value,optional"`
  652. }
  653. // The response data of contact information | Contact信息
  654. // swagger:model ContactInfo
  655. type ContactInfo struct {
  656. BaseIDInfo
  657. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  658. Status *uint8 `json:"status,optional"`
  659. // 属主微信id
  660. WxWxid *string `json:"wxWxid,optional"`
  661. // 联系人类型:1好友,2群组,3公众号,4企业微信联系人
  662. Type *int `json:"type,optional"`
  663. // 微信id 公众号微信ID
  664. Wxid *string `json:"wxid,optional"`
  665. // 微信账号
  666. Account *string `json:"account,optional"`
  667. // 微信昵称 群备注名称
  668. Nickname *string `json:"nickname,optional"`
  669. // 备注名
  670. Markname *string `json:"markname,optional"`
  671. // 头像
  672. Headimg *string `json:"headimg,optional"`
  673. // 性别 0未知 1男 2女
  674. Sex *int `json:"sex,optional"`
  675. // 星标 65/67=星标 1/3=未星标
  676. Starrole *string `json:"starrole,optional"`
  677. // 不让他看我的朋友圈 0可以看 1不让看
  678. Dontseeit *int `json:"dontseeit,optional"`
  679. // 不看他的朋友圈 0可以看 1不看 1=开启了不看他 128/129=仅聊天
  680. Dontseeme *int `json:"dontseeme,optional"`
  681. // 所属标签id清单,多开会用逗号隔开
  682. Lag *string `json:"lag,optional"`
  683. // 群组id
  684. Gid *string `json:"gid,optional"`
  685. // 群组名称
  686. Gname *string `json:"gname,optional"`
  687. // v3数据
  688. V3 *string `json:"v3,optional"`
  689. // Label Relationships | 标签关系
  690. LabelRelationships []ContactLabelList `json:"labelRelationships,optional"`
  691. // 组织ID
  692. OrganizationId *uint64 `json:"organizationId,optional"`
  693. }
  694. // The response data of label information | Label信息
  695. // swagger:model LabelInfo
  696. type LabelInfo struct {
  697. BaseIDInfo
  698. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  699. Status *uint8 `json:"status,optional"`
  700. // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  701. Type *int `json:"type,optional"`
  702. // 标签名称
  703. Name *string `json:"name,optional"`
  704. // 标签来源:1后台创建 2个微同步
  705. From *int `json:"from,optional"`
  706. // 标签模式:1动态 2静态
  707. Mode *int `json:"mode,optional"`
  708. // 标签的触达条件
  709. Conditions *string `json:"conditions,optional"`
  710. // 组织ID
  711. OrganizationId *uint64 `json:"organizationId,optional"`
  712. // Label Relationships | 标签关系
  713. LabelRelationships []LabelRelationshipInfo `json:"labelRelationships,optional"`
  714. }
  715. // The response data of label relationship information | LabelRelationship信息
  716. // swagger:model LabelRelationshipInfo
  717. type LabelRelationshipInfo struct {
  718. BaseIDInfo
  719. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  720. Status *uint8 `json:"status,optional"`
  721. // 标签 ID
  722. LabelId *uint64 `json:"labelId,optional"`
  723. // 联系人 ID
  724. ContactId *uint64 `json:"contactId,optional"`
  725. // Contact information | 联系人信息
  726. Contact ContactInfo `json:"contact,optional"`
  727. // Label information | 标签信息
  728. Label LabelInfo `json:"label,optional"`
  729. // 组织ID
  730. OrganizationId *uint64 `json:"organizationId,optional"`
  731. }
  732. // The response data of label relationship information | LabelRelationship信息
  733. // swagger:model LabelRelationshipsInfo
  734. type LabelRelationshipsInfo struct {
  735. BaseIDInfo
  736. // 更新类型:为空或“all”时表示全量更新,为 “add” 时表示仅追加
  737. UpdateType *string `json:"updateType,optional"`
  738. // 标签 ID
  739. LabelIds []uint64 `json:"labelIds,optional"`
  740. // 联系人 ID
  741. ContactId *uint64 `json:"contactId,optional"`
  742. }
  743. // swagger:model BatchLabelRelationshipsInfo
  744. type BatchLabelRelationshipsInfo struct {
  745. // 更新类型:为1 时表示增加标签,为 -1 时表示移除标签
  746. UpdateType int `json:"updateType,optional"`
  747. // 标签 ID
  748. LabelIds []uint64 `json:"labelIds,optional"`
  749. // 联系人 ID
  750. ContactIds []uint64 `json:"contactIds,optional"`
  751. }
  752. // The response data of label relationship list | LabelRelationship列表数据
  753. // swagger:model LabelRelationshipListResp
  754. type LabelRelationshipListResp struct {
  755. BaseDataInfo
  756. // LabelRelationship list data | LabelRelationship列表数据
  757. Data LabelRelationshipListInfo `json:"data"`
  758. }
  759. // LabelRelationship list data | LabelRelationship列表数据
  760. // swagger:model LabelRelationshipListInfo
  761. type LabelRelationshipListInfo struct {
  762. BaseListInfo
  763. // The API list data | LabelRelationship列表数据
  764. Data []LabelRelationshipInfo `json:"data"`
  765. }
  766. // Get label relationship list request params | LabelRelationship列表请求参数
  767. // swagger:model LabelRelationshipListReq
  768. type LabelRelationshipListReq struct {
  769. PageInfo
  770. }
  771. // LabelRelationship information response | LabelRelationship信息返回体
  772. // swagger:model LabelRelationshipInfoResp
  773. type LabelRelationshipInfoResp struct {
  774. BaseDataInfo
  775. // LabelRelationship information | LabelRelationship数据
  776. Data LabelRelationshipInfo `json:"data"`
  777. }
  778. type LoginQRStatus struct {
  779. // 登陆二维码
  780. QRCode string `json:"qRCode,optional"`
  781. // 登陆二维码状态
  782. Status string `json:"status,optional"`
  783. // 登陆二维码状态描述
  784. StatusDesc string `json:"statusDesc,optional"`
  785. }
  786. // 刷新登陆二维码请求参数
  787. // swagger:model RefreshLoginQRReq
  788. type RefreshLoginQRReq struct {
  789. // 服务器id
  790. ServerId *uint64 `json:"serverId,optional"`
  791. // 端口号
  792. Port *string `json:"port,optional"`
  793. // 回调地址
  794. Callback *string `json:"callback,optional"`
  795. }
  796. // 刷新登陆二维码返回参数
  797. // swagger:model RefreshLoginQRResp
  798. type RefreshLoginQRResp struct {
  799. BaseDataInfo
  800. // 二维码Base64
  801. Data LoginQRStatus `json:"data,optional"`
  802. }
  803. // 发送微信文本消息请求参数
  804. // swagger:model SendTextMsgReq
  805. type SendTextMsgReq struct {
  806. // 属主微信id
  807. WxWxid *string `json:"senderWxId"`
  808. // 微信id 公众号微信ID
  809. Wxid *string `json:"receiverWxId"`
  810. // 微信文本消息内容
  811. Msg *string `json:"msg"`
  812. }
  813. // 发送微信图片消息请求参数
  814. // swagger:model SendPicMsgReq
  815. type SendPicMsgReq struct {
  816. // 属主微信id
  817. WxWxid *string `json:"wxWxid"`
  818. // 微信id 公众号微信ID
  819. Wxid *string `json:"wxid"`
  820. // 微信图片路径(本地或网络,本地需要上传操作,如:C:\\x.jpg)
  821. Picpath *string `json:"picpath"`
  822. // 微信图片自定义名称(此属性只有网络图片有)
  823. Diyfilename *string `json:"diyfilename,optional"`
  824. }
  825. // 发送微信图片(本地)请求参数
  826. // swagger:model SendPicMsgLocalReq
  827. type SendPicMsgLocalReq struct {
  828. // 属主微信id
  829. WxWxid *string `json:"wxWxid"`
  830. // 微信id 公众号微信ID
  831. Wxid *string `json:"wxid"`
  832. // 微信图片路径(本地或网络,本地需要上传操作,如:C:\\x.jpg)
  833. Picpath *string `json:"picpath"`
  834. }
  835. // The response data of contact list | Contact列表数据
  836. // swagger:model ContactListResp
  837. type ContactListResp struct {
  838. BaseDataInfo
  839. // Contact list data | Contact列表数据
  840. Data ContactListInfo `json:"data"`
  841. }
  842. // Contact list data | Contact列表数据
  843. // swagger:model ContactListInfo
  844. type ContactListInfo struct {
  845. BaseListInfo
  846. // The API list data | Contact列表数据
  847. Data []ContactInfo `json:"data"`
  848. }
  849. // Get contact list request params | Contact列表请求参数
  850. // swagger:model ContactListReq
  851. type ContactListReq struct {
  852. PageInfo
  853. // Label ID list | 标签ID列表
  854. LabelIDs []uint64 `json:"labelIDs,optional"`
  855. // 属主微信id
  856. WxWxid *string `json:"wxWxid,optional"`
  857. // 微信id 公众号微信ID
  858. Wxid *string `json:"wxid,optional"`
  859. // 微信账号
  860. Account *string `json:"account,optional"`
  861. // 昵称
  862. Nickname *string `json:"nickname,optional"`
  863. // 联系人类型:1好友,2群组,3公众号,4企业微信联系人
  864. Type *int `json:"type,optional"`
  865. }
  866. // Contact information response | Contact信息返回体
  867. // swagger:model ContactInfoResp
  868. type ContactInfoResp struct {
  869. BaseDataInfo
  870. // Contact information | Contact数据
  871. Data ContactInfo `json:"data"`
  872. }
  873. // swagger:model AddNewFriendReq
  874. type AddNewFriendReq struct {
  875. OwnerWxid string `json:"ownerWxid"`
  876. Wxid string `json:"wxid"`
  877. Gid string `json:"gid"`
  878. Desc string `json:"desc"`
  879. AddType string `json:"addType"`
  880. }
  881. // The response data of message information | Message信息
  882. // swagger:model MessageInfo
  883. type MessageInfo struct {
  884. BaseIDInfo
  885. // 属主微信id
  886. WxWxid *string `json:"wxWxid"`
  887. // 微信id 公众号微信ID
  888. Wxid *string `json:"wxid"`
  889. // 微信消息内容
  890. Msg *string `json:"msg"`
  891. }
  892. // The response data of message list | Message列表数据
  893. // swagger:model MessageListResp
  894. type MessageListResp struct {
  895. BaseDataInfo
  896. // Message list data | Message列表数据
  897. Data MessageListInfo `json:"data"`
  898. }
  899. // Message list data | Message列表数据
  900. // swagger:model MessageListInfo
  901. type MessageListInfo struct {
  902. BaseListInfo
  903. // The API list data | Message列表数据
  904. Data []MessageInfo `json:"data"`
  905. }
  906. // Get message list request params | Message列表请求参数
  907. // swagger:model MessageListReq
  908. type MessageListReq struct {
  909. PageInfo
  910. // 属主微信id
  911. WxWxid *string `json:"wxWxid,optional"`
  912. // 微信id 公众号微信ID
  913. Wxid *string `json:"wxid,optional"`
  914. }
  915. // Message information response | Message信息返回体
  916. // swagger:model MessageInfoResp
  917. type MessageInfoResp struct {
  918. BaseDataInfo
  919. // Message information | Message数据
  920. Data MessageInfo `json:"data"`
  921. }
  922. // The response data of label list | Label列表数据
  923. // swagger:model LabelSelectListResp
  924. type LabelSelectListResp struct {
  925. BaseDataInfo
  926. // Label list data | Label列表数据
  927. Data []LabelSelectListInfo `json:"data"`
  928. }
  929. // The response data of label list | Label群发列表数据
  930. // swagger:model LabelBatchSelectListResp
  931. type LabelBatchSelectListResp struct {
  932. BaseDataInfo
  933. // Label list data | Label列表数据
  934. Data LabelBatchSelectListData `json:"data"`
  935. }
  936. // The response data of label list | Label群发列表数据
  937. type LabelBatchSelectListData struct {
  938. Contact []LabelSelectListInfo `json:"contact"`
  939. Group []LabelSelectListInfo `json:"group"`
  940. }
  941. // The response data of label list | Label列表数据
  942. // swagger:model LabelListResp
  943. type LabelListResp struct {
  944. BaseDataInfo
  945. // Label list data | Label列表数据
  946. Data LabelListInfo `json:"data"`
  947. }
  948. // Label list data | Label列表数据
  949. // swagger:model LabelListInfo
  950. type LabelListInfo struct {
  951. BaseListInfo
  952. // The API list data | Label列表数据
  953. Data []LabelInfo `json:"data"`
  954. }
  955. // Get label list request params | Label列表请求参数
  956. // swagger:model LabelListReq
  957. type LabelListReq struct {
  958. PageInfo
  959. // Label ID list | Label ID列表
  960. LabelIDs []uint64 `json:"labelIDs,optional"`
  961. // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  962. Type *int `json:"type,optional"`
  963. // 标签名称
  964. Name *string `json:"name,optional"`
  965. // 标签来源:1后台创建 2个微同步
  966. From *int `json:"from,optional"`
  967. // 标签模式:1动态 2静态
  968. Mode *int `json:"mode,optional"`
  969. }
  970. // Label information response | Label信息返回体
  971. // swagger:model LabelInfoResp
  972. type LabelInfoResp struct {
  973. BaseDataInfo
  974. // Label information | Label数据
  975. Data LabelInfo `json:"data"`
  976. }
  977. // swagger:model LabelSelectListInfo
  978. type LabelSelectListInfo struct {
  979. // label
  980. Label *string `json:"label,optional"`
  981. // value
  982. Value *uint64 `json:"value,optional"`
  983. }
  984. // The response data of sop task list | SopTask列表数据
  985. // swagger:model SopTaskListResp
  986. type SopTaskListResp struct {
  987. BaseDataInfo
  988. // SopTask list data | SopTask列表数据
  989. Data SopTaskListInfo `json:"data"`
  990. }
  991. // The response data of sop task record list | SopTask列表数据
  992. // swagger:model SopTaskRecordListResp
  993. type SopTaskRecordListResp struct {
  994. BaseDataInfo
  995. // SopTask list data | SopTask列表数据
  996. Data []SopTaskRecordInfo `json:"data"`
  997. }
  998. // SopTask list data | SopTask列表数据
  999. // swagger:model SopTaskRecordInfo
  1000. type SopTaskRecordInfo struct {
  1001. // NodeId 节点ID
  1002. SourceType *int `json:"sourceType,optional"`
  1003. // NodeId 节点ID
  1004. SourceId *uint64 `json:"sourceId,optional"`
  1005. // 节点名称
  1006. Name *string `json:"name,optional"`
  1007. // 消息总数
  1008. TotalCount *int64 `json:"totalCount,optional"`
  1009. // 成功数
  1010. SuccessCount *int64 `json:"successCount,optional"`
  1011. // 失败数
  1012. FailureCount *int64 `json:"failureCount,optional"`
  1013. // 成功率
  1014. SuccessRate *int64 `json:"successRate,optional"`
  1015. }
  1016. // SopTask list data | SopTask列表数据
  1017. // swagger:model SopTaskListInfo
  1018. type SopTaskListInfo struct {
  1019. BaseListInfo
  1020. // The API list data | SopTask列表数据
  1021. Data []SopTaskInfo `json:"data"`
  1022. }
  1023. // Get sop task list request params | SopTask列表请求参数
  1024. // swagger:model SopTaskListReq
  1025. type SopTaskListReq struct {
  1026. PageInfo
  1027. // SOP 任务名称
  1028. Name *string `json:"name,optional"`
  1029. // 创建者 id
  1030. CreatorId *string `json:"creatorId,optional"`
  1031. }
  1032. // SopTask information response | SopTask信息返回体
  1033. // swagger:model SopTaskInfoResp
  1034. type SopTaskInfoResp struct {
  1035. BaseDataInfo
  1036. // SopTask information | SopTask数据
  1037. Data SopTaskInfo `json:"data"`
  1038. }
  1039. // SopTask create response | SopTask创建回体
  1040. // swagger:model SopTaskCreateResp
  1041. type SopTaskCreateResp struct {
  1042. BaseDataInfo
  1043. // SopTask id | SopTask id
  1044. Data uint64 `json:"data"`
  1045. }
  1046. // swagger:model CopyReq
  1047. type CopyReq struct {
  1048. // SopTask id | SopTask id
  1049. Id uint64 `json:"id"`
  1050. // SOP 任务名称
  1051. Name *string `json:"name,optional"`
  1052. // Organization id | Organization id
  1053. OrganizationId uint64 `json:"organizationId,optional"`
  1054. }
  1055. // swagger:model MessageVarResp
  1056. type MessageVarResp struct {
  1057. BaseDataInfo
  1058. Data MessageVarRespData `json:"data"`
  1059. }
  1060. type MessageVarRespData struct {
  1061. // 消息变量
  1062. MessageVar []MessageVarInfo `json:"messageVar"`
  1063. // 转发变量
  1064. ForwardVar []MessageVarInfo `json:"forwardVar"`
  1065. }
  1066. // swagger:model MessageVarInfo
  1067. type MessageVarInfo struct {
  1068. // 显示名称
  1069. Label string `json:"label"`
  1070. // 变量
  1071. Value string `json:"value"`
  1072. }
  1073. // swagger:model SopTaskOutlineResp
  1074. type SopTaskOutlineResp struct {
  1075. BaseDataInfo
  1076. Data []SopTaskOutlineInfo `json:"data"`
  1077. }
  1078. // swagger:model SopTaskOutlineInfo
  1079. type SopTaskOutlineInfo struct {
  1080. // 标题
  1081. Title string `json:"title,optional"`
  1082. // key
  1083. Key string `json:"key,optional"`
  1084. // 子节点
  1085. Children []SopTaskOutlineInfo `json:"children,optional"`
  1086. }
  1087. // swagger:model TestNodeReq
  1088. type TestNodeReq struct {
  1089. Type int `json:"type"`
  1090. Id uint64 `json:"id"`
  1091. Content string `json:"content"`
  1092. }
  1093. // swagger:model TestNodeResp
  1094. type TestNodeResp struct {
  1095. BaseDataInfo
  1096. Data []string `json:"data"`
  1097. }
  1098. // swagger:model SopApiListReq
  1099. type SopApiListReq struct {
  1100. // required : true
  1101. // min : 0
  1102. Page uint64 `json:"page" validate:"required,number,gt=0"`
  1103. // required : true
  1104. // max : 2000
  1105. PageSize uint64 `json:"pageSize" validate:"required,number,lt=2000"`
  1106. }
  1107. // The response data of sop stage information | SopStage信息
  1108. // swagger:model SopStageInfo
  1109. type SopStageInfo struct {
  1110. BaseIDInfo
  1111. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1112. Status *uint8 `json:"status,optional"`
  1113. // SOP 任务 ID
  1114. TaskId *uint64 `json:"taskId,optional"`
  1115. // 阶段名称
  1116. Name *string `json:"name,optional"`
  1117. // 客群筛选条件类型 1 按标签筛选 2 按客户基本信息筛选
  1118. ConditionType *int `json:"conditionType,optional"`
  1119. // 筛选条件关系 1 满足所有条件(and) 2 满足任意条件(or)
  1120. ConditionOperator *int `json:"conditionOperator,optional"`
  1121. // 筛选条件列表
  1122. ConditionList []Condition `json:"conditionList,optional"`
  1123. // 命中后发送的消息内容
  1124. ActionMessage []Action `json:"actionMessage,optional"`
  1125. // 命中后需要打的标签
  1126. ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
  1127. // 命中后需要移除的标签
  1128. ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
  1129. // 命中后转发的消息内容
  1130. ActionForward *ActionForward `json:"actionForward,optional"`
  1131. // 阶段顺序
  1132. IndexSort *int `json:"indexSort,optional"`
  1133. // sop 任务信息
  1134. TaskInfo *SopTaskInfo `json:"taskInfo,optional"`
  1135. // node 信息
  1136. NodeList []SopNodeInfo `json:"nodeList,optional"`
  1137. }
  1138. // The response data of sop task information | SopTask信息
  1139. // swagger:model SopTaskInfo
  1140. type SopTaskInfo struct {
  1141. BaseIDInfo
  1142. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1143. Status *uint8 `json:"status,optional"`
  1144. // SOP 任务名称
  1145. Name *string `json:"name,optional"`
  1146. // 机器人微信 id 列表
  1147. BotWxidList []string `json:"botWxidList,optional"`
  1148. // 标签类型:1好友,2群组,3企业微信联系人
  1149. Type *int `json:"type,optional"`
  1150. // 任务计划开始时间
  1151. PlanStartTime *int64 `json:"planStartTime,optional"`
  1152. // 任务计划结束时间
  1153. PlanEndTime *int64 `json:"planEndTime,optional"`
  1154. // 创建者 id
  1155. CreatorId *string `json:"creatorId,optional"`
  1156. // 阶段信息
  1157. StageList []SopStageInfo `json:"stageList,optional"`
  1158. // 组织ID
  1159. OrganizationId *uint64 `json:"organizationId,optional"`
  1160. }
  1161. // The response data of sop node information | SopNode信息
  1162. // swagger:model SopNodeInfo
  1163. type SopNodeInfo struct {
  1164. BaseIDInfo
  1165. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1166. Status *uint8 `json:"status,optional"`
  1167. // 阶段 ID
  1168. StageId *uint64 `json:"stageId,optional"`
  1169. // 父节点 ID
  1170. ParentId *uint64 `json:"parentId,optional"`
  1171. // 节点名称
  1172. Name *string `json:"name,optional"`
  1173. // 触发条件类型 1 客户回复后触发 2 超时后触发
  1174. ConditionType *int `json:"conditionType,optional"`
  1175. // 触发语义列表 当为空时则代表用户回复任意内容后触发
  1176. ConditionList []string `json:"conditionList,optional"`
  1177. // 超时触发时间(分钟)
  1178. NoReplyCondition *uint64 `json:"noReplyCondition,optional"`
  1179. // 超时触发时间单位
  1180. NoReplyUnit *string `json:"noReplyUnit,optional"`
  1181. // 命中后发送的消息内容
  1182. ActionMessage []Action `json:"actionMessage,optional"`
  1183. // 命中后需要打的标签
  1184. ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
  1185. // 命中后需要移除的标签
  1186. ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
  1187. // 命中后转发的消息内容
  1188. ActionForward *ActionForward `json:"actionForward,optional"`
  1189. // 阶段信息
  1190. StageInfo *SopStageInfo `json:"stageInfo,optional"`
  1191. }
  1192. // The response data of sop stage list | SopStage列表数据
  1193. // swagger:model SopStageListResp
  1194. type SopStageListResp struct {
  1195. BaseDataInfo
  1196. // SopStage list data | SopStage列表数据
  1197. Data SopStageListInfo `json:"data"`
  1198. }
  1199. // SopStage list data | SopStage列表数据
  1200. // swagger:model SopStageListInfo
  1201. type SopStageListInfo struct {
  1202. BaseListInfo
  1203. // The API list data | SopStage列表数据
  1204. Data []SopStageInfo `json:"data"`
  1205. }
  1206. // Get sop stage list request params | SopStage列表请求参数
  1207. // swagger:model SopStageListReq
  1208. type SopStageListReq struct {
  1209. TaskId *uint64 `json:"taskId"`
  1210. }
  1211. // Batch get sop stage list request params | SopStage列表请求参数
  1212. // swagger:model BatchSopStageListReq
  1213. type BatchSopStageListReq struct {
  1214. TaskIds []uint64 `json:"taskIds"`
  1215. }
  1216. // SopStage information response | SopStage信息返回体
  1217. // swagger:model SopStageInfoResp
  1218. type SopStageInfoResp struct {
  1219. BaseDataInfo
  1220. // SopStage information | SopStage数据
  1221. Data SopStageInfo `json:"data"`
  1222. }
  1223. // SopStage create response | SopStage创建回体
  1224. // swagger:model SopStageCreateResp
  1225. type SopStageCreateResp struct {
  1226. BaseDataInfo
  1227. // SopStage id | SopStage id
  1228. Data uint64 `json:"data"`
  1229. }
  1230. // Move sop stage request params | 移动阶段请求参数
  1231. // swagger:model SopStageMoveReq
  1232. type SopStageMoveReq struct {
  1233. BaseIDInfo
  1234. // 阶段名称
  1235. Offset *int `json:"offset,optional"`
  1236. }
  1237. // The response data of sop node list | SopNode列表数据
  1238. // swagger:model SopNodeListResp
  1239. type SopNodeListResp struct {
  1240. BaseDataInfo
  1241. // SopNode list data | SopNode列表数据
  1242. Data []*SopChildNodeInfo `json:"data"`
  1243. }
  1244. // The response data of sop node list | SopNode列表数据
  1245. type SopNodeListResp2 struct {
  1246. BaseDataInfo
  1247. // SopNode list data | SopNode列表数据
  1248. Data []*SopNodeInfo `json:"data"`
  1249. }
  1250. // SopNode list data | SopNode列表数据
  1251. // swagger:model SopChildNodeInfo
  1252. type SopChildNodeInfo struct {
  1253. NodeName *string `json:"nodeName,optional"`
  1254. ChildNode *SopChildNodeInfo `json:"childNode,optional"`
  1255. // The API list data | SopNode列表数据
  1256. ConditionNodes []*SopChildNodeInfo `json:"conditionNodes"`
  1257. SopNodeInfo
  1258. }
  1259. // SopNode list data | SopNode列表数据
  1260. // swagger:model SopNodeListInfo
  1261. type SopNodeListInfo struct {
  1262. BaseListInfo
  1263. // The API list data | SopNode列表数据
  1264. Data []SopNodeInfo `json:"data"`
  1265. }
  1266. // Get sop node list request params | SopNode列表请求参数
  1267. // swagger:model SopNodeListReq
  1268. type SopNodeListReq struct {
  1269. StageId *uint64 `json:"stageId"`
  1270. }
  1271. // Get sop node list request params | SopNode列表请求参数
  1272. // swagger:model BatchSopNodeListReq
  1273. type BatchSopNodeListReq struct {
  1274. StageIds []uint64 `json:"stageIds"`
  1275. }
  1276. // SopNode information response | SopNode信息返回体
  1277. // swagger:model SopNodeInfoResp
  1278. type SopNodeInfoResp struct {
  1279. BaseDataInfo
  1280. // SopNode information | SopNode数据
  1281. Data SopNodeInfo `json:"data"`
  1282. }
  1283. // SopNode create response | SopNode创建返回体
  1284. // swagger:model SopNodeCreateResp
  1285. type SopNodeCreateResp struct {
  1286. BaseDataInfo
  1287. // SopNode id | SopNode id
  1288. Data uint64 `json:"data"`
  1289. }
  1290. // The response data of message records information | MessageRecords信息
  1291. // swagger:model MessageRecordsInfo
  1292. type MessageRecordsInfo struct {
  1293. BaseIDInfo
  1294. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1295. Status *uint8 `json:"status,optional"`
  1296. // 机器人微信 id
  1297. BotWxid *string `json:"botWxid,optional"`
  1298. // 联系人 id
  1299. ContactId *uint64 `json:"contactId,optional"`
  1300. // 类型:1好友,2群组,3企业微信联系人
  1301. ContactType *int `json:"contactType,optional"`
  1302. // 接收方微信 id
  1303. ContactWxid *string `json:"contactWxid,optional"`
  1304. // 内容类型 1 文本 2 文件
  1305. ContentType *int `json:"contentType,optional"`
  1306. // 发送内容
  1307. Content *string `json:"content,optional"`
  1308. // 元数据
  1309. Meta *Meta `json:"meta,optional"`
  1310. // 异常原因
  1311. ErrorDetail *string `json:"errorDetail,optional"`
  1312. // 发送时间
  1313. SendTime *int64 `json:"sendTime,optional"`
  1314. // 源类型 1 点发 2 群发 3 SOP
  1315. SourceType *int `json:"sourceType,optional"`
  1316. // 源 ID
  1317. SourceId *uint64 `json:"sourceId,optional"`
  1318. // 次源 ID
  1319. SubSourceId *uint64 `json:"subSourceId,optional"`
  1320. // 组织ID
  1321. OrganizationId *uint64 `json:"organizationId,optional"`
  1322. }
  1323. // The response data of message records list | MessageRecords列表数据
  1324. // swagger:model MessageRecordsListResp
  1325. type MessageRecordsListResp struct {
  1326. BaseDataInfo
  1327. // MessageRecords list data | MessageRecords列表数据
  1328. Data MessageRecordsListInfo `json:"data"`
  1329. }
  1330. // MessageRecords list data | MessageRecords列表数据
  1331. // swagger:model MessageRecordsListInfo
  1332. type MessageRecordsListInfo struct {
  1333. BaseListInfo
  1334. // The API list data | MessageRecords列表数据
  1335. Data []MessageRecordsInfo `json:"data"`
  1336. }
  1337. // Get message records list request params | MessageRecords列表请求参数
  1338. // swagger:model MessageRecordsListReq
  1339. type MessageRecordsListReq struct {
  1340. PageInfo
  1341. // 群发消息ID
  1342. BatchMsgId *uint64 `json:"batchMsgId,optional"`
  1343. // 机器人微信 id
  1344. BotWxid *string `json:"botWxid,optional"`
  1345. // 消息类型:源类型 1 点发 2 群发 3 SOP 阶段 4 SOP 节点
  1346. SourceType *int `json:"sourceType,optional"`
  1347. // 消息源ID:
  1348. SourceId *uint64 `json:"sourceId,optional"`
  1349. // 接收方微信 id
  1350. ContactWxid *string `json:"contactWxid,optional"`
  1351. // 发送内容
  1352. Status *uint8 `json:"status,optional"`
  1353. }
  1354. // MessageRecords information response | MessageRecords信息返回体
  1355. // swagger:model MessageRecordsInfoResp
  1356. type MessageRecordsInfoResp struct {
  1357. BaseDataInfo
  1358. // MessageRecords information | MessageRecords数据
  1359. Data MessageRecordsInfo `json:"data"`
  1360. }
  1361. // The response data of chatroom member information | ChatroomMember信息
  1362. // swagger:model ChatroomMemberInfo
  1363. type ChatroomMemberInfo struct {
  1364. // 名称
  1365. Wxid *string `json:"wxid,optional"`
  1366. // 群组
  1367. ChatRoom *string `json:"chatRoom,optional"`
  1368. // 属主Wxid
  1369. OwnerWxid *string `json:"ownerWxid,optional"`
  1370. // 账号
  1371. Account *string `json:"account,optional"`
  1372. }
  1373. // The response data of chatroom member list | ChatroomMember列表数据
  1374. // swagger:model ChatroomMemberListResp
  1375. type ChatroomMemberListResp struct {
  1376. BaseDataInfo
  1377. // chatroom member list data | chatroom member 列表数据
  1378. Data ChatroomMemberListInfo `json:"data"`
  1379. }
  1380. // chatroom member list data | chatroom member列表数据
  1381. // swagger:model ChatroomMemberListInfo
  1382. type ChatroomMemberListInfo struct {
  1383. BaseListInfo
  1384. // The API list data | chatroom member列表数据
  1385. Data []ChatroomMemberInfo `json:"data"`
  1386. }
  1387. // Get chatroom member list request params | ChatroomMember列表请求参数
  1388. // swagger:model ChatroomMemberListReq
  1389. type ChatroomMemberListReq struct {
  1390. PageInfo
  1391. // 属主Wxid
  1392. OwnerWxid *string `json:"ownerWxid,optional"`
  1393. // 群组
  1394. ChatRoom *string `json:"chatRoom,optional"`
  1395. }
  1396. // chatroom member information response | ChatroomMember信息返回体
  1397. // swagger:model ChatroomMemberInfoResp
  1398. type ChatroomMemberInfoResp struct {
  1399. BaseDataInfo
  1400. // Server information | Server数据
  1401. Data ChatroomMemberInfo `json:"data"`
  1402. }
  1403. // The response data of user information | 用户信息
  1404. // swagger:model UserInfo
  1405. type UserInfo struct {
  1406. BaseUUIDInfo
  1407. // Status | 状态
  1408. // max : 20
  1409. Status *uint32 `json:"status,optional" validate:"omitempty,lt=20"`
  1410. // Username | 用户名
  1411. // max length : 50
  1412. Username *string `json:"username,optional" validate:"omitempty,max=50"`
  1413. // Nickname | 昵称
  1414. // max length : 40
  1415. Nickname *string `json:"nickname,optional" validate:"omitempty,max=40"`
  1416. // Password | 密码
  1417. // min length : 6
  1418. Password *string `json:"password,optional" validate:"omitempty,min=6"`
  1419. // Description | 描述
  1420. // max length : 100
  1421. Description *string `json:"description,optional" validate:"omitempty,max=100"`
  1422. // HomePath | 首页
  1423. // max length : 70
  1424. HomePath *string `json:"homePath,optional" validate:"omitempty,max=70"`
  1425. // RoleId | 角色ID
  1426. RoleIds []uint64 `json:"roleIds,optional"`
  1427. // Mobile | 手机号
  1428. // max length : 18
  1429. Mobile *string `json:"mobile,optional" validate:"omitempty,max=18"`
  1430. // Email | 邮箱
  1431. // max length : 80
  1432. Email *string `json:"email,optional" validate:"omitempty,max=80"`
  1433. // Avatar | 头像地址
  1434. // max length : 300
  1435. Avatar *string `json:"avatar,optional" validate:"omitempty,max=300"`
  1436. // Department ID | 部门ID
  1437. DepartmentId *uint64 `json:"departmentId,optional,omitempty"`
  1438. // Position ID | 职位ID
  1439. PositionIds []uint64 `json:"positionId,optional,omitempty"`
  1440. }
  1441. // User information response | 用户信息返回体
  1442. // swagger:model UserInfoResp
  1443. type UserInfoResp struct {
  1444. BaseDataInfo
  1445. // User information | User数据
  1446. Data UserInfo `json:"data"`
  1447. }
  1448. // The response data of user's basic information | 用户基本信息返回数据
  1449. // swagger:model UserBaseIDInfoResp
  1450. type UserBaseIDInfoResp struct {
  1451. BaseDataInfo
  1452. // The data of user's basic information | 用户基本信息
  1453. Data UserBaseIDInfo `json:"data"`
  1454. }
  1455. // The data of user's basic information | 用户基本信息
  1456. // swagger:model UserBaseIDInfo
  1457. type UserBaseIDInfo struct {
  1458. // User's UUID | 用户的UUID
  1459. UUID *string `json:"userId"`
  1460. // User's name | 用户名
  1461. Username *string `json:"username"`
  1462. // User's nickname | 用户的昵称
  1463. Nickname *string `json:"nickname"`
  1464. // The user's avatar path | 用户的头像路径
  1465. Avatar *string `json:"avatar"`
  1466. // The home page that the user enters after logging in | 用户登陆后进入的首页
  1467. HomePath *string `json:"homePath"`
  1468. // The description of user | 用户的描述信息
  1469. Description *string `json:"desc"`
  1470. // User's Role Name | 用户的角色名称
  1471. RoleName []string `json:"roleName"`
  1472. // Department Name | 部门名称
  1473. DepartmentName string `json:"departmentName,optional"`
  1474. // Department Name | 部门备注
  1475. DepartmentRemark string `json:"departmentRemark,optional"`
  1476. }
  1477. // swagger:model UserLoginReq
  1478. type UserLoginReq struct {
  1479. JsCode *string `json:"js_code,optional"`
  1480. }
  1481. // swagger:model UserLoginResp
  1482. type UserLoginResp struct {
  1483. BaseDataInfo
  1484. Data UserToken `json:"data,optional"`
  1485. }
  1486. type UserToken struct {
  1487. Token *string `json:"token,optional"`
  1488. ID *uint64 `json:"id,optional"`
  1489. Avatar *string `json:"avatar,optional"`
  1490. Nickname *string `json:"nickname,optional"`
  1491. IsVip *bool `json:"isVip,optional"`
  1492. }
  1493. // swagger:model UserVipResp
  1494. type UserVipResp struct {
  1495. BaseDataInfo
  1496. Data UserVip `json:"data,optional"`
  1497. }
  1498. type UserVip struct {
  1499. IsVip *bool `json:"isVip,optional"`
  1500. WechatAccount *string `json:"wechatAccount"`
  1501. }
  1502. // swagger:model WxidReq
  1503. type WxidReq struct {
  1504. Wxid string `json:"wxid"`
  1505. }
  1506. // The data of batch msg information | BatchMsg信息
  1507. // swagger:model BatchMsgInfo
  1508. type BatchMsgInfo struct {
  1509. BaseIDInfo
  1510. // 状态 0 未开始 1 开始发送 2 发送完成 3 发送中止
  1511. Status *uint8 `json:"status,optional"`
  1512. // 批次号
  1513. BatchNo *string `json:"batchNo,optional"`
  1514. // 任务名称
  1515. TaskName *string `json:"taskName,optional"`
  1516. // 发送方微信ID
  1517. Fromwxid *string `json:"fromwxid,optional"`
  1518. // 内容
  1519. Msg *string `json:"msg,optional"`
  1520. // 发送规则 all 全部 tag1,tag2 按tag发送
  1521. Tag *string `json:"tag,optional"`
  1522. // 总数
  1523. Total *int32 `json:"total,optional"`
  1524. // 成功数量
  1525. Success *int32 `json:"success,optional"`
  1526. // 失败数量
  1527. Fail *int32 `json:"fail,optional"`
  1528. // 开始时间
  1529. StartTime *int64 `json:"startTime,optional"`
  1530. StartTimeStr *string `json:"startTimeStr,optional"`
  1531. // 结束时间
  1532. StopTime *int64 `json:"stopTime,optional"`
  1533. // 发送时间
  1534. SendTime *int64 `json:"sendTime,optional"`
  1535. // 标签列表
  1536. Labels []uint64 `json:"labels,optional"`
  1537. GroupLabels []uint64 `json:"groupLabels,optional"`
  1538. // 标签列表
  1539. Type *int32 `json:"type,optional"`
  1540. }
  1541. // The response data of batch msg list | BatchMsg列表数据
  1542. // swagger:model BatchMsgListResp
  1543. type BatchMsgListResp struct {
  1544. BaseDataInfo
  1545. // BatchMsg list data | BatchMsg列表数据
  1546. Data BatchMsgListInfo `json:"data"`
  1547. }
  1548. // BatchMsg list data | BatchMsg列表数据
  1549. // swagger:model BatchMsgListInfo
  1550. type BatchMsgListInfo struct {
  1551. BaseListInfo
  1552. // The API list data | BatchMsg列表数据
  1553. Data []BatchMsgInfo `json:"data"`
  1554. }
  1555. // Get batch msg list request params | BatchMsg列表请求参数
  1556. // swagger:model BatchMsgListReq
  1557. type BatchMsgListReq struct {
  1558. PageInfo
  1559. // 批次号
  1560. BatchNo *string `json:"batchNo,optional"`
  1561. // 发送方微信ID
  1562. Fromwxid *string `json:"fromwxid,optional"`
  1563. // 内容
  1564. Msg *string `json:"msg,optional"`
  1565. // 任务名称
  1566. TaskName *string `json:"taskName,optional"`
  1567. // 群发类型
  1568. Type *int32 `json:"type"`
  1569. }
  1570. // BatchMsg information response | BatchMsg信息返回体
  1571. // swagger:model BatchMsgInfoResp
  1572. type BatchMsgInfoResp struct {
  1573. BaseDataInfo
  1574. // BatchMsg information | BatchMsg数据
  1575. Data BatchMsgInfo `json:"data"`
  1576. }
  1577. // The data of msg information | Msg信息
  1578. // swagger:model MsgInfo
  1579. type MsgInfo struct {
  1580. BaseIDInfo
  1581. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1582. Status *uint8 `json:"status,optional"`
  1583. // 发送方微信ID
  1584. Fromwxid *string `json:"fromwxid,optional"`
  1585. // 接收人微信ID/群ID
  1586. Toid *string `json:"toid,optional"`
  1587. // 消息类型
  1588. Msgtype *int32 `json:"msgtype,optional"`
  1589. // 消息
  1590. Msg *string `json:"msg,optional"`
  1591. // 批次号
  1592. BatchNo *string `json:"batchNo,optional"`
  1593. }
  1594. // The response data of msg list | Msg列表数据
  1595. // swagger:model MsgListResp
  1596. type MsgListResp struct {
  1597. BaseDataInfo
  1598. // Msg list data | Msg列表数据
  1599. Data MsgListInfo `json:"data"`
  1600. }
  1601. // Msg list data | Msg列表数据
  1602. // swagger:model MsgListInfo
  1603. type MsgListInfo struct {
  1604. BaseListInfo
  1605. // The API list data | Msg列表数据
  1606. Data []MsgInfo `json:"data"`
  1607. }
  1608. // Get msg list request params | Msg列表请求参数
  1609. // swagger:model MsgListReq
  1610. type MsgListReq struct {
  1611. PageInfo
  1612. // 状态
  1613. Status *uint8 `json:"status,optional"`
  1614. // 接收人微信ID/群ID
  1615. Toid *string `json:"toid,optional"`
  1616. // 群发消息ID
  1617. BatchId *uint64 `json:"batchId"`
  1618. }
  1619. // Msg information response | Msg信息返回体
  1620. // swagger:model MsgInfoResp
  1621. type MsgInfoResp struct {
  1622. BaseDataInfo
  1623. // Msg information | Msg数据
  1624. Data MsgInfo `json:"data"`
  1625. }
  1626. // The data of employee information | Employee信息
  1627. // swagger:model EmployeeInfo
  1628. type EmployeeInfo struct {
  1629. BaseIDInfo
  1630. // title | 标题
  1631. Title *string `json:"title,optional"`
  1632. // avatar | 头像
  1633. Avatar *string `json:"avatar,optional"`
  1634. // tags | 个人标签
  1635. Tags *string `json:"tags,optional"`
  1636. // hire_count | 被雇佣次数
  1637. HireCount *int `json:"hireCount,optional"`
  1638. // service_count | 已服务次数
  1639. ServiceCount *int `json:"serviceCount,optional"`
  1640. // achievement_count | 业绩单数
  1641. AchievementCount *int `json:"achievementCount,optional"`
  1642. // category_id | 分类ID
  1643. CategoryId *uint64 `json:"categoryId,optional"`
  1644. // intro | 个人介绍
  1645. Intro *string `json:"intro,optional"`
  1646. // estimate | 自我评价
  1647. Estimate *string `json:"estimate,optional"`
  1648. // skill | 技能卡
  1649. Skill *string `json:"skill,optional"`
  1650. // ability_type | 能力类型
  1651. AbilityType *string `json:"abilityType,optional"`
  1652. // scene | 使用场景
  1653. Scene *string `json:"scene,optional"`
  1654. SceneList []EmployeeConfigInfo `json:"sceneList,optional"`
  1655. // switch_in | 支持介入
  1656. SwitchIn *string `json:"switchIn,optional"`
  1657. SwitchInList []EmployeeConfigInfo `json:"switchInList,optional"`
  1658. Tutorial []TutorialInfo `json:"tutorial,optional"`
  1659. // video_url | 视频地址
  1660. VideoUrl *string `json:"videoUrl,optional"`
  1661. // work_experience | 工作经验
  1662. WorkExperience []WorkExperienceInfo `json:"workExperience,optional"`
  1663. ApiBase *string `json:"apiBase,optional"`
  1664. ApiKey *string `json:"apiKey,optional"`
  1665. // AI信息
  1666. AiInfo *string `json:"aiInfo,optional"`
  1667. ShowChat *bool `json:"showChat,optional"`
  1668. IsVip *bool `json:"isVip,optional"`
  1669. }
  1670. // The response data of employee list | Employee列表数据
  1671. // swagger:model EmployeeListResp
  1672. type EmployeeListResp struct {
  1673. BaseDataInfo
  1674. // Employee list data | Employee列表数据
  1675. Data EmployeeListInfo `json:"data"`
  1676. }
  1677. // Employee list data | Employee列表数据
  1678. // swagger:model EmployeeListInfo
  1679. type EmployeeListInfo struct {
  1680. BaseListInfo
  1681. // The API list data | Employee列表数据
  1682. Data []EmployeeInfo `json:"data"`
  1683. }
  1684. // Get employee list request params | Employee列表请求参数
  1685. // swagger:model EmployeeListReq
  1686. type EmployeeListReq struct {
  1687. PageInfo
  1688. // title | 标题
  1689. Title *string `json:"title,optional"`
  1690. // tags | 个人标签
  1691. Tags *string `json:"tags,optional"`
  1692. // category_id | 分类ID
  1693. CategoryId *uint64 `json:"categoryId,optional"`
  1694. }
  1695. // Employee information response | Employee信息返回体
  1696. // swagger:model EmployeeInfoResp
  1697. type EmployeeInfoResp struct {
  1698. BaseDataInfo
  1699. // Employee information | Employee数据
  1700. Data EmployeeInfo `json:"data"`
  1701. }
  1702. // swagger:model AuthReq
  1703. type AuthReq struct {
  1704. Token *string `json:"token,optional"`
  1705. Data uint64 `json:"data,optional"`
  1706. }
  1707. // swagger:model AuthResp
  1708. type AuthResp struct {
  1709. Token *string `json:"token,optional"`
  1710. Data *uint64 `json:"data,optional"`
  1711. Original interface{} `json:"original,optional"`
  1712. OK interface{} `json:"ok,optional"`
  1713. SecretKey string `json:"secretKey,optional"`
  1714. }
  1715. // The data of work experience information | WorkExperience信息
  1716. // swagger:model WorkExperienceInfo
  1717. type WorkExperienceInfo struct {
  1718. BaseIDInfo
  1719. // employee_id | 员工ID
  1720. EmployeeId *uint64 `json:"employeeId,optional"`
  1721. // start_date | 开始时间
  1722. StartDate *int64 `json:"startDate,optional"`
  1723. StartDateStr *string `json:"startDateStr,optional"`
  1724. // end_date | 结束时间
  1725. EndDate *int64 `json:"endDate,optional"`
  1726. EndDateStr *string `json:"endDateStr,optional"`
  1727. // company | 公司名
  1728. Company *string `json:"company,optional"`
  1729. // experience | 工作内容
  1730. Experience *string `json:"experience,optional"`
  1731. }
  1732. // The response data of work experience list | WorkExperience列表数据
  1733. // swagger:model WorkExperienceListResp
  1734. type WorkExperienceListResp struct {
  1735. BaseDataInfo
  1736. // WorkExperience list data | WorkExperience列表数据
  1737. Data WorkExperienceListInfo `json:"data"`
  1738. }
  1739. // WorkExperience list data | WorkExperience列表数据
  1740. // swagger:model WorkExperienceListInfo
  1741. type WorkExperienceListInfo struct {
  1742. BaseListInfo
  1743. // The API list data | WorkExperience列表数据
  1744. Data []WorkExperienceInfo `json:"data"`
  1745. }
  1746. // Get work experience list request params | WorkExperience列表请求参数
  1747. // swagger:model WorkExperienceListReq
  1748. type WorkExperienceListReq struct {
  1749. PageInfo
  1750. // company | 公司名
  1751. Company *string `json:"company,optional"`
  1752. }
  1753. // WorkExperience information response | WorkExperience信息返回体
  1754. // swagger:model WorkExperienceInfoResp
  1755. type WorkExperienceInfoResp struct {
  1756. BaseDataInfo
  1757. // WorkExperience information | WorkExperience数据
  1758. Data WorkExperienceInfo `json:"data"`
  1759. }
  1760. // The data of tutorial information | Tutorial信息
  1761. // swagger:model TutorialInfo
  1762. type TutorialInfo struct {
  1763. BaseIDInfo
  1764. // employee_id | 员工ID
  1765. EmployeeId *uint64 `json:"employeeId,optional"`
  1766. // index | 序号
  1767. Index *int `json:"index,optional"`
  1768. // title | 标题
  1769. Title *string `json:"title,optional"`
  1770. // content | 内容
  1771. Content *string `json:"content,optional"`
  1772. }
  1773. // The response data of tutorial list | Tutorial列表数据
  1774. // swagger:model TutorialListResp
  1775. type TutorialListResp struct {
  1776. BaseDataInfo
  1777. // Tutorial list data | Tutorial列表数据
  1778. Data TutorialListInfo `json:"data"`
  1779. }
  1780. // Tutorial list data | Tutorial列表数据
  1781. // swagger:model TutorialListInfo
  1782. type TutorialListInfo struct {
  1783. BaseListInfo
  1784. // The API list data | Tutorial列表数据
  1785. Data []TutorialInfo `json:"data"`
  1786. }
  1787. // Get tutorial list request params | Tutorial列表请求参数
  1788. // swagger:model TutorialListReq
  1789. type TutorialListReq struct {
  1790. PageInfo
  1791. // title | 标题
  1792. Title *string `json:"title,optional"`
  1793. // content | 内容
  1794. Content *string `json:"content,optional"`
  1795. }
  1796. // Tutorial information response | Tutorial信息返回体
  1797. // swagger:model TutorialInfoResp
  1798. type TutorialInfoResp struct {
  1799. BaseDataInfo
  1800. // Tutorial information | Tutorial数据
  1801. Data TutorialInfo `json:"data"`
  1802. }
  1803. // The data of employee config information | EmployeeConfig信息
  1804. // swagger:model EmployeeConfigInfo
  1805. type EmployeeConfigInfo struct {
  1806. BaseIDInfo
  1807. // 类型:scene-场景 switch_in-接入方式
  1808. Stype *string `json:"stype,optional"`
  1809. // 标题
  1810. Title *string `json:"title,optional"`
  1811. // 图片地址
  1812. Photo *string `json:"photo,optional"`
  1813. }
  1814. // EmployeeConfig list data | EmployeeConfig列表数据
  1815. // swagger:model EmployeeConfigListInfo
  1816. type EmployeeConfigListInfo struct {
  1817. BaseListInfo
  1818. // The API list data | EmployeeConfig列表数据
  1819. Data []EmployeeConfigInfo `json:"data"`
  1820. }
  1821. // Employee config response | Employee配置信息返回体
  1822. // swagger:model EmployeeConfigListReq
  1823. type EmployeeConfigListReq struct {
  1824. /// 类型:scene-场景 switch_in-接入方式
  1825. Stype *string `json:"stype,optional"`
  1826. }
  1827. // EmployeeConfig information response | EmployeeConfig信息返回体
  1828. type EmployeeConfig struct {
  1829. Scene []EmployeeConfigInfo `json:"scene"`
  1830. SwitchIn []EmployeeConfigInfo `json:"switchIn"`
  1831. }
  1832. // Employee config response | Employee配置信息返回体
  1833. // swagger:model EmployeeConfigListResp
  1834. type EmployeeConfigListResp struct {
  1835. BaseDataInfo
  1836. // Employee information | Employee数据
  1837. Data EmployeeConfig `json:"data"`
  1838. }
  1839. // The data of token information | Token信息
  1840. // swagger:model TokenInfo
  1841. type TokenInfo struct {
  1842. BaseIDInfo
  1843. // 过期时间
  1844. ExpireAt *int64 `json:"expireAt,optional"`
  1845. ExpireAtStr *string `json:"expireAtStr,optional"`
  1846. // Token
  1847. Token *string `json:"token,optional"`
  1848. // Mac地址
  1849. Mac *string `json:"mac,optional"`
  1850. // 租户ID
  1851. OrganizationId *uint64 `json:"organization_id,optional"`
  1852. OrganizationName *string `json:"organizationName,optional"`
  1853. AgentId *uint64 `json:"agent_id,optional"`
  1854. AgentInfo *AgentInfo `json:"agent_info,optional"`
  1855. CustomAgentBase *string `json:"custom_agent_base,optional"`
  1856. CustomAgentKey *string `json:"custom_agent_key,optional"`
  1857. OpenaiBase *string `json:"openai_base,optional"`
  1858. OpenaiKey *string `json:"openai_key,optional"`
  1859. }
  1860. // The response data of token list | Token列表数据
  1861. // swagger:model TokenListResp
  1862. type TokenListResp struct {
  1863. BaseDataInfo
  1864. // Token list data | Token列表数据
  1865. Data TokenListInfo `json:"data"`
  1866. }
  1867. // Token list data | Token列表数据
  1868. // swagger:model TokenListInfo
  1869. type TokenListInfo struct {
  1870. BaseListInfo
  1871. // The API list data | Token列表数据
  1872. Data []TokenInfo `json:"data"`
  1873. }
  1874. // Get token list request params | Token列表请求参数
  1875. // swagger:model TokenListReq
  1876. type TokenListReq struct {
  1877. PageInfo
  1878. // Token
  1879. Token *string `json:"token,optional"`
  1880. // Mac地址
  1881. Mac *string `json:"mac,optional"`
  1882. OrganizationId *uint64 `json:"organization_id,optional"`
  1883. OrganizationName *string `json:"organizationName,optional"`
  1884. }
  1885. // Token information response | Token信息返回体
  1886. // swagger:model TokenInfoResp
  1887. type TokenInfoResp struct {
  1888. BaseDataInfo
  1889. // Token information | Token数据
  1890. Data TokenInfo `json:"data"`
  1891. }
  1892. // swagger:model CheckTokenReq
  1893. type CheckTokenReq struct {
  1894. // Token
  1895. Token *string `json:"token"`
  1896. // Mac地址
  1897. Mac *string `json:"mac"`
  1898. }
  1899. // swagger:model CheckTokenResp
  1900. type CheckTokenResp struct {
  1901. // 是否合法
  1902. Valid *bool `json:"valid"`
  1903. // Sign 签名内容
  1904. Sign *string `json:"sign"`
  1905. // Timestamp 时间戳
  1906. Timestamp *int64 `json:"timestamp"`
  1907. AgentInfo *AgentInfo `json:"agent_info"`
  1908. CustomAgentBase *string `json:"custom_agent_base"`
  1909. CustomAgentKey *string `json:"custom_agent_key"`
  1910. OpenaiBase *string `json:"openai_base"`
  1911. OpenaiKey *string `json:"openai_key"`
  1912. DatasetBase *string `json:"dataset_base"`
  1913. DatasetKey *string `json:"dataset_key"`
  1914. }
  1915. // The data of category information | Category信息
  1916. // swagger:model CategoryInfo
  1917. type CategoryInfo struct {
  1918. BaseIDInfo
  1919. // name | 角色名称
  1920. Name *string `json:"name,optional"`
  1921. // organization_id | 租户ID
  1922. OrganizationId *uint64 `json:"organizationId,optional"`
  1923. }
  1924. // The response data of category list | Category列表数据
  1925. // swagger:model CategoryListResp
  1926. type CategoryListResp struct {
  1927. BaseDataInfo
  1928. // Category list data | Category列表数据
  1929. Data CategoryListInfo `json:"data"`
  1930. }
  1931. // Category list data | Category列表数据
  1932. // swagger:model CategoryListInfo
  1933. type CategoryListInfo struct {
  1934. BaseListInfo
  1935. // The API list data | Category列表数据
  1936. Data []CategoryInfo `json:"data"`
  1937. }
  1938. // Get category list request params | Category列表请求参数
  1939. // swagger:model CategoryListReq
  1940. type CategoryListReq struct {
  1941. PageInfo
  1942. // name | 角色名称
  1943. Name *string `json:"name,optional"`
  1944. }
  1945. // Category information response | Category信息返回体
  1946. // swagger:model CategoryInfoResp
  1947. type CategoryInfoResp struct {
  1948. BaseDataInfo
  1949. // Category information | Category数据
  1950. Data CategoryInfo `json:"data"`
  1951. }
  1952. // The data of agent base information | AgentBase信息
  1953. // swagger:model AgentBaseInfo
  1954. type AgentBaseInfo struct {
  1955. Id *string `json:"id,optional"`
  1956. }
  1957. // The response data of agent base list | AgentBase列表数据
  1958. // swagger:model AgentBaseListResp
  1959. type AgentBaseListResp struct {
  1960. BaseDataInfo
  1961. // AgentBase list data | AgentBase列表数据
  1962. Data AgentBaseListInfo `json:"data"`
  1963. }
  1964. // AgentBase list data | AgentBase列表数据
  1965. // swagger:model AgentBaseListInfo
  1966. type AgentBaseListInfo struct {
  1967. BaseListInfo
  1968. // The API list data | AgentBase列表数据
  1969. Data []AgentBaseInfo `json:"data"`
  1970. }
  1971. // Get agent base list request params | AgentBase列表请求参数
  1972. // swagger:model AgentBaseListReq
  1973. type AgentBaseListReq struct {
  1974. PageInfo
  1975. // q
  1976. Q *string `json:"q,optional"`
  1977. // a
  1978. A *string `json:"a,optional"`
  1979. // dataset_id
  1980. DatasetId *string `json:"datasetId,optional"`
  1981. }
  1982. // AgentBase information response | AgentBase信息返回体
  1983. // swagger:model AgentBaseInfoResp
  1984. type AgentBaseInfoResp struct {
  1985. BaseDataInfo
  1986. // AgentBase information | AgentBase数据
  1987. Data AgentBaseInfo `json:"data"`
  1988. }
  1989. // The data of chat records information | ChatRecords信息
  1990. // swagger:model ChatRecordsInfo
  1991. type ChatRecordsInfo struct {
  1992. BaseIDInfo
  1993. // 内容
  1994. Content *string `json:"content,optional"`
  1995. // 内容类型:1-提问 2-回答
  1996. ContentType *uint8 `json:"contentType,optional"`
  1997. // 会话ID
  1998. SessionId *uint64 `json:"sessionId,optional"`
  1999. // 用户ID
  2000. UserId *uint64 `json:"userId,optional"`
  2001. // 聊天ID
  2002. BotId *uint64 `json:"botId,optional"`
  2003. // 类型:1-微信 2-小程序card 3-智能体
  2004. BotType *uint8 `json:"botType,optional,options=1|2|3"`
  2005. Finish bool `json:"finish,optional"`
  2006. }
  2007. // The response data of chat records list | ChatRecords列表数据
  2008. // swagger:model ChatRecordsListResp
  2009. type ChatRecordsListResp struct {
  2010. BaseDataInfo
  2011. // ChatRecords list data | ChatRecords列表数据
  2012. Data ChatRecordsListInfo `json:"data"`
  2013. }
  2014. // ChatRecords list data | ChatRecords列表数据
  2015. // swagger:model ChatRecordsListInfo
  2016. type ChatRecordsListInfo struct {
  2017. BaseListInfo
  2018. // The API list data | ChatRecords列表数据
  2019. Data []ChatRecordsInfo `json:"data"`
  2020. }
  2021. // Get chat records list request params | ChatRecords列表请求参数
  2022. // swagger:model ChatRecordsListReq
  2023. type ChatRecordsListReq struct {
  2024. PageInfo
  2025. SessionId *uint64 `json:"sessionId,optional"`
  2026. BotId *uint64 `json:"botId,optional"`
  2027. BotType *uint8 `json:"botType,optional"`
  2028. }
  2029. // ChatRecords information response | ChatRecords信息返回体
  2030. // swagger:model ChatRecordsInfoResp
  2031. type ChatRecordsInfoResp struct {
  2032. BaseDataInfo
  2033. // ChatRecords information | ChatRecords数据
  2034. Data ChatRecordsInfo `json:"data"`
  2035. }
  2036. // swagger:model ChatRecommendReq
  2037. type ChatRecommendReq struct {
  2038. SessionId *uint64 `json:"sessionId"`
  2039. }
  2040. // swagger:model ChatRecommendResp
  2041. type ChatRecommendResp struct {
  2042. BaseDataInfo
  2043. // The API list data | ChatRecords列表数据
  2044. Data ChatRecommend `json:"data"`
  2045. }
  2046. type ChatRecommend struct {
  2047. Data []string `json:"data"`
  2048. SessionId uint64 `json:"sessionId"`
  2049. }
  2050. // swagger:model ChatAskReq
  2051. type ChatAskReq struct {
  2052. CardId *uint64 `json:"cardId"`
  2053. Question *string `json:"question"`
  2054. SessionId *int `json:"sessionId"`
  2055. }
  2056. // swagger:model ChatAskResp
  2057. type ChatAskResp struct {
  2058. BaseDataInfo
  2059. Data *string `json:"data"`
  2060. }
  2061. // The data of chat session information | ChatSession信息
  2062. // swagger:model ChatSessionInfo
  2063. type ChatSessionInfo struct {
  2064. BaseIDInfo
  2065. // 名称
  2066. Name *string `json:"name,optional"`
  2067. // 用户ID
  2068. UserId *uint64 `json:"userId,optional"`
  2069. // 聊天ID
  2070. BotId *uint64 `json:"botId,optional"`
  2071. // 类型:1-微信 2-小程序card 3-智能体
  2072. BotType *uint8 `json:"botType,optional"`
  2073. }
  2074. // The response data of chat session list | ChatSession列表数据
  2075. // swagger:model ChatSessionListResp
  2076. type ChatSessionListResp struct {
  2077. BaseDataInfo
  2078. // ChatSession list data | ChatSession列表数据
  2079. Data ChatSessionListInfo `json:"data"`
  2080. }
  2081. // ChatSession list data | ChatSession列表数据
  2082. // swagger:model ChatSessionListInfo
  2083. type ChatSessionListInfo struct {
  2084. BaseListInfo
  2085. // The API list data | ChatSession列表数据
  2086. Data []ChatSessionInfo `json:"data"`
  2087. }
  2088. // Get chat session list request params | ChatSession列表请求参数
  2089. // swagger:model ChatSessionListReq
  2090. type ChatSessionListReq struct {
  2091. PageInfo
  2092. BotId *uint64 `json:"botId,optional"`
  2093. BotType *uint8 `json:"botType,optional"`
  2094. }
  2095. // ChatSession information response | ChatSession信息返回体
  2096. // swagger:model ChatSessionInfoResp
  2097. type ChatSessionInfoResp struct {
  2098. BaseDataInfo
  2099. // ChatSession information | ChatSession数据
  2100. Data ChatSessionInfo `json:"data"`
  2101. }
  2102. // The data of wx card information | WxCard信息
  2103. // swagger:model WxCardInfo
  2104. type WxCardInfo struct {
  2105. BaseIDInfo
  2106. // user表ID
  2107. UserId *uint64 `json:"userId,optional"`
  2108. // wx表ID
  2109. WxUserId *uint64 `json:"wxUserId,optional"`
  2110. // 头像
  2111. Avatar *string `json:"avatar,optional"`
  2112. // logo
  2113. Logo *string `json:"logo,optional"`
  2114. // 名称
  2115. Name *string `json:"name,optional"`
  2116. // 公司
  2117. Company *string `json:"company,optional"`
  2118. // 地址
  2119. Address *string `json:"address,optional"`
  2120. // 手机号
  2121. Phone *string `json:"phone,optional"`
  2122. // 公众号
  2123. OfficialAccount *string `json:"officialAccount,optional"`
  2124. // 微信号
  2125. WechatAccount *string `json:"wechatAccount,optional"`
  2126. // 邮箱
  2127. Email *string `json:"email,optional"`
  2128. // 聊天信息
  2129. ApiBase *string `json:"apiBase,optional"`
  2130. ApiKey *string `json:"apiKey,optional"`
  2131. // AI信息
  2132. AiInfo *string `json:"aiInfo,optional"`
  2133. // 个人介绍
  2134. Intro *string `json:"intro,optional"`
  2135. ShowChat *bool `json:"showChat,optioal"`
  2136. ShowAi *bool `json:"showAi,optional"`
  2137. IsVip *bool `json:"isVip,optional"`
  2138. }
  2139. // swagger:model WxCardSimpleInfo
  2140. type WxCardSimpleInfo struct {
  2141. ID *uint64 `json:"id,optional"`
  2142. // 头像
  2143. Avatar *string `json:"avatar,optional"`
  2144. // 名称
  2145. Name *string `json:"name,optional"`
  2146. }
  2147. // The response data of wx card list | WxCard列表数据
  2148. // swagger:model WxCardListResp
  2149. type WxCardListResp struct {
  2150. BaseDataInfo
  2151. // WxCard list data | WxCard列表数据
  2152. Data WxCardListInfo `json:"data"`
  2153. }
  2154. // WxCard list data | WxCard列表数据
  2155. // swagger:model WxCardListInfo
  2156. type WxCardListInfo struct {
  2157. BaseListInfo
  2158. // The API list data | WxCard列表数据
  2159. Data []WxCardInfo `json:"data"`
  2160. }
  2161. // Get wx card list request params | WxCard列表请求参数
  2162. // swagger:model WxCardListReq
  2163. type WxCardListReq struct {
  2164. PageInfo
  2165. // 头像
  2166. Avatar *string `json:"avatar,optional"`
  2167. // logo
  2168. Logo *string `json:"logo,optional"`
  2169. // 名称
  2170. Name *string `json:"name,optional"`
  2171. }
  2172. // WxCard information response | WxCard信息返回体
  2173. // swagger:model WxCardInfoResp
  2174. type WxCardInfoResp struct {
  2175. BaseDataInfo
  2176. // WxCard information | WxCard数据
  2177. Data WxCardInfo `json:"data"`
  2178. }
  2179. // swagger:model QrcodeReq
  2180. type QrcodeReq struct {
  2181. Path string `form:"path"`
  2182. Width int64 `form:"width"`
  2183. EnvVersion string `form:"envVersion"`
  2184. }
  2185. // The data of wx card user information | WxCardUser信息
  2186. // swagger:model WxCardUserInfo
  2187. type WxCardUserInfo struct {
  2188. BaseIDInfo
  2189. // 微信id
  2190. Wxid *string `json:"wxid,optional"`
  2191. // 微信号
  2192. Account *string `json:"account,optional"`
  2193. // 头像
  2194. Avatar *string `json:"avatar,optional"`
  2195. // 昵称
  2196. Nickname *string `json:"nickname,optional"`
  2197. // 备注名
  2198. Remark *string `json:"remark,optional"`
  2199. // 手机号
  2200. Phone *string `json:"phone,optional"`
  2201. // OpenID
  2202. OpenId *string `json:"openId,optional"`
  2203. // UnionID
  2204. UnionId *string `json:"unionId,optional"`
  2205. // SessionKey
  2206. SessionKey *string `json:"sessionKey,optional"`
  2207. // IsVip
  2208. IsVip *string `json:"isVip,optional"`
  2209. }
  2210. // The response data of wx card user list | WxCardUser列表数据
  2211. // swagger:model WxCardUserListResp
  2212. type WxCardUserListResp struct {
  2213. BaseDataInfo
  2214. // WxCardUser list data | WxCardUser列表数据
  2215. Data WxCardUserListInfo `json:"data"`
  2216. }
  2217. // WxCardUser list data | WxCardUser列表数据
  2218. // swagger:model WxCardUserListInfo
  2219. type WxCardUserListInfo struct {
  2220. BaseListInfo
  2221. // The API list data | WxCardUser列表数据
  2222. Data []WxCardUserInfo `json:"data"`
  2223. }
  2224. // Get wx card user list request params | WxCardUser列表请求参数
  2225. // swagger:model WxCardUserListReq
  2226. type WxCardUserListReq struct {
  2227. PageInfo
  2228. // 微信id
  2229. Wxid *string `json:"wxid,optional"`
  2230. // 微信号
  2231. Account *string `json:"account,optional"`
  2232. // 头像
  2233. Avatar *string `json:"avatar,optional"`
  2234. }
  2235. // WxCardUser information response | WxCardUser信息返回体
  2236. // swagger:model WxCardUserInfoResp
  2237. type WxCardUserInfoResp struct {
  2238. BaseDataInfo
  2239. // WxCardUser information | WxCardUser数据
  2240. Data WxCardUserInfo `json:"data"`
  2241. }
  2242. // The data of wx card visit information | WxCardVisit信息
  2243. // swagger:model WxCardVisitInfo
  2244. type WxCardVisitInfo struct {
  2245. BaseIDInfo
  2246. // user表ID
  2247. UserId *uint64 `json:"userId,optional"`
  2248. // 被访ID
  2249. BotId *uint64 `json:"botId,optional"`
  2250. // 类型:1-微信 2-小程序 3-智能体
  2251. BotType *uint8 `json:"botType,optional"`
  2252. CardInfo WxCardSimpleInfo `json:"cardInfo,optional,omitempty"`
  2253. }
  2254. // swagger:model WxCardVisitReq
  2255. type WxCardVisitReq struct {
  2256. BaseIDInfo
  2257. // user表ID
  2258. UserId *uint64 `json:"userId,optional"`
  2259. // 被访ID
  2260. BotId *uint64 `json:"botId,optional"`
  2261. // 类型:1-微信 2-小程序 3-智能体
  2262. BotType *uint8 `json:"botType,optional"`
  2263. }
  2264. // swagger:model WxCardVisitSingleInfo
  2265. type WxCardVisitSingleInfo struct {
  2266. BaseIDInfo
  2267. // user表ID
  2268. UserId *uint64 `json:"userId,optional"`
  2269. // 被访ID
  2270. BotId *uint64 `json:"botId,optional"`
  2271. // 类型:1-微信 2-小程序 3-智能体
  2272. BotType *uint8 `json:"botType,optional"`
  2273. CardInfo WxCardInfo `json:"cardInfo,optional"`
  2274. }
  2275. // The response data of wx card visit list | WxCardVisit列表数据
  2276. // swagger:model WxCardVisitListResp
  2277. type WxCardVisitListResp struct {
  2278. BaseDataInfo
  2279. // WxCardVisit list data | WxCardVisit列表数据
  2280. Data WxCardVisitListInfo `json:"data"`
  2281. }
  2282. // WxCardVisit list data | WxCardVisit列表数据
  2283. // swagger:model WxCardVisitListInfo
  2284. type WxCardVisitListInfo struct {
  2285. BaseListInfo
  2286. // The API list data | WxCardVisit列表数据
  2287. Data []WxCardVisitInfo `json:"data"`
  2288. }
  2289. // Get wx card visit list request params | WxCardVisit列表请求参数
  2290. // swagger:model WxCardVisitListReq
  2291. type WxCardVisitListReq struct {
  2292. PageInfo
  2293. }
  2294. // WxCardVisit information response | WxCardVisit信息返回体
  2295. // swagger:model WxCardVisitInfoResp
  2296. type WxCardVisitInfoResp struct {
  2297. BaseDataInfo
  2298. // WxCardVisit information | WxCardVisit数据
  2299. Data WxCardVisitInfo `json:"data"`
  2300. }
  2301. // swagger:model AvatarInfo
  2302. type AvatarInfo struct {
  2303. RequestId *string `json:"requestId"`
  2304. SessionId *string `json:"SessionId"`
  2305. Token *string `json:"token"`
  2306. Channel Channel `json:"channel"`
  2307. }
  2308. type Channel struct {
  2309. ChannelId *string `json:"channelId"`
  2310. Token *string `json:"token"`
  2311. Type *string `json:"type"`
  2312. ExpiredTime *string `json:"expiredTime"`
  2313. Nonce *string `json:"nonce"`
  2314. UserId *string `json:"userId"`
  2315. AppId *string `json:"appId"`
  2316. UserInfoInChannel *string `json:"userInfoInChannel"`
  2317. Gslb []*string `json:"gslb"`
  2318. }
  2319. // start avatar request | 启动数字人
  2320. // swagger:model AvatarConfigReq
  2321. type AvatarConfigReq struct {
  2322. // 名片 ID
  2323. CardId *uint64 `json:"card_id,optional"`
  2324. }
  2325. // start avatar response | 启动数字人
  2326. // swagger:model AvatarConfigResp
  2327. type AvatarConfigResp struct {
  2328. BaseDataInfo
  2329. // Agent information | Agent数据
  2330. Data AvatarInfo `json:"data"`
  2331. Extra Extra `json:"extra"`
  2332. }
  2333. type Extra struct {
  2334. Live int64 `json:"live"`
  2335. Total int64 `json:"total"`
  2336. }
  2337. // swagger:model AvatarStsResp
  2338. type AvatarStsResp struct {
  2339. BaseDataInfo
  2340. // Sts information | Sts 数据
  2341. Data StsInfo `json:"data"`
  2342. }
  2343. // swagger:model StsInfo
  2344. type StsInfo struct {
  2345. Expiration *string `json:"expiration"`
  2346. AccessKeyId *string `json:"accessKeyId"`
  2347. AccessKeySecret *string `json:"accessKeySecret"`
  2348. SecurityToken *string `json:"securityToken"`
  2349. RequestId *string `json:"requestId"`
  2350. }
  2351. // swagger:model AvatarSignatureResp
  2352. type AvatarSignatureResp struct {
  2353. BaseDataInfo
  2354. // Sts information | Sts 数据
  2355. Data SignatureInfo `json:"data"`
  2356. }
  2357. // swagger:model SignatureInfo
  2358. type SignatureInfo struct {
  2359. Key *string `json:"key"`
  2360. OSSAccessKeyId *string `json:"OSSAccessKeyId"`
  2361. Policy *string `json:"policy"`
  2362. Signature *string `json:"signature"`
  2363. }
  2364. // send text | 数字人-发送消息
  2365. // swagger:model SendTextReq
  2366. type SendTextReq struct {
  2367. CardId *uint64 `json:"cardId"`
  2368. SessionId *string `json:"sessionId"`
  2369. Text *string `json:"text"`
  2370. IsStream *bool `json:"isStream,optional"`
  2371. Index *int32 `json:"index,optional"`
  2372. Position *string `json:"position,optional"`
  2373. }
  2374. // swagger:model SendTextResp
  2375. type SendTextResp struct {
  2376. BaseDataInfo
  2377. Data SendText `json:"data"`
  2378. }
  2379. type SendText struct {
  2380. SessionId *string `json:"sessionId"`
  2381. UniqueCode *string `json:"uniqueCode"`
  2382. }
  2383. // stop instance | 数字人-停止实例
  2384. // swagger:model StopInstanceReq
  2385. type StopInstanceReq struct {
  2386. CardId *uint64 `json:"cardId"`
  2387. SessionId *string `json:"sessionId"`
  2388. }
  2389. // swagger:model StopInstanceResp
  2390. type StopInstanceResp struct {
  2391. BaseDataInfo
  2392. Data StopInstance `json:"data"`
  2393. }
  2394. type StopInstance struct {
  2395. SessionId *string `json:"sessionId"`
  2396. RequestId *string `json:"requestId"`
  2397. }
  2398. // The data of aliyun avatar information | AliyunAvatar信息
  2399. // swagger:model AliyunAvatarInfo
  2400. type AliyunAvatarInfo struct {
  2401. BaseIDInfo
  2402. // user_id | wx_card_user_id
  2403. UserId *uint64 `json:"userId,optional"`
  2404. // biz_id | BizId
  2405. BizId *string `json:"bizId,optional"`
  2406. // access_key_id | AccessKeyId
  2407. AccessKeyId *string `json:"accessKeyId,optional"`
  2408. // access_key_secret | AccessKeySecret
  2409. AccessKeySecret *string `json:"accessKeySecret,optional"`
  2410. // app_id | AppId
  2411. AppId *string `json:"appId,optional"`
  2412. // tenant_id | TenantId
  2413. TenantId *uint64 `json:"TenantId,optional"`
  2414. // response | 阿里云avatar响应
  2415. Response *string `json:"response,optional"`
  2416. // token | Token
  2417. Token *string `json:"token,optional"`
  2418. // session_id | SessionId
  2419. SessionId *string `json:"sessionId,optional"`
  2420. }
  2421. // The response data of aliyun avatar list | AliyunAvatar列表数据
  2422. // swagger:model AliyunAvatarListResp
  2423. type AliyunAvatarListResp struct {
  2424. BaseDataInfo
  2425. // AliyunAvatar list data | AliyunAvatar列表数据
  2426. Data AliyunAvatarListInfo `json:"data"`
  2427. }
  2428. // AliyunAvatar list data | AliyunAvatar列表数据
  2429. // swagger:model AliyunAvatarListInfo
  2430. type AliyunAvatarListInfo struct {
  2431. BaseListInfo
  2432. // The API list data | AliyunAvatar列表数据
  2433. Data []AliyunAvatarInfo `json:"data"`
  2434. }
  2435. // Get aliyun avatar list request params | AliyunAvatar列表请求参数
  2436. // swagger:model AliyunAvatarListReq
  2437. type AliyunAvatarListReq struct {
  2438. PageInfo
  2439. // biz_id | BizId
  2440. BizId *string `json:"bizId,optional"`
  2441. // access_key_id | AccessKeyId
  2442. AccessKeyId *string `json:"accessKeyId,optional"`
  2443. // access_key_secret | AccessKeySecret
  2444. AccessKeySecret *string `json:"accessKeySecret,optional"`
  2445. }
  2446. // AliyunAvatar information response | AliyunAvatar信息返回体
  2447. // swagger:model AliyunAvatarInfoResp
  2448. type AliyunAvatarInfoResp struct {
  2449. BaseDataInfo
  2450. // AliyunAvatar information | AliyunAvatar数据
  2451. Data AliyunAvatarInfo `json:"data"`
  2452. }