types.go 139 KB

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