types.go 141 KB

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