types.go 115 KB

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