types.go 136 KB

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