1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183 |
- package types
- type BaseDataInfo struct {
-
- Code int `json:"code"`
-
- Msg string `json:"msg"`
-
- Data string `json:"data,omitempty"`
- }
- type BaseListInfo struct {
-
- Total uint64 `json:"total"`
-
- Data string `json:"data,omitempty"`
- }
- type BaseMsgResp struct {
-
- Code int `json:"code"`
-
- Msg string `json:"msg"`
- }
- type PageInfo struct {
-
-
-
- Page uint64 `json:"page" validate:"required,number,gt=0"`
-
-
-
- PageSize uint64 `json:"pageSize" validate:"required,number,lt=100000"`
- }
- type IDReq struct {
-
-
- Id uint64 `json:"id" validate:"number"`
- }
- type IDsReq struct {
-
-
- Ids []uint64 `json:"ids"`
- }
- type IDPathReq struct {
-
-
- Id uint64 `path:"id"`
- }
- type IDInt32Req struct {
-
-
- Id int32 `json:"id" validate:"number"`
- }
- type IDsInt32Req struct {
-
-
- Ids []int32 `json:"ids"`
- }
- type IDInt32PathReq struct {
-
-
- Id int32 `path:"id"`
- }
- type IDUint32Req struct {
-
-
- Id uint32 `json:"id" validate:"number"`
- }
- type IDsUint32Req struct {
-
-
- Ids []uint32 `json:"ids"`
- }
- type IDUint32PathReq struct {
-
-
- Id uint32 `path:"id"`
- }
- type IDInt64Req struct {
-
-
- Id int64 `json:"id" validate:"number"`
- }
- type IDsInt64Req struct {
-
-
- Ids []int64 `json:"ids"`
- }
- type IDInt64PathReq struct {
-
-
- Id int64 `path:"id"`
- }
- type UUIDPathReq struct {
-
-
- Id string `path:"id"`
- }
- type UUIDReq struct {
-
-
-
-
- Id string `json:"id" validate:"required,len=36"`
- }
- type UUIDsReq struct {
-
-
- Ids []string `json:"ids"`
- }
- type BaseIDInfo struct {
-
- Id *uint64 `json:"id,optional"`
-
- CreatedAt *int64 `json:"createdAt,optional"`
-
- UpdatedAt *int64 `json:"updatedAt,optional"`
- }
- type BaseIDInt64Info struct {
-
- Id *int64 `json:"id,optional"`
-
- CreatedAt *int64 `json:"createdAt,optional"`
-
- UpdatedAt *int64 `json:"updatedAt,optional"`
- }
- type BaseIDInt32Info struct {
-
- Id *int32 `json:"id,optional"`
-
- CreatedAt *int64 `json:"createdAt,optional"`
-
- UpdatedAt *int64 `json:"updatedAt,optional"`
- }
- type BaseIDUint32Info struct {
-
- Id *uint32 `json:"id,optional"`
-
- CreatedAt *int64 `json:"createdAt,optional"`
-
- UpdatedAt *int64 `json:"updatedAt,optional"`
- }
- type BaseUUIDInfo struct {
-
- Id *string `json:"id,optional"`
-
- CreatedAt *int64 `json:"createdAt,optional"`
-
- UpdatedAt *int64 `json:"updatedAt,optional"`
- }
- type Condition struct {
- Equal int `json:"equal"`
- LabelIdList []uint64 `json:"labelIdList"`
- }
- type Action struct {
- Type int `json:"type"`
- Content string `json:"content"`
- Meta Meta `json:"meta,optional"`
- }
- type Meta struct {
- Filename string `json:"filename,optional"`
- }
- type ActionForward struct {
- Wxid string `json:"wxid"`
- Action []Action `json:"action"`
- }
- type ServerInfo struct {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- Name *string `json:"name,optional"`
-
- PublicIp *string `json:"publicIp,optional"`
-
- PrivateIp *string `json:"privateIp,optional"`
-
- AdminPort *string `json:"adminPort,optional"`
- }
- type ServerListResp struct {
- BaseDataInfo
-
- Data ServerListInfo `json:"data"`
- }
- type ServerListInfo struct {
- BaseListInfo
-
- Data []ServerInfo `json:"data"`
- }
- type ServerListReq struct {
- PageInfo
-
- Name *string `json:"name,optional"`
-
- PublicIp *string `json:"publicIp,optional"`
-
- PrivateIp *string `json:"privateIp,optional"`
- }
- type ServerInfoResp struct {
- BaseDataInfo
-
- Data ServerInfo `json:"data"`
- }
- type WxInfo struct {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- ServerId *uint64 `json:"serverId,optional"`
-
- ServerName *string `json:"serverName,optional"`
-
- Port *string `json:"port,optional"`
-
- ProcessId *string `json:"processId,optional"`
-
- Callback *string `json:"callback,optional"`
-
- Wxid *string `json:"wxid,optional"`
-
- Account *string `json:"account,optional"`
-
- Nickname *string `json:"nickname,optional"`
-
- Tel *string `json:"tel,optional"`
-
- HeadBig *string `json:"headBig,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
-
- OrganizationName *string `json:"organizationName,optional"`
-
- AgentId *uint64 `json:"agentId,optional"`
-
- AgentInfo *AgentInfo `json:"agentInfo,optional"`
-
- ApiBase *string `json:"apiBase,optional"`
-
- ApiKey *string `json:"apiKey,optional"`
-
- AllowList []ContactInfo `json:"allowList,optional"`
-
- GroupAllowList []ContactInfo `json:"groupAllowList,optional"`
-
- BlockList []ContactInfo `json:"blockList,optional"`
-
- GroupBlockList []ContactInfo `json:"groupBlockList,optional"`
-
- TotalTokens *uint64 `json:"totalTokens,optional"`
- Ctype *uint64 `json:"ctype,optional"`
- }
- type UpdateBlockAndAllowListReq struct {
- BaseIDInfo
-
- AllowList []string `json:"allowList,optional"`
-
- GroupAllowList []string `json:"groupAllowList,optional"`
-
- BlockList []string `json:"blockList,optional"`
-
- GroupBlockList []string `json:"groupBlockList,optional"`
- }
- type WxListResp struct {
- BaseDataInfo
-
- Data WxListInfo `json:"data"`
- }
- type WxListInfo struct {
- BaseListInfo
-
- Data []WxInfo `json:"data"`
- }
- type WxListReq struct {
- PageInfo
-
- ServerId *uint64 `json:"serverId,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
-
- OrganizationName *string `json:"organizationName,optional"`
-
- Port *string `json:"port,optional"`
-
- ProcessId *string `json:"processId,optional"`
-
- Callback *string `json:"callback,optional"`
-
- Ctype *uint64 `json:"ctype,optional"`
- }
- type WxSelectListReq struct {
-
- OrganizationId *uint64 `json:"organizationId,optional"`
-
- Ctype *uint64 `json:"ctype,optional"`
- }
- type WxSelectListResp struct {
- BaseDataInfo
-
- Data []WxSelectListInfo `json:"data"`
- }
- type WxSelectListInfo struct {
- BaseIDInfo
-
- Wxid *string `json:"wxid,optional"`
-
- Nickname *string `json:"nickname,optional"`
-
- Ctype *uint64 `json:"ctype,optional"`
- }
- type WxInfoResp struct {
- BaseDataInfo
-
- Data WxInfo `json:"data"`
- }
- type AllowBlockListResp struct {
- BaseDataInfo
-
- Data AllowBlockListRespData `json:"data"`
- }
- type AllowBlockListRespData struct {
-
- AllowList []*AllowBlockData `json:"allowList,optional"`
-
- GroupAllowList []*AllowBlockData `json:"groupAllowList,optional"`
-
- BlockList []*AllowBlockData `json:"blockList,optional"`
-
- GroupBlockList []*AllowBlockData `json:"groupBlockList,optional"`
- }
- type AllowBlockData struct {
-
- Wxid string `json:"wxid,optional"`
-
- Nickname string `json:"nickname,optional"`
- }
- type AgentInfo struct {
- BaseIDInfo
-
- Name *string `json:"name,optional"`
-
- Role *string `json:"role,optional"`
-
- Status *int `json:"status,optional"`
-
- Background *string `json:"background,optional"`
-
- Examples *string `json:"examples,optional"`
- DatasetId *string `json:"dataset_id,optional"`
- CollectionId *string `json:"collection_id,optional"`
- }
- type AgentListResp struct {
- BaseDataInfo
-
- Data AgentListInfo `json:"data"`
- }
- type AgentListInfo struct {
- BaseListInfo
-
- Data []AgentInfo `json:"data"`
- }
- type AgentListReq struct {
- PageInfo
-
- Name *string `json:"name,optional"`
-
- Role *string `json:"role,optional"`
-
- Background *string `json:"background,optional"`
-
- Status *int `json:"status,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
- }
- type AgentInfoResp struct {
- BaseDataInfo
-
- Data AgentInfo `json:"data"`
- }
- type VectorModel struct {
- Model *string `json:"model"`
- Name *string `json:"name"`
- CharsPointsPrice *uint64 `json:"charsPointsPrice"`
- DefaultToken *uint64 `json:"defaultToken"`
- MaxToken *uint64 `json:"maxToken"`
- Weight *uint64 `json:"weight"`
- }
- type AgentModel struct {
- Model *string `json:"model"`
- Name *string `json:"name"`
- MaxContext *uint64 `json:"maxContext"`
- MaxResponse *uint64 `json:"maxResponse"`
- CharsPointsPrice *uint64 `json:"charsPointsPrice"`
- }
- type DatasetId struct {
- ID *string `json:"id"`
- ParentID *string `json:"parentId"`
- TeamId *string `json:"teamId"`
- TmbId *string `json:"tmbId"`
- Type *string `json:"type"`
- Status *string `json:"status"`
- Avatar *string `json:"avatar"`
- Name *string `json:"name"`
- VectorModel *string `json:"vectorModel"`
- AgentModel *string `json:"agentModel"`
- Intro *string `json:"intro"`
- }
- type DatasetInfo struct {
- ID *string `json:"id"`
- ParentID *string `json:"parentId"`
- TeamId *string `json:"teamId"`
- TmbId *string `json:"tmbId"`
- Type *string `json:"type"`
- Name *string `json:"name"`
- Intro *string `json:"intro"`
- Status *string `json:"status"`
- Avatar *string `json:"avatar"`
- VectorModel VectorModel `json:"vectorModel"`
- AgentModel AgentModel `json:"agentModel"`
- Permission *string `json:"permission"`
- CanWrite *bool `json:"canWrite"`
- IsOwner *bool `json:"isOwner"`
- }
- type Index struct {
- DefaultIndex *bool `json:"defaultIndex"`
- Type *string `json:"type"`
- DataId *string `json:"dataId"`
- Text *string `json:"text"`
- ID *string `json:"id"`
- }
- type CollectionInfo struct {
- ID *string `json:"id"`
- ParentID *string `json:"parentId"`
- TmbId *string `json:"tmbId,optional"`
- Type *string `json:"type"`
- Name *string `json:"name"`
- DataAmount *uint64 `json:"dataAmount,optional"`
- TrainingAmount *uint64 `json:"trainingAmount,optional"`
- TrainingType *string `json:"trainingType,optional"`
- ChunkSize *uint64 `json:"chunkSize,optional"`
- ChunkSplitter *string `json:"chunkSplitter,optional"`
- QaPrompt *string `json:"qaPrompt,optional"`
- RawTextLength *uint64 `json:"rawTextLength,optional"`
- CanWrite *bool `json:"canWrite,optional"`
- SourceName *string `json:"sourceName,optional"`
- DatasetId DatasetId `json:"datasetId,optional"`
- }
- type CollectionDetailReq struct {
- ID *string `json:"id"`
- }
- type CollectionInfoResp struct {
- BaseDataInfo
- Data CollectionInfo `json:"data"`
- }
- type DataDetailReq struct {
- ID *string `json:"id"`
- }
- type DataDetailResp struct {
- BaseDataInfo
- Data DataInfo `json:"data"`
- }
- type CollectionSimpleInfo struct {
- ID *string `json:"id"`
- ParentID *string `json:"parentId"`
- TmbId *string `json:"tmbId,optional"`
- Type *string `json:"type"`
- Name *string `json:"name"`
- DataAmount *uint64 `json:"dataAmount,optional"`
- TrainingAmount *uint64 `json:"trainingAmount,optional"`
- }
- type DataInfo struct {
- ID *string `json:"id"`
- Q *string `json:"q"`
- A *string `json:"a"`
- ChunkIndex *uint64 `json:"chunkIndex"`
- Indexes []Index `json:"indexes"`
- DatasetId *string `json:"datasetId"`
- CollectionId *string `json:"collectionId"`
- SourceName *string `json:"sourceName"`
- CanWrite *bool `json:"canWrite"`
- IsOwner *bool `json:"isOwner"`
- }
- type DataSimpleInfo struct {
- ID *string `json:"id"`
- Q *string `json:"q"`
- A *string `json:"a"`
- ChunkIndex *uint64 `json:"chunkIndex"`
- DatasetId *string `json:"datasetId"`
- CollectionId *string `json:"collectionId"`
- }
- type CollectionListReq struct {
-
-
- PageNum *int `json:"pageNum" validate:"required,number,gt=0"`
-
-
- PageSize *int `json:"pageSize" validate:"required,number,lt=100000"`
-
- DatasetId *string `json:"datasetId" validate:"required"`
- }
- type CollectionListResp struct {
- BaseDataInfo
-
- Data []CollectionSimpleInfo `json:"data"`
-
-
- PageNum *int `json:"pageNum" validate:"required,number,gt=0"`
-
-
- PageSize *int `json:"pageSize" validate:"required,number,lt=100000"`
- Total *int `json:"total"`
- }
- type DataListReq struct {
-
-
- Page *int `json:"page" validate:"required,number,gt=0"`
-
-
- PageSize *int `json:"pageSize" validate:"required,number,lt=100000"`
-
- CollectionId *string `json:"collectionId" validate:"required"`
- }
- type DataListResp struct {
- BaseDataInfo
-
- Data BatchSimpleInfo `json:"data"`
- }
- type BatchSimpleInfo struct {
- BaseListInfo
-
- Data []DataSimpleInfo `json:"data"`
- }
- type CreateDataInfoReq struct {
-
- CollectionId *string `json:"collectionId" validate:"required"`
-
-
- Q *string `json:"q" validate:"required"`
-
-
- A *string `json:"a" validate:"required"`
- }
- type UpdateDataInfoReq struct {
-
-
- DataId *string `json:"id" validate:"required"`
-
-
- Q *string `json:"q" validate:"required"`
-
-
- A *string `json:"a" validate:"required"`
- }
- type DeleteDataReq struct {
-
- ID *string `json:"id" validate:"required"`
- }
- type UploadDataReq struct {
- AgentId *string `form:"agentId"`
- }
- type BatchDeleteIds struct {
- Ids []string `json:"ids"`
- }
- type ContactLabelList struct {
-
- Label *string `json:"label,optional"`
-
- Value *uint64 `json:"value,optional"`
- }
- type ContactInfo struct {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- WxWxid *string `json:"wxWxid,optional"`
-
- WxWxidNickname *string `json:"wxWxidNickname,optional"`
-
- Type *int `json:"type,optional"`
-
- Wxid *string `json:"wxid,optional"`
-
- Account *string `json:"account,optional"`
-
- Nickname *string `json:"nickname,optional"`
-
- Markname *string `json:"markname,optional"`
-
- Headimg *string `json:"headimg,optional"`
-
- Sex *int `json:"sex,optional"`
-
- Starrole *string `json:"starrole,optional"`
-
- Dontseeit *int `json:"dontseeit,optional"`
-
- Dontseeme *int `json:"dontseeme,optional"`
-
- Lag *string `json:"lag,optional"`
-
- Gid *string `json:"gid,optional"`
-
- Gname *string `json:"gname,optional"`
-
- V3 *string `json:"v3,optional"`
-
- LabelRelationships []ContactLabelList `json:"labelRelationships,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
-
- IsInBlockList *bool `json:"isInBlockList,optional"`
- Ctype *uint64 `json:"ctype,optional"`
- Cname *string `json:"cname,optional"`
- Cage *int `json:"cage,optional"`
- Carea *string `json:"carea,optional"`
- Cbirthday *string `json:"cbirthday,optional"`
- Cbirtharea *string `json:"cbirtharea,optional"`
- CidcardNo *string `json:"cidcardNo,optional"`
- Ctitle *string `json:"ctitle,optional"`
- Cc *string `json:"cc,optional"`
- Phone *string `json:"phone,optional"`
- }
- type LabelInfo struct {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- Type *int `json:"type,optional"`
-
- Name *string `json:"name,optional"`
-
- From *int `json:"from,optional"`
-
- Mode *int `json:"mode,optional"`
-
- Conditions *string `json:"conditions,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
-
- LabelRelationships []LabelRelationshipInfo `json:"labelRelationships,optional"`
- }
- type LabelRelationshipInfo struct {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- LabelId *uint64 `json:"labelId,optional"`
-
- ContactId *uint64 `json:"contactId,optional"`
-
- Contact ContactInfo `json:"contact,optional"`
-
- Label LabelInfo `json:"label,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
- }
- type LabelRelationshipsInfo struct {
- BaseIDInfo
-
- UpdateType *string `json:"updateType,optional"`
-
- LabelIds []uint64 `json:"labelIds,optional"`
-
- ContactId *uint64 `json:"contactId,optional"`
- }
- type BatchLabelRelationshipsInfo struct {
-
- UpdateType int `json:"updateType,optional"`
-
- LabelIds []uint64 `json:"labelIds,optional"`
-
- ContactIds []uint64 `json:"contactIds,optional"`
- }
- type LabelRelationshipListResp struct {
- BaseDataInfo
-
- Data LabelRelationshipListInfo `json:"data"`
- }
- type LabelRelationshipListInfo struct {
- BaseListInfo
-
- Data []LabelRelationshipInfo `json:"data"`
- }
- type LabelRelationshipListReq struct {
- PageInfo
- }
- type LabelRelationshipInfoResp struct {
- BaseDataInfo
-
- Data LabelRelationshipInfo `json:"data"`
- }
- type LoginQRStatus struct {
-
- QRCode string `json:"qRCode,optional"`
-
- Status string `json:"status,optional"`
-
- StatusDesc string `json:"statusDesc,optional"`
- }
- type RefreshLoginQRReq struct {
-
- ServerId *uint64 `json:"serverId,optional"`
-
- Port *string `json:"port,optional"`
-
- Callback *string `json:"callback,optional"`
- }
- type RefreshLoginQRResp struct {
- BaseDataInfo
-
- Data LoginQRStatus `json:"data,optional"`
- }
- type SendTextMsgReq struct {
-
- WxWxid *string `json:"senderWxId"`
-
- Wxid *string `json:"receiverWxId"`
-
- Msg *string `json:"msg"`
- Ctype *uint64 `json:"ctype,optional"`
- }
- type SendPicMsgReq struct {
-
- WxWxid *string `json:"wxWxid"`
-
- Wxid *string `json:"wxid"`
-
- Picpath *string `json:"picpath"`
-
- Diyfilename *string `json:"diyfilename,optional"`
- }
- type SendPicMsgLocalReq struct {
-
- WxWxid *string `json:"wxWxid"`
-
- Wxid *string `json:"wxid"`
-
- Picpath *string `json:"picpath"`
- }
- type ContactListResp struct {
- BaseDataInfo
-
- Data ContactListInfo `json:"data"`
- }
- type ContactListInfo struct {
- BaseListInfo
-
- Data []ContactInfo `json:"data"`
- }
- type ContactListReq struct {
- PageInfo
-
- LabelIDs []uint64 `json:"labelIDs,optional"`
-
- WxWxid *string `json:"wxWxid,optional"`
-
- Wxid *string `json:"wxid,optional"`
-
- Account *string `json:"account,optional"`
-
- Nickname *string `json:"nickname,optional"`
-
- Type *int `json:"type,optional"`
-
- Ctype *uint64 `json:"ctype,optional"`
- }
- type ContactInfoResp struct {
- BaseDataInfo
-
- Data ContactInfo `json:"data"`
- }
- type AddNewFriendReq struct {
- OwnerWxid string `json:"ownerWxid"`
- Wxid string `json:"wxid"`
- Gid string `json:"gid"`
- Desc string `json:"desc"`
- AddType string `json:"addType"`
- }
- type ChangeBlockListReq struct {
- OwnerWxid string `json:"ownerWxid"`
- Wxid string `json:"wxid"`
- Type *int `json:"type,optional"`
- Ai *bool `json:"ai,optional"`
- }
- type ImportWhatsappContactReq struct {
- File *string `form:"file,optional"`
- }
- type WhatsappContactListReq struct {
- PageInfo
-
- LabelIDs []uint64 `json:"labelIDs,optional"`
-
- Phone *string `json:"phone,optional"`
-
- Name *string `json:"name,optional"`
- }
- type CreateWhatsappContactReq struct {
- BaseIDInfo
-
- Cc *string `json:"cc"`
- Phone *string `json:"phone"`
-
- Markname *string `json:"markname,optional"`
- Ctype *uint64 `json:"ctype,optional"`
- Cname *string `json:"cname,optional"`
- Sex *int `json:"sex,optional"`
- Cage *int `json:"cage,optional"`
- Carea *string `json:"carea,optional"`
- Cbirthday *string `json:"cbirthday,optional"`
- Cbirtharea *string `json:"cbirtharea,optional"`
- CidcardNo *string `json:"cidcardNo,optional"`
- Ctitle *string `json:"ctitle,optional"`
- }
- type MessageInfo struct {
- BaseIDInfo
-
- WxWxid *string `json:"wxWxid"`
-
- Wxid *string `json:"wxid"`
-
- Msg *string `json:"msg"`
- }
- type MessageListResp struct {
- BaseDataInfo
-
- Data MessageListInfo `json:"data"`
- }
- type MessageListInfo struct {
- BaseListInfo
-
- Data []MessageInfo `json:"data"`
- }
- type MessageListReq struct {
- PageInfo
-
- WxWxid *string `json:"wxWxid,optional"`
-
- Wxid *string `json:"wxid,optional"`
- }
- type MessageInfoResp struct {
- BaseDataInfo
-
- Data MessageInfo `json:"data"`
- }
- type LabelSelectListResp struct {
- BaseDataInfo
-
- Data []LabelSelectListInfo `json:"data"`
- }
- type LabelBatchSelectListResp struct {
- BaseDataInfo
-
- Data LabelBatchSelectListData `json:"data"`
- }
- type LabelBatchSelectListData struct {
- Contact []LabelSelectListInfo `json:"contact"`
- Group []LabelSelectListInfo `json:"group"`
- }
- type LabelListResp struct {
- BaseDataInfo
-
- Data LabelListInfo `json:"data"`
- }
- type LabelListInfo struct {
- BaseListInfo
-
- Data []LabelInfo `json:"data"`
- }
- type LabelListReq struct {
- PageInfo
-
- LabelIDs []uint64 `json:"labelIDs,optional"`
-
- Type *int `json:"type,optional"`
-
- Name *string `json:"name,optional"`
-
- From *int `json:"from,optional"`
-
- Mode *int `json:"mode,optional"`
- }
- type LabelInfoResp struct {
- BaseDataInfo
-
- Data LabelInfo `json:"data"`
- }
- type LabelSelectListInfo struct {
-
- Label *string `json:"label,optional"`
-
- Value *uint64 `json:"value,optional"`
- }
- type LabelTaggingInfo struct {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
-
- Type *int `json:"type,optional"`
-
- Conditions string `json:"conditions,optional"`
-
- ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
-
- ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
- LabelAddInfo []string `json:"labelAddInfo,optional"`
- }
- type LabelTaggingListResp struct {
- BaseDataInfo
-
- Data LabelTaggingListInfo `json:"data"`
- }
- type LabelTaggingListInfo struct {
- BaseListInfo
-
- Data []LabelTaggingInfo `json:"data"`
- }
- type LabelTaggingListReq struct {
- PageInfo
- }
- type LabelTaggingInfoResp struct {
- BaseDataInfo
-
- Data LabelTaggingInfo `json:"data"`
- }
- type SopTaskListResp struct {
- BaseDataInfo
-
- Data SopTaskListInfo `json:"data"`
- }
- type SopTaskRecordListResp struct {
- BaseDataInfo
-
- Data []SopTaskRecordInfo `json:"data"`
- }
- type SopTaskRecordInfo struct {
-
- SourceType *int `json:"sourceType,optional"`
-
- SourceId *uint64 `json:"sourceId,optional"`
-
- Name *string `json:"name,optional"`
-
- TotalCount *int64 `json:"totalCount,optional"`
-
- SuccessCount *int64 `json:"successCount,optional"`
-
- FailureCount *int64 `json:"failureCount,optional"`
-
- SuccessRate *int64 `json:"successRate,optional"`
- }
- type SopTaskListInfo struct {
- BaseListInfo
-
- Data []SopTaskInfo `json:"data"`
- }
- type SopTaskListReq struct {
- PageInfo
-
- Name *string `json:"name,optional"`
-
- CreatorId *string `json:"creatorId,optional"`
- }
- type SopTaskInfoResp struct {
- BaseDataInfo
-
- Data SopTaskInfo `json:"data"`
- }
- type SopTaskCreateResp struct {
- BaseDataInfo
-
- Data uint64 `json:"data"`
- }
- type CopyReq struct {
-
- Id uint64 `json:"id"`
-
- Name *string `json:"name,optional"`
-
- OrganizationId uint64 `json:"organizationId,optional"`
- }
- type MessageVarResp struct {
- BaseDataInfo
- Data MessageVarRespData `json:"data"`
- }
- type MessageVarRespData struct {
-
- MessageVar []MessageVarInfo `json:"messageVar"`
-
- ForwardVar []MessageVarInfo `json:"forwardVar"`
- }
- type MessageVarInfo struct {
-
- Label string `json:"label"`
-
- Value string `json:"value"`
- }
- type SopTaskOutlineResp struct {
- BaseDataInfo
- Data []SopTaskOutlineInfo `json:"data"`
- }
- type SopTaskOutlineInfo struct {
-
- Title string `json:"title,optional"`
-
- Key string `json:"key,optional"`
-
- Children []SopTaskOutlineInfo `json:"children,optional"`
- }
- type TestNodeReq struct {
- Type int `json:"type"`
- Id uint64 `json:"id"`
- Content string `json:"content"`
- }
- type TestNodeResp struct {
- BaseDataInfo
- Data []string `json:"data"`
- }
- type SopApiListReq struct {
-
-
- Page uint64 `json:"page" validate:"required,number,gt=0"`
-
-
- PageSize uint64 `json:"pageSize" validate:"required,number,lt=2000"`
- }
- type GenerateAiAnswerReq struct {
- Content string `json:"content"`
- }
- type GenerateAiAnswerResp struct {
- BaseDataInfo
- Data string `json:"data"`
- }
- type SopStageInfo struct {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- TaskId *uint64 `json:"taskId,optional"`
-
- Name *string `json:"name,optional"`
-
- ConditionType *int `json:"conditionType,optional"`
-
- ConditionOperator *int `json:"conditionOperator,optional"`
-
- ConditionList []Condition `json:"conditionList,optional"`
-
- ActionMessage []Action `json:"actionMessage,optional"`
-
- ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
-
- ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
-
- ActionForward *ActionForward `json:"actionForward,optional"`
-
- IndexSort *int `json:"indexSort,optional"`
-
- TaskInfo *SopTaskInfo `json:"taskInfo,optional"`
-
- NodeList []SopNodeInfo `json:"nodeList,optional"`
- }
- type SopTaskInfo struct {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- Name *string `json:"name,optional"`
-
- BotWxidList []string `json:"botWxidList,optional"`
-
- Type *int `json:"type,optional"`
-
- PlanStartTime *int64 `json:"planStartTime,optional"`
-
- PlanEndTime *int64 `json:"planEndTime,optional"`
-
- CreatorId *string `json:"creatorId,optional"`
-
- StageList []SopStageInfo `json:"stageList,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
-
- Token []string `json:"token,optional"`
- }
- type SopNodeInfo struct {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- StageId *uint64 `json:"stageId,optional"`
-
- ParentId *uint64 `json:"parentId,optional"`
-
- Name *string `json:"name,optional"`
-
- ConditionType *int `json:"conditionType,optional"`
-
- ConditionList []string `json:"conditionList,optional"`
-
- NoReplyCondition *uint64 `json:"noReplyCondition,optional"`
-
- NoReplyUnit *string `json:"noReplyUnit,optional"`
-
- ActionMessage []Action `json:"actionMessage,optional"`
-
- ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
-
- ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
-
- ActionForward *ActionForward `json:"actionForward,optional"`
-
- StageInfo *SopStageInfo `json:"stageInfo,optional"`
- }
- type SopNodeInfoWithLable struct {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- StageId *uint64 `json:"stageId,optional"`
-
- ParentId *uint64 `json:"parentId,optional"`
-
- Name *string `json:"name,optional"`
-
- ConditionType *int `json:"conditionType,optional"`
-
- ConditionList []string `json:"conditionList,optional"`
-
- NoReplyCondition *uint64 `json:"noReplyCondition,optional"`
-
- NoReplyUnit *string `json:"noReplyUnit,optional"`
-
- ActionMessage []Action `json:"actionMessage,optional"`
-
- ActionLabelAdd []uint64 `json:"actionLabelAdd,optional"`
-
- ActionLabelDel []uint64 `json:"actionLabelDel,optional"`
-
- ActionForward *ActionForward `json:"actionForward,optional"`
- ActionLabelAddList []string `json:"actionLabelAddList"`
- ActionLabelDelList []string `json:"actionLabelDelList"`
- }
- type SopStageListResp struct {
- BaseDataInfo
-
- Data SopStageListInfo `json:"data"`
- }
- type SopStageListInfo struct {
- BaseListInfo
-
- Data []SopStageInfo `json:"data"`
- }
- type SopStageListReq struct {
- TaskId *uint64 `json:"taskId"`
- }
- type BatchSopStageListReq struct {
- TaskIds []uint64 `json:"taskIds"`
- }
- type SopStageInfoResp struct {
- BaseDataInfo
-
- Data SopStageInfo `json:"data"`
- }
- type SopStageCreateResp struct {
- BaseDataInfo
-
- Data uint64 `json:"data"`
- }
- type SopStageMoveReq struct {
- BaseIDInfo
-
- Offset *int `json:"offset,optional"`
- }
- type StageCopyReq struct {
-
- Id uint64 `json:"id"`
- }
- type SopNodeListResp struct {
- BaseDataInfo
-
- Data []*SopChildNodeInfo `json:"data"`
- }
- type SopNodeListResp2 struct {
- BaseDataInfo
-
- Data []*SopNodeInfoWithLable `json:"data"`
- }
- type SopChildNodeInfo struct {
- NodeName *string `json:"nodeName,optional"`
- ChildNode *SopChildNodeInfo `json:"childNode,optional"`
-
- ConditionNodes []*SopChildNodeInfo `json:"conditionNodes"`
- SopNodeInfo
- }
- type SopNodeListInfo struct {
- BaseListInfo
-
- Data []SopNodeInfo `json:"data"`
- }
- type SopNodeListReq struct {
- StageId *uint64 `json:"stageId"`
- }
- type BatchSopNodeListReq struct {
- StageIds []uint64 `json:"stageIds"`
- }
- type SopNodeInfoResp struct {
- BaseDataInfo
-
- Data SopNodeInfo `json:"data"`
- }
- type SopNodeCreateResp struct {
- BaseDataInfo
-
- Data uint64 `json:"data"`
- }
- type MessageRecordsInfo struct {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- BotWxid *string `json:"botWxid,optional"`
-
- ContactId *uint64 `json:"contactId,optional"`
-
- ContactType *int `json:"contactType,optional"`
-
- ContactWxid *string `json:"contactWxid,optional"`
-
- ContentType *int `json:"contentType,optional"`
-
- Content *string `json:"content,optional"`
-
- Meta *Meta `json:"meta,optional"`
-
- ErrorDetail *string `json:"errorDetail,optional"`
-
- SendTime *int64 `json:"sendTime,optional"`
-
- SourceType *int `json:"sourceType,optional"`
-
- SourceId *uint64 `json:"sourceId,optional"`
-
- SubSourceId *uint64 `json:"subSourceId,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
- }
- type MessageRecordsListResp struct {
- BaseDataInfo
-
- Data MessageRecordsListInfo `json:"data"`
- }
- type MessageRecordsListInfo struct {
- BaseListInfo
-
- Data []MessageRecordsInfo `json:"data"`
- }
- type MessageRecordsListReq struct {
- PageInfo
-
- BatchMsgId *uint64 `json:"batchMsgId,optional"`
-
- BotWxid *string `json:"botWxid,optional"`
-
- SourceType *int `json:"sourceType,optional"`
-
- SourceId *uint64 `json:"sourceId,optional"`
-
- ContactWxid *string `json:"contactWxid,optional"`
-
- Status *uint8 `json:"status,optional"`
- }
- type MessageRecordsInfoResp struct {
- BaseDataInfo
-
- Data MessageRecordsInfo `json:"data"`
- }
- type ChatroomMemberInfo struct {
-
- Wxid *string `json:"wxid,optional"`
-
- ChatRoom *string `json:"chatRoom,optional"`
-
- OwnerWxid *string `json:"ownerWxid,optional"`
-
- Account *string `json:"account,optional"`
- }
- type ChatroomMemberListResp struct {
- BaseDataInfo
-
- Data ChatroomMemberListInfo `json:"data"`
- }
- type ChatroomMemberListInfo struct {
- BaseListInfo
-
- Data []ChatroomMemberInfo `json:"data"`
- }
- type ChatroomMemberListReq struct {
- PageInfo
-
- OwnerWxid *string `json:"ownerWxid,optional"`
-
- ChatRoom *string `json:"chatRoom,optional"`
- }
- type ChatroomMemberInfoResp struct {
- BaseDataInfo
-
- Data ChatroomMemberInfo `json:"data"`
- }
- type UserInfo struct {
- BaseUUIDInfo
-
-
- Status *uint32 `json:"status,optional" validate:"omitempty,lt=20"`
-
-
- Username *string `json:"username,optional" validate:"omitempty,max=50"`
-
-
- Nickname *string `json:"nickname,optional" validate:"omitempty,max=40"`
-
-
- Password *string `json:"password,optional" validate:"omitempty,min=6"`
-
-
- Description *string `json:"description,optional" validate:"omitempty,max=100"`
-
-
- HomePath *string `json:"homePath,optional" validate:"omitempty,max=70"`
-
- RoleIds []uint64 `json:"roleIds,optional"`
-
-
- Mobile *string `json:"mobile,optional" validate:"omitempty,max=18"`
-
-
- Email *string `json:"email,optional" validate:"omitempty,max=80"`
-
-
- Avatar *string `json:"avatar,optional" validate:"omitempty,max=300"`
-
- DepartmentId *uint64 `json:"departmentId,optional,omitempty"`
-
- PositionIds []uint64 `json:"positionId,optional,omitempty"`
- }
- type UserInfoResp struct {
- BaseDataInfo
-
- Data UserInfo `json:"data"`
- }
- type UserBaseIDInfoResp struct {
- BaseDataInfo
-
- Data UserBaseIDInfo `json:"data"`
- }
- type UserBaseIDInfo struct {
-
- UUID *string `json:"userId"`
-
- Username *string `json:"username"`
-
- Nickname *string `json:"nickname"`
-
- Avatar *string `json:"avatar"`
-
- HomePath *string `json:"homePath"`
-
- Description *string `json:"desc"`
-
- RoleName []string `json:"roleName"`
-
- DepartmentName string `json:"departmentName,optional"`
-
- DepartmentRemark string `json:"departmentRemark,optional"`
- }
- type UserLoginReq struct {
- JsCode *string `json:"js_code,optional"`
- }
- type UserLoginResp struct {
- BaseDataInfo
- Data UserToken `json:"data,optional"`
- }
- type GptsUserLoginReq struct {
- Username *string `json:"username"`
- Password *string `json:"password"`
- }
- type GptsUserLoginResp struct {
- BaseDataInfo
- Data GptsUserToken `json:"data,optional"`
- }
- type GptsUserToken struct {
- ID string `json:"id,optional"`
- Token string `json:"token,optional"`
- Username string `json:"username,optional"`
- ExpireTime uint64 `json:"expireTime,optional"`
- }
- type PasswordReq struct {
- Password *string `json:"password"`
- Password2 *string `json:"password2"`
- }
- type UserToken struct {
- Token *string `json:"token,optional"`
- ID *uint64 `json:"id,optional"`
- Avatar *string `json:"avatar,optional"`
- Nickname *string `json:"nickname,optional"`
- IsVip *bool `json:"isVip,optional"`
- }
- type UserVipResp struct {
- BaseDataInfo
- Data UserVip `json:"data,optional"`
- }
- type UserVip struct {
- IsVip *bool `json:"isVip,optional"`
- WechatAccount *string `json:"wechatAccount"`
- }
- type UserBalanceResp struct {
- BaseDataInfo
-
- Data BalanceInfo `json:"data"`
- }
- type BalanceInfo struct {
- Balance *float32 `json:"balance"`
- }
- type WxidReq struct {
- Wxid string `json:"wxid"`
- }
- type CompApiReq struct {
- CompCtlReq
- StdCompApiReq
- FastGptSpecReq
- }
- type FastGptApiReq struct {
- StdCompApiReq
- FastGptSpecReq
- }
- type StdCompApiReq struct {
-
- Model string `json:"model,optional"`
-
- Messages []StdCompMessage `json:"messages"`
-
- Stream bool `json:"stream,default=false"`
- }
- type CompCtlReq struct {
-
- EventType string `json:"event_type,default=fastgpt"`
-
- WorkId string `json:"work_id"`
-
- IsBatch bool `json:"is_batch,default=false"`
-
- Callback string `json:"callback,optional"`
- }
- type FastGptSpecReq struct {
-
- ChatId string `json:"chat_id,optional"`
-
- ResponseChatItemId string `json:"response_chat_item_id,optional"`
-
- Detail bool `json:"detail,default=false"`
-
- Variables map[string]string `json:"variables,optional"`
- }
- type StdCompMessage struct {
- Role string `json:"role"`
- Content string `json:"content"`
- }
- type CompOpenApiResp struct {
- StdCompApiResp
- FastgptSpecResp
- }
- type StdCompApiResp struct {
-
- ID string `json:"id"`
-
-
- Choices []ChatCompletionChoice `json:"choices"`
-
- Created int64 `json:"created"`
-
- Model string `json:"model"`
-
- Object string `json:"object"`
-
- ServiceTier string `json:"service_tier,omitempty"`
-
-
-
-
- SystemFingerprint string `json:"system_fingerprint"`
-
- Usage CompletionUsage `json:"usage,omitempty"`
- }
- type FastgptSpecResp struct {
- ResponseData []map[string]any `json:"responseData,omitempty"`
- NewVariables map[string]any `json:"newVariables,omitempty"`
- }
- type ChatCompletionAudio struct {
-
- ID string `json:"id"`
- }
- type ChatCompletionMessage struct {
-
- Content string `json:"content"`
-
- ReasoningContent string `json:"reasoning_content,omitempty"`
-
- Refusal string `json:"refusal"`
-
- Role string `json:"role"`
-
-
-
- Audio ChatCompletionAudio `json:"audio,omitempty"`
- }
- type ChatCompletionChoice struct {
-
-
-
-
-
-
- FinishReason string `json:"finish_reason"`
-
- Index int64 `json:"index"`
-
- Message ChatCompletionMessage `json:"message,omitempty"`
-
- Delta ChatCompletionMessage `json:"delta,omitempty"`
- }
- type CompletionUsageCompletionTokensDetails struct {
-
-
- AcceptedPredictionTokens int64 `json:"accepted_prediction_tokens"`
-
- AudioTokens int64 `json:"audio_tokens"`
-
- ReasoningTokens int64 `json:"reasoning_tokens"`
-
-
-
-
- RejectedPredictionTokens int64 `json:"rejected_prediction_tokens"`
- }
- type CompletionUsagePromptTokensDetails struct {
-
- AudioTokens int64 `json:"audio_tokens"`
-
- CachedTokens int64 `json:"cached_tokens"`
- }
- type CompletionUsage struct {
-
- CompletionTokens int64 `json:"completion_tokens,required"`
-
- PromptTokens int64 `json:"prompt_tokens,required"`
-
- TotalTokens int64 `json:"total_tokens,required"`
-
- CompletionTokensDetails CompletionUsageCompletionTokensDetails `json:"completion_tokens_details"`
-
- PromptTokensDetails CompletionUsagePromptTokensDetails `json:"prompt_tokens_details"`
- }
- type BatchMsgInfo struct {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- BatchNo *string `json:"batchNo,optional"`
-
- TaskName *string `json:"taskName,optional"`
-
- Fromwxid *string `json:"fromwxid,optional"`
-
- Msg *string `json:"msg,optional"`
-
- Tag *string `json:"tag,optional"`
-
- Total *int32 `json:"total,optional"`
-
- Success *int32 `json:"success,optional"`
-
- Fail *int32 `json:"fail,optional"`
-
- StartTime *int64 `json:"startTime,optional"`
- StartTimeStr *string `json:"startTimeStr,optional"`
-
- StopTime *int64 `json:"stopTime,optional"`
-
- SendTime *int64 `json:"sendTime,optional"`
-
- Labels []uint64 `json:"labels,optional"`
- GroupLabels []uint64 `json:"groupLabels,optional"`
-
- Type *int32 `json:"type,optional"`
-
- Ctype *uint64 `json:"ctype,optional"`
- Cc *string `json:"cc,optional"`
- Phone *string `json:"phone,optional"`
- TemplateCode *string `json:"templateCode,optional"`
- TemplateName *string `json:"templateName,optional"`
- Lang *string `json:"lang,optional"`
- }
- type BatchMsgListResp struct {
- BaseDataInfo
-
- Data BatchMsgListInfo `json:"data"`
- }
- type BatchMsgListInfo struct {
- BaseListInfo
-
- Data []BatchMsgInfo `json:"data"`
- }
- type BatchMsgListReq struct {
- PageInfo
-
- BatchNo *string `json:"batchNo,optional"`
-
- Fromwxid *string `json:"fromwxid,optional"`
-
- Msg *string `json:"msg,optional"`
-
- TaskName *string `json:"taskName,optional"`
-
- Type *int32 `json:"type"`
-
- Ctype *uint64 `json:"ctype,optional"`
- }
- type BatchMsgInfoResp struct {
- BaseDataInfo
-
- Data BatchMsgInfo `json:"data"`
- }
- type WhatsappBatchMsgListReq struct {
- PageInfo
-
- BatchNo *string `json:"batchNo,optional"`
-
- Phone *string `json:"phone,optional"`
-
- Msg *string `json:"msg,optional"`
- }
- type WhatsappBatchMsgHistoryReq struct {
- PageInfo
- IDReq
- Status *uint8 `json:"status,optional"`
- Phone *string `json:"phone,optional"`
- }
- type WhatsappBatchMsgHistoryResp struct {
- BaseDataInfo
- Data HistoryListInfo `json:"data"`
- }
- type HistoryListInfo struct {
- BaseListInfo
- Data []HistoryInfo `json:"data"`
- }
- type HistoryInfo struct {
- Index *uint64 `json:"index,optional"`
- From *string `json:"from,optional"`
- To *string `json:"to,optional"`
- SendTime *int64 `json:"sendTime,optional"`
- BatchNo *string `json:"batchNo,optional"`
- Cc *string `json:"cc,optional"`
- Phone *string `json:"phone,optional"`
- Status *uint8 `json:"status,optional"`
- }
- type SendMsgReq struct {
- Phone *string `json:"phone"`
- To *string `json:"to"`
- Lang *string `json:"lang"`
- TemplateCode *string `json:"templateCode"`
- }
- type MsgInfo struct {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- Fromwxid *string `json:"fromwxid,optional"`
-
- Toid *string `json:"toid,optional"`
-
- Msgtype *int32 `json:"msgtype,optional"`
-
- Msg *string `json:"msg,optional"`
-
- BatchNo *string `json:"batchNo,optional"`
- }
- type MsgListResp struct {
- BaseDataInfo
-
- Data MsgListInfo `json:"data"`
- }
- type MsgListInfo struct {
- BaseListInfo
-
- Data []MsgInfo `json:"data"`
- }
- type MsgListReq struct {
- PageInfo
-
- Status *uint8 `json:"status,optional"`
-
- Toid *string `json:"toid,optional"`
-
- BatchId *uint64 `json:"batchId"`
- }
- type MsgInfoResp struct {
- BaseDataInfo
-
- Data MsgInfo `json:"data"`
- }
- type EmployeeInfo struct {
- BaseIDInfo
-
- Title *string `json:"title,optional"`
-
- Avatar *string `json:"avatar,optional"`
-
- Tags *string `json:"tags,optional"`
-
- HireCount *int `json:"hireCount,optional"`
-
- ServiceCount *int `json:"serviceCount,optional"`
-
- AchievementCount *int `json:"achievementCount,optional"`
-
- CategoryId *uint64 `json:"categoryId,optional"`
-
- Intro *string `json:"intro,optional"`
-
- Estimate *string `json:"estimate,optional"`
-
- Skill *string `json:"skill,optional"`
-
- AbilityType *string `json:"abilityType,optional"`
-
- Scene *string `json:"scene,optional"`
- SceneList []EmployeeConfigInfo `json:"sceneList,optional"`
-
- SwitchIn *string `json:"switchIn,optional"`
- SwitchInList []EmployeeConfigInfo `json:"switchInList,optional"`
- Tutorial []TutorialInfo `json:"tutorial,optional"`
-
- VideoUrl *string `json:"videoUrl,optional"`
-
- WorkExperience []WorkExperienceInfo `json:"workExperience,optional"`
- ApiBase *string `json:"apiBase,optional"`
- ApiKey *string `json:"apiKey,optional"`
-
- AiInfo *string `json:"aiInfo,optional"`
- ShowChat *bool `json:"showChat,optional"`
- IsVip *bool `json:"isVip,optional"`
- ChatUrl *string `json:"chatUrl,optional"`
- }
- type EmployeeListResp struct {
- BaseDataInfo
-
- Data EmployeeListInfo `json:"data"`
- }
- type EmployeeListInfo struct {
- BaseListInfo
-
- Data []EmployeeInfo `json:"data"`
- }
- type EmployeeListReq struct {
- PageInfo
-
- Title *string `json:"title,optional"`
-
- Tags *string `json:"tags,optional"`
-
- CategoryId *uint64 `json:"categoryId,optional"`
- }
- type EmployeeInfoResp struct {
- BaseDataInfo
-
- Data EmployeeInfo `json:"data"`
- }
- type AuthReq struct {
- Token *string `json:"token,optional"`
- Data uint64 `json:"data,optional"`
- }
- type AuthResp struct {
- Token *string `json:"token,optional"`
- Data *uint64 `json:"data,optional"`
- Original interface{} `json:"original,optional"`
- OK interface{} `json:"ok,optional"`
- SecretKey string `json:"secretKey,optional"`
- }
- type WorkExperienceInfo struct {
- BaseIDInfo
-
- EmployeeId *uint64 `json:"employeeId,optional"`
-
- StartDate *int64 `json:"startDate,optional"`
- StartDateStr *string `json:"startDateStr,optional"`
-
- EndDate *int64 `json:"endDate,optional"`
- EndDateStr *string `json:"endDateStr,optional"`
-
- Company *string `json:"company,optional"`
-
- Experience *string `json:"experience,optional"`
- }
- type WorkExperienceListResp struct {
- BaseDataInfo
-
- Data WorkExperienceListInfo `json:"data"`
- }
- type WorkExperienceListInfo struct {
- BaseListInfo
-
- Data []WorkExperienceInfo `json:"data"`
- }
- type WorkExperienceListReq struct {
- PageInfo
-
- Company *string `json:"company,optional"`
- }
- type WorkExperienceInfoResp struct {
- BaseDataInfo
-
- Data WorkExperienceInfo `json:"data"`
- }
- type TutorialInfo struct {
- BaseIDInfo
-
- EmployeeId *uint64 `json:"employeeId,optional"`
-
- Index *int `json:"index,optional"`
-
- Title *string `json:"title,optional"`
-
- Content *string `json:"content,optional"`
- }
- type TutorialListResp struct {
- BaseDataInfo
-
- Data TutorialListInfo `json:"data"`
- }
- type TutorialListInfo struct {
- BaseListInfo
-
- Data []TutorialInfo `json:"data"`
- }
- type TutorialListReq struct {
- PageInfo
-
- Title *string `json:"title,optional"`
-
- Content *string `json:"content,optional"`
- }
- type TutorialInfoResp struct {
- BaseDataInfo
-
- Data TutorialInfo `json:"data"`
- }
- type EmployeeConfigInfo struct {
- BaseIDInfo
-
- Stype *string `json:"stype,optional"`
-
- Title *string `json:"title,optional"`
-
- Photo *string `json:"photo,optional"`
- }
- type EmployeeConfigListInfo struct {
- BaseListInfo
-
- Data []EmployeeConfigInfo `json:"data"`
- }
- type EmployeeConfigListReq struct {
-
- Stype *string `json:"stype,optional"`
- }
- type EmployeeConfig struct {
- Scene []EmployeeConfigInfo `json:"scene"`
- SwitchIn []EmployeeConfigInfo `json:"switchIn"`
- }
- type EmployeeConfigListResp struct {
- BaseDataInfo
-
- Data EmployeeConfig `json:"data"`
- }
- type TokenInfo struct {
- BaseIDInfo
-
- ExpireAt *int64 `json:"expireAt,optional"`
- ExpireAtStr *string `json:"expireAtStr,optional"`
-
- Token *string `json:"token,optional"`
-
- Mac *string `json:"mac,optional"`
-
- OrganizationId *uint64 `json:"organization_id,optional"`
- OrganizationName *string `json:"organizationName,optional"`
- AgentId *uint64 `json:"agent_id,optional"`
- AgentInfo *AgentInfo `json:"agent_info,optional"`
- CustomAgentBase *string `json:"custom_agent_base,optional"`
- CustomAgentKey *string `json:"custom_agent_key,optional"`
- OpenaiBase *string `json:"openai_base,optional"`
- OpenaiKey *string `json:"openai_key,optional"`
- }
- type TokenListResp struct {
- BaseDataInfo
-
- Data TokenListInfo `json:"data"`
- }
- type TokenListInfo struct {
- BaseListInfo
-
- Data []TokenInfo `json:"data"`
- }
- type TokenListReq struct {
- PageInfo
-
- Token *string `json:"token,optional"`
-
- Mac *string `json:"mac,optional"`
- OrganizationId *uint64 `json:"organization_id,optional"`
- OrganizationName *string `json:"organizationName,optional"`
- }
- type TokenInfoResp struct {
- BaseDataInfo
-
- Data TokenInfo `json:"data"`
- }
- type CheckTokenReq struct {
-
- Token *string `json:"token"`
-
- Mac *string `json:"mac"`
- }
- type CheckTokenResp struct {
-
- Valid *bool `json:"valid"`
-
- Sign *string `json:"sign"`
-
- Timestamp *int64 `json:"timestamp"`
- AgentInfo *AgentInfo `json:"agent_info"`
- CustomAgentBase *string `json:"custom_agent_base"`
- CustomAgentKey *string `json:"custom_agent_key"`
- OpenaiBase *string `json:"openai_base"`
- OpenaiKey *string `json:"openai_key"`
- DatasetBase *string `json:"dataset_base"`
- DatasetKey *string `json:"dataset_key"`
- }
- type CategoryInfo struct {
- BaseIDInfo
-
- Name *string `json:"name,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
- }
- type CategoryListResp struct {
- BaseDataInfo
-
- Data CategoryListInfo `json:"data"`
- }
- type CategoryListInfo struct {
- BaseListInfo
-
- Data []CategoryInfo `json:"data"`
- }
- type CategoryListReq struct {
- PageInfo
-
- Name *string `json:"name,optional"`
- }
- type CategoryInfoResp struct {
- BaseDataInfo
-
- Data CategoryInfo `json:"data"`
- }
- type AgentBaseInfo struct {
- Id *string `json:"id,optional"`
- }
- type AgentBaseListResp struct {
- BaseDataInfo
-
- Data AgentBaseListInfo `json:"data"`
- }
- type AgentBaseListInfo struct {
- BaseListInfo
-
- Data []AgentBaseInfo `json:"data"`
- }
- type AgentBaseListReq struct {
- PageInfo
-
- Q *string `json:"q,optional"`
-
- A *string `json:"a,optional"`
-
- DatasetId *string `json:"datasetId,optional"`
- }
- type AgentBaseInfoResp struct {
- BaseDataInfo
-
- Data AgentBaseInfo `json:"data"`
- }
- type ChatRecordsInfo struct {
- BaseIDInfo
-
- Content *string `json:"content,optional"`
-
- ContentType *uint8 `json:"contentType,optional"`
-
- RoleType *string `json:"roleType,optional"`
-
- SessionId *uint64 `json:"sessionId,optional"`
-
- UserId *uint64 `json:"userId,optional"`
-
- BotId *uint64 `json:"botId,optional"`
-
- BotType *uint8 `json:"botType,optional,options=1|2|3"`
- Finish bool `json:"finish,optional"`
- }
- type ChatRecordsListResp struct {
- BaseDataInfo
-
- Data ChatRecordsListInfo `json:"data"`
- }
- type ChatRecordsListInfo struct {
- BaseListInfo
-
- Data []ChatRecordsInfo `json:"data"`
- }
- type ChatRecordsListReq struct {
- PageInfo
- SessionId *uint64 `json:"sessionId"`
- BotId *uint64 `json:"botId,optional"`
- BotType *uint8 `json:"botType,optional"`
- }
- type ChatRecordsInfoResp struct {
- BaseDataInfo
-
- Data ChatRecordsInfo `json:"data"`
- }
- type ChatRecommendReq struct {
- SessionId *uint64 `json:"sessionId"`
- }
- type ChatRecommendResp struct {
- BaseDataInfo
-
- Data ChatRecommend `json:"data"`
- }
- type ChatRecommend struct {
- Data []string `json:"data"`
- SessionId uint64 `json:"sessionId"`
- }
- type ChatAskReq struct {
- CardId *uint64 `json:"cardId"`
- Question *string `json:"question"`
- SessionId *int `json:"sessionId"`
- }
- type ChatAskResp struct {
- BaseDataInfo
- Data *string `json:"data"`
- }
- type GptChatReq struct {
- ConversationId *string `json:"conversationId,optional"`
- Content *string `json:"content"`
- AgentId *uint64 `json:"agentId"`
- }
- type GptMessageReq struct {
- ConversationId *string `json:"conversationId,optional"`
- FirstId *string `json:"firstId,optional"`
- Limit *int `json:"limit"`
- AgentId *uint64 `json:"agentId"`
- }
- type GptMessageResp struct {
- BaseDataInfo
- Data GptMessageList `json:"data"`
- }
- type GptMessageList struct {
- HasMore bool `json:"hasMore"`
- Data []Message `json:"data"`
- }
- type Message struct {
- Id *string `json:"id"`
- ConversationId *string `json:"conversationId,optional"`
- Query *string `json:"query"`
- Answer *string `json:"answer"`
- Inputs interface{} `json:"inputs"`
- CreatedAt *int `json:"createdAt"`
- }
- type GptsSessionReq struct {
- Limit *int `json:"limit"`
- LastId *string `json:"lastId,optional"`
- AgentId *uint64 `json:"agentId"`
- }
- type GptsSessionResp struct {
- BaseDataInfo
- Data GptsSessionList `json:"data"`
- }
- type GptsSessionList struct {
- HasMore bool `json:"hasMore"`
- Data []Session `json:"data"`
- }
- type Session struct {
- Id *string `json:"id"`
- Name *string `json:"name"`
- CreatedAt *int `json:"createdAt"`
- Inputs interface{} `json:"inputs"`
- }
- type GptsDeleteSessionReq struct {
- AgentId *uint64 `json:"agentId"`
- ConversationId *string `json:"conversationId"`
- }
- type GptsRenameSessionReq struct {
- AgentId *uint64 `json:"agentId"`
- ConversationId *string `json:"conversationId"`
- Name *string `json:"name"`
- }
- type ChatSessionInfo struct {
- BaseIDInfo
-
- Name *string `json:"name,optional"`
-
- UserId *uint64 `json:"userId,optional"`
- UserName *string `json:"userName,optional"`
-
- BotId *uint64 `json:"botId,optional"`
-
- BotName *string `json:"botName,optional"`
-
- BotType *uint8 `json:"botType,optional"`
-
- BotTypeStr *string `json:"botTypeStr,optional"`
- }
- type ChatSessionListResp struct {
- BaseDataInfo
-
- Data ChatSessionListInfo `json:"data"`
- }
- type ChatSessionListInfo struct {
- BaseListInfo
-
- Data []ChatSessionInfo `json:"data"`
- }
- type ChatSessionListReq struct {
- PageInfo
- BotId *uint64 `json:"botId,optional"`
- BotType *uint8 `json:"botType,optional"`
- BotName *string `json:"botName,optional"`
- }
- type ChatSessionInfoResp struct {
- BaseDataInfo
-
- Data ChatSessionInfo `json:"data"`
- }
- type WxCardInfo struct {
- BaseIDInfo
-
- UserId *uint64 `json:"userId,optional"`
-
- WxUserId *uint64 `json:"wxUserId,optional"`
-
- Avatar *string `json:"avatar,optional"`
-
- Logo *string `json:"logo,optional"`
-
- Name *string `json:"name,optional"`
-
- Company *string `json:"company,optional"`
-
- Address *string `json:"address,optional"`
-
- Phone *string `json:"phone,optional"`
-
- OfficialAccount *string `json:"officialAccount,optional"`
-
- WechatAccount *string `json:"wechatAccount,optional"`
-
- Email *string `json:"email,optional"`
-
- ApiBase *string `json:"apiBase,optional"`
- ApiKey *string `json:"apiKey,optional"`
-
- AiInfo *string `json:"aiInfo,optional"`
-
- Intro *string `json:"intro,optional"`
- ShowChat *bool `json:"showChat,optional"`
- ShowAi *bool `json:"showAi,optional"`
- IsVip *bool `json:"isVip,optional"`
- }
- type WxCardSimpleInfo struct {
- ID *uint64 `json:"id,optional"`
-
- Avatar *string `json:"avatar,optional"`
-
- Name *string `json:"name,optional"`
- Type *string `json:"type,optional"`
- }
- type WxCardListResp struct {
- BaseDataInfo
-
- Data WxCardListInfo `json:"data"`
- }
- type WxCardListInfo struct {
- BaseListInfo
-
- Data []WxCardInfo `json:"data"`
- }
- type WxCardListReq struct {
- PageInfo
-
- Avatar *string `json:"avatar,optional"`
-
- Logo *string `json:"logo,optional"`
-
- Name *string `json:"name,optional"`
- }
- type WxCardInfoResp struct {
- BaseDataInfo
-
- Data WxCardInfo `json:"data"`
- }
- type QrcodeReq struct {
- Path string `form:"path"`
- Width int64 `form:"width"`
- EnvVersion string `form:"envVersion"`
- }
- type WxCardUserInfo struct {
- BaseIDInfo
-
- Wxid *string `json:"wxid,optional"`
-
- Account *string `json:"account,optional"`
-
- Avatar *string `json:"avatar,optional"`
-
- Nickname *string `json:"nickname,optional"`
-
- Remark *string `json:"remark,optional"`
-
- Phone *string `json:"phone,optional"`
-
- OpenId *string `json:"openId,optional"`
-
- UnionId *string `json:"unionId,optional"`
-
- SessionKey *string `json:"sessionKey,optional"`
-
- IsVip *string `json:"isVip,optional"`
- }
- type WxCardUserListResp struct {
- BaseDataInfo
-
- Data WxCardUserListInfo `json:"data"`
- }
- type WxCardUserListInfo struct {
- BaseListInfo
-
- Data []WxCardUserInfo `json:"data"`
- }
- type WxCardUserListReq struct {
- PageInfo
-
- Wxid *string `json:"wxid,optional"`
-
- Account *string `json:"account,optional"`
-
- Avatar *string `json:"avatar,optional"`
-
- Nickname *string `json:"nickname,optional"`
- }
- type WxCardUserInfoResp struct {
- BaseDataInfo
-
- Data WxCardUserInfo `json:"data"`
- }
- type WxCardVisitInfo struct {
- BaseIDInfo
-
- UserId *uint64 `json:"userId,optional"`
-
- UserName *string `json:"userName,optional"`
-
- BotId *uint64 `json:"botId,optional"`
-
- BotType *uint8 `json:"botType,optional"`
-
- BotTypeStr *string `json:"botTypeStr,optional"`
- CardInfo WxCardSimpleInfo `json:"cardInfo,optional,omitempty"`
- }
- type WxCardVisitReq struct {
- BaseIDInfo
-
- UserId *uint64 `json:"userId,optional"`
-
- BotId *uint64 `json:"botId,optional"`
-
- BotType *uint8 `json:"botType,optional"`
- }
- type WxCardVisitSingleInfo struct {
- BaseIDInfo
-
- UserId *uint64 `json:"userId,optional"`
-
- BotId *uint64 `json:"botId,optional"`
-
- BotType *uint8 `json:"botType,optional"`
- CardInfo WxCardInfo `json:"cardInfo,optional"`
- }
- type WxCardVisitListResp struct {
- BaseDataInfo
-
- Data WxCardVisitListInfo `json:"data"`
- }
- type WxCardVisitListInfo struct {
- BaseListInfo
-
- Data []WxCardVisitInfo `json:"data"`
- }
- type WxCardVisitListReq struct {
- PageInfo
- BotId *uint64 `json:"botId,optional"`
- BotType *uint8 `json:"botType,optional"`
- BotName *string `json:"botName,optional"`
- }
- type WxCardVisitInfoResp struct {
- BaseDataInfo
-
- Data WxCardVisitInfo `json:"data"`
- }
- type AvatarInfo struct {
- RequestId *string `json:"requestId"`
- SessionId *string `json:"SessionId"`
- Token *string `json:"token"`
- Channel Channel `json:"channel"`
- }
- type Channel struct {
- ChannelId *string `json:"channelId"`
- Token *string `json:"token"`
- Type *string `json:"type"`
- ExpiredTime *string `json:"expiredTime"`
- Nonce *string `json:"nonce"`
- UserId *string `json:"userId"`
- AppId *string `json:"appId"`
- UserInfoInChannel *string `json:"userInfoInChannel"`
- Gslb []*string `json:"gslb"`
- }
- type AvatarConfigReq struct {
-
- CardId *uint64 `json:"card_id,optional"`
- }
- type AvatarConfigResp struct {
- BaseDataInfo
-
- Data AvatarInfo `json:"data"`
- Extra Extra `json:"extra"`
- }
- type Extra struct {
- Live int64 `json:"live"`
- Total int64 `json:"total"`
- }
- type AvatarStsResp struct {
- BaseDataInfo
-
- Data StsInfo `json:"data"`
- }
- type StsInfo struct {
- Expiration *string `json:"expiration"`
- AccessKeyId *string `json:"accessKeyId"`
- AccessKeySecret *string `json:"accessKeySecret"`
- SecurityToken *string `json:"securityToken"`
- RequestId *string `json:"requestId"`
- }
- type AvatarSignatureResp struct {
- BaseDataInfo
-
- Data SignatureInfo `json:"data"`
- }
- type SignatureInfo struct {
- Key *string `json:"key"`
- OSSAccessKeyId *string `json:"OSSAccessKeyId"`
- Policy *string `json:"policy"`
- Signature *string `json:"signature"`
- }
- type SendTextReq struct {
- CardId *uint64 `json:"cardId"`
- SessionId *string `json:"sessionId"`
- Text *string `json:"text"`
- IsStream *bool `json:"isStream,optional"`
- Index *int32 `json:"index,optional"`
- Position *string `json:"position,optional"`
- }
- type SendTextResp struct {
- BaseDataInfo
- Data SendText `json:"data"`
- }
- type SendText struct {
- SessionId *string `json:"sessionId"`
- UniqueCode *string `json:"uniqueCode"`
- }
- type StopInstanceReq struct {
- CardId *uint64 `json:"cardId"`
- SessionId *string `json:"sessionId"`
- }
- type StopInstanceResp struct {
- BaseDataInfo
- Data StopInstance `json:"data"`
- }
- type StopInstance struct {
- SessionId *string `json:"sessionId"`
- RequestId *string `json:"requestId"`
- }
- type AliyunAvatarInfo struct {
- BaseIDInfo
-
- UserId *uint64 `json:"userId,optional"`
-
- BizId *string `json:"bizId,optional"`
-
- AccessKeyId *string `json:"accessKeyId,optional"`
-
- AccessKeySecret *string `json:"accessKeySecret,optional"`
-
- AppId *string `json:"appId,optional"`
-
- TenantId *uint64 `json:"TenantId,optional"`
-
- Response *string `json:"response,optional"`
-
- Token *string `json:"token,optional"`
-
- SessionId *string `json:"sessionId,optional"`
- }
- type AliyunAvatarListResp struct {
- BaseDataInfo
-
- Data AliyunAvatarListInfo `json:"data"`
- }
- type AliyunAvatarListInfo struct {
- BaseListInfo
-
- Data []AliyunAvatarInfo `json:"data"`
- }
- type AliyunAvatarListReq struct {
- PageInfo
-
- BizId *string `json:"bizId,optional"`
-
- AccessKeyId *string `json:"accessKeyId,optional"`
-
- AccessKeySecret *string `json:"accessKeySecret,optional"`
- }
- type AliyunAvatarInfoResp struct {
- BaseDataInfo
-
- Data AliyunAvatarInfo `json:"data"`
- }
- type UsageDetailInfo struct {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- Type *int
-
- BotId *string `json:"botId,optional"`
-
- ReceiverId *string `json:"receiverId,optional"`
-
- App *string
-
- SessionId *uint64 `json:"sessionId,optional"`
-
- Request *string `json:"request,optional"`
-
- Response *string `json:"response,optional"`
-
- TotalTokens *uint64 `json:"totalTokens,optional"`
-
- PromptTokens *uint64 `json:"promptTokens,optional"`
-
- CompletionTokens *uint64 `json:"completionTokens,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
- }
- type UsageDetailListResp struct {
- BaseDataInfo
-
- Data UsageDetailListInfo `json:"data"`
- }
- type UsageDetailListInfo struct {
- BaseListInfo
-
- Data []UsageDetailInfo `json:"data"`
- }
- type UsageDetailListReq struct {
- PageInfo
-
- BotId *string `json:"botId,optional"`
- }
- type UsageDetailResp struct {
- BaseDataInfo
- Data UsageDetailInfo `json:"data"`
- }
- type UsageTotalInfo struct {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- Type *int
-
- BotId *string `json:"botId,optional"`
-
- TotalTokens *uint64 `json:"totalTokens,optional"`
-
- StartIndex *uint64 `json:"startIndex,optional"`
-
- EndIndex *uint64 `json:"endIndex,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
- }
- type UsageTotalListResp struct {
- BaseDataInfo
-
- Data UsageTotalListInfo `json:"data"`
- }
- type UsageTotalListInfo struct {
- BaseListInfo
-
- Data []UsageTotalInfo `json:"data"`
- }
- type UsageTotalListReq struct {
- PageInfo
-
- OrganizationId *uint64 `json:"organizationId,optional"`
- }
- type AllocAgentInfo struct {
- BaseIDInfo
-
- UserId *string `json:"userId,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
-
- Agents []uint64 `json:"agents,optional"`
-
- Status *int `json:"status,optional"`
- }
- type AllocAgentQuery struct {
-
- UserId *string `json:"userId,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
- }
- type AllocAgentListResp struct {
- BaseDataInfo
-
- Data AllocAgentListInfo `json:"data"`
- }
- type AllocAgentListInfo struct {
- BaseListInfo
-
- Data []AllocAgentInfo `json:"data"`
- }
- type AllocAgentListReq struct {
- PageInfo
-
- Agents *string `json:"agents,optional"`
- }
- type AllocAgentInfoResp struct {
- BaseDataInfo
-
- Data AllocAgentInfo `json:"data"`
- }
- type SignatureResp struct {
- BaseDataInfo
-
- Data *string `json:"data"`
- }
- type MessageReq struct {
-
- UserId *uint64 `json:"user_id"`
- Text *string `json:"text"`
- }
- type ChatReq struct {
-
- AvatarId *string `json:"avatar_id"`
- UserId *uint64 `json:"user_id"`
- Text *string `json:"text"`
- }
- type DashboardInfo struct {
- BaseIDInfo
- }
- type ChartsReq struct {
- StartDate *string `json:"start_date"`
- EndDate *string `json:"end_date"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
- Wxid *string `json:"wxid,optional"`
- }
- type ChartsResp struct {
- BaseDataInfo
- Data *ChartsData `json:"data"`
- }
- type ChartsData struct {
- AiResponse *ChartsUint `json:"ai_response"`
- SopRun *ChartsUint `json:"sop_run"`
- TotalFriend *ChartsUint `json:"total_friend"`
- TotalGroup *ChartsUint `json:"total_group"`
- AccountBalance *ChartsUint `json:"account_balance"`
- ConsumeToken *ChartsUint `json:"consume_token"`
- ActiveUser *ChartsUint `json:"active_user"`
- NewUser *ChartsInt `json:"new_user"`
- LabelDist []LabelsData `json:"label_dist"`
- }
- type ChartsUint struct {
- Count uint64 `json:"count"`
- Rate *float32 `json:"rate"`
- Label []string `json:"label"`
- Val []uint64 `json:"val"`
- LabelText string `json:"labelText"`
- Tip *string `json:"tip"`
- }
- type ChartsInt struct {
- Count int64 `json:"count"`
- Rate *float32 `json:"rate"`
- Label []string `json:"label"`
- Val []int64 `json:"val"`
- LabelText string `json:"labelText"`
- Tip *string `json:"tip"`
- }
- type LabelsData struct {
- Value uint64 `json:"value"`
- Name string `json:"name"`
- }
- type WxReq struct {
- PageInfo
- EndDate *string `json:"end_date"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
- Wxid *string `json:"wxid,optional"`
- }
- type WxResp struct {
- BaseDataInfo
- Data WxList `json:"data"`
- }
- type WxList struct {
- BaseListInfo
- Data []WxData `json:"data"`
- }
- type WxData struct {
- Nickname string `json:"nickname"`
- TotalFriend uint64 `json:"total_friend"`
- TotalGroup uint64 `json:"total_group"`
- InteractionRate float32 `json:"interaction_rate"`
- }
- type CreditBalanceInfo struct {
- BaseIDInfo
-
- UserId *string `json:"userId,optional"`
-
- Balance *float32 `json:"balance,optional"`
-
- Status *int `json:"status,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
- OrganizationName *string `json:"organizationName,optional"`
- }
- type CreditBalanceListResp struct {
- BaseDataInfo
-
- Data CreditBalanceListInfo `json:"data"`
- }
- type CreditBalanceListInfo struct {
- BaseListInfo
-
- Data []CreditBalanceInfo `json:"data"`
- }
- type CreditBalanceListReq struct {
- PageInfo
-
- UserId *string `json:"userId,optional"`
- OrganizationId *uint64 `json:"organizationId,optional"`
- }
- type CreditBalanceInfoResp struct {
- BaseDataInfo
-
- Data CreditBalanceInfo `json:"data"`
- }
- type CreditBalanceOperateReq struct {
- OrganizationId *uint64 `json:"organizationId,optional"`
- Number *float32 `json:"number,optional"`
- Reason *string `json:"reason,optional"`
- }
- type CreditUsageInfo struct {
- BaseIDInfo
-
- UserId *string `json:"userId,optional"`
- UserInfo UserInfo `json:"userInfo,optional"`
-
- Number *float32 `json:"number,optional"`
-
- Status *int `json:"status,optional"`
-
- Ntype *int `json:"ntype,optional"`
-
- Table *string `json:"table,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
- OrganizationName *string `json:"organizationName,optional"`
-
- Nid *uint64 `json:"nid,optional"`
-
- Reason *string `json:"reason,optional"`
-
- Operator *string `json:"operator,optional"`
- }
- type CreditUsageListResp struct {
- BaseDataInfo
-
- Data CreditUsageListInfo `json:"data"`
- }
- type CreditUsageListInfo struct {
- BaseListInfo
-
- Data []CreditUsageInfo `json:"data"`
- }
- type CreditUsageListReq struct {
- PageInfo
- OrganizationId *uint64 `json:"organizationId,optional"`
- }
- type CreditUsageInfoResp struct {
- BaseDataInfo
-
- Data CreditUsageInfo `json:"data"`
- }
- type PayRechargeInfo struct {
- BaseIDInfo
-
- UserId *string `json:"userId,optional"`
- UserInfo UserInfo `json:"userInfo,optional"`
-
- Number *float32 `json:"number,optional"`
-
- Status *int `json:"status,optional"`
-
- Money *float32 `json:"money,optional"`
-
- OutTradeNo *string `json:"outTradeNo,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
- OrganizationName *string `json:"organizationName,optional"`
- }
- type PayRechargeListResp struct {
- BaseDataInfo
-
- Data PayRechargeListInfo `json:"data"`
- }
- type PayRechargeListInfo struct {
- BaseListInfo
-
- Data []PayRechargeInfo `json:"data"`
- }
- type PayRechargeListReq struct {
- PageInfo
-
- UserId *string `json:"userId,optional"`
-
- OutTradeNo *string `json:"outTradeNo,optional"`
- }
- type PayRechargeInfoResp struct {
- BaseDataInfo
-
- Data PayRechargeInfo `json:"data"`
- }
- type WhatsappInfo struct {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
- WaId *string `json:"waId,optional"`
- WaName *string `json:"waName,optional"`
-
- Callback *string `json:"callback,optional"`
-
- AgentId *uint64 `json:"agentId,optional"`
- AgentInfo *AgentInfo `json:"agentInfo,optional"`
-
- Account *string `json:"account,optional"`
-
- Phone *string `json:"phone,optional"`
- Cc *string `json:"cc,optional"`
-
- PhoneName *string `json:"phoneName,optional"`
-
- PhoneStatus *string `json:"phoneStatus,optional"`
- Tokens *uint64 `json:"tokens,optional"`
-
- Frequency *string `json:"frequency,optional"`
-
- Quality *string `json:"quality,optional"`
-
- VerifyStatus *string `json:"verifyStatus,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
- OrganizationName *string `json:"organizationName,optional"`
-
- ApiBase *string `json:"apiBase,optional"`
-
- ApiKey *string `json:"apiKey,optional"`
-
- AllowList []ContactInfo `json:"allowList,optional"`
-
- GroupAllowList []ContactInfo `json:"groupAllowList,optional"`
-
- BlockList []ContactInfo `json:"blockList,optional"`
-
- GroupBlockList []ContactInfo `json:"groupBlockList,optional"`
- }
- type WhatsappPhoneInfo struct {
- Avatar *string `json:"avatar,optional"`
- Industry *string `json:"industry,optional"`
- Intro *string `json:"intro,optional"`
- Address *string `json:"address,optional"`
- Email *string `json:"email,optional"`
- Website *string `json:"website,optional"`
- }
- type WhatsappListResp struct {
- BaseDataInfo
-
- Data WhatsappListInfo `json:"data"`
- }
- type WhatsappListInfo struct {
- BaseListInfo
-
- Data []WhatsappInfo `json:"data"`
- }
- type WhatsappListReq struct {
- PageInfo
-
- Phone *string `json:"phone,optional"`
-
- PhoneName *string `json:"phoneName,optional"`
- WaId *string `json:"waId,optional"`
- OrganizationId *uint64 `json:"organizationId,optional"`
- }
- type WhatsappInfoResp struct {
- BaseDataInfo
-
- Data WhatsappInfo `json:"data"`
- }
- type AutomationReq struct {
- WaId *string `json:"waId,optional"`
- Phone *string `json:"phone,optional"`
- }
- type AutomationResp struct {
- BaseDataInfo
-
- Data ConversationalAutomationInfo `json:"data"`
- }
- type ConversationalAutomationInfo struct {
- Prompts []string `json:"prompts,optional"`
- Commands []Command `json:"commands,optional"`
- Phone string `json:"phone,optional"`
- EnableWelcomeMessage bool `json:"enableWelcomeMessage,optional"`
- }
- type Command struct {
- CommandDescription string `json:"commandDescription,optional"`
- CommandName string `json:"commandName,optional"`
- }
- type SetAutomationReq struct {
- EnableWelcomeMessage bool `json:"enableWelcomeMessage,optional"`
- Phone string `json:"phone,optional"`
- Commands []Command `json:"commands,optional"`
- Prompts []string `json:"prompts,optional"`
- WaId string `json:"waId,optional"`
- }
- type SendCodeReq struct {
- Cc *string `json:"cc"`
- Phone *string `json:"phone"`
- WaId *string `json:"waId"`
- Method *string `json:"method"`
- Locale *string `json:"locale"`
- }
- type SubmitCodeReq struct {
- Cc *string `json:"cc"`
- Phone *string `json:"phone"`
- WaId *string `json:"waId"`
- Code *string `json:"code"`
- }
- type GetQrcodeReq struct {
- Phone *string `json:"phone"`
- WaId *string `json:"waId"`
- }
- type GetQrcodeResp struct {
- BaseDataInfo
- Data QrcodeListInfo `json:"data"`
- }
- type QrcodeListInfo struct {
- BaseListInfo
- Data []Qrcode `json:"data"`
- }
- type Qrcode struct {
- Phone string `json:"phone,optional"`
- QrdlCode string `json:"qrdlCode,optional"`
- GenerateQrImage string `json:"generateQrImage,optional"`
- PrefilledMessage string `json:"prefilledMessage,optional"`
- DeepLinkUrl string `json:"deepLinkUrl,optional"`
- QrImageUrl string `json:"qrImageUrl,optional"`
- }
- type CreateQrcodeReq struct {
- Phone string `json:"phone"`
- GenerateQrImage string `json:"generateQrImage"`
- PrefilledMessage string `json:"prefilledMessage"`
- WaId string `json:"waId"`
- }
- type UpdateQrcodeReq struct {
- Phone string `json:"phone,optional"`
- GenerateQrImage string `json:"generateQrImage,optional"`
- PrefilledMessage string `json:"prefilledMessage,optional"`
- QrdlCode string `json:"qrdlCode,optional"`
- WaId string `json:"waId"`
- }
- type RemoveQrcodeReq struct {
- Phone string `json:"phone,optional"`
- QrdlCode string `json:"qrdlCode,optional"`
- WaId string `json:"waId"`
- }
- type GetBusinessReq struct {
- Phone *string `json:"phone"`
- WaId *string `json:"waId"`
- }
- type GetBusinessResp struct {
- BaseDataInfo
- Data BusinessInfo `json:"data"`
- }
- type BusinessInfo struct {
- Vertical string `json:"vertical,optional"`
- Description string `json:"description,optional"`
- Email string `json:"email,optional"`
- Address string `json:"address,optional"`
- ProfilePictureUrl string `json:"profilePictureUrl,optional"`
- Websites []string `json:"websites,optional"`
- About string `json:"about,optional"`
- }
- type SetBusinessReq struct {
- Phone *string `json:"phone"`
- WaId *string `json:"waId"`
- Vertical string `json:"vertical,optional"`
- Description string `json:"description,optional"`
- Email string `json:"email,optional"`
- Address string `json:"address,optional"`
- ProfilePictureUrl string `json:"profilePictureUrl,optional"`
- Websites []string `json:"websites,optional"`
- About string `json:"about,optional"`
- }
- type RegisterReq struct {
- Phone *string `json:"phone"`
- WaId *string `json:"waId"`
- }
- type DeregisterReq struct {
- Phone *string `json:"phone"`
- WaId *string `json:"waId"`
- }
- type UpdateAgentReq struct {
- Id uint64 `json:"id"`
- AgentId uint64 `json:"agentId"`
- }
- type WhatsappAllowBlockListResp struct {
- BaseDataInfo
-
- Data WhatsappAllowBlockListRespData `json:"data"`
- }
- type WhatsappAllowBlockListRespData struct {
-
- AllowList *string `json:"allowList,optional"`
-
- GroupAllowList *string `json:"groupAllowList,optional"`
-
- BlockList *string `json:"blockList,optional"`
-
- GroupBlockList *string `json:"groupBlockList,optional"`
- }
- type UpdateAllowAndBlockListReq struct {
- Id uint64 `json:"id"`
-
- AllowList *string `json:"allowList,optional"`
-
- GroupAllowList *string `json:"groupAllowList,optional"`
-
- BlockList *string `json:"blockList,optional"`
-
- GroupBlockList *string `json:"groupBlockList,optional"`
- }
- type UpdateAgentApiReq struct {
- Id uint64 `json:"id"`
- ApiBase *string `json:"apiBase,optional"`
- ApiKey *string `json:"apiKey,optional"`
- }
- type TemplateInfo struct {
- Category string `json:"category,optional"`
- TemplateCode string `json:"templateCode,optional"`
- Name string `json:"name,optional"`
- Language string `json:"language,optional"`
- TemplateType string `json:"templateType,optional"`
- AuditStatus string `json:"auditStatus,optional"`
- Components []TemplateComponent `json:"components,optional"`
- QualityScore string `json:"qualityScore,optional"`
- MessageSendTtlSeconds int `json:"messageSendTtlSeconds,optional"`
- Reason string `json:"reason,optional"`
- }
- type TemplateSingleInfo struct {
- Category string `json:"category,optional"`
- TemplateCode string `json:"templateCode,optional"`
- Name string `json:"name,optional"`
- Language string `json:"language,optional"`
- TemplateType string `json:"templateType,optional"`
- AuditStatus string `json:"auditStatus,optional"`
- }
- type TemplateComponent struct {
- Type string `json:"type,optional"`
- Url string `json:"url,optional"`
- Text string `json:"text,optional"`
- Caption string `json:"caption,optional"`
- FileName string `json:"fileName,optional"`
- Format string `json:"format,optional"`
- Buttons []TemplateButton `json:"buttons,optional"`
- ThumbUrl string `json:"thumbUrl,optional"`
- Duration int `json:"duration,optional"`
- FileType string `json:"fileType,optional"`
- Latitude string `json:"latitude,optional"`
- Longitude string `json:"longitude,optional"`
- LocationName string `json:"locationName,optional"`
- LocationAddress string `json:"locationAddress,optional"`
- AddSecretRecommendation bool `json:"addSecretRecommendation,optional"`
- CodeExpirationMinutes int `json:"codeExpirationMinutes,optional"`
- HasExpiration bool `json:"hasExpiration,optional"`
- OfferExpirationTimeMs string `json:"offerExpirationTimeMs,optional"`
- }
- type TemplateButton struct {
- Type string `json:"type,optional"`
- Text string `json:"text,optional"`
- PhoneNumber string `json:"phoneNumber,optional"`
- Url string `json:"url,optional"`
- UrlType string `json:"urlType,optional"`
- SignatureHash string `json:"signatureHash,optional"`
- PackageName string `json:"packageName,optional"`
- AutofillText string `json:"autofillText,optional"`
- IsOptOut bool `json:"isOptOut,optional"`
- ExtendAttrs []TemplateExtendAttr `json:"extendAttrs,optional"`
- CouponCode string `json:"couponCode,optional"`
- FlowId string `json:"flowId,optional"`
- FlowAction string `json:"flowAction,optional"`
- NavigateScreen string `json:"navigateScreen,optional"`
- SupportedApps []TemplateSupportedApp `json:"supportedApps,optional"`
- }
- type TemplateSupportedApp struct {
- SignatureHash string `json:"signatureHash,optional"`
- PackageName string `json:"packageName,optional"`
- }
- type TemplateExtendAttr struct {
- NextTemplateCode string `json:"nextTemplateCode,optional"`
- NextTemplateName string `json:"nextTemplateName,optional"`
- NextLanguageCode string `json:"nextLanguageCode,optional"`
- Action string `json:"action,optional"`
- IntentCode string `json:"intentCode,optional"`
- }
- type CreateTemplateReq struct {
- Category string `json:"category"`
- TemplateCode string `json:"templateCode"`
- Name string `json:"name"`
- Language string `json:"language"`
- TemplateType string `json:"templateType,optional"`
- AllowCategoryChange bool `json:"allowCategoryChange,optional"`
- MessageSendTtlSeconds int `json:"messageSendTtlSeconds,optional"`
- }
- type ListTemplateReq struct {
- Page int32 `json:"page"`
- PageSize int32 `json:"pageSize"`
- Name string `json:"name,optional"`
- Language string `json:"language,optional"`
- AuditStatus string `json:"auditStatus,optional"`
- TemplateType string `json:"templateType,optional"`
- Code string `json:"code,optional"`
- WaId string `json:"waId,optional"`
- }
- type ListTemplateResp struct {
- Code int `json:"code"`
- Msg string `json:"msg"`
- Data ListTemplate `json:"data,omitempty"`
- }
- type ListTemplate struct {
- BaseListInfo
- Data []TemplateSingleInfo `json:"data,omitempty"`
- }
- type RemoveTemplateReq struct {
- TemplateCode string `json:"templateCode,optional"`
- TemplateName string `json:"templateName,optional"`
- Language string `json:"language"`
- TemplateType string `json:"templateType,optional"`
- }
- type EditTemplateReq struct {
- Components []TemplateComponent `json:"components,optional"`
- Language string `json:"language,optional"`
- TemplateCode string `json:"templateCode,optional"`
- Category string `json:"category,optional"`
- TemplateType string `json:"templateType,optional"`
- MessageSendTtlSeconds int `json:"messageSendTtlSeconds,optional"`
- TemplateName string `json:"templateName,optional"`
- }
- type GetTemplateReq struct {
- TemplateCode string `json:"templateCode,optional"`
- Language string `json:"language"`
- TemplateType string `json:"templateType,optional"`
- TemplateName string `json:"templateName,optional"`
- }
- type GetTemplateResp struct {
- Code int `json:"code"`
- Msg string `json:"msg"`
- Data TemplateSingleInfo `json:"data,omitempty"`
- }
- type WhatsappChannelInfo struct {
- BaseIDInfo
-
- Status *uint8 `json:"status,optional"`
-
- Ak *string `json:"ak,optional"`
-
- Sk *string `json:"sk,optional"`
-
- WaId *string `json:"waId,optional"`
-
- WaName *string `json:"waName,optional"`
-
- WabaId *uint64 `json:"wabaId,optional"`
-
- BusinessId *uint64 `json:"businessId,optional"`
-
- OrganizationId *uint64 `json:"organizationId,optional"`
- OrganizationName *string `json:"organizationName,optional"`
-
- VerifyAccount *string `json:"verifyAccount,optional"`
- }
- type WhatsappChannelListResp struct {
- BaseDataInfo
-
- Data WhatsappChannelListInfo `json:"data"`
- }
- type WhatsappChannelListInfo struct {
- BaseListInfo
-
- Data []WhatsappChannelInfo `json:"data"`
- }
- type WhatsappChannelListReq struct {
- PageInfo
- OrganizationId *uint64 `json:"organizationId,optional"`
- WaName *string `json:"waName,optional"`
- WaID *string `json:"waID,optional"`
- WabaId *uint64 `json:"wabaId,optional"`
- VerifyAccount *string `json:"verifyAccount,optional"`
- }
- type WhatsappChannelInfoResp struct {
- BaseDataInfo
-
- Data WhatsappChannelInfo `json:"data"`
- }
|