types.go 139 KB

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