types.go 138 KB

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