types.go 132 KB

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