types.go 115 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007
  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. // Get wx list request params | Wx列表请求参数
  354. // swagger:model WxSelectListReq
  355. type WxSelectListReq struct {
  356. // 租户id
  357. OrganizationId *uint64 `json:"organizationId,optional"`
  358. }
  359. // The response data of wx list | Wx列表数据
  360. // swagger:model WxSelectListResp
  361. type WxSelectListResp struct {
  362. BaseDataInfo
  363. // Wx list data | Wx列表数据
  364. Data []WxSelectListInfo `json:"data"`
  365. }
  366. // swagger:model WxSelectListInfo
  367. type WxSelectListInfo struct {
  368. BaseIDInfo
  369. // 微信id
  370. Wxid *string `json:"wxid,optional"`
  371. // 微信昵称
  372. Nickname *string `json:"nickname,optional"`
  373. }
  374. // Wx information response | Wx信息返回体
  375. // swagger:model WxInfoResp
  376. type WxInfoResp struct {
  377. BaseDataInfo
  378. // Wx information | Wx数据
  379. Data WxInfo `json:"data"`
  380. }
  381. // 获取黑白名单列表返回体
  382. // swagger:model AllowBlockListResp
  383. type AllowBlockListResp struct {
  384. BaseDataInfo
  385. // Wx information | Wx数据
  386. Data AllowBlockListRespData `json:"data"`
  387. }
  388. // AllowBlockListRespData
  389. type AllowBlockListRespData struct {
  390. // 白名单
  391. AllowList []*AllowBlockData `json:"allowList,optional"`
  392. // 群白名单
  393. GroupAllowList []*AllowBlockData `json:"groupAllowList,optional"`
  394. // 黑名单
  395. BlockList []*AllowBlockData `json:"blockList,optional"`
  396. // 群黑名单
  397. GroupBlockList []*AllowBlockData `json:"groupBlockList,optional"`
  398. }
  399. // AllowBlockData
  400. type AllowBlockData struct {
  401. // 微信id 公众号微信ID
  402. Wxid string `json:"wxid,optional"`
  403. // 微信昵称 群备注名称
  404. Nickname string `json:"nickname,optional"`
  405. }
  406. // The data of agent information | Agent信息
  407. // swagger:model AgentInfo
  408. type AgentInfo struct {
  409. BaseIDInfo
  410. // name | 角色名称
  411. Name *string `json:"name,optional"`
  412. // role | 角色设定
  413. Role *string `json:"role,optional"`
  414. // status | 状态 1-正常 2-禁用
  415. Status *int `json:"status,optional"`
  416. // background | 背景介绍
  417. Background *string `json:"background,optional"`
  418. // examples | 对话案例
  419. Examples *string `json:"examples,optional"`
  420. DatasetId *string `json:"dataset_id,optional"`
  421. CollectionId *string `json:"collection_id,optional"`
  422. }
  423. // The response data of agent list | Agent列表数据
  424. // swagger:model AgentListResp
  425. type AgentListResp struct {
  426. BaseDataInfo
  427. // Agent list data | Agent列表数据
  428. Data AgentListInfo `json:"data"`
  429. }
  430. // Agent list data | Agent列表数据
  431. // swagger:model AgentListInfo
  432. type AgentListInfo struct {
  433. BaseListInfo
  434. // The API list data | Agent列表数据
  435. Data []AgentInfo `json:"data"`
  436. }
  437. // Get agent list request params | Agent列表请求参数
  438. // swagger:model AgentListReq
  439. type AgentListReq struct {
  440. PageInfo
  441. // name | 角色名称
  442. Name *string `json:"name,optional"`
  443. // role | 角色设定
  444. Role *string `json:"role,optional"`
  445. // background | 背景介绍
  446. Background *string `json:"background,optional"`
  447. // status | 状态 1-可用 2-不可用
  448. Status *int `json:"status,optional"`
  449. // 租户id
  450. OrganizationId *uint64 `json:"organizationId,optional"`
  451. }
  452. // Agent information response | Agent信息返回体
  453. // swagger:model AgentInfoResp
  454. type AgentInfoResp struct {
  455. BaseDataInfo
  456. // Agent information | Agent数据
  457. Data AgentInfo `json:"data"`
  458. }
  459. type VectorModel struct {
  460. Model *string `json:"model"`
  461. Name *string `json:"name"`
  462. CharsPointsPrice *uint64 `json:"charsPointsPrice"`
  463. DefaultToken *uint64 `json:"defaultToken"`
  464. MaxToken *uint64 `json:"maxToken"`
  465. Weight *uint64 `json:"weight"`
  466. }
  467. type AgentModel struct {
  468. Model *string `json:"model"`
  469. Name *string `json:"name"`
  470. MaxContext *uint64 `json:"maxContext"`
  471. MaxResponse *uint64 `json:"maxResponse"`
  472. CharsPointsPrice *uint64 `json:"charsPointsPrice"`
  473. }
  474. type DatasetId struct {
  475. ID *string `json:"id"`
  476. ParentID *string `json:"parentId"`
  477. TeamId *string `json:"teamId"`
  478. TmbId *string `json:"tmbId"`
  479. Type *string `json:"type"`
  480. Status *string `json:"status"`
  481. Avatar *string `json:"avatar"`
  482. Name *string `json:"name"`
  483. VectorModel *string `json:"vectorModel"`
  484. AgentModel *string `json:"agentModel"`
  485. Intro *string `json:"intro"`
  486. }
  487. // Dataset info | 知识库详情
  488. // swagger:model DatasetInfo
  489. type DatasetInfo struct {
  490. ID *string `json:"id"`
  491. ParentID *string `json:"parentId"`
  492. TeamId *string `json:"teamId"`
  493. TmbId *string `json:"tmbId"`
  494. Type *string `json:"type"`
  495. Name *string `json:"name"`
  496. Intro *string `json:"intro"`
  497. Status *string `json:"status"`
  498. Avatar *string `json:"avatar"`
  499. VectorModel VectorModel `json:"vectorModel"`
  500. AgentModel AgentModel `json:"agentModel"`
  501. Permission *string `json:"permission"`
  502. CanWrite *bool `json:"canWrite"`
  503. IsOwner *bool `json:"isOwner"`
  504. }
  505. type Index struct {
  506. DefaultIndex *bool `json:"defaultIndex"`
  507. Type *string `json:"type"`
  508. DataId *string `json:"dataId"`
  509. Text *string `json:"text"`
  510. ID *string `json:"id"`
  511. }
  512. // Collection Info | 集合详情
  513. // swagger:model CollectionInfo
  514. type CollectionInfo struct {
  515. ID *string `json:"id"`
  516. ParentID *string `json:"parentId"`
  517. TmbId *string `json:"tmbId,optional"`
  518. Type *string `json:"type"`
  519. Name *string `json:"name"`
  520. DataAmount *uint64 `json:"dataAmount,optional"`
  521. TrainingAmount *uint64 `json:"trainingAmount,optional"`
  522. TrainingType *string `json:"trainingType,optional"`
  523. ChunkSize *uint64 `json:"chunkSize,optional"`
  524. ChunkSplitter *string `json:"chunkSplitter,optional"`
  525. QaPrompt *string `json:"qaPrompt,optional"`
  526. RawTextLength *uint64 `json:"rawTextLength,optional"`
  527. CanWrite *bool `json:"canWrite,optional"`
  528. SourceName *string `json:"sourceName,optional"`
  529. DatasetId DatasetId `json:"datasetId,optional"`
  530. }
  531. // swagger:model CollectionDetailReq
  532. type CollectionDetailReq struct {
  533. ID *string `json:"id"`
  534. }
  535. // swagger:model CollectionInfoResp
  536. type CollectionInfoResp struct {
  537. BaseDataInfo
  538. Data CollectionInfo `json:"data"`
  539. }
  540. // swagger:model DataDetailReq
  541. type DataDetailReq struct {
  542. ID *string `json:"id"`
  543. }
  544. // swagger:model DataDetailResp
  545. type DataDetailResp struct {
  546. BaseDataInfo
  547. Data DataInfo `json:"data"`
  548. }
  549. // swagger:model CollectionSimpleInfo
  550. type CollectionSimpleInfo struct {
  551. ID *string `json:"id"`
  552. ParentID *string `json:"parentId"`
  553. TmbId *string `json:"tmbId,optional"`
  554. Type *string `json:"type"`
  555. Name *string `json:"name"`
  556. DataAmount *uint64 `json:"dataAmount,optional"`
  557. TrainingAmount *uint64 `json:"trainingAmount,optional"`
  558. }
  559. // swagger:model DataInfo
  560. type DataInfo struct {
  561. ID *string `json:"id"`
  562. Q *string `json:"q"`
  563. A *string `json:"a"`
  564. ChunkIndex *uint64 `json:"chunkIndex"`
  565. Indexes []Index `json:"indexes"`
  566. DatasetId *string `json:"datasetId"`
  567. CollectionId *string `json:"collectionId"`
  568. SourceName *string `json:"sourceName"`
  569. CanWrite *bool `json:"canWrite"`
  570. IsOwner *bool `json:"isOwner"`
  571. }
  572. // swagger:model DataSimpleInfo
  573. type DataSimpleInfo struct {
  574. ID *string `json:"id"`
  575. Q *string `json:"q"`
  576. A *string `json:"a"`
  577. ChunkIndex *uint64 `json:"chunkIndex"`
  578. DatasetId *string `json:"datasetId"`
  579. CollectionId *string `json:"collectionId"`
  580. }
  581. // Get collection list request params | Collection列表请求参数
  582. // swagger:model CollectionListReq
  583. type CollectionListReq struct {
  584. // required : true
  585. // min : 0
  586. PageNum *int `json:"pageNum" validate:"required,number,gt=0"`
  587. // required : true
  588. // max : 100000
  589. PageSize *int `json:"pageSize" validate:"required,number,lt=100000"`
  590. // required : true
  591. DatasetId *string `json:"datasetId" validate:"required"`
  592. }
  593. // Collection list response | Collection List信息返回体
  594. // swagger:model CollectionListResp
  595. type CollectionListResp struct {
  596. BaseDataInfo
  597. // Agent information | Agent数据
  598. Data []CollectionSimpleInfo `json:"data"`
  599. // required : true
  600. // min : 0
  601. PageNum *int `json:"pageNum" validate:"required,number,gt=0"`
  602. // required : true
  603. // max : 100000
  604. PageSize *int `json:"pageSize" validate:"required,number,lt=100000"`
  605. Total *int `json:"total"`
  606. }
  607. // Get collection list request params | Collection列表请求参数
  608. // swagger:model DataListReq
  609. type DataListReq struct {
  610. // required : true
  611. // min : 0
  612. Page *int `json:"page" validate:"required,number,gt=0"`
  613. // required : true
  614. // max : 100000
  615. PageSize *int `json:"pageSize" validate:"required,number,lt=100000"`
  616. // required : true
  617. CollectionId *string `json:"collectionId" validate:"required"`
  618. }
  619. // Data list response | Data List信息返回体
  620. // swagger:model DataListResp
  621. type DataListResp struct {
  622. BaseDataInfo
  623. // Agent information | Agent数据
  624. Data BatchSimpleInfo `json:"data"`
  625. }
  626. // swagger:model BatchSimpleInfo
  627. type BatchSimpleInfo struct {
  628. BaseListInfo
  629. // The API list data | BatchMsg列表数据
  630. Data []DataSimpleInfo `json:"data"`
  631. }
  632. // Data create request | 信息请求体
  633. // swagger:model CreateDataInfoReq
  634. type CreateDataInfoReq struct {
  635. // required : true
  636. CollectionId *string `json:"collectionId" validate:"required"`
  637. // Q
  638. // required : true
  639. Q *string `json:"q" validate:"required"`
  640. // A
  641. // required : true
  642. A *string `json:"a" validate:"required"`
  643. }
  644. // IndexSingle {
  645. // Text A *string `json:"text"`
  646. // }
  647. //
  648. // Data create request | 信息返回体
  649. // swagger:model UpdateDataInfoReq
  650. type UpdateDataInfoReq struct {
  651. // ID
  652. // required : true
  653. DataId *string `json:"id" validate:"required"`
  654. // Q
  655. // required : true
  656. Q *string `json:"q" validate:"required"`
  657. // A
  658. // required : true
  659. A *string `json:"a" validate:"required"`
  660. }
  661. // swagger:model DeleteDataReq
  662. type DeleteDataReq struct {
  663. // required : true
  664. ID *string `json:"id" validate:"required"`
  665. }
  666. // swagger:model UploadDataReq
  667. type UploadDataReq struct {
  668. AgentId *string `form:"agentId"`
  669. }
  670. type BatchDeleteIds struct {
  671. Ids []string `json:"ids"`
  672. }
  673. // ContactLabelList | Contact标签列表
  674. type ContactLabelList struct {
  675. // label
  676. Label *string `json:"label,optional"`
  677. // value
  678. Value *uint64 `json:"value,optional"`
  679. }
  680. // The response data of contact information | Contact信息
  681. // swagger:model ContactInfo
  682. type ContactInfo struct {
  683. BaseIDInfo
  684. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  685. Status *uint8 `json:"status,optional"`
  686. // 属主微信id
  687. WxWxid *string `json:"wxWxid,optional"`
  688. // 属主微信昵称
  689. WxWxidNickname *string `json:"wxWxidNickname,optional"`
  690. // 联系人类型:1好友,2群组,3公众号,4企业微信联系人
  691. Type *int `json:"type,optional"`
  692. // 微信id 公众号微信ID
  693. Wxid *string `json:"wxid,optional"`
  694. // 微信账号
  695. Account *string `json:"account,optional"`
  696. // 微信昵称 群备注名称
  697. Nickname *string `json:"nickname,optional"`
  698. // 备注名
  699. Markname *string `json:"markname,optional"`
  700. // 头像
  701. Headimg *string `json:"headimg,optional"`
  702. // 性别 0未知 1男 2女
  703. Sex *int `json:"sex,optional"`
  704. // 星标 65/67=星标 1/3=未星标
  705. Starrole *string `json:"starrole,optional"`
  706. // 不让他看我的朋友圈 0可以看 1不让看
  707. Dontseeit *int `json:"dontseeit,optional"`
  708. // 不看他的朋友圈 0可以看 1不看 1=开启了不看他 128/129=仅聊天
  709. Dontseeme *int `json:"dontseeme,optional"`
  710. // 所属标签id清单,多开会用逗号隔开
  711. Lag *string `json:"lag,optional"`
  712. // 群组id
  713. Gid *string `json:"gid,optional"`
  714. // 群组名称
  715. Gname *string `json:"gname,optional"`
  716. // v3数据
  717. V3 *string `json:"v3,optional"`
  718. // Label Relationships | 标签关系
  719. LabelRelationships []ContactLabelList `json:"labelRelationships,optional"`
  720. // 组织ID
  721. OrganizationId *uint64 `json:"organizationId,optional"`
  722. // 是否在黑名单中
  723. IsInBlockList *bool `json:"isInBlockList,optional"`
  724. Ctype *uint64 `json:"ctype,optional"`
  725. Cname *string `json:"cname,optional"`
  726. Cage *int `json:"cage,optional"`
  727. Carea *string `json:"carea,optional"`
  728. Cbirthday *string `json:"cbirthday,optional"`
  729. Cbirtharea *string `json:"cbirtharea,optional"`
  730. CidcardNo *string `json:"cidcardNo,optional"`
  731. Ctitle *string `json:"ctitle,optional"`
  732. Cc *string `json:"cc,optional"`
  733. Phone *string `json:"phone,optional"`
  734. }
  735. // The response data of label information | Label信息
  736. // swagger:model LabelInfo
  737. type LabelInfo struct {
  738. BaseIDInfo
  739. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  740. Status *uint8 `json:"status,optional"`
  741. // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  742. Type *int `json:"type,optional"`
  743. // 标签名称
  744. Name *string `json:"name,optional"`
  745. // 标签来源:1后台创建 2个微同步
  746. From *int `json:"from,optional"`
  747. // 标签模式:1动态 2静态
  748. Mode *int `json:"mode,optional"`
  749. // 标签的触达条件
  750. Conditions *string `json:"conditions,optional"`
  751. // 组织ID
  752. OrganizationId *uint64 `json:"organizationId,optional"`
  753. // Label Relationships | 标签关系
  754. LabelRelationships []LabelRelationshipInfo `json:"labelRelationships,optional"`
  755. }
  756. // The response data of label relationship information | LabelRelationship信息
  757. // swagger:model LabelRelationshipInfo
  758. type LabelRelationshipInfo struct {
  759. BaseIDInfo
  760. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  761. Status *uint8 `json:"status,optional"`
  762. // 标签 ID
  763. LabelId *uint64 `json:"labelId,optional"`
  764. // 联系人 ID
  765. ContactId *uint64 `json:"contactId,optional"`
  766. // Contact information | 联系人信息
  767. Contact ContactInfo `json:"contact,optional"`
  768. // Label information | 标签信息
  769. Label LabelInfo `json:"label,optional"`
  770. // 组织ID
  771. OrganizationId *uint64 `json:"organizationId,optional"`
  772. }
  773. // The response data of label relationship information | LabelRelationship信息
  774. // swagger:model LabelRelationshipsInfo
  775. type LabelRelationshipsInfo struct {
  776. BaseIDInfo
  777. // 更新类型:为空或“all”时表示全量更新,为 “add” 时表示仅追加
  778. UpdateType *string `json:"updateType,optional"`
  779. // 标签 ID
  780. LabelIds []uint64 `json:"labelIds,optional"`
  781. // 联系人 ID
  782. ContactId *uint64 `json:"contactId,optional"`
  783. }
  784. // swagger:model BatchLabelRelationshipsInfo
  785. type BatchLabelRelationshipsInfo struct {
  786. // 更新类型:为1 时表示增加标签,为 -1 时表示移除标签
  787. UpdateType int `json:"updateType,optional"`
  788. // 标签 ID
  789. LabelIds []uint64 `json:"labelIds,optional"`
  790. // 联系人 ID
  791. ContactIds []uint64 `json:"contactIds,optional"`
  792. }
  793. // The response data of label relationship list | LabelRelationship列表数据
  794. // swagger:model LabelRelationshipListResp
  795. type LabelRelationshipListResp struct {
  796. BaseDataInfo
  797. // LabelRelationship list data | LabelRelationship列表数据
  798. Data LabelRelationshipListInfo `json:"data"`
  799. }
  800. // LabelRelationship list data | LabelRelationship列表数据
  801. // swagger:model LabelRelationshipListInfo
  802. type LabelRelationshipListInfo struct {
  803. BaseListInfo
  804. // The API list data | LabelRelationship列表数据
  805. Data []LabelRelationshipInfo `json:"data"`
  806. }
  807. // Get label relationship list request params | LabelRelationship列表请求参数
  808. // swagger:model LabelRelationshipListReq
  809. type LabelRelationshipListReq struct {
  810. PageInfo
  811. }
  812. // LabelRelationship information response | LabelRelationship信息返回体
  813. // swagger:model LabelRelationshipInfoResp
  814. type LabelRelationshipInfoResp struct {
  815. BaseDataInfo
  816. // LabelRelationship information | LabelRelationship数据
  817. Data LabelRelationshipInfo `json:"data"`
  818. }
  819. type LoginQRStatus struct {
  820. // 登陆二维码
  821. QRCode string `json:"qRCode,optional"`
  822. // 登陆二维码状态
  823. Status string `json:"status,optional"`
  824. // 登陆二维码状态描述
  825. StatusDesc string `json:"statusDesc,optional"`
  826. }
  827. // 刷新登陆二维码请求参数
  828. // swagger:model RefreshLoginQRReq
  829. type RefreshLoginQRReq struct {
  830. // 服务器id
  831. ServerId *uint64 `json:"serverId,optional"`
  832. // 端口号
  833. Port *string `json:"port,optional"`
  834. // 回调地址
  835. Callback *string `json:"callback,optional"`
  836. }
  837. // 刷新登陆二维码返回参数
  838. // swagger:model RefreshLoginQRResp
  839. type RefreshLoginQRResp struct {
  840. BaseDataInfo
  841. // 二维码Base64
  842. Data LoginQRStatus `json:"data,optional"`
  843. }
  844. // 发送微信文本消息请求参数
  845. // swagger:model SendTextMsgReq
  846. type SendTextMsgReq struct {
  847. // 属主微信id
  848. WxWxid *string `json:"senderWxId"`
  849. // 微信id 公众号微信ID
  850. Wxid *string `json:"receiverWxId"`
  851. // 微信文本消息内容
  852. Msg *string `json:"msg"`
  853. }
  854. // 发送微信图片消息请求参数
  855. // swagger:model SendPicMsgReq
  856. type SendPicMsgReq struct {
  857. // 属主微信id
  858. WxWxid *string `json:"wxWxid"`
  859. // 微信id 公众号微信ID
  860. Wxid *string `json:"wxid"`
  861. // 微信图片路径(本地或网络,本地需要上传操作,如:C:\\x.jpg)
  862. Picpath *string `json:"picpath"`
  863. // 微信图片自定义名称(此属性只有网络图片有)
  864. Diyfilename *string `json:"diyfilename,optional"`
  865. }
  866. // 发送微信图片(本地)请求参数
  867. // swagger:model SendPicMsgLocalReq
  868. type SendPicMsgLocalReq struct {
  869. // 属主微信id
  870. WxWxid *string `json:"wxWxid"`
  871. // 微信id 公众号微信ID
  872. Wxid *string `json:"wxid"`
  873. // 微信图片路径(本地或网络,本地需要上传操作,如:C:\\x.jpg)
  874. Picpath *string `json:"picpath"`
  875. }
  876. // The response data of contact list | Contact列表数据
  877. // swagger:model ContactListResp
  878. type ContactListResp struct {
  879. BaseDataInfo
  880. // Contact list data | Contact列表数据
  881. Data ContactListInfo `json:"data"`
  882. }
  883. // Contact list data | Contact列表数据
  884. // swagger:model ContactListInfo
  885. type ContactListInfo struct {
  886. BaseListInfo
  887. // The API list data | Contact列表数据
  888. Data []ContactInfo `json:"data"`
  889. }
  890. // Get contact list request params | Contact列表请求参数
  891. // swagger:model ContactListReq
  892. type ContactListReq struct {
  893. PageInfo
  894. // Label ID list | 标签ID列表
  895. LabelIDs []uint64 `json:"labelIDs,optional"`
  896. // 属主微信id
  897. WxWxid *string `json:"wxWxid,optional"`
  898. // 微信id 公众号微信ID
  899. Wxid *string `json:"wxid,optional"`
  900. // 微信账号
  901. Account *string `json:"account,optional"`
  902. // 昵称
  903. Nickname *string `json:"nickname,optional"`
  904. // 联系人类型:1好友,2群组,3公众号,4企业微信联系人
  905. Type *int `json:"type,optional"`
  906. }
  907. // Contact information response | Contact信息返回体
  908. // swagger:model ContactInfoResp
  909. type ContactInfoResp struct {
  910. BaseDataInfo
  911. // Contact information | Contact数据
  912. Data ContactInfo `json:"data"`
  913. }
  914. // swagger:model AddNewFriendReq
  915. type AddNewFriendReq struct {
  916. OwnerWxid string `json:"ownerWxid"`
  917. Wxid string `json:"wxid"`
  918. Gid string `json:"gid"`
  919. Desc string `json:"desc"`
  920. AddType string `json:"addType"`
  921. }
  922. // swagger:model changeBlockListReq
  923. type ChangeBlockListReq struct {
  924. OwnerWxid string `json:"ownerWxid"`
  925. Wxid string `json:"wxid"`
  926. Type *int `json:"type,optional"`
  927. Ai *bool `json:"ai,optional"`
  928. }
  929. // swagger:model ImportWhatsappContactReq
  930. type ImportWhatsappContactReq struct {
  931. File *string `form:"file,optional"`
  932. }
  933. // swagger:model WhatsappContactListReq
  934. type WhatsappContactListReq struct {
  935. PageInfo
  936. // 标签ID列表
  937. LabelIDs []uint64 `json:"labelIDs,optional"`
  938. // 电话
  939. Phone *string `json:"phone,optional"`
  940. // 名称
  941. Name *string `json:"name,optional"`
  942. }
  943. // swagger:model CreateWhatsappContactReq
  944. type CreateWhatsappContactReq struct {
  945. BaseIDInfo
  946. // 国家区号
  947. Cc *string `json:"cc"`
  948. Phone *string `json:"phone"`
  949. // 备注名
  950. Markname *string `json:"markname,optional"`
  951. Ctype *uint64 `json:"ctype,optional"`
  952. Cname *string `json:"cname,optional"`
  953. Sex *int `json:"sex,optional"`
  954. Cage *int `json:"cage,optional"`
  955. Carea *string `json:"carea,optional"`
  956. Cbirthday *string `json:"cbirthday,optional"`
  957. Cbirtharea *string `json:"cbirtharea,optional"`
  958. CidcardNo *string `json:"cidcardNo,optional"`
  959. Ctitle *string `json:"ctitle,optional"`
  960. }
  961. // The response data of message information | Message信息
  962. // swagger:model MessageInfo
  963. type MessageInfo struct {
  964. BaseIDInfo
  965. // 属主微信id
  966. WxWxid *string `json:"wxWxid"`
  967. // 微信id 公众号微信ID
  968. Wxid *string `json:"wxid"`
  969. // 微信消息内容
  970. Msg *string `json:"msg"`
  971. }
  972. // The response data of message list | Message列表数据
  973. // swagger:model MessageListResp
  974. type MessageListResp struct {
  975. BaseDataInfo
  976. // Message list data | Message列表数据
  977. Data MessageListInfo `json:"data"`
  978. }
  979. // Message list data | Message列表数据
  980. // swagger:model MessageListInfo
  981. type MessageListInfo struct {
  982. BaseListInfo
  983. // The API list data | Message列表数据
  984. Data []MessageInfo `json:"data"`
  985. }
  986. // Get message list request params | Message列表请求参数
  987. // swagger:model MessageListReq
  988. type MessageListReq struct {
  989. PageInfo
  990. // 属主微信id
  991. WxWxid *string `json:"wxWxid,optional"`
  992. // 微信id 公众号微信ID
  993. Wxid *string `json:"wxid,optional"`
  994. }
  995. // Message information response | Message信息返回体
  996. // swagger:model MessageInfoResp
  997. type MessageInfoResp struct {
  998. BaseDataInfo
  999. // Message information | Message数据
  1000. Data MessageInfo `json:"data"`
  1001. }
  1002. // The response data of label list | Label列表数据
  1003. // swagger:model LabelSelectListResp
  1004. type LabelSelectListResp struct {
  1005. BaseDataInfo
  1006. // Label list data | Label列表数据
  1007. Data []LabelSelectListInfo `json:"data"`
  1008. }
  1009. // The response data of label list | Label群发列表数据
  1010. // swagger:model LabelBatchSelectListResp
  1011. type LabelBatchSelectListResp struct {
  1012. BaseDataInfo
  1013. // Label list data | Label列表数据
  1014. Data LabelBatchSelectListData `json:"data"`
  1015. }
  1016. // The response data of label list | Label群发列表数据
  1017. type LabelBatchSelectListData struct {
  1018. Contact []LabelSelectListInfo `json:"contact"`
  1019. Group []LabelSelectListInfo `json:"group"`
  1020. }
  1021. // The response data of label list | Label列表数据
  1022. // swagger:model LabelListResp
  1023. type LabelListResp struct {
  1024. BaseDataInfo
  1025. // Label list data | Label列表数据
  1026. Data LabelListInfo `json:"data"`
  1027. }
  1028. // Label list data | Label列表数据
  1029. // swagger:model LabelListInfo
  1030. type LabelListInfo struct {
  1031. BaseListInfo
  1032. // The API list data | Label列表数据
  1033. Data []LabelInfo `json:"data"`
  1034. }
  1035. // Get label list request params | Label列表请求参数
  1036. // swagger:model LabelListReq
  1037. type LabelListReq struct {
  1038. PageInfo
  1039. // Label ID list | Label ID列表
  1040. LabelIDs []uint64 `json:"labelIDs,optional"`
  1041. // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  1042. Type *int `json:"type,optional"`
  1043. // 标签名称
  1044. Name *string `json:"name,optional"`
  1045. // 标签来源:1后台创建 2个微同步
  1046. From *int `json:"from,optional"`
  1047. // 标签模式:1动态 2静态
  1048. Mode *int `json:"mode,optional"`
  1049. }
  1050. // Label information response | Label信息返回体
  1051. // swagger:model LabelInfoResp
  1052. type LabelInfoResp struct {
  1053. BaseDataInfo
  1054. // Label information | Label数据
  1055. Data LabelInfo `json:"data"`
  1056. }
  1057. // swagger:model LabelSelectListInfo
  1058. type LabelSelectListInfo struct {
  1059. // label
  1060. Label *string `json:"label,optional"`
  1061. // value
  1062. Value *uint64 `json:"value,optional"`
  1063. }
  1064. // The data of label tagging information | LabelTagging信息
  1065. // swagger:model LabelTaggingInfo
  1066. type LabelTaggingInfo struct {
  1067. BaseIDInfo
  1068. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1069. Status *uint8 `json:"status,optional"`
  1070. // 机构 ID
  1071. OrganizationId *uint64 `json:"organizationId,optional"`
  1072. // 标签类型:1好友,2群组,3公众号,4企业微信联系人
  1073. Type *int `json:"type,optional"`
  1074. // 关键词
  1075. Conditions string `json:"conditions,optional"`
  1076. // 命中后需要打的标签
  1077. ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
  1078. // 命中后需要移除的标签
  1079. ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
  1080. LabelAddInfo []string `json:"labelAddInfo,optional"`
  1081. }
  1082. // The response data of label tagging list | LabelTagging信息列表数据
  1083. // swagger:model LabelTaggingListResp
  1084. type LabelTaggingListResp struct {
  1085. BaseDataInfo
  1086. // The label tagging list data | LabelTagging信息列表数据
  1087. Data LabelTaggingListInfo `json:"data"`
  1088. }
  1089. // The label tagging list data | LabelTagging信息列表数据
  1090. // swagger:model LabelTaggingListInfo
  1091. type LabelTaggingListInfo struct {
  1092. BaseListInfo
  1093. // The label tagging list data | LabelTagging信息列表数据
  1094. Data []LabelTaggingInfo `json:"data"`
  1095. }
  1096. // Get label tagging list request params | LabelTagging信息列表请求参数
  1097. // swagger:model LabelTaggingListReq
  1098. type LabelTaggingListReq struct {
  1099. PageInfo
  1100. }
  1101. // The label tagging information response | LabelTagging信息返回体
  1102. // swagger:model LabelTaggingInfoResp
  1103. type LabelTaggingInfoResp struct {
  1104. BaseDataInfo
  1105. // label tagging information | LabelTagging信息数据
  1106. Data LabelTaggingInfo `json:"data"`
  1107. }
  1108. // The response data of sop task list | SopTask列表数据
  1109. // swagger:model SopTaskListResp
  1110. type SopTaskListResp struct {
  1111. BaseDataInfo
  1112. // SopTask list data | SopTask列表数据
  1113. Data SopTaskListInfo `json:"data"`
  1114. }
  1115. // The response data of sop task record list | SopTask列表数据
  1116. // swagger:model SopTaskRecordListResp
  1117. type SopTaskRecordListResp struct {
  1118. BaseDataInfo
  1119. // SopTask list data | SopTask列表数据
  1120. Data []SopTaskRecordInfo `json:"data"`
  1121. }
  1122. // SopTask list data | SopTask列表数据
  1123. // swagger:model SopTaskRecordInfo
  1124. type SopTaskRecordInfo struct {
  1125. // NodeId 节点ID
  1126. SourceType *int `json:"sourceType,optional"`
  1127. // NodeId 节点ID
  1128. SourceId *uint64 `json:"sourceId,optional"`
  1129. // 节点名称
  1130. Name *string `json:"name,optional"`
  1131. // 消息总数
  1132. TotalCount *int64 `json:"totalCount,optional"`
  1133. // 成功数
  1134. SuccessCount *int64 `json:"successCount,optional"`
  1135. // 失败数
  1136. FailureCount *int64 `json:"failureCount,optional"`
  1137. // 成功率
  1138. SuccessRate *int64 `json:"successRate,optional"`
  1139. }
  1140. // SopTask list data | SopTask列表数据
  1141. // swagger:model SopTaskListInfo
  1142. type SopTaskListInfo struct {
  1143. BaseListInfo
  1144. // The API list data | SopTask列表数据
  1145. Data []SopTaskInfo `json:"data"`
  1146. }
  1147. // Get sop task list request params | SopTask列表请求参数
  1148. // swagger:model SopTaskListReq
  1149. type SopTaskListReq struct {
  1150. PageInfo
  1151. // SOP 任务名称
  1152. Name *string `json:"name,optional"`
  1153. // 创建者 id
  1154. CreatorId *string `json:"creatorId,optional"`
  1155. }
  1156. // SopTask information response | SopTask信息返回体
  1157. // swagger:model SopTaskInfoResp
  1158. type SopTaskInfoResp struct {
  1159. BaseDataInfo
  1160. // SopTask information | SopTask数据
  1161. Data SopTaskInfo `json:"data"`
  1162. }
  1163. // SopTask create response | SopTask创建回体
  1164. // swagger:model SopTaskCreateResp
  1165. type SopTaskCreateResp struct {
  1166. BaseDataInfo
  1167. // SopTask id | SopTask id
  1168. Data uint64 `json:"data"`
  1169. }
  1170. // swagger:model CopyReq
  1171. type CopyReq struct {
  1172. // SopTask id | SopTask id
  1173. Id uint64 `json:"id"`
  1174. // SOP 任务名称
  1175. Name *string `json:"name,optional"`
  1176. // Organization id | Organization id
  1177. OrganizationId uint64 `json:"organizationId,optional"`
  1178. }
  1179. // swagger:model MessageVarResp
  1180. type MessageVarResp struct {
  1181. BaseDataInfo
  1182. Data MessageVarRespData `json:"data"`
  1183. }
  1184. type MessageVarRespData struct {
  1185. // 消息变量
  1186. MessageVar []MessageVarInfo `json:"messageVar"`
  1187. // 转发变量
  1188. ForwardVar []MessageVarInfo `json:"forwardVar"`
  1189. }
  1190. // swagger:model MessageVarInfo
  1191. type MessageVarInfo struct {
  1192. // 显示名称
  1193. Label string `json:"label"`
  1194. // 变量
  1195. Value string `json:"value"`
  1196. }
  1197. // swagger:model SopTaskOutlineResp
  1198. type SopTaskOutlineResp struct {
  1199. BaseDataInfo
  1200. Data []SopTaskOutlineInfo `json:"data"`
  1201. }
  1202. // swagger:model SopTaskOutlineInfo
  1203. type SopTaskOutlineInfo struct {
  1204. // 标题
  1205. Title string `json:"title,optional"`
  1206. // key
  1207. Key string `json:"key,optional"`
  1208. // 子节点
  1209. Children []SopTaskOutlineInfo `json:"children,optional"`
  1210. }
  1211. // swagger:model TestNodeReq
  1212. type TestNodeReq struct {
  1213. Type int `json:"type"`
  1214. Id uint64 `json:"id"`
  1215. Content string `json:"content"`
  1216. }
  1217. // swagger:model TestNodeResp
  1218. type TestNodeResp struct {
  1219. BaseDataInfo
  1220. Data []string `json:"data"`
  1221. }
  1222. // swagger:model SopApiListReq
  1223. type SopApiListReq struct {
  1224. // required : true
  1225. // min : 0
  1226. Page uint64 `json:"page" validate:"required,number,gt=0"`
  1227. // required : true
  1228. // max : 2000
  1229. PageSize uint64 `json:"pageSize" validate:"required,number,lt=2000"`
  1230. }
  1231. // swagger:model GenerateAiAnswerReq
  1232. type GenerateAiAnswerReq struct {
  1233. Content string `json:"content"`
  1234. }
  1235. // swagger:model GenerateAiAnswerResp
  1236. type GenerateAiAnswerResp struct {
  1237. BaseDataInfo
  1238. Data string `json:"data"`
  1239. }
  1240. // The response data of sop stage information | SopStage信息
  1241. // swagger:model SopStageInfo
  1242. type SopStageInfo struct {
  1243. BaseIDInfo
  1244. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1245. Status *uint8 `json:"status,optional"`
  1246. // SOP 任务 ID
  1247. TaskId *uint64 `json:"taskId,optional"`
  1248. // 阶段名称
  1249. Name *string `json:"name,optional"`
  1250. // 客群筛选条件类型 1 按标签筛选 2 按客户基本信息筛选
  1251. ConditionType *int `json:"conditionType,optional"`
  1252. // 筛选条件关系 1 满足所有条件(and) 2 满足任意条件(or)
  1253. ConditionOperator *int `json:"conditionOperator,optional"`
  1254. // 筛选条件列表
  1255. ConditionList []Condition `json:"conditionList,optional"`
  1256. // 命中后发送的消息内容
  1257. ActionMessage []Action `json:"actionMessage,optional"`
  1258. // 命中后需要打的标签
  1259. ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
  1260. // 命中后需要移除的标签
  1261. ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
  1262. // 命中后转发的消息内容
  1263. ActionForward *ActionForward `json:"actionForward,optional"`
  1264. // 阶段顺序
  1265. IndexSort *int `json:"indexSort,optional"`
  1266. // sop 任务信息
  1267. TaskInfo *SopTaskInfo `json:"taskInfo,optional"`
  1268. // node 信息
  1269. NodeList []SopNodeInfo `json:"nodeList,optional"`
  1270. }
  1271. // The response data of sop task information | SopTask信息
  1272. // swagger:model SopTaskInfo
  1273. type SopTaskInfo struct {
  1274. BaseIDInfo
  1275. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1276. Status *uint8 `json:"status,optional"`
  1277. // SOP 任务名称
  1278. Name *string `json:"name,optional"`
  1279. // 机器人微信 id 列表
  1280. BotWxidList []string `json:"botWxidList,optional"`
  1281. // 标签类型:1好友,2群组,3企业微信联系人
  1282. Type *int `json:"type,optional"`
  1283. // 任务计划开始时间
  1284. PlanStartTime *int64 `json:"planStartTime,optional"`
  1285. // 任务计划结束时间
  1286. PlanEndTime *int64 `json:"planEndTime,optional"`
  1287. // 创建者 id
  1288. CreatorId *string `json:"creatorId,optional"`
  1289. // 阶段信息
  1290. StageList []SopStageInfo `json:"stageList,optional"`
  1291. // 组织ID
  1292. OrganizationId *uint64 `json:"organizationId,optional"`
  1293. // Token
  1294. Token []string `json:"token,optional"`
  1295. }
  1296. // The response data of sop node information | SopNode信息
  1297. // swagger:model SopNodeInfo
  1298. type SopNodeInfo struct {
  1299. BaseIDInfo
  1300. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1301. Status *uint8 `json:"status,optional"`
  1302. // 阶段 ID
  1303. StageId *uint64 `json:"stageId,optional"`
  1304. // 父节点 ID
  1305. ParentId *uint64 `json:"parentId,optional"`
  1306. // 节点名称
  1307. Name *string `json:"name,optional"`
  1308. // 触发条件类型 1 客户回复后触发 2 超时后触发
  1309. ConditionType *int `json:"conditionType,optional"`
  1310. // 触发语义列表 当为空时则代表用户回复任意内容后触发
  1311. ConditionList []string `json:"conditionList,optional"`
  1312. // 超时触发时间(分钟)
  1313. NoReplyCondition *uint64 `json:"noReplyCondition,optional"`
  1314. // 超时触发时间单位
  1315. NoReplyUnit *string `json:"noReplyUnit,optional"`
  1316. // 命中后发送的消息内容
  1317. ActionMessage []Action `json:"actionMessage,optional"`
  1318. // 命中后需要打的标签
  1319. ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
  1320. // 命中后需要移除的标签
  1321. ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
  1322. // 命中后转发的消息内容
  1323. ActionForward *ActionForward `json:"actionForward,optional"`
  1324. // 阶段信息
  1325. StageInfo *SopStageInfo `json:"stageInfo,optional"`
  1326. }
  1327. // The response data of sop node information | SopNode信息
  1328. type SopNodeInfoWithLable struct {
  1329. BaseIDInfo
  1330. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1331. Status *uint8 `json:"status,optional"`
  1332. // 阶段 ID
  1333. StageId *uint64 `json:"stageId,optional"`
  1334. // 父节点 ID
  1335. ParentId *uint64 `json:"parentId,optional"`
  1336. // 节点名称
  1337. Name *string `json:"name,optional"`
  1338. // 触发条件类型 1 客户回复后触发 2 超时后触发
  1339. ConditionType *int `json:"conditionType,optional"`
  1340. // 触发语义列表 当为空时则代表用户回复任意内容后触发
  1341. ConditionList []string `json:"conditionList,optional"`
  1342. // 超时触发时间(分钟)
  1343. NoReplyCondition *uint64 `json:"noReplyCondition,optional"`
  1344. // 超时触发时间单位
  1345. NoReplyUnit *string `json:"noReplyUnit,optional"`
  1346. // 命中后发送的消息内容
  1347. ActionMessage []Action `json:"actionMessage,optional"`
  1348. // 命中后需要打的标签
  1349. ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
  1350. // 命中后需要移除的标签
  1351. ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
  1352. // 命中后转发的消息内容
  1353. ActionForward *ActionForward `json:"actionForward,optional"`
  1354. ActionLabelAddList []string `json:"actionLabelAddList"`
  1355. ActionLabelDelList []string `json:"actionLabelDelList"`
  1356. }
  1357. // The response data of sop stage list | SopStage列表数据
  1358. // swagger:model SopStageListResp
  1359. type SopStageListResp struct {
  1360. BaseDataInfo
  1361. // SopStage list data | SopStage列表数据
  1362. Data SopStageListInfo `json:"data"`
  1363. }
  1364. // SopStage list data | SopStage列表数据
  1365. // swagger:model SopStageListInfo
  1366. type SopStageListInfo struct {
  1367. BaseListInfo
  1368. // The API list data | SopStage列表数据
  1369. Data []SopStageInfo `json:"data"`
  1370. }
  1371. // Get sop stage list request params | SopStage列表请求参数
  1372. // swagger:model SopStageListReq
  1373. type SopStageListReq struct {
  1374. TaskId *uint64 `json:"taskId"`
  1375. }
  1376. // Batch get sop stage list request params | SopStage列表请求参数
  1377. // swagger:model BatchSopStageListReq
  1378. type BatchSopStageListReq struct {
  1379. TaskIds []uint64 `json:"taskIds"`
  1380. }
  1381. // SopStage information response | SopStage信息返回体
  1382. // swagger:model SopStageInfoResp
  1383. type SopStageInfoResp struct {
  1384. BaseDataInfo
  1385. // SopStage information | SopStage数据
  1386. Data SopStageInfo `json:"data"`
  1387. }
  1388. // SopStage create response | SopStage创建回体
  1389. // swagger:model SopStageCreateResp
  1390. type SopStageCreateResp struct {
  1391. BaseDataInfo
  1392. // SopStage id | SopStage id
  1393. Data uint64 `json:"data"`
  1394. }
  1395. // Move sop stage request params | 移动阶段请求参数
  1396. // swagger:model SopStageMoveReq
  1397. type SopStageMoveReq struct {
  1398. BaseIDInfo
  1399. // 阶段名称
  1400. Offset *int `json:"offset,optional"`
  1401. }
  1402. // swagger:model StageCopyReq
  1403. type StageCopyReq struct {
  1404. // SopStage id | SopStage id
  1405. Id uint64 `json:"id"`
  1406. }
  1407. // The response data of sop node list | SopNode列表数据
  1408. // swagger:model SopNodeListResp
  1409. type SopNodeListResp struct {
  1410. BaseDataInfo
  1411. // SopNode list data | SopNode列表数据
  1412. Data []*SopChildNodeInfo `json:"data"`
  1413. }
  1414. // The response data of sop node list | SopNode列表数据
  1415. type SopNodeListResp2 struct {
  1416. BaseDataInfo
  1417. // SopNode list data | SopNode列表数据
  1418. Data []*SopNodeInfoWithLable `json:"data"`
  1419. }
  1420. // SopNode list data | SopNode列表数据
  1421. // swagger:model SopChildNodeInfo
  1422. type SopChildNodeInfo struct {
  1423. NodeName *string `json:"nodeName,optional"`
  1424. ChildNode *SopChildNodeInfo `json:"childNode,optional"`
  1425. // The API list data | SopNode列表数据
  1426. ConditionNodes []*SopChildNodeInfo `json:"conditionNodes"`
  1427. SopNodeInfo
  1428. }
  1429. // SopNode list data | SopNode列表数据
  1430. // swagger:model SopNodeListInfo
  1431. type SopNodeListInfo struct {
  1432. BaseListInfo
  1433. // The API list data | SopNode列表数据
  1434. Data []SopNodeInfo `json:"data"`
  1435. }
  1436. // Get sop node list request params | SopNode列表请求参数
  1437. // swagger:model SopNodeListReq
  1438. type SopNodeListReq struct {
  1439. StageId *uint64 `json:"stageId"`
  1440. }
  1441. // Get sop node list request params | SopNode列表请求参数
  1442. // swagger:model BatchSopNodeListReq
  1443. type BatchSopNodeListReq struct {
  1444. StageIds []uint64 `json:"stageIds"`
  1445. }
  1446. // SopNode information response | SopNode信息返回体
  1447. // swagger:model SopNodeInfoResp
  1448. type SopNodeInfoResp struct {
  1449. BaseDataInfo
  1450. // SopNode information | SopNode数据
  1451. Data SopNodeInfo `json:"data"`
  1452. }
  1453. // SopNode create response | SopNode创建返回体
  1454. // swagger:model SopNodeCreateResp
  1455. type SopNodeCreateResp struct {
  1456. BaseDataInfo
  1457. // SopNode id | SopNode id
  1458. Data uint64 `json:"data"`
  1459. }
  1460. // The response data of message records information | MessageRecords信息
  1461. // swagger:model MessageRecordsInfo
  1462. type MessageRecordsInfo struct {
  1463. BaseIDInfo
  1464. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1465. Status *uint8 `json:"status,optional"`
  1466. // 机器人微信 id
  1467. BotWxid *string `json:"botWxid,optional"`
  1468. // 联系人 id
  1469. ContactId *uint64 `json:"contactId,optional"`
  1470. // 类型:1好友,2群组,3企业微信联系人
  1471. ContactType *int `json:"contactType,optional"`
  1472. // 接收方微信 id
  1473. ContactWxid *string `json:"contactWxid,optional"`
  1474. // 内容类型 1 文本 2 文件
  1475. ContentType *int `json:"contentType,optional"`
  1476. // 发送内容
  1477. Content *string `json:"content,optional"`
  1478. // 元数据
  1479. Meta *Meta `json:"meta,optional"`
  1480. // 异常原因
  1481. ErrorDetail *string `json:"errorDetail,optional"`
  1482. // 发送时间
  1483. SendTime *int64 `json:"sendTime,optional"`
  1484. // 源类型 1 点发 2 群发 3 SOP
  1485. SourceType *int `json:"sourceType,optional"`
  1486. // 源 ID
  1487. SourceId *uint64 `json:"sourceId,optional"`
  1488. // 次源 ID
  1489. SubSourceId *uint64 `json:"subSourceId,optional"`
  1490. // 组织ID
  1491. OrganizationId *uint64 `json:"organizationId,optional"`
  1492. }
  1493. // The response data of message records list | MessageRecords列表数据
  1494. // swagger:model MessageRecordsListResp
  1495. type MessageRecordsListResp struct {
  1496. BaseDataInfo
  1497. // MessageRecords list data | MessageRecords列表数据
  1498. Data MessageRecordsListInfo `json:"data"`
  1499. }
  1500. // MessageRecords list data | MessageRecords列表数据
  1501. // swagger:model MessageRecordsListInfo
  1502. type MessageRecordsListInfo struct {
  1503. BaseListInfo
  1504. // The API list data | MessageRecords列表数据
  1505. Data []MessageRecordsInfo `json:"data"`
  1506. }
  1507. // Get message records list request params | MessageRecords列表请求参数
  1508. // swagger:model MessageRecordsListReq
  1509. type MessageRecordsListReq struct {
  1510. PageInfo
  1511. // 群发消息ID
  1512. BatchMsgId *uint64 `json:"batchMsgId,optional"`
  1513. // 机器人微信 id
  1514. BotWxid *string `json:"botWxid,optional"`
  1515. // 消息类型:源类型 1 点发 2 群发 3 SOP 阶段 4 SOP 节点
  1516. SourceType *int `json:"sourceType,optional"`
  1517. // 消息源ID:
  1518. SourceId *uint64 `json:"sourceId,optional"`
  1519. // 接收方微信 id
  1520. ContactWxid *string `json:"contactWxid,optional"`
  1521. // 发送内容
  1522. Status *uint8 `json:"status,optional"`
  1523. }
  1524. // MessageRecords information response | MessageRecords信息返回体
  1525. // swagger:model MessageRecordsInfoResp
  1526. type MessageRecordsInfoResp struct {
  1527. BaseDataInfo
  1528. // MessageRecords information | MessageRecords数据
  1529. Data MessageRecordsInfo `json:"data"`
  1530. }
  1531. // The response data of chatroom member information | ChatroomMember信息
  1532. // swagger:model ChatroomMemberInfo
  1533. type ChatroomMemberInfo struct {
  1534. // 名称
  1535. Wxid *string `json:"wxid,optional"`
  1536. // 群组
  1537. ChatRoom *string `json:"chatRoom,optional"`
  1538. // 属主Wxid
  1539. OwnerWxid *string `json:"ownerWxid,optional"`
  1540. // 账号
  1541. Account *string `json:"account,optional"`
  1542. }
  1543. // The response data of chatroom member list | ChatroomMember列表数据
  1544. // swagger:model ChatroomMemberListResp
  1545. type ChatroomMemberListResp struct {
  1546. BaseDataInfo
  1547. // chatroom member list data | chatroom member 列表数据
  1548. Data ChatroomMemberListInfo `json:"data"`
  1549. }
  1550. // chatroom member list data | chatroom member列表数据
  1551. // swagger:model ChatroomMemberListInfo
  1552. type ChatroomMemberListInfo struct {
  1553. BaseListInfo
  1554. // The API list data | chatroom member列表数据
  1555. Data []ChatroomMemberInfo `json:"data"`
  1556. }
  1557. // Get chatroom member list request params | ChatroomMember列表请求参数
  1558. // swagger:model ChatroomMemberListReq
  1559. type ChatroomMemberListReq struct {
  1560. PageInfo
  1561. // 属主Wxid
  1562. OwnerWxid *string `json:"ownerWxid,optional"`
  1563. // 群组
  1564. ChatRoom *string `json:"chatRoom,optional"`
  1565. }
  1566. // chatroom member information response | ChatroomMember信息返回体
  1567. // swagger:model ChatroomMemberInfoResp
  1568. type ChatroomMemberInfoResp struct {
  1569. BaseDataInfo
  1570. // Server information | Server数据
  1571. Data ChatroomMemberInfo `json:"data"`
  1572. }
  1573. // The response data of user information | 用户信息
  1574. // swagger:model UserInfo
  1575. type UserInfo struct {
  1576. BaseUUIDInfo
  1577. // Status | 状态
  1578. // max : 20
  1579. Status *uint32 `json:"status,optional" validate:"omitempty,lt=20"`
  1580. // Username | 用户名
  1581. // max length : 50
  1582. Username *string `json:"username,optional" validate:"omitempty,max=50"`
  1583. // Nickname | 昵称
  1584. // max length : 40
  1585. Nickname *string `json:"nickname,optional" validate:"omitempty,max=40"`
  1586. // Password | 密码
  1587. // min length : 6
  1588. Password *string `json:"password,optional" validate:"omitempty,min=6"`
  1589. // Description | 描述
  1590. // max length : 100
  1591. Description *string `json:"description,optional" validate:"omitempty,max=100"`
  1592. // HomePath | 首页
  1593. // max length : 70
  1594. HomePath *string `json:"homePath,optional" validate:"omitempty,max=70"`
  1595. // RoleId | 角色ID
  1596. RoleIds []uint64 `json:"roleIds,optional"`
  1597. // Mobile | 手机号
  1598. // max length : 18
  1599. Mobile *string `json:"mobile,optional" validate:"omitempty,max=18"`
  1600. // Email | 邮箱
  1601. // max length : 80
  1602. Email *string `json:"email,optional" validate:"omitempty,max=80"`
  1603. // Avatar | 头像地址
  1604. // max length : 300
  1605. Avatar *string `json:"avatar,optional" validate:"omitempty,max=300"`
  1606. // Department ID | 部门ID
  1607. DepartmentId *uint64 `json:"departmentId,optional,omitempty"`
  1608. // Position ID | 职位ID
  1609. PositionIds []uint64 `json:"positionId,optional,omitempty"`
  1610. }
  1611. // User information response | 用户信息返回体
  1612. // swagger:model UserInfoResp
  1613. type UserInfoResp struct {
  1614. BaseDataInfo
  1615. // User information | User数据
  1616. Data UserInfo `json:"data"`
  1617. }
  1618. // The response data of user's basic information | 用户基本信息返回数据
  1619. // swagger:model UserBaseIDInfoResp
  1620. type UserBaseIDInfoResp struct {
  1621. BaseDataInfo
  1622. // The data of user's basic information | 用户基本信息
  1623. Data UserBaseIDInfo `json:"data"`
  1624. }
  1625. // The data of user's basic information | 用户基本信息
  1626. // swagger:model UserBaseIDInfo
  1627. type UserBaseIDInfo struct {
  1628. // User's UUID | 用户的UUID
  1629. UUID *string `json:"userId"`
  1630. // User's name | 用户名
  1631. Username *string `json:"username"`
  1632. // User's nickname | 用户的昵称
  1633. Nickname *string `json:"nickname"`
  1634. // The user's avatar path | 用户的头像路径
  1635. Avatar *string `json:"avatar"`
  1636. // The home page that the user enters after logging in | 用户登陆后进入的首页
  1637. HomePath *string `json:"homePath"`
  1638. // The description of user | 用户的描述信息
  1639. Description *string `json:"desc"`
  1640. // User's Role Name | 用户的角色名称
  1641. RoleName []string `json:"roleName"`
  1642. // Department Name | 部门名称
  1643. DepartmentName string `json:"departmentName,optional"`
  1644. // Department Name | 部门备注
  1645. DepartmentRemark string `json:"departmentRemark,optional"`
  1646. }
  1647. // swagger:model UserLoginReq
  1648. type UserLoginReq struct {
  1649. JsCode *string `json:"js_code,optional"`
  1650. }
  1651. // swagger:model UserLoginResp
  1652. type UserLoginResp struct {
  1653. BaseDataInfo
  1654. Data UserToken `json:"data,optional"`
  1655. }
  1656. // swagger:model GptsUserLoginReq
  1657. type GptsUserLoginReq struct {
  1658. Username *string `json:"username"`
  1659. Password *string `json:"password"`
  1660. }
  1661. // swagger:model GptsUserLoginResp
  1662. type GptsUserLoginResp struct {
  1663. BaseDataInfo
  1664. Data GptsUserToken `json:"data,optional"`
  1665. }
  1666. type GptsUserToken struct {
  1667. ID string `json:"id,optional"`
  1668. Token string `json:"token,optional"`
  1669. Username string `json:"username,optional"`
  1670. ExpireTime uint64 `json:"expireTime,optional"`
  1671. }
  1672. // swagger:model PasswordReq
  1673. type PasswordReq struct {
  1674. Password *string `json:"password"`
  1675. Password2 *string `json:"password2"`
  1676. }
  1677. type UserToken struct {
  1678. Token *string `json:"token,optional"`
  1679. ID *uint64 `json:"id,optional"`
  1680. Avatar *string `json:"avatar,optional"`
  1681. Nickname *string `json:"nickname,optional"`
  1682. IsVip *bool `json:"isVip,optional"`
  1683. }
  1684. // swagger:model UserVipResp
  1685. type UserVipResp struct {
  1686. BaseDataInfo
  1687. Data UserVip `json:"data,optional"`
  1688. }
  1689. type UserVip struct {
  1690. IsVip *bool `json:"isVip,optional"`
  1691. WechatAccount *string `json:"wechatAccount"`
  1692. }
  1693. // swagger:model UserBalanceResp
  1694. type UserBalanceResp struct {
  1695. BaseDataInfo
  1696. // User information | User数据
  1697. Data BalanceInfo `json:"data"`
  1698. }
  1699. // swagger:model BalanceInfo
  1700. type BalanceInfo struct {
  1701. Balance *float32 `json:"balance"`
  1702. }
  1703. // swagger:model WxidReq
  1704. type WxidReq struct {
  1705. Wxid string `json:"wxid"`
  1706. }
  1707. // The data of batch msg information | BatchMsg信息
  1708. // swagger:model BatchMsgInfo
  1709. type BatchMsgInfo struct {
  1710. BaseIDInfo
  1711. // 状态 0 未开始 1 开始发送 2 发送完成 3 发送中止
  1712. Status *uint8 `json:"status,optional"`
  1713. // 批次号
  1714. BatchNo *string `json:"batchNo,optional"`
  1715. // 任务名称
  1716. TaskName *string `json:"taskName,optional"`
  1717. // 发送方微信ID
  1718. Fromwxid *string `json:"fromwxid,optional"`
  1719. // 内容
  1720. Msg *string `json:"msg,optional"`
  1721. // 发送规则 all 全部 tag1,tag2 按tag发送
  1722. Tag *string `json:"tag,optional"`
  1723. // 总数
  1724. Total *int32 `json:"total,optional"`
  1725. // 成功数量
  1726. Success *int32 `json:"success,optional"`
  1727. // 失败数量
  1728. Fail *int32 `json:"fail,optional"`
  1729. // 开始时间
  1730. StartTime *int64 `json:"startTime,optional"`
  1731. StartTimeStr *string `json:"startTimeStr,optional"`
  1732. // 结束时间
  1733. StopTime *int64 `json:"stopTime,optional"`
  1734. // 发送时间
  1735. SendTime *int64 `json:"sendTime,optional"`
  1736. // 标签列表
  1737. Labels []uint64 `json:"labels,optional"`
  1738. GroupLabels []uint64 `json:"groupLabels,optional"`
  1739. // 标签列表
  1740. Type *int32 `json:"type,optional"`
  1741. // 内容类型:1-微信 2-whatsapp
  1742. Ctype *uint64 `json:"ctype,optional"`
  1743. Cc *string `json:"cc,optional"`
  1744. Phone *string `json:"phone,optional"`
  1745. TemplateCode *string `json:"templateCode,optional"`
  1746. TemplateName *string `json:"templateName,optional"`
  1747. Lang *string `json:"lang,optional"`
  1748. }
  1749. // The response data of batch msg list | BatchMsg列表数据
  1750. // swagger:model BatchMsgListResp
  1751. type BatchMsgListResp struct {
  1752. BaseDataInfo
  1753. // BatchMsg list data | BatchMsg列表数据
  1754. Data BatchMsgListInfo `json:"data"`
  1755. }
  1756. // BatchMsg list data | BatchMsg列表数据
  1757. // swagger:model BatchMsgListInfo
  1758. type BatchMsgListInfo struct {
  1759. BaseListInfo
  1760. // The API list data | BatchMsg列表数据
  1761. Data []BatchMsgInfo `json:"data"`
  1762. }
  1763. // Get batch msg list request params | BatchMsg列表请求参数
  1764. // swagger:model BatchMsgListReq
  1765. type BatchMsgListReq struct {
  1766. PageInfo
  1767. // 批次号
  1768. BatchNo *string `json:"batchNo,optional"`
  1769. // 发送方微信ID
  1770. Fromwxid *string `json:"fromwxid,optional"`
  1771. // 内容
  1772. Msg *string `json:"msg,optional"`
  1773. // 任务名称
  1774. TaskName *string `json:"taskName,optional"`
  1775. // 群发类型
  1776. Type *int32 `json:"type"`
  1777. }
  1778. // BatchMsg information response | BatchMsg信息返回体
  1779. // swagger:model BatchMsgInfoResp
  1780. type BatchMsgInfoResp struct {
  1781. BaseDataInfo
  1782. // BatchMsg information | BatchMsg数据
  1783. Data BatchMsgInfo `json:"data"`
  1784. }
  1785. // swagger:model WhatsappBatchMsgListReq
  1786. type WhatsappBatchMsgListReq struct {
  1787. PageInfo
  1788. // 批次号
  1789. BatchNo *string `json:"batchNo,optional"`
  1790. // 发送方微信ID
  1791. Phone *string `json:"phone,optional"`
  1792. // 内容
  1793. Msg *string `json:"msg,optional"`
  1794. }
  1795. // swagger:model WhatsappBatchMsgHistoryReq
  1796. type WhatsappBatchMsgHistoryReq struct {
  1797. PageInfo
  1798. IDReq
  1799. Status *uint8 `json:"status,optional"`
  1800. Phone *string `json:"phone,optional"`
  1801. }
  1802. // swagger:model WhatsappBatchMsgHistoryResp
  1803. type WhatsappBatchMsgHistoryResp struct {
  1804. BaseDataInfo
  1805. Data HistoryListInfo `json:"data"`
  1806. }
  1807. // swagger:model HistoryListInfo
  1808. type HistoryListInfo struct {
  1809. BaseListInfo
  1810. Data []HistoryInfo `json:"data"`
  1811. }
  1812. // swagger:model HistoryInfo
  1813. type HistoryInfo struct {
  1814. Index *uint64 `json:"index,optional"`
  1815. From *string `json:"from,optional"`
  1816. To *string `json:"to,optional"`
  1817. SendTime *int64 `json:"sendTime,optional"`
  1818. BatchNo *string `json:"batchNo,optional"`
  1819. Cc *string `json:"cc,optional"`
  1820. Phone *string `json:"phone,optional"`
  1821. Status *uint8 `json:"status,optional"`
  1822. }
  1823. // swagger:model SendMsgReq
  1824. type SendMsgReq struct {
  1825. Phone *string `json:"phone"`
  1826. To *string `json:"to"`
  1827. Lang *string `json:"lang"`
  1828. TemplateCode *string `json:"templateCode"`
  1829. }
  1830. // The data of msg information | Msg信息
  1831. // swagger:model MsgInfo
  1832. type MsgInfo struct {
  1833. BaseIDInfo
  1834. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  1835. Status *uint8 `json:"status,optional"`
  1836. // 发送方微信ID
  1837. Fromwxid *string `json:"fromwxid,optional"`
  1838. // 接收人微信ID/群ID
  1839. Toid *string `json:"toid,optional"`
  1840. // 消息类型
  1841. Msgtype *int32 `json:"msgtype,optional"`
  1842. // 消息
  1843. Msg *string `json:"msg,optional"`
  1844. // 批次号
  1845. BatchNo *string `json:"batchNo,optional"`
  1846. }
  1847. // The response data of msg list | Msg列表数据
  1848. // swagger:model MsgListResp
  1849. type MsgListResp struct {
  1850. BaseDataInfo
  1851. // Msg list data | Msg列表数据
  1852. Data MsgListInfo `json:"data"`
  1853. }
  1854. // Msg list data | Msg列表数据
  1855. // swagger:model MsgListInfo
  1856. type MsgListInfo struct {
  1857. BaseListInfo
  1858. // The API list data | Msg列表数据
  1859. Data []MsgInfo `json:"data"`
  1860. }
  1861. // Get msg list request params | Msg列表请求参数
  1862. // swagger:model MsgListReq
  1863. type MsgListReq struct {
  1864. PageInfo
  1865. // 状态
  1866. Status *uint8 `json:"status,optional"`
  1867. // 接收人微信ID/群ID
  1868. Toid *string `json:"toid,optional"`
  1869. // 群发消息ID
  1870. BatchId *uint64 `json:"batchId"`
  1871. }
  1872. // Msg information response | Msg信息返回体
  1873. // swagger:model MsgInfoResp
  1874. type MsgInfoResp struct {
  1875. BaseDataInfo
  1876. // Msg information | Msg数据
  1877. Data MsgInfo `json:"data"`
  1878. }
  1879. // The data of employee information | Employee信息
  1880. // swagger:model EmployeeInfo
  1881. type EmployeeInfo struct {
  1882. BaseIDInfo
  1883. // title | 标题
  1884. Title *string `json:"title,optional"`
  1885. // avatar | 头像
  1886. Avatar *string `json:"avatar,optional"`
  1887. // tags | 个人标签
  1888. Tags *string `json:"tags,optional"`
  1889. // hire_count | 被雇佣次数
  1890. HireCount *int `json:"hireCount,optional"`
  1891. // service_count | 已服务次数
  1892. ServiceCount *int `json:"serviceCount,optional"`
  1893. // achievement_count | 业绩单数
  1894. AchievementCount *int `json:"achievementCount,optional"`
  1895. // category_id | 分类ID
  1896. CategoryId *uint64 `json:"categoryId,optional"`
  1897. // intro | 个人介绍
  1898. Intro *string `json:"intro,optional"`
  1899. // estimate | 自我评价
  1900. Estimate *string `json:"estimate,optional"`
  1901. // skill | 技能卡
  1902. Skill *string `json:"skill,optional"`
  1903. // ability_type | 能力类型
  1904. AbilityType *string `json:"abilityType,optional"`
  1905. // scene | 使用场景
  1906. Scene *string `json:"scene,optional"`
  1907. SceneList []EmployeeConfigInfo `json:"sceneList,optional"`
  1908. // switch_in | 支持介入
  1909. SwitchIn *string `json:"switchIn,optional"`
  1910. SwitchInList []EmployeeConfigInfo `json:"switchInList,optional"`
  1911. Tutorial []TutorialInfo `json:"tutorial,optional"`
  1912. // video_url | 视频地址
  1913. VideoUrl *string `json:"videoUrl,optional"`
  1914. // work_experience | 工作经验
  1915. WorkExperience []WorkExperienceInfo `json:"workExperience,optional"`
  1916. ApiBase *string `json:"apiBase,optional"`
  1917. ApiKey *string `json:"apiKey,optional"`
  1918. // AI信息
  1919. AiInfo *string `json:"aiInfo,optional"`
  1920. ShowChat *bool `json:"showChat,optional"`
  1921. IsVip *bool `json:"isVip,optional"`
  1922. ChatUrl *string `json:"chatUrl,optional"`
  1923. }
  1924. // The response data of employee list | Employee列表数据
  1925. // swagger:model EmployeeListResp
  1926. type EmployeeListResp struct {
  1927. BaseDataInfo
  1928. // Employee list data | Employee列表数据
  1929. Data EmployeeListInfo `json:"data"`
  1930. }
  1931. // Employee list data | Employee列表数据
  1932. // swagger:model EmployeeListInfo
  1933. type EmployeeListInfo struct {
  1934. BaseListInfo
  1935. // The API list data | Employee列表数据
  1936. Data []EmployeeInfo `json:"data"`
  1937. }
  1938. // Get employee list request params | Employee列表请求参数
  1939. // swagger:model EmployeeListReq
  1940. type EmployeeListReq struct {
  1941. PageInfo
  1942. // title | 标题
  1943. Title *string `json:"title,optional"`
  1944. // tags | 个人标签
  1945. Tags *string `json:"tags,optional"`
  1946. // category_id | 分类ID
  1947. CategoryId *uint64 `json:"categoryId,optional"`
  1948. }
  1949. // Employee information response | Employee信息返回体
  1950. // swagger:model EmployeeInfoResp
  1951. type EmployeeInfoResp struct {
  1952. BaseDataInfo
  1953. // Employee information | Employee数据
  1954. Data EmployeeInfo `json:"data"`
  1955. }
  1956. // swagger:model AuthReq
  1957. type AuthReq struct {
  1958. Token *string `json:"token,optional"`
  1959. Data uint64 `json:"data,optional"`
  1960. }
  1961. // swagger:model AuthResp
  1962. type AuthResp struct {
  1963. Token *string `json:"token,optional"`
  1964. Data *uint64 `json:"data,optional"`
  1965. Original interface{} `json:"original,optional"`
  1966. OK interface{} `json:"ok,optional"`
  1967. SecretKey string `json:"secretKey,optional"`
  1968. }
  1969. // The data of work experience information | WorkExperience信息
  1970. // swagger:model WorkExperienceInfo
  1971. type WorkExperienceInfo struct {
  1972. BaseIDInfo
  1973. // employee_id | 员工ID
  1974. EmployeeId *uint64 `json:"employeeId,optional"`
  1975. // start_date | 开始时间
  1976. StartDate *int64 `json:"startDate,optional"`
  1977. StartDateStr *string `json:"startDateStr,optional"`
  1978. // end_date | 结束时间
  1979. EndDate *int64 `json:"endDate,optional"`
  1980. EndDateStr *string `json:"endDateStr,optional"`
  1981. // company | 公司名
  1982. Company *string `json:"company,optional"`
  1983. // experience | 工作内容
  1984. Experience *string `json:"experience,optional"`
  1985. }
  1986. // The response data of work experience list | WorkExperience列表数据
  1987. // swagger:model WorkExperienceListResp
  1988. type WorkExperienceListResp struct {
  1989. BaseDataInfo
  1990. // WorkExperience list data | WorkExperience列表数据
  1991. Data WorkExperienceListInfo `json:"data"`
  1992. }
  1993. // WorkExperience list data | WorkExperience列表数据
  1994. // swagger:model WorkExperienceListInfo
  1995. type WorkExperienceListInfo struct {
  1996. BaseListInfo
  1997. // The API list data | WorkExperience列表数据
  1998. Data []WorkExperienceInfo `json:"data"`
  1999. }
  2000. // Get work experience list request params | WorkExperience列表请求参数
  2001. // swagger:model WorkExperienceListReq
  2002. type WorkExperienceListReq struct {
  2003. PageInfo
  2004. // company | 公司名
  2005. Company *string `json:"company,optional"`
  2006. }
  2007. // WorkExperience information response | WorkExperience信息返回体
  2008. // swagger:model WorkExperienceInfoResp
  2009. type WorkExperienceInfoResp struct {
  2010. BaseDataInfo
  2011. // WorkExperience information | WorkExperience数据
  2012. Data WorkExperienceInfo `json:"data"`
  2013. }
  2014. // The data of tutorial information | Tutorial信息
  2015. // swagger:model TutorialInfo
  2016. type TutorialInfo struct {
  2017. BaseIDInfo
  2018. // employee_id | 员工ID
  2019. EmployeeId *uint64 `json:"employeeId,optional"`
  2020. // index | 序号
  2021. Index *int `json:"index,optional"`
  2022. // title | 标题
  2023. Title *string `json:"title,optional"`
  2024. // content | 内容
  2025. Content *string `json:"content,optional"`
  2026. }
  2027. // The response data of tutorial list | Tutorial列表数据
  2028. // swagger:model TutorialListResp
  2029. type TutorialListResp struct {
  2030. BaseDataInfo
  2031. // Tutorial list data | Tutorial列表数据
  2032. Data TutorialListInfo `json:"data"`
  2033. }
  2034. // Tutorial list data | Tutorial列表数据
  2035. // swagger:model TutorialListInfo
  2036. type TutorialListInfo struct {
  2037. BaseListInfo
  2038. // The API list data | Tutorial列表数据
  2039. Data []TutorialInfo `json:"data"`
  2040. }
  2041. // Get tutorial list request params | Tutorial列表请求参数
  2042. // swagger:model TutorialListReq
  2043. type TutorialListReq struct {
  2044. PageInfo
  2045. // title | 标题
  2046. Title *string `json:"title,optional"`
  2047. // content | 内容
  2048. Content *string `json:"content,optional"`
  2049. }
  2050. // Tutorial information response | Tutorial信息返回体
  2051. // swagger:model TutorialInfoResp
  2052. type TutorialInfoResp struct {
  2053. BaseDataInfo
  2054. // Tutorial information | Tutorial数据
  2055. Data TutorialInfo `json:"data"`
  2056. }
  2057. // The data of employee config information | EmployeeConfig信息
  2058. // swagger:model EmployeeConfigInfo
  2059. type EmployeeConfigInfo struct {
  2060. BaseIDInfo
  2061. // 类型:scene-场景 switch_in-接入方式
  2062. Stype *string `json:"stype,optional"`
  2063. // 标题
  2064. Title *string `json:"title,optional"`
  2065. // 图片地址
  2066. Photo *string `json:"photo,optional"`
  2067. }
  2068. // EmployeeConfig list data | EmployeeConfig列表数据
  2069. // swagger:model EmployeeConfigListInfo
  2070. type EmployeeConfigListInfo struct {
  2071. BaseListInfo
  2072. // The API list data | EmployeeConfig列表数据
  2073. Data []EmployeeConfigInfo `json:"data"`
  2074. }
  2075. // Employee config response | Employee配置信息返回体
  2076. // swagger:model EmployeeConfigListReq
  2077. type EmployeeConfigListReq struct {
  2078. /// 类型:scene-场景 switch_in-接入方式
  2079. Stype *string `json:"stype,optional"`
  2080. }
  2081. // EmployeeConfig information response | EmployeeConfig信息返回体
  2082. type EmployeeConfig struct {
  2083. Scene []EmployeeConfigInfo `json:"scene"`
  2084. SwitchIn []EmployeeConfigInfo `json:"switchIn"`
  2085. }
  2086. // Employee config response | Employee配置信息返回体
  2087. // swagger:model EmployeeConfigListResp
  2088. type EmployeeConfigListResp struct {
  2089. BaseDataInfo
  2090. // Employee information | Employee数据
  2091. Data EmployeeConfig `json:"data"`
  2092. }
  2093. // The data of token information | Token信息
  2094. // swagger:model TokenInfo
  2095. type TokenInfo struct {
  2096. BaseIDInfo
  2097. // 过期时间
  2098. ExpireAt *int64 `json:"expireAt,optional"`
  2099. ExpireAtStr *string `json:"expireAtStr,optional"`
  2100. // Token
  2101. Token *string `json:"token,optional"`
  2102. // Mac地址
  2103. Mac *string `json:"mac,optional"`
  2104. // 租户ID
  2105. OrganizationId *uint64 `json:"organization_id,optional"`
  2106. OrganizationName *string `json:"organizationName,optional"`
  2107. AgentId *uint64 `json:"agent_id,optional"`
  2108. AgentInfo *AgentInfo `json:"agent_info,optional"`
  2109. CustomAgentBase *string `json:"custom_agent_base,optional"`
  2110. CustomAgentKey *string `json:"custom_agent_key,optional"`
  2111. OpenaiBase *string `json:"openai_base,optional"`
  2112. OpenaiKey *string `json:"openai_key,optional"`
  2113. }
  2114. // The response data of token list | Token列表数据
  2115. // swagger:model TokenListResp
  2116. type TokenListResp struct {
  2117. BaseDataInfo
  2118. // Token list data | Token列表数据
  2119. Data TokenListInfo `json:"data"`
  2120. }
  2121. // Token list data | Token列表数据
  2122. // swagger:model TokenListInfo
  2123. type TokenListInfo struct {
  2124. BaseListInfo
  2125. // The API list data | Token列表数据
  2126. Data []TokenInfo `json:"data"`
  2127. }
  2128. // Get token list request params | Token列表请求参数
  2129. // swagger:model TokenListReq
  2130. type TokenListReq struct {
  2131. PageInfo
  2132. // Token
  2133. Token *string `json:"token,optional"`
  2134. // Mac地址
  2135. Mac *string `json:"mac,optional"`
  2136. OrganizationId *uint64 `json:"organization_id,optional"`
  2137. OrganizationName *string `json:"organizationName,optional"`
  2138. }
  2139. // Token information response | Token信息返回体
  2140. // swagger:model TokenInfoResp
  2141. type TokenInfoResp struct {
  2142. BaseDataInfo
  2143. // Token information | Token数据
  2144. Data TokenInfo `json:"data"`
  2145. }
  2146. // swagger:model CheckTokenReq
  2147. type CheckTokenReq struct {
  2148. // Token
  2149. Token *string `json:"token"`
  2150. // Mac地址
  2151. Mac *string `json:"mac"`
  2152. }
  2153. // swagger:model CheckTokenResp
  2154. type CheckTokenResp struct {
  2155. // 是否合法
  2156. Valid *bool `json:"valid"`
  2157. // Sign 签名内容
  2158. Sign *string `json:"sign"`
  2159. // Timestamp 时间戳
  2160. Timestamp *int64 `json:"timestamp"`
  2161. AgentInfo *AgentInfo `json:"agent_info"`
  2162. CustomAgentBase *string `json:"custom_agent_base"`
  2163. CustomAgentKey *string `json:"custom_agent_key"`
  2164. OpenaiBase *string `json:"openai_base"`
  2165. OpenaiKey *string `json:"openai_key"`
  2166. DatasetBase *string `json:"dataset_base"`
  2167. DatasetKey *string `json:"dataset_key"`
  2168. }
  2169. // The data of category information | Category信息
  2170. // swagger:model CategoryInfo
  2171. type CategoryInfo struct {
  2172. BaseIDInfo
  2173. // name | 角色名称
  2174. Name *string `json:"name,optional"`
  2175. // organization_id | 租户ID
  2176. OrganizationId *uint64 `json:"organizationId,optional"`
  2177. }
  2178. // The response data of category list | Category列表数据
  2179. // swagger:model CategoryListResp
  2180. type CategoryListResp struct {
  2181. BaseDataInfo
  2182. // Category list data | Category列表数据
  2183. Data CategoryListInfo `json:"data"`
  2184. }
  2185. // Category list data | Category列表数据
  2186. // swagger:model CategoryListInfo
  2187. type CategoryListInfo struct {
  2188. BaseListInfo
  2189. // The API list data | Category列表数据
  2190. Data []CategoryInfo `json:"data"`
  2191. }
  2192. // Get category list request params | Category列表请求参数
  2193. // swagger:model CategoryListReq
  2194. type CategoryListReq struct {
  2195. PageInfo
  2196. // name | 角色名称
  2197. Name *string `json:"name,optional"`
  2198. }
  2199. // Category information response | Category信息返回体
  2200. // swagger:model CategoryInfoResp
  2201. type CategoryInfoResp struct {
  2202. BaseDataInfo
  2203. // Category information | Category数据
  2204. Data CategoryInfo `json:"data"`
  2205. }
  2206. // The data of agent base information | AgentBase信息
  2207. // swagger:model AgentBaseInfo
  2208. type AgentBaseInfo struct {
  2209. Id *string `json:"id,optional"`
  2210. }
  2211. // The response data of agent base list | AgentBase列表数据
  2212. // swagger:model AgentBaseListResp
  2213. type AgentBaseListResp struct {
  2214. BaseDataInfo
  2215. // AgentBase list data | AgentBase列表数据
  2216. Data AgentBaseListInfo `json:"data"`
  2217. }
  2218. // AgentBase list data | AgentBase列表数据
  2219. // swagger:model AgentBaseListInfo
  2220. type AgentBaseListInfo struct {
  2221. BaseListInfo
  2222. // The API list data | AgentBase列表数据
  2223. Data []AgentBaseInfo `json:"data"`
  2224. }
  2225. // Get agent base list request params | AgentBase列表请求参数
  2226. // swagger:model AgentBaseListReq
  2227. type AgentBaseListReq struct {
  2228. PageInfo
  2229. // q
  2230. Q *string `json:"q,optional"`
  2231. // a
  2232. A *string `json:"a,optional"`
  2233. // dataset_id
  2234. DatasetId *string `json:"datasetId,optional"`
  2235. }
  2236. // AgentBase information response | AgentBase信息返回体
  2237. // swagger:model AgentBaseInfoResp
  2238. type AgentBaseInfoResp struct {
  2239. BaseDataInfo
  2240. // AgentBase information | AgentBase数据
  2241. Data AgentBaseInfo `json:"data"`
  2242. }
  2243. // The data of chat records information | ChatRecords信息
  2244. // swagger:model ChatRecordsInfo
  2245. type ChatRecordsInfo struct {
  2246. BaseIDInfo
  2247. // 内容
  2248. Content *string `json:"content,optional"`
  2249. // 内容类型:1-提问 2-回答
  2250. ContentType *uint8 `json:"contentType,optional"`
  2251. // 角色类型:1-用户 2-智能体
  2252. RoleType *string `json:"roleType,optional"`
  2253. // 会话ID
  2254. SessionId *uint64 `json:"sessionId,optional"`
  2255. // 用户ID
  2256. UserId *uint64 `json:"userId,optional"`
  2257. // 聊天ID
  2258. BotId *uint64 `json:"botId,optional"`
  2259. // 类型:1-微信 2-小程序card 3-智能体
  2260. BotType *uint8 `json:"botType,optional,options=1|2|3"`
  2261. Finish bool `json:"finish,optional"`
  2262. }
  2263. // The response data of chat records list | ChatRecords列表数据
  2264. // swagger:model ChatRecordsListResp
  2265. type ChatRecordsListResp struct {
  2266. BaseDataInfo
  2267. // ChatRecords list data | ChatRecords列表数据
  2268. Data ChatRecordsListInfo `json:"data"`
  2269. }
  2270. // ChatRecords list data | ChatRecords列表数据
  2271. // swagger:model ChatRecordsListInfo
  2272. type ChatRecordsListInfo struct {
  2273. BaseListInfo
  2274. // The API list data | ChatRecords列表数据
  2275. Data []ChatRecordsInfo `json:"data"`
  2276. }
  2277. // Get chat records list request params | ChatRecords列表请求参数
  2278. // swagger:model ChatRecordsListReq
  2279. type ChatRecordsListReq struct {
  2280. PageInfo
  2281. SessionId *uint64 `json:"sessionId"`
  2282. BotId *uint64 `json:"botId,optional"`
  2283. BotType *uint8 `json:"botType,optional"`
  2284. }
  2285. // ChatRecords information response | ChatRecords信息返回体
  2286. // swagger:model ChatRecordsInfoResp
  2287. type ChatRecordsInfoResp struct {
  2288. BaseDataInfo
  2289. // ChatRecords information | ChatRecords数据
  2290. Data ChatRecordsInfo `json:"data"`
  2291. }
  2292. // swagger:model ChatRecommendReq
  2293. type ChatRecommendReq struct {
  2294. SessionId *uint64 `json:"sessionId"`
  2295. }
  2296. // swagger:model ChatRecommendResp
  2297. type ChatRecommendResp struct {
  2298. BaseDataInfo
  2299. // The API list data | ChatRecords列表数据
  2300. Data ChatRecommend `json:"data"`
  2301. }
  2302. type ChatRecommend struct {
  2303. Data []string `json:"data"`
  2304. SessionId uint64 `json:"sessionId"`
  2305. }
  2306. // swagger:model ChatAskReq
  2307. type ChatAskReq struct {
  2308. CardId *uint64 `json:"cardId"`
  2309. Question *string `json:"question"`
  2310. SessionId *int `json:"sessionId"`
  2311. }
  2312. // swagger:model ChatAskResp
  2313. type ChatAskResp struct {
  2314. BaseDataInfo
  2315. Data *string `json:"data"`
  2316. }
  2317. // swagger:model GptChatReq
  2318. type GptChatReq struct {
  2319. ConversationId *string `json:"conversationId,optional"`
  2320. Content *string `json:"content"`
  2321. AgentId *uint64 `json:"agentId"`
  2322. }
  2323. // swagger:model GptMessageReq
  2324. type GptMessageReq struct {
  2325. ConversationId *string `json:"conversationId,optional"`
  2326. FirstId *string `json:"firstId,optional"`
  2327. Limit *int `json:"limit"`
  2328. AgentId *uint64 `json:"agentId"`
  2329. }
  2330. // swagger:model GptMessageResp
  2331. type GptMessageResp struct {
  2332. BaseDataInfo
  2333. Data GptMessageList `json:"data"`
  2334. }
  2335. type GptMessageList struct {
  2336. HasMore bool `json:"hasMore"`
  2337. Data []Message `json:"data"`
  2338. }
  2339. type Message struct {
  2340. Id *string `json:"id"`
  2341. ConversationId *string `json:"conversationId,optional"`
  2342. Query *string `json:"query"`
  2343. Answer *string `json:"answer"`
  2344. Inputs interface{} `json:"inputs"`
  2345. CreatedAt *int `json:"createdAt"`
  2346. }
  2347. // swagger:model GptsSessionReq
  2348. type GptsSessionReq struct {
  2349. Limit *int `json:"limit"`
  2350. LastId *string `json:"lastId,optional"`
  2351. AgentId *uint64 `json:"agentId"`
  2352. }
  2353. // swagger:model GptsSessionResp
  2354. type GptsSessionResp struct {
  2355. BaseDataInfo
  2356. Data GptsSessionList `json:"data"`
  2357. }
  2358. type GptsSessionList struct {
  2359. HasMore bool `json:"hasMore"`
  2360. Data []Session `json:"data"`
  2361. }
  2362. type Session struct {
  2363. Id *string `json:"id"`
  2364. Name *string `json:"name"`
  2365. CreatedAt *int `json:"createdAt"`
  2366. Inputs interface{} `json:"inputs"`
  2367. }
  2368. // swagger:model GptsDeleteSessionReq
  2369. type GptsDeleteSessionReq struct {
  2370. AgentId *uint64 `json:"agentId"`
  2371. ConversationId *string `json:"conversationId"`
  2372. }
  2373. // swagger:model GptsRenameSessionReq
  2374. type GptsRenameSessionReq struct {
  2375. AgentId *uint64 `json:"agentId"`
  2376. ConversationId *string `json:"conversationId"`
  2377. Name *string `json:"name"`
  2378. }
  2379. // The data of chat session information | ChatSession信息
  2380. // swagger:model ChatSessionInfo
  2381. type ChatSessionInfo struct {
  2382. BaseIDInfo
  2383. // 名称
  2384. Name *string `json:"name,optional"`
  2385. // 用户ID
  2386. UserId *uint64 `json:"userId,optional"`
  2387. UserName *string `json:"userName,optional"`
  2388. // 聊天ID
  2389. BotId *uint64 `json:"botId,optional"`
  2390. // 主体名称
  2391. BotName *string `json:"botName,optional"`
  2392. // 类型:1-微信 2-小程序card 3-智能体
  2393. BotType *uint8 `json:"botType,optional"`
  2394. // 类型:1-微信 2-小程序card 3-智能体
  2395. BotTypeStr *string `json:"botTypeStr,optional"`
  2396. }
  2397. // The response data of chat session list | ChatSession列表数据
  2398. // swagger:model ChatSessionListResp
  2399. type ChatSessionListResp struct {
  2400. BaseDataInfo
  2401. // ChatSession list data | ChatSession列表数据
  2402. Data ChatSessionListInfo `json:"data"`
  2403. }
  2404. // ChatSession list data | ChatSession列表数据
  2405. // swagger:model ChatSessionListInfo
  2406. type ChatSessionListInfo struct {
  2407. BaseListInfo
  2408. // The API list data | ChatSession列表数据
  2409. Data []ChatSessionInfo `json:"data"`
  2410. }
  2411. // Get chat session list request params | ChatSession列表请求参数
  2412. // swagger:model ChatSessionListReq
  2413. type ChatSessionListReq struct {
  2414. PageInfo
  2415. BotId *uint64 `json:"botId,optional"`
  2416. BotType *uint8 `json:"botType,optional"`
  2417. BotName *string `json:"botName,optional"`
  2418. }
  2419. // ChatSession information response | ChatSession信息返回体
  2420. // swagger:model ChatSessionInfoResp
  2421. type ChatSessionInfoResp struct {
  2422. BaseDataInfo
  2423. // ChatSession information | ChatSession数据
  2424. Data ChatSessionInfo `json:"data"`
  2425. }
  2426. // The data of wx card information | WxCard信息
  2427. // swagger:model WxCardInfo
  2428. type WxCardInfo struct {
  2429. BaseIDInfo
  2430. // user表ID
  2431. UserId *uint64 `json:"userId,optional"`
  2432. // wx表ID
  2433. WxUserId *uint64 `json:"wxUserId,optional"`
  2434. // 头像
  2435. Avatar *string `json:"avatar,optional"`
  2436. // logo
  2437. Logo *string `json:"logo,optional"`
  2438. // 名称
  2439. Name *string `json:"name,optional"`
  2440. // 公司
  2441. Company *string `json:"company,optional"`
  2442. // 地址
  2443. Address *string `json:"address,optional"`
  2444. // 手机号
  2445. Phone *string `json:"phone,optional"`
  2446. // 公众号
  2447. OfficialAccount *string `json:"officialAccount,optional"`
  2448. // 微信号
  2449. WechatAccount *string `json:"wechatAccount,optional"`
  2450. // 邮箱
  2451. Email *string `json:"email,optional"`
  2452. // 聊天信息
  2453. ApiBase *string `json:"apiBase,optional"`
  2454. ApiKey *string `json:"apiKey,optional"`
  2455. // AI信息
  2456. AiInfo *string `json:"aiInfo,optional"`
  2457. // 个人介绍
  2458. Intro *string `json:"intro,optional"`
  2459. ShowChat *bool `json:"showChat,optional"`
  2460. ShowAi *bool `json:"showAi,optional"`
  2461. IsVip *bool `json:"isVip,optional"`
  2462. }
  2463. // swagger:model WxCardSimpleInfo
  2464. type WxCardSimpleInfo struct {
  2465. ID *uint64 `json:"id,optional"`
  2466. // 头像
  2467. Avatar *string `json:"avatar,optional"`
  2468. // 名称
  2469. Name *string `json:"name,optional"`
  2470. Type *string `json:"type,optional"`
  2471. }
  2472. // The response data of wx card list | WxCard列表数据
  2473. // swagger:model WxCardListResp
  2474. type WxCardListResp struct {
  2475. BaseDataInfo
  2476. // WxCard list data | WxCard列表数据
  2477. Data WxCardListInfo `json:"data"`
  2478. }
  2479. // WxCard list data | WxCard列表数据
  2480. // swagger:model WxCardListInfo
  2481. type WxCardListInfo struct {
  2482. BaseListInfo
  2483. // The API list data | WxCard列表数据
  2484. Data []WxCardInfo `json:"data"`
  2485. }
  2486. // Get wx card list request params | WxCard列表请求参数
  2487. // swagger:model WxCardListReq
  2488. type WxCardListReq struct {
  2489. PageInfo
  2490. // 头像
  2491. Avatar *string `json:"avatar,optional"`
  2492. // logo
  2493. Logo *string `json:"logo,optional"`
  2494. // 名称
  2495. Name *string `json:"name,optional"`
  2496. }
  2497. // WxCard information response | WxCard信息返回体
  2498. // swagger:model WxCardInfoResp
  2499. type WxCardInfoResp struct {
  2500. BaseDataInfo
  2501. // WxCard information | WxCard数据
  2502. Data WxCardInfo `json:"data"`
  2503. }
  2504. // swagger:model QrcodeReq
  2505. type QrcodeReq struct {
  2506. Path string `form:"path"`
  2507. Width int64 `form:"width"`
  2508. EnvVersion string `form:"envVersion"`
  2509. }
  2510. // The data of wx card user information | WxCardUser信息
  2511. // swagger:model WxCardUserInfo
  2512. type WxCardUserInfo struct {
  2513. BaseIDInfo
  2514. // 微信id
  2515. Wxid *string `json:"wxid,optional"`
  2516. // 微信号
  2517. Account *string `json:"account,optional"`
  2518. // 头像
  2519. Avatar *string `json:"avatar,optional"`
  2520. // 昵称
  2521. Nickname *string `json:"nickname,optional"`
  2522. // 备注名
  2523. Remark *string `json:"remark,optional"`
  2524. // 手机号
  2525. Phone *string `json:"phone,optional"`
  2526. // OpenID
  2527. OpenId *string `json:"openId,optional"`
  2528. // UnionID
  2529. UnionId *string `json:"unionId,optional"`
  2530. // SessionKey
  2531. SessionKey *string `json:"sessionKey,optional"`
  2532. // IsVip
  2533. IsVip *string `json:"isVip,optional"`
  2534. }
  2535. // The response data of wx card user list | WxCardUser列表数据
  2536. // swagger:model WxCardUserListResp
  2537. type WxCardUserListResp struct {
  2538. BaseDataInfo
  2539. // WxCardUser list data | WxCardUser列表数据
  2540. Data WxCardUserListInfo `json:"data"`
  2541. }
  2542. // WxCardUser list data | WxCardUser列表数据
  2543. // swagger:model WxCardUserListInfo
  2544. type WxCardUserListInfo struct {
  2545. BaseListInfo
  2546. // The API list data | WxCardUser列表数据
  2547. Data []WxCardUserInfo `json:"data"`
  2548. }
  2549. // Get wx card user list request params | WxCardUser列表请求参数
  2550. // swagger:model WxCardUserListReq
  2551. type WxCardUserListReq struct {
  2552. PageInfo
  2553. // 微信id
  2554. Wxid *string `json:"wxid,optional"`
  2555. // 微信号
  2556. Account *string `json:"account,optional"`
  2557. // 头像
  2558. Avatar *string `json:"avatar,optional"`
  2559. // 昵称
  2560. Nickname *string `json:"nickname,optional"`
  2561. }
  2562. // WxCardUser information response | WxCardUser信息返回体
  2563. // swagger:model WxCardUserInfoResp
  2564. type WxCardUserInfoResp struct {
  2565. BaseDataInfo
  2566. // WxCardUser information | WxCardUser数据
  2567. Data WxCardUserInfo `json:"data"`
  2568. }
  2569. // The data of wx card visit information | WxCardVisit信息
  2570. // swagger:model WxCardVisitInfo
  2571. type WxCardVisitInfo struct {
  2572. BaseIDInfo
  2573. // user表ID
  2574. UserId *uint64 `json:"userId,optional"`
  2575. // user名
  2576. UserName *string `json:"userName,optional"`
  2577. // 被访ID
  2578. BotId *uint64 `json:"botId,optional"`
  2579. // 类型:1-微信 2-小程序 3-智能体
  2580. BotType *uint8 `json:"botType,optional"`
  2581. // 类型:1-微信 2-小程序 3-智能体
  2582. BotTypeStr *string `json:"botTypeStr,optional"`
  2583. CardInfo WxCardSimpleInfo `json:"cardInfo,optional,omitempty"`
  2584. }
  2585. // swagger:model WxCardVisitReq
  2586. type WxCardVisitReq struct {
  2587. BaseIDInfo
  2588. // user表ID
  2589. UserId *uint64 `json:"userId,optional"`
  2590. // 被访ID
  2591. BotId *uint64 `json:"botId,optional"`
  2592. // 类型:1-微信 2-小程序 3-智能体
  2593. BotType *uint8 `json:"botType,optional"`
  2594. }
  2595. // swagger:model WxCardVisitSingleInfo
  2596. type WxCardVisitSingleInfo struct {
  2597. BaseIDInfo
  2598. // user表ID
  2599. UserId *uint64 `json:"userId,optional"`
  2600. // 被访ID
  2601. BotId *uint64 `json:"botId,optional"`
  2602. // 类型:1-微信 2-小程序 3-智能体
  2603. BotType *uint8 `json:"botType,optional"`
  2604. CardInfo WxCardInfo `json:"cardInfo,optional"`
  2605. }
  2606. // The response data of wx card visit list | WxCardVisit列表数据
  2607. // swagger:model WxCardVisitListResp
  2608. type WxCardVisitListResp struct {
  2609. BaseDataInfo
  2610. // WxCardVisit list data | WxCardVisit列表数据
  2611. Data WxCardVisitListInfo `json:"data"`
  2612. }
  2613. // WxCardVisit list data | WxCardVisit列表数据
  2614. // swagger:model WxCardVisitListInfo
  2615. type WxCardVisitListInfo struct {
  2616. BaseListInfo
  2617. // The API list data | WxCardVisit列表数据
  2618. Data []WxCardVisitInfo `json:"data"`
  2619. }
  2620. // Get wx card visit list request params | WxCardVisit列表请求参数
  2621. // swagger:model WxCardVisitListReq
  2622. type WxCardVisitListReq struct {
  2623. PageInfo
  2624. BotId *uint64 `json:"botId,optional"`
  2625. BotType *uint8 `json:"botType,optional"`
  2626. BotName *string `json:"botName,optional"`
  2627. }
  2628. // WxCardVisit information response | WxCardVisit信息返回体
  2629. // swagger:model WxCardVisitInfoResp
  2630. type WxCardVisitInfoResp struct {
  2631. BaseDataInfo
  2632. // WxCardVisit information | WxCardVisit数据
  2633. Data WxCardVisitInfo `json:"data"`
  2634. }
  2635. // swagger:model AvatarInfo
  2636. type AvatarInfo struct {
  2637. RequestId *string `json:"requestId"`
  2638. SessionId *string `json:"SessionId"`
  2639. Token *string `json:"token"`
  2640. Channel Channel `json:"channel"`
  2641. }
  2642. type Channel struct {
  2643. ChannelId *string `json:"channelId"`
  2644. Token *string `json:"token"`
  2645. Type *string `json:"type"`
  2646. ExpiredTime *string `json:"expiredTime"`
  2647. Nonce *string `json:"nonce"`
  2648. UserId *string `json:"userId"`
  2649. AppId *string `json:"appId"`
  2650. UserInfoInChannel *string `json:"userInfoInChannel"`
  2651. Gslb []*string `json:"gslb"`
  2652. }
  2653. // start avatar request | 启动数字人
  2654. // swagger:model AvatarConfigReq
  2655. type AvatarConfigReq struct {
  2656. // 名片 ID
  2657. CardId *uint64 `json:"card_id,optional"`
  2658. }
  2659. // start avatar response | 启动数字人
  2660. // swagger:model AvatarConfigResp
  2661. type AvatarConfigResp struct {
  2662. BaseDataInfo
  2663. // Agent information | Agent数据
  2664. Data AvatarInfo `json:"data"`
  2665. Extra Extra `json:"extra"`
  2666. }
  2667. type Extra struct {
  2668. Live int64 `json:"live"`
  2669. Total int64 `json:"total"`
  2670. }
  2671. // swagger:model AvatarStsResp
  2672. type AvatarStsResp struct {
  2673. BaseDataInfo
  2674. // Sts information | Sts 数据
  2675. Data StsInfo `json:"data"`
  2676. }
  2677. // swagger:model StsInfo
  2678. type StsInfo struct {
  2679. Expiration *string `json:"expiration"`
  2680. AccessKeyId *string `json:"accessKeyId"`
  2681. AccessKeySecret *string `json:"accessKeySecret"`
  2682. SecurityToken *string `json:"securityToken"`
  2683. RequestId *string `json:"requestId"`
  2684. }
  2685. // swagger:model AvatarSignatureResp
  2686. type AvatarSignatureResp struct {
  2687. BaseDataInfo
  2688. // Sts information | Sts 数据
  2689. Data SignatureInfo `json:"data"`
  2690. }
  2691. // swagger:model SignatureInfo
  2692. type SignatureInfo struct {
  2693. Key *string `json:"key"`
  2694. OSSAccessKeyId *string `json:"OSSAccessKeyId"`
  2695. Policy *string `json:"policy"`
  2696. Signature *string `json:"signature"`
  2697. }
  2698. // send text | 数字人-发送消息
  2699. // swagger:model SendTextReq
  2700. type SendTextReq struct {
  2701. CardId *uint64 `json:"cardId"`
  2702. SessionId *string `json:"sessionId"`
  2703. Text *string `json:"text"`
  2704. IsStream *bool `json:"isStream,optional"`
  2705. Index *int32 `json:"index,optional"`
  2706. Position *string `json:"position,optional"`
  2707. }
  2708. // swagger:model SendTextResp
  2709. type SendTextResp struct {
  2710. BaseDataInfo
  2711. Data SendText `json:"data"`
  2712. }
  2713. type SendText struct {
  2714. SessionId *string `json:"sessionId"`
  2715. UniqueCode *string `json:"uniqueCode"`
  2716. }
  2717. // stop instance | 数字人-停止实例
  2718. // swagger:model StopInstanceReq
  2719. type StopInstanceReq struct {
  2720. CardId *uint64 `json:"cardId"`
  2721. SessionId *string `json:"sessionId"`
  2722. }
  2723. // swagger:model StopInstanceResp
  2724. type StopInstanceResp struct {
  2725. BaseDataInfo
  2726. Data StopInstance `json:"data"`
  2727. }
  2728. type StopInstance struct {
  2729. SessionId *string `json:"sessionId"`
  2730. RequestId *string `json:"requestId"`
  2731. }
  2732. // The data of aliyun avatar information | AliyunAvatar信息
  2733. // swagger:model AliyunAvatarInfo
  2734. type AliyunAvatarInfo struct {
  2735. BaseIDInfo
  2736. // user_id | wx_card_user_id
  2737. UserId *uint64 `json:"userId,optional"`
  2738. // biz_id | BizId
  2739. BizId *string `json:"bizId,optional"`
  2740. // access_key_id | AccessKeyId
  2741. AccessKeyId *string `json:"accessKeyId,optional"`
  2742. // access_key_secret | AccessKeySecret
  2743. AccessKeySecret *string `json:"accessKeySecret,optional"`
  2744. // app_id | AppId
  2745. AppId *string `json:"appId,optional"`
  2746. // tenant_id | TenantId
  2747. TenantId *uint64 `json:"TenantId,optional"`
  2748. // response | 阿里云avatar响应
  2749. Response *string `json:"response,optional"`
  2750. // token | Token
  2751. Token *string `json:"token,optional"`
  2752. // session_id | SessionId
  2753. SessionId *string `json:"sessionId,optional"`
  2754. }
  2755. // The response data of aliyun avatar list | AliyunAvatar列表数据
  2756. // swagger:model AliyunAvatarListResp
  2757. type AliyunAvatarListResp struct {
  2758. BaseDataInfo
  2759. // AliyunAvatar list data | AliyunAvatar列表数据
  2760. Data AliyunAvatarListInfo `json:"data"`
  2761. }
  2762. // AliyunAvatar list data | AliyunAvatar列表数据
  2763. // swagger:model AliyunAvatarListInfo
  2764. type AliyunAvatarListInfo struct {
  2765. BaseListInfo
  2766. // The API list data | AliyunAvatar列表数据
  2767. Data []AliyunAvatarInfo `json:"data"`
  2768. }
  2769. // Get aliyun avatar list request params | AliyunAvatar列表请求参数
  2770. // swagger:model AliyunAvatarListReq
  2771. type AliyunAvatarListReq struct {
  2772. PageInfo
  2773. // biz_id | BizId
  2774. BizId *string `json:"bizId,optional"`
  2775. // access_key_id | AccessKeyId
  2776. AccessKeyId *string `json:"accessKeyId,optional"`
  2777. // access_key_secret | AccessKeySecret
  2778. AccessKeySecret *string `json:"accessKeySecret,optional"`
  2779. }
  2780. // AliyunAvatar information response | AliyunAvatar信息返回体
  2781. // swagger:model AliyunAvatarInfoResp
  2782. type AliyunAvatarInfoResp struct {
  2783. BaseDataInfo
  2784. // AliyunAvatar information | AliyunAvatar数据
  2785. Data AliyunAvatarInfo `json:"data"`
  2786. }
  2787. // The response data of UsageDetail information | UsageDetail信息
  2788. // swagger:model UsageDetailInfo
  2789. type UsageDetailInfo struct {
  2790. BaseIDInfo
  2791. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  2792. Status *uint8 `json:"status,optional"`
  2793. // 1 微信 2 名片
  2794. Type *int
  2795. // 微信id
  2796. BotId *string `json:"botId,optional"`
  2797. // 微信id或open_id
  2798. ReceiverId *string `json:"receiverId,optional"`
  2799. // 1 cow-basic 2 cow-agent 3 cow-sop 4 mp-card 5 mp-employee
  2800. App *string
  2801. // 名片会话id
  2802. SessionId *uint64 `json:"sessionId,optional"`
  2803. // 请求内容
  2804. Request *string `json:"request,optional"`
  2805. // 响应内容
  2806. Response *string `json:"response,optional"`
  2807. // 使用token总数
  2808. TotalTokens *uint64 `json:"totalTokens,optional"`
  2809. // 请求token数
  2810. PromptTokens *uint64 `json:"promptTokens,optional"`
  2811. // 响应token数
  2812. CompletionTokens *uint64 `json:"completionTokens,optional"`
  2813. // 组织ID
  2814. OrganizationId *uint64 `json:"organizationId,optional"`
  2815. }
  2816. // The response data of UsageDetail list | UsageDetail列表数据
  2817. // swagger:model UsageDetailListResp
  2818. type UsageDetailListResp struct {
  2819. BaseDataInfo
  2820. // UsageDetail list data | UsageDetail列表数据
  2821. Data UsageDetailListInfo `json:"data"`
  2822. }
  2823. // UsageDetail list data | UsageDetail列表数据
  2824. // swagger:model UsageDetailListInfo
  2825. type UsageDetailListInfo struct {
  2826. BaseListInfo
  2827. // The API list data | UsageDetail列表数据
  2828. Data []UsageDetailInfo `json:"data"`
  2829. }
  2830. // Get wx list request params | Wx列表请求参数
  2831. // swagger:model UsageDetailListReq
  2832. type UsageDetailListReq struct {
  2833. PageInfo
  2834. // 租户id
  2835. BotId *string `json:"botId,optional"`
  2836. }
  2837. // swagger:model UsageDetailResp
  2838. type UsageDetailResp struct {
  2839. BaseDataInfo
  2840. Data UsageDetailInfo `json:"data"`
  2841. }
  2842. // The response data of UsageTotal information | UsageTotal信息
  2843. // swagger:model UsageTotalInfo
  2844. type UsageTotalInfo struct {
  2845. BaseIDInfo
  2846. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  2847. Status *uint8 `json:"status,optional"`
  2848. // 1 微信 2 名片
  2849. Type *int
  2850. // 微信或名片id
  2851. BotId *string `json:"botId,optional"`
  2852. // 使用token总数
  2853. TotalTokens *uint64 `json:"totalTokens,optional"`
  2854. // 重制后的起始usage_detail 索引
  2855. StartIndex *uint64 `json:"startIndex,optional"`
  2856. // usage_detail 索引
  2857. EndIndex *uint64 `json:"endIndex,optional"`
  2858. // 组织ID
  2859. OrganizationId *uint64 `json:"organizationId,optional"`
  2860. }
  2861. // The response data of UsageTotal list | UsageTotal列表数据
  2862. // swagger:model UsageTotalListResp
  2863. type UsageTotalListResp struct {
  2864. BaseDataInfo
  2865. // UsageTotal list data | UsageTotal列表数据
  2866. Data UsageTotalListInfo `json:"data"`
  2867. }
  2868. // UsageTotal list data | UsageTotal列表数据
  2869. // swagger:model UsageTotalListInfo
  2870. type UsageTotalListInfo struct {
  2871. BaseListInfo
  2872. // The API list data | UsageTotal列表数据
  2873. Data []UsageTotalInfo `json:"data"`
  2874. }
  2875. // Get wx list request params | Wx列表请求参数
  2876. // swagger:model UsageTotalListReq
  2877. type UsageTotalListReq struct {
  2878. PageInfo
  2879. // 租户id
  2880. OrganizationId *uint64 `json:"organizationId,optional"`
  2881. }
  2882. // The data of alloc agent information | AllocAgent信息
  2883. // swagger:model AllocAgentInfo
  2884. type AllocAgentInfo struct {
  2885. BaseIDInfo
  2886. // user_id | 前台用户ID
  2887. UserId *string `json:"userId,optional"`
  2888. // organization_id | 租户ID
  2889. OrganizationId *uint64 `json:"organizationId,optional"`
  2890. // agents | 分配的智能体IDs
  2891. Agents []uint64 `json:"agents,optional"`
  2892. // status | 状态 1-正常 2-禁用
  2893. Status *int `json:"status,optional"`
  2894. }
  2895. type AllocAgentQuery struct {
  2896. // user_id | 前台用户ID
  2897. UserId *string `json:"userId,optional"`
  2898. // organization_id | 租户ID
  2899. OrganizationId *uint64 `json:"organizationId,optional"`
  2900. }
  2901. // The response data of alloc agent list | AllocAgent列表数据
  2902. // swagger:model AllocAgentListResp
  2903. type AllocAgentListResp struct {
  2904. BaseDataInfo
  2905. // AllocAgent list data | AllocAgent列表数据
  2906. Data AllocAgentListInfo `json:"data"`
  2907. }
  2908. // AllocAgent list data | AllocAgent列表数据
  2909. // swagger:model AllocAgentListInfo
  2910. type AllocAgentListInfo struct {
  2911. BaseListInfo
  2912. // The API list data | AllocAgent列表数据
  2913. Data []AllocAgentInfo `json:"data"`
  2914. }
  2915. // Get alloc agent list request params | AllocAgent列表请求参数
  2916. // swagger:model AllocAgentListReq
  2917. type AllocAgentListReq struct {
  2918. PageInfo
  2919. // agents | 分配的智能体IDs
  2920. Agents *string `json:"agents,optional"`
  2921. }
  2922. // AllocAgent information response | AllocAgent信息返回体
  2923. // swagger:model AllocAgentInfoResp
  2924. type AllocAgentInfoResp struct {
  2925. BaseDataInfo
  2926. // AllocAgent information | AllocAgent数据
  2927. Data AllocAgentInfo `json:"data"`
  2928. }
  2929. // swagger:model SignatureResp
  2930. type SignatureResp struct {
  2931. BaseDataInfo
  2932. // 临时签名
  2933. Data *string `json:"data"`
  2934. }
  2935. // swagger:model MessageReq
  2936. type MessageReq struct {
  2937. // 大模型生成内容
  2938. UserId *uint64 `json:"user_id"`
  2939. Text *string `json:"text"`
  2940. }
  2941. // swagger:model ChatReq
  2942. type ChatReq struct {
  2943. // 大模型生成内容
  2944. AvatarId *string `json:"avatar_id"`
  2945. UserId *uint64 `json:"user_id"`
  2946. Text *string `json:"text"`
  2947. }
  2948. // swagger:model DashboardInfo
  2949. type DashboardInfo struct {
  2950. BaseIDInfo
  2951. }
  2952. // swagger:model ChartsReq
  2953. type ChartsReq struct {
  2954. StartDate *string `json:"start_date"`
  2955. EndDate *string `json:"end_date"`
  2956. // 租户id
  2957. OrganizationId *uint64 `json:"organizationId,optional"`
  2958. Wxid *string `json:"wxid,optional"`
  2959. }
  2960. // swagger:model ChartsResp
  2961. type ChartsResp struct {
  2962. BaseDataInfo
  2963. Data *ChartsData `json:"data"`
  2964. }
  2965. type ChartsData struct {
  2966. AiResponse *ChartsUint `json:"ai_response"`
  2967. SopRun *ChartsUint `json:"sop_run"`
  2968. TotalFriend *ChartsUint `json:"total_friend"`
  2969. TotalGroup *ChartsUint `json:"total_group"`
  2970. AccountBalance *ChartsUint `json:"account_balance"`
  2971. ConsumeToken *ChartsUint `json:"consume_token"`
  2972. ActiveUser *ChartsUint `json:"active_user"`
  2973. NewUser *ChartsInt `json:"new_user"`
  2974. LabelDist []LabelsData `json:"label_dist"`
  2975. }
  2976. type ChartsUint struct {
  2977. Count uint64 `json:"count"`
  2978. Rate *float32 `json:"rate"`
  2979. Label []string `json:"label"`
  2980. Val []uint64 `json:"val"`
  2981. LabelText string `json:"labelText"`
  2982. Tip *string `json:"tip"`
  2983. }
  2984. type ChartsInt struct {
  2985. Count int64 `json:"count"`
  2986. Rate *float32 `json:"rate"`
  2987. Label []string `json:"label"`
  2988. Val []int64 `json:"val"`
  2989. LabelText string `json:"labelText"`
  2990. Tip *string `json:"tip"`
  2991. }
  2992. type LabelsData struct {
  2993. Value uint64 `json:"value"`
  2994. Name string `json:"name"`
  2995. }
  2996. // swagger:model WxReq
  2997. type WxReq struct {
  2998. PageInfo
  2999. EndDate *string `json:"end_date"`
  3000. // 租户id
  3001. OrganizationId *uint64 `json:"organizationId,optional"`
  3002. Wxid *string `json:"wxid,optional"`
  3003. }
  3004. // swagger:model WxResp
  3005. type WxResp struct {
  3006. BaseDataInfo
  3007. Data WxList `json:"data"`
  3008. }
  3009. type WxList struct {
  3010. BaseListInfo
  3011. Data []WxData `json:"data"`
  3012. }
  3013. type WxData struct {
  3014. Nickname string `json:"nickname"`
  3015. TotalFriend uint64 `json:"total_friend"`
  3016. TotalGroup uint64 `json:"total_group"`
  3017. InteractionRate float32 `json:"interaction_rate"`
  3018. }
  3019. // The data of credit balance information | CreditBalance信息
  3020. // swagger:model CreditBalanceInfo
  3021. type CreditBalanceInfo struct {
  3022. BaseIDInfo
  3023. // user_id | 用户ID
  3024. UserId *string `json:"userId,optional"`
  3025. // role | 角色设定
  3026. Balance *float32 `json:"balance,optional"`
  3027. // status | 状态 1-正常 2-禁用
  3028. Status *int `json:"status,optional"`
  3029. // organization_id | 租户ID
  3030. OrganizationId *uint64 `json:"organizationId,optional"`
  3031. OrganizationName *string `json:"organizationName,optional"`
  3032. }
  3033. // The response data of credit balance list | CreditBalance列表数据
  3034. // swagger:model CreditBalanceListResp
  3035. type CreditBalanceListResp struct {
  3036. BaseDataInfo
  3037. // CreditBalance list data | CreditBalance列表数据
  3038. Data CreditBalanceListInfo `json:"data"`
  3039. }
  3040. // CreditBalance list data | CreditBalance列表数据
  3041. // swagger:model CreditBalanceListInfo
  3042. type CreditBalanceListInfo struct {
  3043. BaseListInfo
  3044. // The API list data | CreditBalance列表数据
  3045. Data []CreditBalanceInfo `json:"data"`
  3046. }
  3047. // Get credit balance list request params | CreditBalance列表请求参数
  3048. // swagger:model CreditBalanceListReq
  3049. type CreditBalanceListReq struct {
  3050. PageInfo
  3051. // user_id | 用户ID
  3052. UserId *string `json:"userId,optional"`
  3053. OrganizationId *uint64 `json:"organizationId,optional"`
  3054. }
  3055. // CreditBalance information response | CreditBalance信息返回体
  3056. // swagger:model CreditBalanceInfoResp
  3057. type CreditBalanceInfoResp struct {
  3058. BaseDataInfo
  3059. // CreditBalance information | CreditBalance数据
  3060. Data CreditBalanceInfo `json:"data"`
  3061. }
  3062. // swagger:model CreditBalanceOperateReq
  3063. type CreditBalanceOperateReq struct {
  3064. OrganizationId *uint64 `json:"organizationId,optional"`
  3065. Number *float32 `json:"number,optional"`
  3066. Reason *string `json:"reason,optional"`
  3067. }
  3068. // The data of credit usage information | CreditUsage信息
  3069. // swagger:model CreditUsageInfo
  3070. type CreditUsageInfo struct {
  3071. BaseIDInfo
  3072. // user_id | 用户ID
  3073. UserId *string `json:"userId,optional"`
  3074. UserInfo UserInfo `json:"userInfo,optional"`
  3075. // number | 积分改变量
  3076. Number *float32 `json:"number,optional"`
  3077. // status | 状态 1-正常 2-禁用
  3078. Status *int `json:"status,optional"`
  3079. // ntype | 积分变化类型:1-消耗 2-增加
  3080. Ntype *int `json:"ntype,optional"`
  3081. // table | 积分变化表名
  3082. Table *string `json:"table,optional"`
  3083. // organization_id | 租户ID
  3084. OrganizationId *uint64 `json:"organizationId,optional"`
  3085. OrganizationName *string `json:"organizationName,optional"`
  3086. // nid | 积分变化关联信息ID
  3087. Nid *uint64 `json:"nid,optional"`
  3088. // reason | 积分变动原因
  3089. Reason *string `json:"reason,optional"`
  3090. // operator | 积分变动人
  3091. Operator *string `json:"operator,optional"`
  3092. }
  3093. // The response data of credit usage list | CreditUsage列表数据
  3094. // swagger:model CreditUsageListResp
  3095. type CreditUsageListResp struct {
  3096. BaseDataInfo
  3097. // CreditUsage list data | CreditUsage列表数据
  3098. Data CreditUsageListInfo `json:"data"`
  3099. }
  3100. // CreditUsage list data | CreditUsage列表数据
  3101. // swagger:model CreditUsageListInfo
  3102. type CreditUsageListInfo struct {
  3103. BaseListInfo
  3104. // The API list data | CreditUsage列表数据
  3105. Data []CreditUsageInfo `json:"data"`
  3106. }
  3107. // Get credit usage list request params | CreditUsage列表请求参数
  3108. // swagger:model CreditUsageListReq
  3109. type CreditUsageListReq struct {
  3110. PageInfo
  3111. OrganizationId *uint64 `json:"organizationId,optional"`
  3112. }
  3113. // CreditUsage information response | CreditUsage信息返回体
  3114. // swagger:model CreditUsageInfoResp
  3115. type CreditUsageInfoResp struct {
  3116. BaseDataInfo
  3117. // CreditUsage information | CreditUsage数据
  3118. Data CreditUsageInfo `json:"data"`
  3119. }
  3120. // The data of pay recharge information | PayRecharge信息
  3121. // swagger:model PayRechargeInfo
  3122. type PayRechargeInfo struct {
  3123. BaseIDInfo
  3124. // user_id | 用户ID
  3125. UserId *string `json:"userId,optional"`
  3126. UserInfo UserInfo `json:"userInfo,optional"`
  3127. // number | 变化积分数
  3128. Number *float32 `json:"number,optional"`
  3129. // status | 状态 1-正常 2-禁用
  3130. Status *int `json:"status,optional"`
  3131. // money | 充值钱数
  3132. Money *float32 `json:"money,optional"`
  3133. // out_trade_no | 外部订单号
  3134. OutTradeNo *string `json:"outTradeNo,optional"`
  3135. // organization_id | 租户ID
  3136. OrganizationId *uint64 `json:"organizationId,optional"`
  3137. OrganizationName *string `json:"organizationName,optional"`
  3138. }
  3139. // The response data of pay recharge list | PayRecharge列表数据
  3140. // swagger:model PayRechargeListResp
  3141. type PayRechargeListResp struct {
  3142. BaseDataInfo
  3143. // PayRecharge list data | PayRecharge列表数据
  3144. Data PayRechargeListInfo `json:"data"`
  3145. }
  3146. // PayRecharge list data | PayRecharge列表数据
  3147. // swagger:model PayRechargeListInfo
  3148. type PayRechargeListInfo struct {
  3149. BaseListInfo
  3150. // The API list data | PayRecharge列表数据
  3151. Data []PayRechargeInfo `json:"data"`
  3152. }
  3153. // Get pay recharge list request params | PayRecharge列表请求参数
  3154. // swagger:model PayRechargeListReq
  3155. type PayRechargeListReq struct {
  3156. PageInfo
  3157. // user_id | 用户ID
  3158. UserId *string `json:"userId,optional"`
  3159. // out_trade_no | 外部订单号
  3160. OutTradeNo *string `json:"outTradeNo,optional"`
  3161. }
  3162. // PayRecharge information response | PayRecharge信息返回体
  3163. // swagger:model PayRechargeInfoResp
  3164. type PayRechargeInfoResp struct {
  3165. BaseDataInfo
  3166. // PayRecharge information | PayRecharge数据
  3167. Data PayRechargeInfo `json:"data"`
  3168. }
  3169. // The data of whatsapp information | Whatsapp信息
  3170. // swagger:model WhatsappInfo
  3171. type WhatsappInfo struct {
  3172. BaseIDInfo
  3173. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  3174. Status *uint8 `json:"status,optional"`
  3175. WaId *string `json:"waId,optional"`
  3176. WaName *string `json:"waName,optional"`
  3177. // 回调地址
  3178. Callback *string `json:"callback,optional"`
  3179. // 模式ID
  3180. AgentId *uint64 `json:"agentId,optional"`
  3181. AgentInfo *AgentInfo `json:"agentInfo,optional"`
  3182. // 微信账号
  3183. Account *string `json:"account,optional"`
  3184. // 手机号
  3185. Phone *string `json:"phone,optional"`
  3186. Cc *string `json:"cc,optional"`
  3187. // 号码名称
  3188. PhoneName *string `json:"phoneName,optional"`
  3189. // 号码状态
  3190. PhoneStatus *string `json:"phoneStatus,optional"`
  3191. Tokens *uint64 `json:"tokens,optional"`
  3192. // 号码发送频率号码发送频率
  3193. Frequency *string `json:"frequency,optional"`
  3194. // 号码质量
  3195. Quality *string `json:"quality,optional"`
  3196. // 号码校验状态
  3197. VerifyStatus *string `json:"verifyStatus,optional"`
  3198. // 机构 ID
  3199. OrganizationId *uint64 `json:"organizationId,optional"`
  3200. OrganizationName *string `json:"organizationName,optional"`
  3201. // 大模型服务地址
  3202. ApiBase *string `json:"apiBase,optional"`
  3203. // 大模型服务密钥
  3204. ApiKey *string `json:"apiKey,optional"`
  3205. // 白名单
  3206. AllowList []ContactInfo `json:"allowList,optional"`
  3207. // 群白名单
  3208. GroupAllowList []ContactInfo `json:"groupAllowList,optional"`
  3209. // 黑名单
  3210. BlockList []ContactInfo `json:"blockList,optional"`
  3211. // 群黑名单
  3212. GroupBlockList []ContactInfo `json:"groupBlockList,optional"`
  3213. }
  3214. // swagger:model WhatsappPhoneInfo
  3215. type WhatsappPhoneInfo struct {
  3216. Avatar *string `json:"avatar,optional"`
  3217. Industry *string `json:"industry,optional"`
  3218. Intro *string `json:"intro,optional"`
  3219. Address *string `json:"address,optional"`
  3220. Email *string `json:"email,optional"`
  3221. Website *string `json:"website,optional"`
  3222. }
  3223. // The response data of whatsapp list | Whatsapp列表数据
  3224. // swagger:model WhatsappListResp
  3225. type WhatsappListResp struct {
  3226. BaseDataInfo
  3227. // Whatsapp list data | Whatsapp列表数据
  3228. Data WhatsappListInfo `json:"data"`
  3229. }
  3230. // Whatsapp list data | Whatsapp列表数据
  3231. // swagger:model WhatsappListInfo
  3232. type WhatsappListInfo struct {
  3233. BaseListInfo
  3234. // The API list data | Whatsapp列表数据
  3235. Data []WhatsappInfo `json:"data"`
  3236. }
  3237. // Get whatsapp list request params | Whatsapp列表请求参数
  3238. // swagger:model WhatsappListReq
  3239. type WhatsappListReq struct {
  3240. PageInfo
  3241. // 手机号
  3242. Phone *string `json:"phone,optional"`
  3243. // 号码名称
  3244. PhoneName *string `json:"phoneName,optional"`
  3245. WaId *string `json:"waId,optional"`
  3246. OrganizationId *uint64 `json:"organizationId,optional"`
  3247. }
  3248. // Whatsapp information response | Whatsapp信息返回体
  3249. // swagger:model WhatsappInfoResp
  3250. type WhatsappInfoResp struct {
  3251. BaseDataInfo
  3252. // Whatsapp information | Whatsapp数据
  3253. Data WhatsappInfo `json:"data"`
  3254. }
  3255. // swagger:model AutomationReq
  3256. type AutomationReq struct {
  3257. WaId *string `json:"waId,optional"`
  3258. Phone *string `json:"phone,optional"`
  3259. }
  3260. // swagger:model AutomationResp
  3261. type AutomationResp struct {
  3262. BaseDataInfo
  3263. // Whatsapp list data | Whatsapp列表数据
  3264. Data ConversationalAutomationInfo `json:"data"`
  3265. }
  3266. // swagger:model ConversationalAutomationInfo
  3267. type ConversationalAutomationInfo struct {
  3268. Prompts []string `json:"prompts,optional"`
  3269. Commands []Command `json:"commands,optional"`
  3270. Phone string `json:"phone,optional"`
  3271. EnableWelcomeMessage bool `json:"enableWelcomeMessage,optional"`
  3272. }
  3273. type Command struct {
  3274. CommandDescription string `json:"commandDescription,optional"`
  3275. CommandName string `json:"commandName,optional"`
  3276. }
  3277. // swagger:model SetAutomationReq
  3278. type SetAutomationReq struct {
  3279. EnableWelcomeMessage bool `json:"enableWelcomeMessage,optional"`
  3280. Phone string `json:"phone,optional"`
  3281. Commands []Command `json:"commands,optional"`
  3282. Prompts []string `json:"prompts,optional"`
  3283. WaId string `json:"waId,optional"`
  3284. }
  3285. // swagger:model sendCodeReq
  3286. type SendCodeReq struct {
  3287. Cc *string `json:"cc"`
  3288. Phone *string `json:"phone"`
  3289. WaId *string `json:"waId"`
  3290. Method *string `json:"method"`
  3291. Locale *string `json:"locale"`
  3292. }
  3293. // swagger:model submitCodeReq
  3294. type SubmitCodeReq struct {
  3295. Cc *string `json:"cc"`
  3296. Phone *string `json:"phone"`
  3297. WaId *string `json:"waId"`
  3298. Code *string `json:"code"`
  3299. }
  3300. // swagger:model getQrcodeReq
  3301. type GetQrcodeReq struct {
  3302. Phone *string `json:"phone"`
  3303. WaId *string `json:"waId"`
  3304. }
  3305. // swagger:model getQrcodeResp
  3306. type GetQrcodeResp struct {
  3307. BaseDataInfo
  3308. Data QrcodeListInfo `json:"data"`
  3309. }
  3310. // swagger:model QrcodeListInfo
  3311. type QrcodeListInfo struct {
  3312. BaseListInfo
  3313. Data []Qrcode `json:"data"`
  3314. }
  3315. type Qrcode struct {
  3316. Phone string `json:"phone,optional"`
  3317. QrdlCode string `json:"qrdlCode,optional"`
  3318. GenerateQrImage string `json:"generateQrImage,optional"`
  3319. PrefilledMessage string `json:"prefilledMessage,optional"`
  3320. DeepLinkUrl string `json:"deepLinkUrl,optional"`
  3321. QrImageUrl string `json:"qrImageUrl,optional"`
  3322. }
  3323. // swagger:model createQrcodeReq
  3324. type CreateQrcodeReq struct {
  3325. Phone string `json:"phone"`
  3326. GenerateQrImage string `json:"generateQrImage"`
  3327. PrefilledMessage string `json:"prefilledMessage"`
  3328. WaId string `json:"waId"`
  3329. }
  3330. // swagger:model updateQrcodeReq
  3331. type UpdateQrcodeReq struct {
  3332. Phone string `json:"phone,optional"`
  3333. GenerateQrImage string `json:"generateQrImage,optional"`
  3334. PrefilledMessage string `json:"prefilledMessage,optional"`
  3335. QrdlCode string `json:"qrdlCode,optional"`
  3336. WaId string `json:"waId"`
  3337. }
  3338. // swagger:model removeQrcodeReq
  3339. type RemoveQrcodeReq struct {
  3340. Phone string `json:"phone,optional"`
  3341. QrdlCode string `json:"qrdlCode,optional"`
  3342. WaId string `json:"waId"`
  3343. }
  3344. // swagger:model getBusinessReq
  3345. type GetBusinessReq struct {
  3346. Phone *string `json:"phone"`
  3347. WaId *string `json:"waId"`
  3348. }
  3349. // swagger:model getBusinessResp
  3350. type GetBusinessResp struct {
  3351. BaseDataInfo
  3352. Data BusinessInfo `json:"data"`
  3353. }
  3354. // swagger:model BusinessInfo
  3355. type BusinessInfo struct {
  3356. Vertical string `json:"vertical,optional"`
  3357. Description string `json:"description,optional"`
  3358. Email string `json:"email,optional"`
  3359. Address string `json:"address,optional"`
  3360. ProfilePictureUrl string `json:"profilePictureUrl,optional"`
  3361. Websites []string `json:"websites,optional"`
  3362. About string `json:"about,optional"`
  3363. }
  3364. // swagger:model setBusinessReq
  3365. type SetBusinessReq struct {
  3366. Phone *string `json:"phone"`
  3367. WaId *string `json:"waId"`
  3368. Vertical string `json:"vertical,optional"`
  3369. Description string `json:"description,optional"`
  3370. Email string `json:"email,optional"`
  3371. Address string `json:"address,optional"`
  3372. ProfilePictureUrl string `json:"profilePictureUrl,optional"`
  3373. Websites []string `json:"websites,optional"`
  3374. About string `json:"about,optional"`
  3375. }
  3376. // swagger:model registerReq
  3377. type RegisterReq struct {
  3378. Phone *string `json:"phone"`
  3379. WaId *string `json:"waId"`
  3380. }
  3381. // swagger:model deregisterReq
  3382. type DeregisterReq struct {
  3383. Phone *string `json:"phone"`
  3384. WaId *string `json:"waId"`
  3385. }
  3386. // swagger:model UpdateAgentReq
  3387. type UpdateAgentReq struct {
  3388. Id uint64 `json:"id"`
  3389. AgentId uint64 `json:"agentId"`
  3390. }
  3391. // 获取黑白名单列表返回体
  3392. // swagger:model WhatsappAllowBlockListResp
  3393. type WhatsappAllowBlockListResp struct {
  3394. BaseDataInfo
  3395. // Wx information | Wx数据
  3396. Data WhatsappAllowBlockListRespData `json:"data"`
  3397. }
  3398. // WhatsappAllowBlockListRespData
  3399. type WhatsappAllowBlockListRespData struct {
  3400. // 白名单
  3401. AllowList *string `json:"allowList,optional"`
  3402. // 群白名单
  3403. GroupAllowList *string `json:"groupAllowList,optional"`
  3404. // 黑名单
  3405. BlockList *string `json:"blockList,optional"`
  3406. // 群黑名单
  3407. GroupBlockList *string `json:"groupBlockList,optional"`
  3408. }
  3409. // swagger:model UpdateAllowAndBlockListReq
  3410. type UpdateAllowAndBlockListReq struct {
  3411. Id uint64 `json:"id"`
  3412. // 白名单
  3413. AllowList *string `json:"allowList,optional"`
  3414. // 群白名单
  3415. GroupAllowList *string `json:"groupAllowList,optional"`
  3416. // 黑名单
  3417. BlockList *string `json:"blockList,optional"`
  3418. // 群黑名单
  3419. GroupBlockList *string `json:"groupBlockList,optional"`
  3420. }
  3421. // swagger:model UpdateAgentApiReq
  3422. type UpdateAgentApiReq struct {
  3423. Id uint64 `json:"id"`
  3424. ApiBase *string `json:"apiBase,optional"`
  3425. ApiKey *string `json:"apiKey,optional"`
  3426. }
  3427. // swagger:model TemplateInfo
  3428. type TemplateInfo struct {
  3429. Category string `json:"category,optional"`
  3430. TemplateCode string `json:"templateCode,optional"`
  3431. Name string `json:"name,optional"`
  3432. Language string `json:"language,optional"`
  3433. TemplateType string `json:"templateType,optional"`
  3434. AuditStatus string `json:"auditStatus,optional"`
  3435. Components []TemplateComponent `json:"components,optional"`
  3436. QualityScore string `json:"qualityScore,optional"`
  3437. MessageSendTtlSeconds int `json:"messageSendTtlSeconds,optional"`
  3438. Reason string `json:"reason,optional"`
  3439. }
  3440. // swagger:model TemplateSingleInfo
  3441. type TemplateSingleInfo struct {
  3442. Category string `json:"category,optional"`
  3443. TemplateCode string `json:"templateCode,optional"`
  3444. Name string `json:"name,optional"`
  3445. Language string `json:"language,optional"`
  3446. TemplateType string `json:"templateType,optional"`
  3447. AuditStatus string `json:"auditStatus,optional"`
  3448. }
  3449. type TemplateComponent struct {
  3450. Type string `json:"type,optional"`
  3451. Url string `json:"url,optional"`
  3452. Text string `json:"text,optional"`
  3453. Caption string `json:"caption,optional"`
  3454. FileName string `json:"fileName,optional"`
  3455. Format string `json:"format,optional"`
  3456. Buttons []TemplateButton `json:"buttons,optional"`
  3457. ThumbUrl string `json:"thumbUrl,optional"`
  3458. Duration int `json:"duration,optional"`
  3459. FileType string `json:"fileType,optional"`
  3460. Latitude string `json:"latitude,optional"`
  3461. Longitude string `json:"longitude,optional"`
  3462. LocationName string `json:"locationName,optional"`
  3463. LocationAddress string `json:"locationAddress,optional"`
  3464. AddSecretRecommendation bool `json:"addSecretRecommendation,optional"`
  3465. CodeExpirationMinutes int `json:"codeExpirationMinutes,optional"`
  3466. HasExpiration bool `json:"hasExpiration,optional"`
  3467. OfferExpirationTimeMs string `json:"offerExpirationTimeMs,optional"`
  3468. }
  3469. type TemplateButton struct {
  3470. Type string `json:"type,optional"`
  3471. Text string `json:"text,optional"`
  3472. PhoneNumber string `json:"phoneNumber,optional"`
  3473. Url string `json:"url,optional"`
  3474. UrlType string `json:"urlType,optional"`
  3475. SignatureHash string `json:"signatureHash,optional"`
  3476. PackageName string `json:"packageName,optional"`
  3477. AutofillText string `json:"autofillText,optional"`
  3478. IsOptOut bool `json:"isOptOut,optional"`
  3479. ExtendAttrs []TemplateExtendAttr `json:"extendAttrs,optional"`
  3480. CouponCode string `json:"couponCode,optional"`
  3481. FlowId string `json:"flowId,optional"`
  3482. FlowAction string `json:"flowAction,optional"`
  3483. NavigateScreen string `json:"navigateScreen,optional"`
  3484. SupportedApps []TemplateSupportedApp `json:"supportedApps,optional"`
  3485. }
  3486. type TemplateSupportedApp struct {
  3487. SignatureHash string `json:"signatureHash,optional"`
  3488. PackageName string `json:"packageName,optional"`
  3489. }
  3490. type TemplateExtendAttr struct {
  3491. NextTemplateCode string `json:"nextTemplateCode,optional"`
  3492. NextTemplateName string `json:"nextTemplateName,optional"`
  3493. NextLanguageCode string `json:"nextLanguageCode,optional"`
  3494. Action string `json:"action,optional"`
  3495. IntentCode string `json:"intentCode,optional"`
  3496. }
  3497. // swagger:model createTemplateReq
  3498. type CreateTemplateReq struct {
  3499. Category string `json:"category"`
  3500. TemplateCode string `json:"templateCode"`
  3501. Name string `json:"name"`
  3502. Language string `json:"language"`
  3503. TemplateType string `json:"templateType,optional"`
  3504. AllowCategoryChange bool `json:"allowCategoryChange,optional"`
  3505. MessageSendTtlSeconds int `json:"messageSendTtlSeconds,optional"`
  3506. }
  3507. // swagger:model listTemplateReq
  3508. type ListTemplateReq struct {
  3509. Page int32 `json:"page"`
  3510. PageSize int32 `json:"pageSize"`
  3511. Name string `json:"name,optional"`
  3512. Language string `json:"language,optional"`
  3513. AuditStatus string `json:"auditStatus,optional"`
  3514. TemplateType string `json:"templateType,optional"`
  3515. Code string `json:"code,optional"`
  3516. WaId string `json:"waId,optional"`
  3517. }
  3518. // swagger:model listTemplateResp
  3519. type ListTemplateResp struct {
  3520. Code int `json:"code"`
  3521. Msg string `json:"msg"`
  3522. Data ListTemplate `json:"data,omitempty"`
  3523. }
  3524. type ListTemplate struct {
  3525. BaseListInfo
  3526. Data []TemplateSingleInfo `json:"data,omitempty"`
  3527. }
  3528. // swagger:model removeTemplateReq
  3529. type RemoveTemplateReq struct {
  3530. TemplateCode string `json:"templateCode,optional"`
  3531. TemplateName string `json:"templateName,optional"`
  3532. Language string `json:"language"`
  3533. TemplateType string `json:"templateType,optional"`
  3534. }
  3535. // swagger:model editTemplateReq
  3536. type EditTemplateReq struct {
  3537. Components []TemplateComponent `json:"components,optional"`
  3538. Language string `json:"language,optional"`
  3539. TemplateCode string `json:"templateCode,optional"`
  3540. Category string `json:"category,optional"`
  3541. TemplateType string `json:"templateType,optional"`
  3542. MessageSendTtlSeconds int `json:"messageSendTtlSeconds,optional"`
  3543. TemplateName string `json:"templateName,optional"`
  3544. }
  3545. // swagger:model getTemplateReq
  3546. type GetTemplateReq struct {
  3547. TemplateCode string `json:"templateCode,optional"`
  3548. Language string `json:"language"`
  3549. TemplateType string `json:"templateType,optional"`
  3550. TemplateName string `json:"templateName,optional"`
  3551. }
  3552. // swagger:model getTemplateResp
  3553. type GetTemplateResp struct {
  3554. Code int `json:"code"`
  3555. Msg string `json:"msg"`
  3556. Data TemplateSingleInfo `json:"data,omitempty"`
  3557. }
  3558. // The data of whatsapp channel information | WhatsappChannel信息
  3559. // swagger:model WhatsappChannelInfo
  3560. type WhatsappChannelInfo struct {
  3561. BaseIDInfo
  3562. // Status 1: normal 2: ban | 状态 1 正常 2 禁用
  3563. Status *uint8 `json:"status,optional"`
  3564. // ak
  3565. Ak *string `json:"ak,optional"`
  3566. // 端口号
  3567. Sk *string `json:"sk,optional"`
  3568. // 通道ID
  3569. WaId *string `json:"waId,optional"`
  3570. // 通道名
  3571. WaName *string `json:"waName,optional"`
  3572. // WABA ID
  3573. WabaId *uint64 `json:"wabaId,optional"`
  3574. // 商业平台ID
  3575. BusinessId *uint64 `json:"businessId,optional"`
  3576. // 机构 ID
  3577. OrganizationId *uint64 `json:"organizationId,optional"`
  3578. OrganizationName *string `json:"organizationName,optional"`
  3579. // 认证主体
  3580. VerifyAccount *string `json:"verifyAccount,optional"`
  3581. }
  3582. // The response data of whatsapp channel list | WhatsappChannel列表数据
  3583. // swagger:model WhatsappChannelListResp
  3584. type WhatsappChannelListResp struct {
  3585. BaseDataInfo
  3586. // WhatsappChannel list data | WhatsappChannel列表数据
  3587. Data WhatsappChannelListInfo `json:"data"`
  3588. }
  3589. // WhatsappChannel list data | WhatsappChannel列表数据
  3590. // swagger:model WhatsappChannelListInfo
  3591. type WhatsappChannelListInfo struct {
  3592. BaseListInfo
  3593. // The API list data | WhatsappChannel列表数据
  3594. Data []WhatsappChannelInfo `json:"data"`
  3595. }
  3596. // Get whatsapp channel list request params | WhatsappChannel列表请求参数
  3597. // swagger:model WhatsappChannelListReq
  3598. type WhatsappChannelListReq struct {
  3599. PageInfo
  3600. OrganizationId *uint64 `json:"organizationId,optional"`
  3601. WaName *string `json:"waName,optional"`
  3602. WaID *string `json:"waID,optional"`
  3603. WabaId *uint64 `json:"wabaId,optional"`
  3604. VerifyAccount *string `json:"verifyAccount,optional"`
  3605. }
  3606. // WhatsappChannel information response | WhatsappChannel信息返回体
  3607. // swagger:model WhatsappChannelInfoResp
  3608. type WhatsappChannelInfoResp struct {
  3609. BaseDataInfo
  3610. // WhatsappChannel information | WhatsappChannel数据
  3611. Data WhatsappChannelInfo `json:"data"`
  3612. }