types.go 83 KB

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