types.go 141 KB

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