types.go 133 KB

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