types.go 123 KB

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