types.go 132 KB

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