types.go 116 KB

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