types.go 115 KB

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