types.go 128 KB

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