12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485 |
- 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"`
- }
- 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"`
- }
- type WxSelectListReq struct {
-
- OrganizationId *uint64 `json:"organizationId,optional"`
- }
- type WxSelectListResp struct {
- BaseDataInfo
-
- Data []WxSelectListInfo `json:"data"`
- }
- type WxSelectListInfo struct {
- BaseIDInfo
-
- Wxid *string `json:"wxid,optional"`
-
- Nickname *string `json:"nickname,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"`
- }
- 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"`
- }
- 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"`
- }
- 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 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 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"`
- }
- 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"`
- }
- type BatchMsgInfoResp struct {
- BaseDataInfo
-
- Data BatchMsgInfo `json:"data"`
- }
- 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"`
-
- 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"`
-
- 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
-
- UserId *string `json:"userId,optional"`
-
- Table *string `json:"table,optional"`
-
- Reason *string `json:"reason,optional"`
- }
- type CreditUsageInfoResp struct {
- BaseDataInfo
-
- Data CreditUsageInfo `json:"data"`
- }
- type PayRechargeInfo struct {
- BaseIDInfo
-
- UserId *string `json:"userId,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"`
- }
- 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"`
-
- Ak *string `json:"ak,optional"`
-
- Sk *string `json:"sk,optional"`
-
- Callback *string `json:"callback,optional"`
-
- Account *string `json:"account,optional"`
-
- Nickname *string `json:"nickname,optional"`
-
- Phone *string `json:"phone,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"`
- }
- type WhatsappListResp struct {
- BaseDataInfo
-
- Data WhatsappListInfo `json:"data"`
- }
- type WhatsappListInfo struct {
- BaseListInfo
-
- Data []WhatsappInfo `json:"data"`
- }
- type WhatsappListReq struct {
- PageInfo
-
- Ak *string `json:"ak,optional"`
-
- Sk *string `json:"sk,optional"`
-
- Callback *string `json:"callback,optional"`
- }
- type WhatsappInfoResp struct {
- BaseDataInfo
-
- Data WhatsappInfo `json:"data"`
- }
|