types.go 126 KB

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