types.go 116 KB

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