types.go 141 KB

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