types.go 138 KB

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