types.go 137 KB

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