types.go 128 KB

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