types.go 137 KB

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