types.go 127 KB

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