client.go 513 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668
  1. // This file is auto-generated, don't edit it. Thanks.
  2. package client
  3. import (
  4. openapi "github.com/alibabacloud-go/darabonba-openapi/v2/client"
  5. endpointutil "github.com/alibabacloud-go/endpoint-util/service"
  6. openapiutil "github.com/alibabacloud-go/openapi-util/service"
  7. util "github.com/alibabacloud-go/tea-utils/v2/service"
  8. "github.com/alibabacloud-go/tea/tea"
  9. )
  10. type AddExtCodeSignRequest struct {
  11. // 扩展码A3
  12. //
  13. // This parameter is required.
  14. //
  15. // example:
  16. //
  17. // 01
  18. ExtCode *string `json:"ExtCode,omitempty" xml:"ExtCode,omitempty"`
  19. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  20. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  21. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  22. // 签名
  23. //
  24. // This parameter is required.
  25. //
  26. // example:
  27. //
  28. // 示例值
  29. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  30. }
  31. func (s AddExtCodeSignRequest) String() string {
  32. return tea.Prettify(s)
  33. }
  34. func (s AddExtCodeSignRequest) GoString() string {
  35. return s.String()
  36. }
  37. func (s *AddExtCodeSignRequest) SetExtCode(v string) *AddExtCodeSignRequest {
  38. s.ExtCode = &v
  39. return s
  40. }
  41. func (s *AddExtCodeSignRequest) SetOwnerId(v int64) *AddExtCodeSignRequest {
  42. s.OwnerId = &v
  43. return s
  44. }
  45. func (s *AddExtCodeSignRequest) SetResourceOwnerAccount(v string) *AddExtCodeSignRequest {
  46. s.ResourceOwnerAccount = &v
  47. return s
  48. }
  49. func (s *AddExtCodeSignRequest) SetResourceOwnerId(v int64) *AddExtCodeSignRequest {
  50. s.ResourceOwnerId = &v
  51. return s
  52. }
  53. func (s *AddExtCodeSignRequest) SetSignName(v string) *AddExtCodeSignRequest {
  54. s.SignName = &v
  55. return s
  56. }
  57. type AddExtCodeSignResponseBody struct {
  58. AccessDeniedDetail *string `json:"AccessDeniedDetail,omitempty" xml:"AccessDeniedDetail,omitempty"`
  59. // example:
  60. //
  61. // OK
  62. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  63. // example:
  64. //
  65. // true
  66. Data *bool `json:"Data,omitempty" xml:"Data,omitempty"`
  67. // example:
  68. //
  69. // OK
  70. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  71. // example:
  72. //
  73. // 90E63D28-E31D-1EB2-8939-A9486641****
  74. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  75. // example:
  76. //
  77. // true
  78. Success *bool `json:"Success,omitempty" xml:"Success,omitempty"`
  79. }
  80. func (s AddExtCodeSignResponseBody) String() string {
  81. return tea.Prettify(s)
  82. }
  83. func (s AddExtCodeSignResponseBody) GoString() string {
  84. return s.String()
  85. }
  86. func (s *AddExtCodeSignResponseBody) SetAccessDeniedDetail(v string) *AddExtCodeSignResponseBody {
  87. s.AccessDeniedDetail = &v
  88. return s
  89. }
  90. func (s *AddExtCodeSignResponseBody) SetCode(v string) *AddExtCodeSignResponseBody {
  91. s.Code = &v
  92. return s
  93. }
  94. func (s *AddExtCodeSignResponseBody) SetData(v bool) *AddExtCodeSignResponseBody {
  95. s.Data = &v
  96. return s
  97. }
  98. func (s *AddExtCodeSignResponseBody) SetMessage(v string) *AddExtCodeSignResponseBody {
  99. s.Message = &v
  100. return s
  101. }
  102. func (s *AddExtCodeSignResponseBody) SetRequestId(v string) *AddExtCodeSignResponseBody {
  103. s.RequestId = &v
  104. return s
  105. }
  106. func (s *AddExtCodeSignResponseBody) SetSuccess(v bool) *AddExtCodeSignResponseBody {
  107. s.Success = &v
  108. return s
  109. }
  110. type AddExtCodeSignResponse struct {
  111. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  112. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  113. Body *AddExtCodeSignResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  114. }
  115. func (s AddExtCodeSignResponse) String() string {
  116. return tea.Prettify(s)
  117. }
  118. func (s AddExtCodeSignResponse) GoString() string {
  119. return s.String()
  120. }
  121. func (s *AddExtCodeSignResponse) SetHeaders(v map[string]*string) *AddExtCodeSignResponse {
  122. s.Headers = v
  123. return s
  124. }
  125. func (s *AddExtCodeSignResponse) SetStatusCode(v int32) *AddExtCodeSignResponse {
  126. s.StatusCode = &v
  127. return s
  128. }
  129. func (s *AddExtCodeSignResponse) SetBody(v *AddExtCodeSignResponseBody) *AddExtCodeSignResponse {
  130. s.Body = v
  131. return s
  132. }
  133. type AddShortUrlRequest struct {
  134. // The validity period of the short URL. Unit: days. The maximum validity period is 90 days.
  135. //
  136. // This parameter is required.
  137. //
  138. // example:
  139. //
  140. // 7
  141. EffectiveDays *string `json:"EffectiveDays,omitempty" xml:"EffectiveDays,omitempty"`
  142. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  143. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  144. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  145. // The service name of the short URL. The name cannot exceed 13 characters in length.
  146. //
  147. // This parameter is required.
  148. //
  149. // example:
  150. //
  151. // The Alibaba Cloud Short Link service.
  152. ShortUrlName *string `json:"ShortUrlName,omitempty" xml:"ShortUrlName,omitempty"`
  153. // The source URL. The URL cannot exceed 1,000 characters in length.
  154. //
  155. // This parameter is required.
  156. //
  157. // example:
  158. //
  159. // https://www.****.com/product/sms
  160. SourceUrl *string `json:"SourceUrl,omitempty" xml:"SourceUrl,omitempty"`
  161. }
  162. func (s AddShortUrlRequest) String() string {
  163. return tea.Prettify(s)
  164. }
  165. func (s AddShortUrlRequest) GoString() string {
  166. return s.String()
  167. }
  168. func (s *AddShortUrlRequest) SetEffectiveDays(v string) *AddShortUrlRequest {
  169. s.EffectiveDays = &v
  170. return s
  171. }
  172. func (s *AddShortUrlRequest) SetOwnerId(v int64) *AddShortUrlRequest {
  173. s.OwnerId = &v
  174. return s
  175. }
  176. func (s *AddShortUrlRequest) SetResourceOwnerAccount(v string) *AddShortUrlRequest {
  177. s.ResourceOwnerAccount = &v
  178. return s
  179. }
  180. func (s *AddShortUrlRequest) SetResourceOwnerId(v int64) *AddShortUrlRequest {
  181. s.ResourceOwnerId = &v
  182. return s
  183. }
  184. func (s *AddShortUrlRequest) SetShortUrlName(v string) *AddShortUrlRequest {
  185. s.ShortUrlName = &v
  186. return s
  187. }
  188. func (s *AddShortUrlRequest) SetSourceUrl(v string) *AddShortUrlRequest {
  189. s.SourceUrl = &v
  190. return s
  191. }
  192. type AddShortUrlResponseBody struct {
  193. // The response code.
  194. //
  195. // - The value OK indicates that the request was successful.
  196. //
  197. // - Other values indicate that the request failed. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  198. //
  199. // example:
  200. //
  201. // OK
  202. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  203. // The details of the short URL.
  204. Data *AddShortUrlResponseBodyData `json:"Data,omitempty" xml:"Data,omitempty" type:"Struct"`
  205. // The returned message.
  206. //
  207. // example:
  208. //
  209. // OK
  210. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  211. // The request ID.
  212. //
  213. // example:
  214. //
  215. // 819BE656-D2E0-4858-8B21-B2E477085AAF
  216. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  217. }
  218. func (s AddShortUrlResponseBody) String() string {
  219. return tea.Prettify(s)
  220. }
  221. func (s AddShortUrlResponseBody) GoString() string {
  222. return s.String()
  223. }
  224. func (s *AddShortUrlResponseBody) SetCode(v string) *AddShortUrlResponseBody {
  225. s.Code = &v
  226. return s
  227. }
  228. func (s *AddShortUrlResponseBody) SetData(v *AddShortUrlResponseBodyData) *AddShortUrlResponseBody {
  229. s.Data = v
  230. return s
  231. }
  232. func (s *AddShortUrlResponseBody) SetMessage(v string) *AddShortUrlResponseBody {
  233. s.Message = &v
  234. return s
  235. }
  236. func (s *AddShortUrlResponseBody) SetRequestId(v string) *AddShortUrlResponseBody {
  237. s.RequestId = &v
  238. return s
  239. }
  240. type AddShortUrlResponseBodyData struct {
  241. // The time when the short URL expires.
  242. //
  243. // > The value of **ExpireDate* - is on the hour.
  244. //
  245. // example:
  246. //
  247. // 2021-09-19 00:00:00
  248. ExpireDate *string `json:"ExpireDate,omitempty" xml:"ExpireDate,omitempty"`
  249. // The short URL.
  250. //
  251. // example:
  252. //
  253. // http://****.cn/6y8uy7
  254. ShortUrl *string `json:"ShortUrl,omitempty" xml:"ShortUrl,omitempty"`
  255. // The source URL.
  256. //
  257. // example:
  258. //
  259. // https://www.****.com/product/sms
  260. SourceUrl *string `json:"SourceUrl,omitempty" xml:"SourceUrl,omitempty"`
  261. }
  262. func (s AddShortUrlResponseBodyData) String() string {
  263. return tea.Prettify(s)
  264. }
  265. func (s AddShortUrlResponseBodyData) GoString() string {
  266. return s.String()
  267. }
  268. func (s *AddShortUrlResponseBodyData) SetExpireDate(v string) *AddShortUrlResponseBodyData {
  269. s.ExpireDate = &v
  270. return s
  271. }
  272. func (s *AddShortUrlResponseBodyData) SetShortUrl(v string) *AddShortUrlResponseBodyData {
  273. s.ShortUrl = &v
  274. return s
  275. }
  276. func (s *AddShortUrlResponseBodyData) SetSourceUrl(v string) *AddShortUrlResponseBodyData {
  277. s.SourceUrl = &v
  278. return s
  279. }
  280. type AddShortUrlResponse struct {
  281. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  282. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  283. Body *AddShortUrlResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  284. }
  285. func (s AddShortUrlResponse) String() string {
  286. return tea.Prettify(s)
  287. }
  288. func (s AddShortUrlResponse) GoString() string {
  289. return s.String()
  290. }
  291. func (s *AddShortUrlResponse) SetHeaders(v map[string]*string) *AddShortUrlResponse {
  292. s.Headers = v
  293. return s
  294. }
  295. func (s *AddShortUrlResponse) SetStatusCode(v int32) *AddShortUrlResponse {
  296. s.StatusCode = &v
  297. return s
  298. }
  299. func (s *AddShortUrlResponse) SetBody(v *AddShortUrlResponseBody) *AddShortUrlResponse {
  300. s.Body = v
  301. return s
  302. }
  303. type AddSmsSignRequest struct {
  304. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  305. // The description of the signature application. The description cannot exceed 200 characters in length. The description is one of the reference information for signature review. We recommend that you describe the use scenarios of your services in detail, and provide information that can verify the services, such as a website URL, a domain name with an ICP filing, an app download URL, an official account name, or a mini program name. For sign-in scenarios, you must also provide an account and password for tests. A detailed description can improve the review efficiency of signatures and templates.
  306. //
  307. // This parameter is required.
  308. //
  309. // example:
  310. //
  311. // This is the abbreviation of our company.
  312. Remark *string `json:"Remark,omitempty" xml:"Remark,omitempty"`
  313. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  314. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  315. // The signature files.
  316. //
  317. // This parameter is required.
  318. SignFileList []*AddSmsSignRequestSignFileList `json:"SignFileList,omitempty" xml:"SignFileList,omitempty" type:"Repeated"`
  319. // The name of the signature.
  320. //
  321. // >
  322. //
  323. // - The signature name is not case-sensitive. For example, [Alibaba Cloud Communication] and [alibaba cloud communication] are considered as the same name.
  324. //
  325. // - If your verification code signature and general-purpose signature have the same name, the system uses the general-purpose signature to send messages by default.
  326. //
  327. // This parameter is required.
  328. //
  329. // example:
  330. //
  331. // Aliyun
  332. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  333. // The source of the signature. Valid values:
  334. //
  335. // - **0**: the full name or abbreviation of an enterprise or institution
  336. //
  337. // - **1**: the full name or abbreviation of a website that has obtained an ICP filing from the Ministry of Industry and Information Technology (MIIT) of China
  338. //
  339. // - **2**: the full name or abbreviation of an app
  340. //
  341. // - **3**: the full name or abbreviation of an official account or mini-program
  342. //
  343. // - **4**: the full name or abbreviation of an e-commerce store
  344. //
  345. // - **5**: the full name or abbreviation of a trademark
  346. //
  347. // This parameter is required.
  348. //
  349. // example:
  350. //
  351. // 1
  352. SignSource *int32 `json:"SignSource,omitempty" xml:"SignSource,omitempty"`
  353. // The type of the signature. Valid values:
  354. //
  355. // - **0**: verification code
  356. //
  357. // - **1**: general-purpose
  358. //
  359. // example:
  360. //
  361. // 1
  362. SignType *int32 `json:"SignType,omitempty" xml:"SignType,omitempty"`
  363. }
  364. func (s AddSmsSignRequest) String() string {
  365. return tea.Prettify(s)
  366. }
  367. func (s AddSmsSignRequest) GoString() string {
  368. return s.String()
  369. }
  370. func (s *AddSmsSignRequest) SetOwnerId(v int64) *AddSmsSignRequest {
  371. s.OwnerId = &v
  372. return s
  373. }
  374. func (s *AddSmsSignRequest) SetRemark(v string) *AddSmsSignRequest {
  375. s.Remark = &v
  376. return s
  377. }
  378. func (s *AddSmsSignRequest) SetResourceOwnerAccount(v string) *AddSmsSignRequest {
  379. s.ResourceOwnerAccount = &v
  380. return s
  381. }
  382. func (s *AddSmsSignRequest) SetResourceOwnerId(v int64) *AddSmsSignRequest {
  383. s.ResourceOwnerId = &v
  384. return s
  385. }
  386. func (s *AddSmsSignRequest) SetSignFileList(v []*AddSmsSignRequestSignFileList) *AddSmsSignRequest {
  387. s.SignFileList = v
  388. return s
  389. }
  390. func (s *AddSmsSignRequest) SetSignName(v string) *AddSmsSignRequest {
  391. s.SignName = &v
  392. return s
  393. }
  394. func (s *AddSmsSignRequest) SetSignSource(v int32) *AddSmsSignRequest {
  395. s.SignSource = &v
  396. return s
  397. }
  398. func (s *AddSmsSignRequest) SetSignType(v int32) *AddSmsSignRequest {
  399. s.SignType = &v
  400. return s
  401. }
  402. type AddSmsSignRequestSignFileList struct {
  403. // The Base64-encoded string of the qualification document. An image cannot exceed 2 MB in size. In some scenarios, you must upload supporting documents to apply for signatures. For more information, see [SMS signature specifications](https://help.aliyun.com/document_detail/108076.html).
  404. //
  405. // This parameter is required.
  406. //
  407. // example:
  408. //
  409. // R0lGODlhHAAmAKIHAKqqqsvLy0hISObm5vf394uL****
  410. FileContents *string `json:"FileContents,omitempty" xml:"FileContents,omitempty"`
  411. // The format of the qualification document. You can upload multiple images. Images in JPG, PNG, GIF, or JPEG format are supported.
  412. //
  413. // In some scenarios, you must upload supporting documents to apply for signatures. For more information, see [SMS signature specifications](https://help.aliyun.com/document_detail/108076.html).
  414. //
  415. // > If you apply for a signature for other users or if the signature source is the name of an enterprise or public institution, you must upload a certificate and a letter of authorization. For more information, see [Certificate](https://help.aliyun.com/document_detail/108076.html) and [Letter of authorization](https://help.aliyun.com/document_detail/56741.html).
  416. //
  417. // This parameter is required.
  418. //
  419. // example:
  420. //
  421. // jpg
  422. FileSuffix *string `json:"FileSuffix,omitempty" xml:"FileSuffix,omitempty"`
  423. }
  424. func (s AddSmsSignRequestSignFileList) String() string {
  425. return tea.Prettify(s)
  426. }
  427. func (s AddSmsSignRequestSignFileList) GoString() string {
  428. return s.String()
  429. }
  430. func (s *AddSmsSignRequestSignFileList) SetFileContents(v string) *AddSmsSignRequestSignFileList {
  431. s.FileContents = &v
  432. return s
  433. }
  434. func (s *AddSmsSignRequestSignFileList) SetFileSuffix(v string) *AddSmsSignRequestSignFileList {
  435. s.FileSuffix = &v
  436. return s
  437. }
  438. type AddSmsSignResponseBody struct {
  439. // The response code.
  440. //
  441. // - The value OK indicates that the request was successful.
  442. //
  443. // - Other values indicate that the request failed. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  444. //
  445. // example:
  446. //
  447. // OK
  448. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  449. // The returned message.
  450. //
  451. // example:
  452. //
  453. // OK
  454. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  455. // The request ID.
  456. //
  457. // example:
  458. //
  459. // F655A8D5-B967-440B-8683-DAD6FF8DE990
  460. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  461. // The name of the signature.
  462. //
  463. // example:
  464. //
  465. // Aliyun
  466. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  467. }
  468. func (s AddSmsSignResponseBody) String() string {
  469. return tea.Prettify(s)
  470. }
  471. func (s AddSmsSignResponseBody) GoString() string {
  472. return s.String()
  473. }
  474. func (s *AddSmsSignResponseBody) SetCode(v string) *AddSmsSignResponseBody {
  475. s.Code = &v
  476. return s
  477. }
  478. func (s *AddSmsSignResponseBody) SetMessage(v string) *AddSmsSignResponseBody {
  479. s.Message = &v
  480. return s
  481. }
  482. func (s *AddSmsSignResponseBody) SetRequestId(v string) *AddSmsSignResponseBody {
  483. s.RequestId = &v
  484. return s
  485. }
  486. func (s *AddSmsSignResponseBody) SetSignName(v string) *AddSmsSignResponseBody {
  487. s.SignName = &v
  488. return s
  489. }
  490. type AddSmsSignResponse struct {
  491. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  492. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  493. Body *AddSmsSignResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  494. }
  495. func (s AddSmsSignResponse) String() string {
  496. return tea.Prettify(s)
  497. }
  498. func (s AddSmsSignResponse) GoString() string {
  499. return s.String()
  500. }
  501. func (s *AddSmsSignResponse) SetHeaders(v map[string]*string) *AddSmsSignResponse {
  502. s.Headers = v
  503. return s
  504. }
  505. func (s *AddSmsSignResponse) SetStatusCode(v int32) *AddSmsSignResponse {
  506. s.StatusCode = &v
  507. return s
  508. }
  509. func (s *AddSmsSignResponse) SetBody(v *AddSmsSignResponseBody) *AddSmsSignResponse {
  510. s.Body = v
  511. return s
  512. }
  513. type AddSmsTemplateRequest struct {
  514. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  515. // The description of the message template. It is one of the reference information for template review. The description cannot exceed 100 characters in length.
  516. //
  517. // This parameter is required.
  518. //
  519. // example:
  520. //
  521. // Apply for a template to send verification codes.
  522. Remark *string `json:"Remark,omitempty" xml:"Remark,omitempty"`
  523. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  524. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  525. // The content of the template. The content can be up to 500 characters in length. For more information, see [Message template specifications](https://help.aliyun.com/document_detail/108253.html).
  526. //
  527. // This parameter is required.
  528. //
  529. // example:
  530. //
  531. // You are applying for mobile registration. The verification code is: ${code}, valid for 5 minutes!
  532. TemplateContent *string `json:"TemplateContent,omitempty" xml:"TemplateContent,omitempty"`
  533. // The name of the template. The name can be up to 30 characters in length.
  534. //
  535. // This parameter is required.
  536. //
  537. // example:
  538. //
  539. // Aliyun Test
  540. TemplateName *string `json:"TemplateName,omitempty" xml:"TemplateName,omitempty"`
  541. // The type of the message. Valid values:
  542. //
  543. // - **0**: verification code
  544. //
  545. // - **1**: notification
  546. //
  547. // - **2**: promotional message
  548. //
  549. // - **3**: message sent to countries or regions outside the Chinese mainland
  550. //
  551. // > Only enterprise users can send promotional messages, or send messages to countries or regions outside the Chinese mainland.
  552. //
  553. // This parameter is required.
  554. //
  555. // example:
  556. //
  557. // 1
  558. TemplateType *int32 `json:"TemplateType,omitempty" xml:"TemplateType,omitempty"`
  559. }
  560. func (s AddSmsTemplateRequest) String() string {
  561. return tea.Prettify(s)
  562. }
  563. func (s AddSmsTemplateRequest) GoString() string {
  564. return s.String()
  565. }
  566. func (s *AddSmsTemplateRequest) SetOwnerId(v int64) *AddSmsTemplateRequest {
  567. s.OwnerId = &v
  568. return s
  569. }
  570. func (s *AddSmsTemplateRequest) SetRemark(v string) *AddSmsTemplateRequest {
  571. s.Remark = &v
  572. return s
  573. }
  574. func (s *AddSmsTemplateRequest) SetResourceOwnerAccount(v string) *AddSmsTemplateRequest {
  575. s.ResourceOwnerAccount = &v
  576. return s
  577. }
  578. func (s *AddSmsTemplateRequest) SetResourceOwnerId(v int64) *AddSmsTemplateRequest {
  579. s.ResourceOwnerId = &v
  580. return s
  581. }
  582. func (s *AddSmsTemplateRequest) SetTemplateContent(v string) *AddSmsTemplateRequest {
  583. s.TemplateContent = &v
  584. return s
  585. }
  586. func (s *AddSmsTemplateRequest) SetTemplateName(v string) *AddSmsTemplateRequest {
  587. s.TemplateName = &v
  588. return s
  589. }
  590. func (s *AddSmsTemplateRequest) SetTemplateType(v int32) *AddSmsTemplateRequest {
  591. s.TemplateType = &v
  592. return s
  593. }
  594. type AddSmsTemplateResponseBody struct {
  595. // The response code.
  596. //
  597. // - The value OK indicates that the request was successful.
  598. //
  599. // - For more information about other response codes, see [API error codes](https://help.aliyun.com/document_detail/101346.html).
  600. //
  601. // example:
  602. //
  603. // OK
  604. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  605. // The returned message.
  606. //
  607. // example:
  608. //
  609. // OK
  610. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  611. // The request ID.
  612. //
  613. // example:
  614. //
  615. // F655A8D5-B967-440B-8683-DAD6FF8DE990
  616. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  617. // The code of the message template.
  618. //
  619. // example:
  620. //
  621. // SMS_15255****
  622. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  623. }
  624. func (s AddSmsTemplateResponseBody) String() string {
  625. return tea.Prettify(s)
  626. }
  627. func (s AddSmsTemplateResponseBody) GoString() string {
  628. return s.String()
  629. }
  630. func (s *AddSmsTemplateResponseBody) SetCode(v string) *AddSmsTemplateResponseBody {
  631. s.Code = &v
  632. return s
  633. }
  634. func (s *AddSmsTemplateResponseBody) SetMessage(v string) *AddSmsTemplateResponseBody {
  635. s.Message = &v
  636. return s
  637. }
  638. func (s *AddSmsTemplateResponseBody) SetRequestId(v string) *AddSmsTemplateResponseBody {
  639. s.RequestId = &v
  640. return s
  641. }
  642. func (s *AddSmsTemplateResponseBody) SetTemplateCode(v string) *AddSmsTemplateResponseBody {
  643. s.TemplateCode = &v
  644. return s
  645. }
  646. type AddSmsTemplateResponse struct {
  647. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  648. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  649. Body *AddSmsTemplateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  650. }
  651. func (s AddSmsTemplateResponse) String() string {
  652. return tea.Prettify(s)
  653. }
  654. func (s AddSmsTemplateResponse) GoString() string {
  655. return s.String()
  656. }
  657. func (s *AddSmsTemplateResponse) SetHeaders(v map[string]*string) *AddSmsTemplateResponse {
  658. s.Headers = v
  659. return s
  660. }
  661. func (s *AddSmsTemplateResponse) SetStatusCode(v int32) *AddSmsTemplateResponse {
  662. s.StatusCode = &v
  663. return s
  664. }
  665. func (s *AddSmsTemplateResponse) SetBody(v *AddSmsTemplateResponseBody) *AddSmsTemplateResponse {
  666. s.Body = v
  667. return s
  668. }
  669. type CheckMobilesCardSupportRequest struct {
  670. // The list of mobile phone numbers that receive messages.
  671. //
  672. // This parameter is required.
  673. Mobiles []map[string]interface{} `json:"Mobiles,omitempty" xml:"Mobiles,omitempty" type:"Repeated"`
  674. // The code of the message template. You can view the template code in the **Template Code* - column on the **Templates* - tab of the **Go China* - page in the Alibaba Cloud SMS console.
  675. //
  676. // > Make sure that the message template has been approved.
  677. //
  678. // This parameter is required.
  679. //
  680. // example:
  681. //
  682. // CARD_SMS_****
  683. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  684. }
  685. func (s CheckMobilesCardSupportRequest) String() string {
  686. return tea.Prettify(s)
  687. }
  688. func (s CheckMobilesCardSupportRequest) GoString() string {
  689. return s.String()
  690. }
  691. func (s *CheckMobilesCardSupportRequest) SetMobiles(v []map[string]interface{}) *CheckMobilesCardSupportRequest {
  692. s.Mobiles = v
  693. return s
  694. }
  695. func (s *CheckMobilesCardSupportRequest) SetTemplateCode(v string) *CheckMobilesCardSupportRequest {
  696. s.TemplateCode = &v
  697. return s
  698. }
  699. type CheckMobilesCardSupportResponseBody struct {
  700. // The HTTP status code.
  701. //
  702. // - The value OK indicates that the request was successful.
  703. //
  704. // - Other values indicate that the request failed. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  705. //
  706. // example:
  707. //
  708. // OK
  709. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  710. // The data returned.
  711. Data *CheckMobilesCardSupportResponseBodyData `json:"Data,omitempty" xml:"Data,omitempty" type:"Struct"`
  712. // The request ID.
  713. //
  714. // example:
  715. //
  716. // 819BE656-D2E0-4858-8B21-B2E477085AAF
  717. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  718. // Indicates whether the request is successful. Valid values:
  719. //
  720. // - **true**
  721. //
  722. // - **false**
  723. //
  724. // example:
  725. //
  726. // true
  727. Success *bool `json:"Success,omitempty" xml:"Success,omitempty"`
  728. }
  729. func (s CheckMobilesCardSupportResponseBody) String() string {
  730. return tea.Prettify(s)
  731. }
  732. func (s CheckMobilesCardSupportResponseBody) GoString() string {
  733. return s.String()
  734. }
  735. func (s *CheckMobilesCardSupportResponseBody) SetCode(v string) *CheckMobilesCardSupportResponseBody {
  736. s.Code = &v
  737. return s
  738. }
  739. func (s *CheckMobilesCardSupportResponseBody) SetData(v *CheckMobilesCardSupportResponseBodyData) *CheckMobilesCardSupportResponseBody {
  740. s.Data = v
  741. return s
  742. }
  743. func (s *CheckMobilesCardSupportResponseBody) SetRequestId(v string) *CheckMobilesCardSupportResponseBody {
  744. s.RequestId = &v
  745. return s
  746. }
  747. func (s *CheckMobilesCardSupportResponseBody) SetSuccess(v bool) *CheckMobilesCardSupportResponseBody {
  748. s.Success = &v
  749. return s
  750. }
  751. type CheckMobilesCardSupportResponseBodyData struct {
  752. // The list of returned results.
  753. QueryResult []*CheckMobilesCardSupportResponseBodyDataQueryResult `json:"queryResult,omitempty" xml:"queryResult,omitempty" type:"Repeated"`
  754. }
  755. func (s CheckMobilesCardSupportResponseBodyData) String() string {
  756. return tea.Prettify(s)
  757. }
  758. func (s CheckMobilesCardSupportResponseBodyData) GoString() string {
  759. return s.String()
  760. }
  761. func (s *CheckMobilesCardSupportResponseBodyData) SetQueryResult(v []*CheckMobilesCardSupportResponseBodyDataQueryResult) *CheckMobilesCardSupportResponseBodyData {
  762. s.QueryResult = v
  763. return s
  764. }
  765. type CheckMobilesCardSupportResponseBodyDataQueryResult struct {
  766. // The mobile phone number.
  767. //
  768. // example:
  769. //
  770. // 1390000****
  771. Mobile *string `json:"mobile,omitempty" xml:"mobile,omitempty"`
  772. // Indicates whether the mobile phone number supports card messages.
  773. //
  774. // - **true**
  775. //
  776. // - **false**
  777. //
  778. // example:
  779. //
  780. // true
  781. Support *bool `json:"support,omitempty" xml:"support,omitempty"`
  782. }
  783. func (s CheckMobilesCardSupportResponseBodyDataQueryResult) String() string {
  784. return tea.Prettify(s)
  785. }
  786. func (s CheckMobilesCardSupportResponseBodyDataQueryResult) GoString() string {
  787. return s.String()
  788. }
  789. func (s *CheckMobilesCardSupportResponseBodyDataQueryResult) SetMobile(v string) *CheckMobilesCardSupportResponseBodyDataQueryResult {
  790. s.Mobile = &v
  791. return s
  792. }
  793. func (s *CheckMobilesCardSupportResponseBodyDataQueryResult) SetSupport(v bool) *CheckMobilesCardSupportResponseBodyDataQueryResult {
  794. s.Support = &v
  795. return s
  796. }
  797. type CheckMobilesCardSupportResponse struct {
  798. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  799. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  800. Body *CheckMobilesCardSupportResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  801. }
  802. func (s CheckMobilesCardSupportResponse) String() string {
  803. return tea.Prettify(s)
  804. }
  805. func (s CheckMobilesCardSupportResponse) GoString() string {
  806. return s.String()
  807. }
  808. func (s *CheckMobilesCardSupportResponse) SetHeaders(v map[string]*string) *CheckMobilesCardSupportResponse {
  809. s.Headers = v
  810. return s
  811. }
  812. func (s *CheckMobilesCardSupportResponse) SetStatusCode(v int32) *CheckMobilesCardSupportResponse {
  813. s.StatusCode = &v
  814. return s
  815. }
  816. func (s *CheckMobilesCardSupportResponse) SetBody(v *CheckMobilesCardSupportResponseBody) *CheckMobilesCardSupportResponse {
  817. s.Body = v
  818. return s
  819. }
  820. type ConversionDataIntlRequest struct {
  821. // The conversion rate.
  822. //
  823. // > The value of this parameter is a double, and ranges from 0 to 1.
  824. //
  825. // This parameter is required.
  826. //
  827. // example:
  828. //
  829. // 0.53
  830. ConversionRate *string `json:"ConversionRate,omitempty" xml:"ConversionRate,omitempty"`
  831. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  832. // The time point at which the conversion rate is monitored. The value is a UNIX timestamp. Unit: milliseconds.
  833. //
  834. // > If you do not specify this parameter, the current timestamp is used by default.
  835. //
  836. // example:
  837. //
  838. // 1349055900000
  839. ReportTime *int64 `json:"ReportTime,omitempty" xml:"ReportTime,omitempty"`
  840. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  841. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  842. }
  843. func (s ConversionDataIntlRequest) String() string {
  844. return tea.Prettify(s)
  845. }
  846. func (s ConversionDataIntlRequest) GoString() string {
  847. return s.String()
  848. }
  849. func (s *ConversionDataIntlRequest) SetConversionRate(v string) *ConversionDataIntlRequest {
  850. s.ConversionRate = &v
  851. return s
  852. }
  853. func (s *ConversionDataIntlRequest) SetOwnerId(v int64) *ConversionDataIntlRequest {
  854. s.OwnerId = &v
  855. return s
  856. }
  857. func (s *ConversionDataIntlRequest) SetReportTime(v int64) *ConversionDataIntlRequest {
  858. s.ReportTime = &v
  859. return s
  860. }
  861. func (s *ConversionDataIntlRequest) SetResourceOwnerAccount(v string) *ConversionDataIntlRequest {
  862. s.ResourceOwnerAccount = &v
  863. return s
  864. }
  865. func (s *ConversionDataIntlRequest) SetResourceOwnerId(v int64) *ConversionDataIntlRequest {
  866. s.ResourceOwnerId = &v
  867. return s
  868. }
  869. type ConversionDataIntlResponseBody struct {
  870. // The status code. If OK is returned, the request is successful. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html?spm=a2c4g.101345.0.0.74326ff2J5EZyt).
  871. //
  872. // example:
  873. //
  874. // OK
  875. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  876. // The returned message.
  877. //
  878. // example:
  879. //
  880. // OK
  881. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  882. // The request ID.
  883. //
  884. // example:
  885. //
  886. // F655A8D5-B967-440B-8683-DAD6FF8D****
  887. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  888. }
  889. func (s ConversionDataIntlResponseBody) String() string {
  890. return tea.Prettify(s)
  891. }
  892. func (s ConversionDataIntlResponseBody) GoString() string {
  893. return s.String()
  894. }
  895. func (s *ConversionDataIntlResponseBody) SetCode(v string) *ConversionDataIntlResponseBody {
  896. s.Code = &v
  897. return s
  898. }
  899. func (s *ConversionDataIntlResponseBody) SetMessage(v string) *ConversionDataIntlResponseBody {
  900. s.Message = &v
  901. return s
  902. }
  903. func (s *ConversionDataIntlResponseBody) SetRequestId(v string) *ConversionDataIntlResponseBody {
  904. s.RequestId = &v
  905. return s
  906. }
  907. type ConversionDataIntlResponse struct {
  908. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  909. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  910. Body *ConversionDataIntlResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  911. }
  912. func (s ConversionDataIntlResponse) String() string {
  913. return tea.Prettify(s)
  914. }
  915. func (s ConversionDataIntlResponse) GoString() string {
  916. return s.String()
  917. }
  918. func (s *ConversionDataIntlResponse) SetHeaders(v map[string]*string) *ConversionDataIntlResponse {
  919. s.Headers = v
  920. return s
  921. }
  922. func (s *ConversionDataIntlResponse) SetStatusCode(v int32) *ConversionDataIntlResponse {
  923. s.StatusCode = &v
  924. return s
  925. }
  926. func (s *ConversionDataIntlResponse) SetBody(v *ConversionDataIntlResponseBody) *ConversionDataIntlResponse {
  927. s.Body = v
  928. return s
  929. }
  930. type CreateCardSmsTemplateRequest struct {
  931. // The mobile phone manufacturer. Valid values:
  932. //
  933. // - **HuaWei**: HUAWEI
  934. //
  935. // - **XiaoMi**: Xiaomi
  936. //
  937. // - **OPPO**: OPPO
  938. //
  939. // - **VIVO**: vivo
  940. //
  941. // - **MEIZU**: MEIZU
  942. //
  943. // > If this parameter is not specified, the system automatically specifies a supported mobile phone manufacturer.
  944. //
  945. // example:
  946. //
  947. // XiaoMi
  948. Factorys *string `json:"Factorys,omitempty" xml:"Factorys,omitempty"`
  949. // The description of the message template.
  950. //
  951. // example:
  952. //
  953. // Image and Text Template
  954. Memo *string `json:"Memo,omitempty" xml:"Memo,omitempty"`
  955. // The content of the card message template.
  956. //
  957. // >
  958. //
  959. // - For information about fields such as Template, ExtendInfo, TemplateContent, TmpCard, and Action, see [Parameters of card message templates](https://help.aliyun.com/document_detail/434929.html).
  960. //
  961. // - Message template content varies based on the template type. For more information, see [Sample message templates](https://help.aliyun.com/document_detail/435361.html).
  962. //
  963. // This parameter is required.
  964. //
  965. // example:
  966. //
  967. // {
  968. //
  969. // "extendInfo":{
  970. //
  971. // "scene":"HMOVM",
  972. //
  973. // "purpose":"2",
  974. //
  975. // "userExt":{
  976. //
  977. // "outId":"1234554321"
  978. //
  979. // }
  980. //
  981. // },
  982. //
  983. // "templateContent":{
  984. //
  985. // "pages":[
  986. //
  987. // {
  988. //
  989. // "tmpCards":[
  990. //
  991. // {
  992. //
  993. // "type":"IMAGE",
  994. //
  995. // "srcType":1,
  996. //
  997. // "src":"28755",
  998. //
  999. // "actionType":"OPEN_APP",
  1000. //
  1001. // "action":{
  1002. //
  1003. // "target":"https://s.tb.cn/c.KxzZ",
  1004. //
  1005. // "merchantName":"test-template",
  1006. //
  1007. // "packageName":[
  1008. //
  1009. // "com.taobao.taobao"],
  1010. //
  1011. // "floorUrl":"https://s.tb.cn/c.KxzZ"
  1012. //
  1013. // },
  1014. //
  1015. // "positionNumber":1
  1016. //
  1017. // },
  1018. //
  1019. // {
  1020. //
  1021. // "type":"TEXT",
  1022. //
  1023. // "content":"this is a test msg.",
  1024. //
  1025. // "isTextTitle":true,
  1026. //
  1027. // "positionNumber":2
  1028. //
  1029. // },
  1030. //
  1031. // {
  1032. //
  1033. // "type":"TEXT",
  1034. //
  1035. // "content":"Promotional information",
  1036. //
  1037. // "isTextTitle":false,
  1038. //
  1039. // "positionNumber":3
  1040. //
  1041. // },
  1042. //
  1043. // {
  1044. //
  1045. // "type":"BUTTON",
  1046. //
  1047. // "content":"Promotional information,",
  1048. //
  1049. // "actionType":"OPEN_BROWSER",
  1050. //
  1051. // "action":{
  1052. //
  1053. // "target":"https://www.aliyun.com",
  1054. //
  1055. // "merchantName":"Currently on the Alibaba Cloud official website."
  1056. //
  1057. // },
  1058. //
  1059. // "positionNumber":4
  1060. //
  1061. // }]
  1062. //
  1063. // }]
  1064. //
  1065. // },
  1066. //
  1067. // "cardSignName":"aliyun",
  1068. //
  1069. // "cardType":5
  1070. //
  1071. // }
  1072. Template map[string]interface{} `json:"Template,omitempty" xml:"Template,omitempty"`
  1073. // The name of the card message template.
  1074. //
  1075. // This parameter is required.
  1076. //
  1077. // example:
  1078. //
  1079. // Aliyun Image and Text Template
  1080. TemplateName *string `json:"TemplateName,omitempty" xml:"TemplateName,omitempty"`
  1081. }
  1082. func (s CreateCardSmsTemplateRequest) String() string {
  1083. return tea.Prettify(s)
  1084. }
  1085. func (s CreateCardSmsTemplateRequest) GoString() string {
  1086. return s.String()
  1087. }
  1088. func (s *CreateCardSmsTemplateRequest) SetFactorys(v string) *CreateCardSmsTemplateRequest {
  1089. s.Factorys = &v
  1090. return s
  1091. }
  1092. func (s *CreateCardSmsTemplateRequest) SetMemo(v string) *CreateCardSmsTemplateRequest {
  1093. s.Memo = &v
  1094. return s
  1095. }
  1096. func (s *CreateCardSmsTemplateRequest) SetTemplate(v map[string]interface{}) *CreateCardSmsTemplateRequest {
  1097. s.Template = v
  1098. return s
  1099. }
  1100. func (s *CreateCardSmsTemplateRequest) SetTemplateName(v string) *CreateCardSmsTemplateRequest {
  1101. s.TemplateName = &v
  1102. return s
  1103. }
  1104. type CreateCardSmsTemplateShrinkRequest struct {
  1105. // The mobile phone manufacturer. Valid values:
  1106. //
  1107. // - **HuaWei**: HUAWEI
  1108. //
  1109. // - **XiaoMi**: Xiaomi
  1110. //
  1111. // - **OPPO**: OPPO
  1112. //
  1113. // - **VIVO**: vivo
  1114. //
  1115. // - **MEIZU**: MEIZU
  1116. //
  1117. // > If this parameter is not specified, the system automatically specifies a supported mobile phone manufacturer.
  1118. //
  1119. // example:
  1120. //
  1121. // XiaoMi
  1122. Factorys *string `json:"Factorys,omitempty" xml:"Factorys,omitempty"`
  1123. // The description of the message template.
  1124. //
  1125. // example:
  1126. //
  1127. // Image and Text Template
  1128. Memo *string `json:"Memo,omitempty" xml:"Memo,omitempty"`
  1129. // The content of the card message template.
  1130. //
  1131. // >
  1132. //
  1133. // - For information about fields such as Template, ExtendInfo, TemplateContent, TmpCard, and Action, see [Parameters of card message templates](https://help.aliyun.com/document_detail/434929.html).
  1134. //
  1135. // - Message template content varies based on the template type. For more information, see [Sample message templates](https://help.aliyun.com/document_detail/435361.html).
  1136. //
  1137. // This parameter is required.
  1138. //
  1139. // example:
  1140. //
  1141. // {
  1142. //
  1143. // "extendInfo":{
  1144. //
  1145. // "scene":"HMOVM",
  1146. //
  1147. // "purpose":"2",
  1148. //
  1149. // "userExt":{
  1150. //
  1151. // "outId":"1234554321"
  1152. //
  1153. // }
  1154. //
  1155. // },
  1156. //
  1157. // "templateContent":{
  1158. //
  1159. // "pages":[
  1160. //
  1161. // {
  1162. //
  1163. // "tmpCards":[
  1164. //
  1165. // {
  1166. //
  1167. // "type":"IMAGE",
  1168. //
  1169. // "srcType":1,
  1170. //
  1171. // "src":"28755",
  1172. //
  1173. // "actionType":"OPEN_APP",
  1174. //
  1175. // "action":{
  1176. //
  1177. // "target":"https://s.tb.cn/c.KxzZ",
  1178. //
  1179. // "merchantName":"test-template",
  1180. //
  1181. // "packageName":[
  1182. //
  1183. // "com.taobao.taobao"],
  1184. //
  1185. // "floorUrl":"https://s.tb.cn/c.KxzZ"
  1186. //
  1187. // },
  1188. //
  1189. // "positionNumber":1
  1190. //
  1191. // },
  1192. //
  1193. // {
  1194. //
  1195. // "type":"TEXT",
  1196. //
  1197. // "content":"this is a test msg.",
  1198. //
  1199. // "isTextTitle":true,
  1200. //
  1201. // "positionNumber":2
  1202. //
  1203. // },
  1204. //
  1205. // {
  1206. //
  1207. // "type":"TEXT",
  1208. //
  1209. // "content":"Promotional information",
  1210. //
  1211. // "isTextTitle":false,
  1212. //
  1213. // "positionNumber":3
  1214. //
  1215. // },
  1216. //
  1217. // {
  1218. //
  1219. // "type":"BUTTON",
  1220. //
  1221. // "content":"Promotional information,",
  1222. //
  1223. // "actionType":"OPEN_BROWSER",
  1224. //
  1225. // "action":{
  1226. //
  1227. // "target":"https://www.aliyun.com",
  1228. //
  1229. // "merchantName":"Currently on the Alibaba Cloud official website."
  1230. //
  1231. // },
  1232. //
  1233. // "positionNumber":4
  1234. //
  1235. // }]
  1236. //
  1237. // }]
  1238. //
  1239. // },
  1240. //
  1241. // "cardSignName":"aliyun",
  1242. //
  1243. // "cardType":5
  1244. //
  1245. // }
  1246. TemplateShrink *string `json:"Template,omitempty" xml:"Template,omitempty"`
  1247. // The name of the card message template.
  1248. //
  1249. // This parameter is required.
  1250. //
  1251. // example:
  1252. //
  1253. // Aliyun Image and Text Template
  1254. TemplateName *string `json:"TemplateName,omitempty" xml:"TemplateName,omitempty"`
  1255. }
  1256. func (s CreateCardSmsTemplateShrinkRequest) String() string {
  1257. return tea.Prettify(s)
  1258. }
  1259. func (s CreateCardSmsTemplateShrinkRequest) GoString() string {
  1260. return s.String()
  1261. }
  1262. func (s *CreateCardSmsTemplateShrinkRequest) SetFactorys(v string) *CreateCardSmsTemplateShrinkRequest {
  1263. s.Factorys = &v
  1264. return s
  1265. }
  1266. func (s *CreateCardSmsTemplateShrinkRequest) SetMemo(v string) *CreateCardSmsTemplateShrinkRequest {
  1267. s.Memo = &v
  1268. return s
  1269. }
  1270. func (s *CreateCardSmsTemplateShrinkRequest) SetTemplateShrink(v string) *CreateCardSmsTemplateShrinkRequest {
  1271. s.TemplateShrink = &v
  1272. return s
  1273. }
  1274. func (s *CreateCardSmsTemplateShrinkRequest) SetTemplateName(v string) *CreateCardSmsTemplateShrinkRequest {
  1275. s.TemplateName = &v
  1276. return s
  1277. }
  1278. type CreateCardSmsTemplateResponseBody struct {
  1279. // The response code.
  1280. //
  1281. // - If OK is returned, the request is successful.
  1282. //
  1283. // - Other values indicate that the request fails. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  1284. //
  1285. // example:
  1286. //
  1287. // OK
  1288. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  1289. // The data returned.
  1290. Data *CreateCardSmsTemplateResponseBodyData `json:"Data,omitempty" xml:"Data,omitempty" type:"Struct"`
  1291. // The request ID.
  1292. //
  1293. // example:
  1294. //
  1295. // F655A8D5-B967-440B-8683-DAD6FF8DE990
  1296. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  1297. // Indicates whether the request was successful. Valid values:
  1298. //
  1299. // - **true**
  1300. //
  1301. // - **false**
  1302. //
  1303. // example:
  1304. //
  1305. // true
  1306. Success *bool `json:"Success,omitempty" xml:"Success,omitempty"`
  1307. }
  1308. func (s CreateCardSmsTemplateResponseBody) String() string {
  1309. return tea.Prettify(s)
  1310. }
  1311. func (s CreateCardSmsTemplateResponseBody) GoString() string {
  1312. return s.String()
  1313. }
  1314. func (s *CreateCardSmsTemplateResponseBody) SetCode(v string) *CreateCardSmsTemplateResponseBody {
  1315. s.Code = &v
  1316. return s
  1317. }
  1318. func (s *CreateCardSmsTemplateResponseBody) SetData(v *CreateCardSmsTemplateResponseBodyData) *CreateCardSmsTemplateResponseBody {
  1319. s.Data = v
  1320. return s
  1321. }
  1322. func (s *CreateCardSmsTemplateResponseBody) SetRequestId(v string) *CreateCardSmsTemplateResponseBody {
  1323. s.RequestId = &v
  1324. return s
  1325. }
  1326. func (s *CreateCardSmsTemplateResponseBody) SetSuccess(v bool) *CreateCardSmsTemplateResponseBody {
  1327. s.Success = &v
  1328. return s
  1329. }
  1330. type CreateCardSmsTemplateResponseBodyData struct {
  1331. // The code of the message template.
  1332. //
  1333. // You can view the template code in the **Template Code* - column on the **Templates* - tab of the **Go China* - page in the [Alibaba Cloud SMS console](https://dysms.console.aliyun.com/dysms.htm?spm=5176.12818093.categories-n-products.ddysms.3b2816d0xml2NA#/overview).
  1334. //
  1335. // > Make sure that the message template has been approved.
  1336. //
  1337. // example:
  1338. //
  1339. // CARD_SMS_60000****
  1340. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  1341. }
  1342. func (s CreateCardSmsTemplateResponseBodyData) String() string {
  1343. return tea.Prettify(s)
  1344. }
  1345. func (s CreateCardSmsTemplateResponseBodyData) GoString() string {
  1346. return s.String()
  1347. }
  1348. func (s *CreateCardSmsTemplateResponseBodyData) SetTemplateCode(v string) *CreateCardSmsTemplateResponseBodyData {
  1349. s.TemplateCode = &v
  1350. return s
  1351. }
  1352. type CreateCardSmsTemplateResponse struct {
  1353. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  1354. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  1355. Body *CreateCardSmsTemplateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  1356. }
  1357. func (s CreateCardSmsTemplateResponse) String() string {
  1358. return tea.Prettify(s)
  1359. }
  1360. func (s CreateCardSmsTemplateResponse) GoString() string {
  1361. return s.String()
  1362. }
  1363. func (s *CreateCardSmsTemplateResponse) SetHeaders(v map[string]*string) *CreateCardSmsTemplateResponse {
  1364. s.Headers = v
  1365. return s
  1366. }
  1367. func (s *CreateCardSmsTemplateResponse) SetStatusCode(v int32) *CreateCardSmsTemplateResponse {
  1368. s.StatusCode = &v
  1369. return s
  1370. }
  1371. func (s *CreateCardSmsTemplateResponse) SetBody(v *CreateCardSmsTemplateResponseBody) *CreateCardSmsTemplateResponse {
  1372. s.Body = v
  1373. return s
  1374. }
  1375. type CreateSmartShortUrlRequest struct {
  1376. // example:
  1377. //
  1378. // 示例值示例值
  1379. OutId *string `json:"OutId,omitempty" xml:"OutId,omitempty"`
  1380. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  1381. // This parameter is required.
  1382. //
  1383. // example:
  1384. //
  1385. // 15900195***
  1386. PhoneNumbers *string `json:"PhoneNumbers,omitempty" xml:"PhoneNumbers,omitempty"`
  1387. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  1388. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  1389. // This parameter is required.
  1390. //
  1391. // example:
  1392. //
  1393. // 示例值
  1394. SourceUrl *string `json:"SourceUrl,omitempty" xml:"SourceUrl,omitempty"`
  1395. }
  1396. func (s CreateSmartShortUrlRequest) String() string {
  1397. return tea.Prettify(s)
  1398. }
  1399. func (s CreateSmartShortUrlRequest) GoString() string {
  1400. return s.String()
  1401. }
  1402. func (s *CreateSmartShortUrlRequest) SetOutId(v string) *CreateSmartShortUrlRequest {
  1403. s.OutId = &v
  1404. return s
  1405. }
  1406. func (s *CreateSmartShortUrlRequest) SetOwnerId(v int64) *CreateSmartShortUrlRequest {
  1407. s.OwnerId = &v
  1408. return s
  1409. }
  1410. func (s *CreateSmartShortUrlRequest) SetPhoneNumbers(v string) *CreateSmartShortUrlRequest {
  1411. s.PhoneNumbers = &v
  1412. return s
  1413. }
  1414. func (s *CreateSmartShortUrlRequest) SetResourceOwnerAccount(v string) *CreateSmartShortUrlRequest {
  1415. s.ResourceOwnerAccount = &v
  1416. return s
  1417. }
  1418. func (s *CreateSmartShortUrlRequest) SetResourceOwnerId(v int64) *CreateSmartShortUrlRequest {
  1419. s.ResourceOwnerId = &v
  1420. return s
  1421. }
  1422. func (s *CreateSmartShortUrlRequest) SetSourceUrl(v string) *CreateSmartShortUrlRequest {
  1423. s.SourceUrl = &v
  1424. return s
  1425. }
  1426. type CreateSmartShortUrlResponseBody struct {
  1427. // example:
  1428. //
  1429. // 示例值示例值示例值
  1430. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  1431. // example:
  1432. //
  1433. // 示例值示例值示例值
  1434. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  1435. Model []*CreateSmartShortUrlResponseBodyModel `json:"Model,omitempty" xml:"Model,omitempty" type:"Repeated"`
  1436. // example:
  1437. //
  1438. // 示例值示例值
  1439. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  1440. }
  1441. func (s CreateSmartShortUrlResponseBody) String() string {
  1442. return tea.Prettify(s)
  1443. }
  1444. func (s CreateSmartShortUrlResponseBody) GoString() string {
  1445. return s.String()
  1446. }
  1447. func (s *CreateSmartShortUrlResponseBody) SetCode(v string) *CreateSmartShortUrlResponseBody {
  1448. s.Code = &v
  1449. return s
  1450. }
  1451. func (s *CreateSmartShortUrlResponseBody) SetMessage(v string) *CreateSmartShortUrlResponseBody {
  1452. s.Message = &v
  1453. return s
  1454. }
  1455. func (s *CreateSmartShortUrlResponseBody) SetModel(v []*CreateSmartShortUrlResponseBodyModel) *CreateSmartShortUrlResponseBody {
  1456. s.Model = v
  1457. return s
  1458. }
  1459. func (s *CreateSmartShortUrlResponseBody) SetRequestId(v string) *CreateSmartShortUrlResponseBody {
  1460. s.RequestId = &v
  1461. return s
  1462. }
  1463. type CreateSmartShortUrlResponseBodyModel struct {
  1464. // example:
  1465. //
  1466. // 示例值
  1467. Domain *string `json:"Domain,omitempty" xml:"Domain,omitempty"`
  1468. // example:
  1469. //
  1470. // 11
  1471. Expiration *int64 `json:"Expiration,omitempty" xml:"Expiration,omitempty"`
  1472. // example:
  1473. //
  1474. // 示例值
  1475. PhoneNumber *string `json:"PhoneNumber,omitempty" xml:"PhoneNumber,omitempty"`
  1476. // example:
  1477. //
  1478. // 示例值
  1479. ShortName *string `json:"ShortName,omitempty" xml:"ShortName,omitempty"`
  1480. // example:
  1481. //
  1482. // 示例值示例值
  1483. ShortUrl *string `json:"ShortUrl,omitempty" xml:"ShortUrl,omitempty"`
  1484. }
  1485. func (s CreateSmartShortUrlResponseBodyModel) String() string {
  1486. return tea.Prettify(s)
  1487. }
  1488. func (s CreateSmartShortUrlResponseBodyModel) GoString() string {
  1489. return s.String()
  1490. }
  1491. func (s *CreateSmartShortUrlResponseBodyModel) SetDomain(v string) *CreateSmartShortUrlResponseBodyModel {
  1492. s.Domain = &v
  1493. return s
  1494. }
  1495. func (s *CreateSmartShortUrlResponseBodyModel) SetExpiration(v int64) *CreateSmartShortUrlResponseBodyModel {
  1496. s.Expiration = &v
  1497. return s
  1498. }
  1499. func (s *CreateSmartShortUrlResponseBodyModel) SetPhoneNumber(v string) *CreateSmartShortUrlResponseBodyModel {
  1500. s.PhoneNumber = &v
  1501. return s
  1502. }
  1503. func (s *CreateSmartShortUrlResponseBodyModel) SetShortName(v string) *CreateSmartShortUrlResponseBodyModel {
  1504. s.ShortName = &v
  1505. return s
  1506. }
  1507. func (s *CreateSmartShortUrlResponseBodyModel) SetShortUrl(v string) *CreateSmartShortUrlResponseBodyModel {
  1508. s.ShortUrl = &v
  1509. return s
  1510. }
  1511. type CreateSmartShortUrlResponse struct {
  1512. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  1513. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  1514. Body *CreateSmartShortUrlResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  1515. }
  1516. func (s CreateSmartShortUrlResponse) String() string {
  1517. return tea.Prettify(s)
  1518. }
  1519. func (s CreateSmartShortUrlResponse) GoString() string {
  1520. return s.String()
  1521. }
  1522. func (s *CreateSmartShortUrlResponse) SetHeaders(v map[string]*string) *CreateSmartShortUrlResponse {
  1523. s.Headers = v
  1524. return s
  1525. }
  1526. func (s *CreateSmartShortUrlResponse) SetStatusCode(v int32) *CreateSmartShortUrlResponse {
  1527. s.StatusCode = &v
  1528. return s
  1529. }
  1530. func (s *CreateSmartShortUrlResponse) SetBody(v *CreateSmartShortUrlResponseBody) *CreateSmartShortUrlResponse {
  1531. s.Body = v
  1532. return s
  1533. }
  1534. type CreateSmsSignRequest struct {
  1535. // Application scenarios, instructions as follows:
  1536. //
  1537. // - For registered websites, enter the domain name with HTTP or HTTPS that has been registered with the MIIT.
  1538. //
  1539. // - For launched apps, provide a display link from the app store with HTTP or HTTPS, ensuring the app is online.
  1540. //
  1541. // - For public accounts or mini-programs, input the full name, ensuring they are online.
  1542. //
  1543. // - For e-commerce platform store names, applicable only to enterprise users, provide a display link with HTTP or HTTPS for the store.
  1544. //
  1545. // example:
  1546. //
  1547. // http://www.aliyun.com/
  1548. ApplySceneContent *string `json:"ApplySceneContent,omitempty" xml:"ApplySceneContent,omitempty"`
  1549. // Additional information to supplement uploaded business proof documents or screenshots, which helps reviewers understand your business details.
  1550. //
  1551. // This parameter is optional; please fill it out based on your actual needs.
  1552. MoreData []*string `json:"MoreData,omitempty" xml:"MoreData,omitempty" type:"Repeated"`
  1553. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  1554. // Approved or under-review qualification ID.
  1555. //
  1556. // > - Before applying for an SMS signature, please first [Apply for Qualification](https://help.aliyun.com/zh/sms/user-guide/new-qualification?spm=a2c4g.11186623.0.0.718d187bbkpMRK).
  1557. //
  1558. // > - You can view the qualification ID on the [Qualification Management](https://dysms.console.aliyun.com/domestic/text/qualification) page.
  1559. //
  1560. // This parameter is required.
  1561. //
  1562. // example:
  1563. //
  1564. // 8563**
  1565. QualificationId *int64 `json:"QualificationId,omitempty" xml:"QualificationId,omitempty"`
  1566. // Explanation of the SMS signature scenario, with a maximum length of 200 characters.
  1567. //
  1568. // > The scenario explanation is one of the reference materials for signature review. Please provide a detailed description of the usage scenarios for your live services, along with links to verify these services such as website URLs with MIIT备案, app store display links, full names of public accounts or mini-programs, etc. For login scenarios, test account credentials are also required. A comprehensive application explanation enhances the efficiency of signature and template reviews. Refer to the **Application Scenario* - column in the [Signature Source](https://help.aliyun.com/zh/sms/user-guide/signature-specifications-1?spm=a2c4g.11186623.0.i2#section-xup-k46-yi4) table for filling in SMS scenarios.
  1569. //
  1570. // example:
  1571. //
  1572. // SMS signature for the login scenario using verification code.
  1573. Remark *string `json:"Remark,omitempty" xml:"Remark,omitempty"`
  1574. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  1575. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  1576. // Signature name. Please adhere to the [Signature Specifications](https://help.aliyun.com/zh/sms/user-guide/signature-specifications-1?spm=a2c4g.11186623.0.0.4f9710fder2gR7#section-0p8-qn8-mmy).
  1577. //
  1578. // > - Signature names are case-insensitive; e.g., 【Aliyun Communication】 and 【aliyun communication】 are considered identical.
  1579. //
  1580. // > - If your verification code signature and general signature names are the same, the system defaults to using the general signature for sending SMS messages.
  1581. //
  1582. // This parameter is required.
  1583. //
  1584. // example:
  1585. //
  1586. // Aliyun
  1587. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  1588. // Signature source. Values:
  1589. //
  1590. // - **0**: Full name or abbreviation of an enterprise or institution.
  1591. //
  1592. // - **1**: Full name or abbreviation of a MIIT-registered website.
  1593. //
  1594. // - **2**: Full name or abbreviation of an App.
  1595. //
  1596. // - **3**: Full name or abbreviation of an official account or mini-program.
  1597. //
  1598. // - **4**: Full name or abbreviation of an e-commerce platform store.
  1599. //
  1600. // - **5**: Full name or abbreviation of a trademark.
  1601. //
  1602. // For detailed information on signature sources, refer to [Signature Source](https://help.aliyun.com/zh/sms/user-guide/signature-specifications-1?spm=a2c4g.11186623.0.0.4f9710fder2gR7#section-xup-k46-yi4).
  1603. //
  1604. // > This interface does not support applying for signatures with sources as **Test or Learning* - and **Trial Use**. If you need to apply for signatures with these sources, please go to the [SMS Service Console](https://dysms.console.aliyun.com/domestic/text/sign/add/qualification).
  1605. //
  1606. // This parameter is required.
  1607. //
  1608. // example:
  1609. //
  1610. // 1
  1611. SignSource *int32 `json:"SignSource,omitempty" xml:"SignSource,omitempty"`
  1612. // Signature type. Values:
  1613. //
  1614. // - **0**: Verification Code
  1615. //
  1616. // - **1**: General (Default)
  1617. //
  1618. // > It is recommended to use the default value: **General**.
  1619. //
  1620. // example:
  1621. //
  1622. // 1
  1623. SignType *int32 `json:"SignType,omitempty" xml:"SignType,omitempty"`
  1624. // Choose whether the applied signature is for self-use or third-party use.
  1625. //
  1626. // - false: Self-use (default)
  1627. //
  1628. // - true: Third-party use
  1629. //
  1630. // Notice: Please select self-use qualification ID when the signature is for self-use; choose third-party use qualification ID when it\\"s for third-party use.
  1631. //
  1632. // example:
  1633. //
  1634. // false
  1635. ThirdParty *bool `json:"ThirdParty,omitempty" xml:"ThirdParty,omitempty"`
  1636. }
  1637. func (s CreateSmsSignRequest) String() string {
  1638. return tea.Prettify(s)
  1639. }
  1640. func (s CreateSmsSignRequest) GoString() string {
  1641. return s.String()
  1642. }
  1643. func (s *CreateSmsSignRequest) SetApplySceneContent(v string) *CreateSmsSignRequest {
  1644. s.ApplySceneContent = &v
  1645. return s
  1646. }
  1647. func (s *CreateSmsSignRequest) SetMoreData(v []*string) *CreateSmsSignRequest {
  1648. s.MoreData = v
  1649. return s
  1650. }
  1651. func (s *CreateSmsSignRequest) SetOwnerId(v int64) *CreateSmsSignRequest {
  1652. s.OwnerId = &v
  1653. return s
  1654. }
  1655. func (s *CreateSmsSignRequest) SetQualificationId(v int64) *CreateSmsSignRequest {
  1656. s.QualificationId = &v
  1657. return s
  1658. }
  1659. func (s *CreateSmsSignRequest) SetRemark(v string) *CreateSmsSignRequest {
  1660. s.Remark = &v
  1661. return s
  1662. }
  1663. func (s *CreateSmsSignRequest) SetResourceOwnerAccount(v string) *CreateSmsSignRequest {
  1664. s.ResourceOwnerAccount = &v
  1665. return s
  1666. }
  1667. func (s *CreateSmsSignRequest) SetResourceOwnerId(v int64) *CreateSmsSignRequest {
  1668. s.ResourceOwnerId = &v
  1669. return s
  1670. }
  1671. func (s *CreateSmsSignRequest) SetSignName(v string) *CreateSmsSignRequest {
  1672. s.SignName = &v
  1673. return s
  1674. }
  1675. func (s *CreateSmsSignRequest) SetSignSource(v int32) *CreateSmsSignRequest {
  1676. s.SignSource = &v
  1677. return s
  1678. }
  1679. func (s *CreateSmsSignRequest) SetSignType(v int32) *CreateSmsSignRequest {
  1680. s.SignType = &v
  1681. return s
  1682. }
  1683. func (s *CreateSmsSignRequest) SetThirdParty(v bool) *CreateSmsSignRequest {
  1684. s.ThirdParty = &v
  1685. return s
  1686. }
  1687. type CreateSmsSignShrinkRequest struct {
  1688. // Application scenarios, instructions as follows:
  1689. //
  1690. // - For registered websites, enter the domain name with HTTP or HTTPS that has been registered with the MIIT.
  1691. //
  1692. // - For launched apps, provide a display link from the app store with HTTP or HTTPS, ensuring the app is online.
  1693. //
  1694. // - For public accounts or mini-programs, input the full name, ensuring they are online.
  1695. //
  1696. // - For e-commerce platform store names, applicable only to enterprise users, provide a display link with HTTP or HTTPS for the store.
  1697. //
  1698. // example:
  1699. //
  1700. // http://www.aliyun.com/
  1701. ApplySceneContent *string `json:"ApplySceneContent,omitempty" xml:"ApplySceneContent,omitempty"`
  1702. // Additional information to supplement uploaded business proof documents or screenshots, which helps reviewers understand your business details.
  1703. //
  1704. // This parameter is optional; please fill it out based on your actual needs.
  1705. MoreDataShrink *string `json:"MoreData,omitempty" xml:"MoreData,omitempty"`
  1706. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  1707. // Approved or under-review qualification ID.
  1708. //
  1709. // > - Before applying for an SMS signature, please first [Apply for Qualification](https://help.aliyun.com/zh/sms/user-guide/new-qualification?spm=a2c4g.11186623.0.0.718d187bbkpMRK).
  1710. //
  1711. // > - You can view the qualification ID on the [Qualification Management](https://dysms.console.aliyun.com/domestic/text/qualification) page.
  1712. //
  1713. // This parameter is required.
  1714. //
  1715. // example:
  1716. //
  1717. // 8563**
  1718. QualificationId *int64 `json:"QualificationId,omitempty" xml:"QualificationId,omitempty"`
  1719. // Explanation of the SMS signature scenario, with a maximum length of 200 characters.
  1720. //
  1721. // > The scenario explanation is one of the reference materials for signature review. Please provide a detailed description of the usage scenarios for your live services, along with links to verify these services such as website URLs with MIIT备案, app store display links, full names of public accounts or mini-programs, etc. For login scenarios, test account credentials are also required. A comprehensive application explanation enhances the efficiency of signature and template reviews. Refer to the **Application Scenario* - column in the [Signature Source](https://help.aliyun.com/zh/sms/user-guide/signature-specifications-1?spm=a2c4g.11186623.0.i2#section-xup-k46-yi4) table for filling in SMS scenarios.
  1722. //
  1723. // example:
  1724. //
  1725. // SMS signature for the login scenario using verification code.
  1726. Remark *string `json:"Remark,omitempty" xml:"Remark,omitempty"`
  1727. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  1728. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  1729. // Signature name. Please adhere to the [Signature Specifications](https://help.aliyun.com/zh/sms/user-guide/signature-specifications-1?spm=a2c4g.11186623.0.0.4f9710fder2gR7#section-0p8-qn8-mmy).
  1730. //
  1731. // > - Signature names are case-insensitive; e.g., 【Aliyun Communication】 and 【aliyun communication】 are considered identical.
  1732. //
  1733. // > - If your verification code signature and general signature names are the same, the system defaults to using the general signature for sending SMS messages.
  1734. //
  1735. // This parameter is required.
  1736. //
  1737. // example:
  1738. //
  1739. // Aliyun
  1740. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  1741. // Signature source. Values:
  1742. //
  1743. // - **0**: Full name or abbreviation of an enterprise or institution.
  1744. //
  1745. // - **1**: Full name or abbreviation of a MIIT-registered website.
  1746. //
  1747. // - **2**: Full name or abbreviation of an App.
  1748. //
  1749. // - **3**: Full name or abbreviation of an official account or mini-program.
  1750. //
  1751. // - **4**: Full name or abbreviation of an e-commerce platform store.
  1752. //
  1753. // - **5**: Full name or abbreviation of a trademark.
  1754. //
  1755. // For detailed information on signature sources, refer to [Signature Source](https://help.aliyun.com/zh/sms/user-guide/signature-specifications-1?spm=a2c4g.11186623.0.0.4f9710fder2gR7#section-xup-k46-yi4).
  1756. //
  1757. // > This interface does not support applying for signatures with sources as **Test or Learning* - and **Trial Use**. If you need to apply for signatures with these sources, please go to the [SMS Service Console](https://dysms.console.aliyun.com/domestic/text/sign/add/qualification).
  1758. //
  1759. // This parameter is required.
  1760. //
  1761. // example:
  1762. //
  1763. // 1
  1764. SignSource *int32 `json:"SignSource,omitempty" xml:"SignSource,omitempty"`
  1765. // Signature type. Values:
  1766. //
  1767. // - **0**: Verification Code
  1768. //
  1769. // - **1**: General (Default)
  1770. //
  1771. // > It is recommended to use the default value: **General**.
  1772. //
  1773. // example:
  1774. //
  1775. // 1
  1776. SignType *int32 `json:"SignType,omitempty" xml:"SignType,omitempty"`
  1777. // Choose whether the applied signature is for self-use or third-party use.
  1778. //
  1779. // - false: Self-use (default)
  1780. //
  1781. // - true: Third-party use
  1782. //
  1783. // Notice: Please select self-use qualification ID when the signature is for self-use; choose third-party use qualification ID when it\\"s for third-party use.
  1784. //
  1785. // example:
  1786. //
  1787. // false
  1788. ThirdParty *bool `json:"ThirdParty,omitempty" xml:"ThirdParty,omitempty"`
  1789. }
  1790. func (s CreateSmsSignShrinkRequest) String() string {
  1791. return tea.Prettify(s)
  1792. }
  1793. func (s CreateSmsSignShrinkRequest) GoString() string {
  1794. return s.String()
  1795. }
  1796. func (s *CreateSmsSignShrinkRequest) SetApplySceneContent(v string) *CreateSmsSignShrinkRequest {
  1797. s.ApplySceneContent = &v
  1798. return s
  1799. }
  1800. func (s *CreateSmsSignShrinkRequest) SetMoreDataShrink(v string) *CreateSmsSignShrinkRequest {
  1801. s.MoreDataShrink = &v
  1802. return s
  1803. }
  1804. func (s *CreateSmsSignShrinkRequest) SetOwnerId(v int64) *CreateSmsSignShrinkRequest {
  1805. s.OwnerId = &v
  1806. return s
  1807. }
  1808. func (s *CreateSmsSignShrinkRequest) SetQualificationId(v int64) *CreateSmsSignShrinkRequest {
  1809. s.QualificationId = &v
  1810. return s
  1811. }
  1812. func (s *CreateSmsSignShrinkRequest) SetRemark(v string) *CreateSmsSignShrinkRequest {
  1813. s.Remark = &v
  1814. return s
  1815. }
  1816. func (s *CreateSmsSignShrinkRequest) SetResourceOwnerAccount(v string) *CreateSmsSignShrinkRequest {
  1817. s.ResourceOwnerAccount = &v
  1818. return s
  1819. }
  1820. func (s *CreateSmsSignShrinkRequest) SetResourceOwnerId(v int64) *CreateSmsSignShrinkRequest {
  1821. s.ResourceOwnerId = &v
  1822. return s
  1823. }
  1824. func (s *CreateSmsSignShrinkRequest) SetSignName(v string) *CreateSmsSignShrinkRequest {
  1825. s.SignName = &v
  1826. return s
  1827. }
  1828. func (s *CreateSmsSignShrinkRequest) SetSignSource(v int32) *CreateSmsSignShrinkRequest {
  1829. s.SignSource = &v
  1830. return s
  1831. }
  1832. func (s *CreateSmsSignShrinkRequest) SetSignType(v int32) *CreateSmsSignShrinkRequest {
  1833. s.SignType = &v
  1834. return s
  1835. }
  1836. func (s *CreateSmsSignShrinkRequest) SetThirdParty(v bool) *CreateSmsSignShrinkRequest {
  1837. s.ThirdParty = &v
  1838. return s
  1839. }
  1840. type CreateSmsSignResponseBody struct {
  1841. // Request status code.
  1842. //
  1843. // - OK indicates a successful request.
  1844. //
  1845. // - For other error codes, refer to the [Error Code List](https://help.aliyun.com/document_detail/101346.html).
  1846. //
  1847. // example:
  1848. //
  1849. // OK
  1850. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  1851. // Description of the status code.
  1852. //
  1853. // example:
  1854. //
  1855. // successful
  1856. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  1857. // Work order number.
  1858. //
  1859. // This parameter is used by auditors when querying the audit. You will need to provide this work order number if you require expedited review.
  1860. //
  1861. // example:
  1862. //
  1863. // 2004415****
  1864. OrderId *string `json:"OrderId,omitempty" xml:"OrderId,omitempty"`
  1865. // The ID of this call request, which is a unique identifier generated by Alibaba Cloud for the request and can be used for troubleshooting and issue localization.
  1866. //
  1867. // example:
  1868. //
  1869. // CCA2BCFF-2BA7-427C-90EE-AC6994748607
  1870. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  1871. // Signature name.
  1872. //
  1873. // example:
  1874. //
  1875. // Aliyun
  1876. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  1877. }
  1878. func (s CreateSmsSignResponseBody) String() string {
  1879. return tea.Prettify(s)
  1880. }
  1881. func (s CreateSmsSignResponseBody) GoString() string {
  1882. return s.String()
  1883. }
  1884. func (s *CreateSmsSignResponseBody) SetCode(v string) *CreateSmsSignResponseBody {
  1885. s.Code = &v
  1886. return s
  1887. }
  1888. func (s *CreateSmsSignResponseBody) SetMessage(v string) *CreateSmsSignResponseBody {
  1889. s.Message = &v
  1890. return s
  1891. }
  1892. func (s *CreateSmsSignResponseBody) SetOrderId(v string) *CreateSmsSignResponseBody {
  1893. s.OrderId = &v
  1894. return s
  1895. }
  1896. func (s *CreateSmsSignResponseBody) SetRequestId(v string) *CreateSmsSignResponseBody {
  1897. s.RequestId = &v
  1898. return s
  1899. }
  1900. func (s *CreateSmsSignResponseBody) SetSignName(v string) *CreateSmsSignResponseBody {
  1901. s.SignName = &v
  1902. return s
  1903. }
  1904. type CreateSmsSignResponse struct {
  1905. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  1906. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  1907. Body *CreateSmsSignResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  1908. }
  1909. func (s CreateSmsSignResponse) String() string {
  1910. return tea.Prettify(s)
  1911. }
  1912. func (s CreateSmsSignResponse) GoString() string {
  1913. return s.String()
  1914. }
  1915. func (s *CreateSmsSignResponse) SetHeaders(v map[string]*string) *CreateSmsSignResponse {
  1916. s.Headers = v
  1917. return s
  1918. }
  1919. func (s *CreateSmsSignResponse) SetStatusCode(v int32) *CreateSmsSignResponse {
  1920. s.StatusCode = &v
  1921. return s
  1922. }
  1923. func (s *CreateSmsSignResponse) SetBody(v *CreateSmsSignResponseBody) *CreateSmsSignResponse {
  1924. s.Body = v
  1925. return s
  1926. }
  1927. type CreateSmsTemplateRequest struct {
  1928. // If there is an applicable scenario, you can fill it in.
  1929. //
  1930. // example:
  1931. //
  1932. // http://www.aliyun.com/
  1933. ApplySceneContent *string `json:"ApplySceneContent,omitempty" xml:"ApplySceneContent,omitempty"`
  1934. // International/Hong Kong, Macao, and Taiwan template type. When the **TemplateType* - parameter is **3**, this parameter is required for international/Hong Kong, Macao, and Taiwan templates, with values:
  1935. //
  1936. // - **0**: Verification code.
  1937. //
  1938. // - **1**: SMS notification.
  1939. //
  1940. // - **2**: Promotional message.
  1941. //
  1942. // example:
  1943. //
  1944. // 0
  1945. IntlType *int32 `json:"IntlType,omitempty" xml:"IntlType,omitempty"`
  1946. // Additional materials you can upload, such as business proof documents or screenshots, to help reviewers understand your business details.
  1947. //
  1948. // This parameter is optional; please fill it in according to actual needs.
  1949. MoreData []*string `json:"MoreData,omitempty" xml:"MoreData,omitempty" type:"Repeated"`
  1950. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  1951. // The signature name that the template needs to be associated with. The associated SMS signature must have passed the review.
  1952. //
  1953. // This parameter is mandatory when the TemplateType parameter is **0**, **1**, or **2**.
  1954. //
  1955. // <notice>Associating a signature can expedite the review process. Note that this associated signature is unrelated to the signature selected when sending SMS messages.</notice>
  1956. //
  1957. // example:
  1958. //
  1959. // Aliyun
  1960. RelatedSignName *string `json:"RelatedSignName,omitempty" xml:"RelatedSignName,omitempty"`
  1961. // Please describe the business scenario where you use SMS or provide an online link to the scenario, along with a complete example of the SMS (with variable contents filled), as complete information helps increase the template approval rate. Failure to follow guidelines or leaving this field blank may affect the approval of your template.
  1962. //
  1963. // example:
  1964. //
  1965. // Request verification code SMS.
  1966. Remark *string `json:"Remark,omitempty" xml:"Remark,omitempty"`
  1967. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  1968. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  1969. // Template content, up to 500 characters in length.
  1970. //
  1971. // Both the template content and variable content must comply with SMS specifications; otherwise, the template will fail the review. You can also view common template examples on the template application page. Using sample templates can enhance review efficiency and success rates. For variable specifications, see [TemplateContent Variable Parameter Filling Specifications](https://help.aliyun.com/zh/sms/templaterule-template-variable-parameter-filling-example).
  1972. //
  1973. // This parameter is required.
  1974. //
  1975. // example:
  1976. //
  1977. // You are applying for mobile registration. The verification code is: ${code}. It is valid for 5 minutes!
  1978. TemplateContent *string `json:"TemplateContent,omitempty" xml:"TemplateContent,omitempty"`
  1979. // Template name, up to 30 characters in length.
  1980. //
  1981. // This parameter is required.
  1982. //
  1983. // example:
  1984. //
  1985. // aliyunCode
  1986. TemplateName *string `json:"TemplateName,omitempty" xml:"TemplateName,omitempty"`
  1987. // Template variable rules.
  1988. //
  1989. // For filling in variable rules, refer to the [Sample Documentation](https://help.aliyun.com/zh/sms/templaterule-template-variable-parameter-filling-example).
  1990. //
  1991. // example:
  1992. //
  1993. // {"code":"characterWithNumber"}
  1994. TemplateRule *string `json:"TemplateRule,omitempty" xml:"TemplateRule,omitempty"`
  1995. // SMS type. Values:
  1996. //
  1997. // - **0**: Verification code.
  1998. //
  1999. // - **1**: SMS notification.
  2000. //
  2001. // - **2**: Promotional message.
  2002. //
  2003. // - **3**: International/Hong Kong, Macao, and Taiwan messages.
  2004. //
  2005. // > Only enterprise-verified users can apply for promotional messages and international/Hong Kong, Macao, and Taiwan messages. For details on the differences between personal and enterprise user rights, please refer to [Usage Instructions](https://help.aliyun.com/zh/sms/user-guide/usage-notes?spm=a2c4g.11186623.0.0.67447f576NJnE8).
  2006. //
  2007. // This parameter is required.
  2008. //
  2009. // example:
  2010. //
  2011. // 0
  2012. TemplateType *int32 `json:"TemplateType,omitempty" xml:"TemplateType,omitempty"`
  2013. }
  2014. func (s CreateSmsTemplateRequest) String() string {
  2015. return tea.Prettify(s)
  2016. }
  2017. func (s CreateSmsTemplateRequest) GoString() string {
  2018. return s.String()
  2019. }
  2020. func (s *CreateSmsTemplateRequest) SetApplySceneContent(v string) *CreateSmsTemplateRequest {
  2021. s.ApplySceneContent = &v
  2022. return s
  2023. }
  2024. func (s *CreateSmsTemplateRequest) SetIntlType(v int32) *CreateSmsTemplateRequest {
  2025. s.IntlType = &v
  2026. return s
  2027. }
  2028. func (s *CreateSmsTemplateRequest) SetMoreData(v []*string) *CreateSmsTemplateRequest {
  2029. s.MoreData = v
  2030. return s
  2031. }
  2032. func (s *CreateSmsTemplateRequest) SetOwnerId(v int64) *CreateSmsTemplateRequest {
  2033. s.OwnerId = &v
  2034. return s
  2035. }
  2036. func (s *CreateSmsTemplateRequest) SetRelatedSignName(v string) *CreateSmsTemplateRequest {
  2037. s.RelatedSignName = &v
  2038. return s
  2039. }
  2040. func (s *CreateSmsTemplateRequest) SetRemark(v string) *CreateSmsTemplateRequest {
  2041. s.Remark = &v
  2042. return s
  2043. }
  2044. func (s *CreateSmsTemplateRequest) SetResourceOwnerAccount(v string) *CreateSmsTemplateRequest {
  2045. s.ResourceOwnerAccount = &v
  2046. return s
  2047. }
  2048. func (s *CreateSmsTemplateRequest) SetResourceOwnerId(v int64) *CreateSmsTemplateRequest {
  2049. s.ResourceOwnerId = &v
  2050. return s
  2051. }
  2052. func (s *CreateSmsTemplateRequest) SetTemplateContent(v string) *CreateSmsTemplateRequest {
  2053. s.TemplateContent = &v
  2054. return s
  2055. }
  2056. func (s *CreateSmsTemplateRequest) SetTemplateName(v string) *CreateSmsTemplateRequest {
  2057. s.TemplateName = &v
  2058. return s
  2059. }
  2060. func (s *CreateSmsTemplateRequest) SetTemplateRule(v string) *CreateSmsTemplateRequest {
  2061. s.TemplateRule = &v
  2062. return s
  2063. }
  2064. func (s *CreateSmsTemplateRequest) SetTemplateType(v int32) *CreateSmsTemplateRequest {
  2065. s.TemplateType = &v
  2066. return s
  2067. }
  2068. type CreateSmsTemplateShrinkRequest struct {
  2069. // If there is an applicable scenario, you can fill it in.
  2070. //
  2071. // example:
  2072. //
  2073. // http://www.aliyun.com/
  2074. ApplySceneContent *string `json:"ApplySceneContent,omitempty" xml:"ApplySceneContent,omitempty"`
  2075. // International/Hong Kong, Macao, and Taiwan template type. When the **TemplateType* - parameter is **3**, this parameter is required for international/Hong Kong, Macao, and Taiwan templates, with values:
  2076. //
  2077. // - **0**: Verification code.
  2078. //
  2079. // - **1**: SMS notification.
  2080. //
  2081. // - **2**: Promotional message.
  2082. //
  2083. // example:
  2084. //
  2085. // 0
  2086. IntlType *int32 `json:"IntlType,omitempty" xml:"IntlType,omitempty"`
  2087. // Additional materials you can upload, such as business proof documents or screenshots, to help reviewers understand your business details.
  2088. //
  2089. // This parameter is optional; please fill it in according to actual needs.
  2090. MoreDataShrink *string `json:"MoreData,omitempty" xml:"MoreData,omitempty"`
  2091. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  2092. // The signature name that the template needs to be associated with. The associated SMS signature must have passed the review.
  2093. //
  2094. // This parameter is mandatory when the TemplateType parameter is **0**, **1**, or **2**.
  2095. //
  2096. // <notice>Associating a signature can expedite the review process. Note that this associated signature is unrelated to the signature selected when sending SMS messages.</notice>
  2097. //
  2098. // example:
  2099. //
  2100. // Aliyun
  2101. RelatedSignName *string `json:"RelatedSignName,omitempty" xml:"RelatedSignName,omitempty"`
  2102. // Please describe the business scenario where you use SMS or provide an online link to the scenario, along with a complete example of the SMS (with variable contents filled), as complete information helps increase the template approval rate. Failure to follow guidelines or leaving this field blank may affect the approval of your template.
  2103. //
  2104. // example:
  2105. //
  2106. // Request verification code SMS.
  2107. Remark *string `json:"Remark,omitempty" xml:"Remark,omitempty"`
  2108. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  2109. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  2110. // Template content, up to 500 characters in length.
  2111. //
  2112. // Both the template content and variable content must comply with SMS specifications; otherwise, the template will fail the review. You can also view common template examples on the template application page. Using sample templates can enhance review efficiency and success rates. For variable specifications, see [TemplateContent Variable Parameter Filling Specifications](https://help.aliyun.com/zh/sms/templaterule-template-variable-parameter-filling-example).
  2113. //
  2114. // This parameter is required.
  2115. //
  2116. // example:
  2117. //
  2118. // You are applying for mobile registration. The verification code is: ${code}. It is valid for 5 minutes!
  2119. TemplateContent *string `json:"TemplateContent,omitempty" xml:"TemplateContent,omitempty"`
  2120. // Template name, up to 30 characters in length.
  2121. //
  2122. // This parameter is required.
  2123. //
  2124. // example:
  2125. //
  2126. // aliyunCode
  2127. TemplateName *string `json:"TemplateName,omitempty" xml:"TemplateName,omitempty"`
  2128. // Template variable rules.
  2129. //
  2130. // For filling in variable rules, refer to the [Sample Documentation](https://help.aliyun.com/zh/sms/templaterule-template-variable-parameter-filling-example).
  2131. //
  2132. // example:
  2133. //
  2134. // {"code":"characterWithNumber"}
  2135. TemplateRule *string `json:"TemplateRule,omitempty" xml:"TemplateRule,omitempty"`
  2136. // SMS type. Values:
  2137. //
  2138. // - **0**: Verification code.
  2139. //
  2140. // - **1**: SMS notification.
  2141. //
  2142. // - **2**: Promotional message.
  2143. //
  2144. // - **3**: International/Hong Kong, Macao, and Taiwan messages.
  2145. //
  2146. // > Only enterprise-verified users can apply for promotional messages and international/Hong Kong, Macao, and Taiwan messages. For details on the differences between personal and enterprise user rights, please refer to [Usage Instructions](https://help.aliyun.com/zh/sms/user-guide/usage-notes?spm=a2c4g.11186623.0.0.67447f576NJnE8).
  2147. //
  2148. // This parameter is required.
  2149. //
  2150. // example:
  2151. //
  2152. // 0
  2153. TemplateType *int32 `json:"TemplateType,omitempty" xml:"TemplateType,omitempty"`
  2154. }
  2155. func (s CreateSmsTemplateShrinkRequest) String() string {
  2156. return tea.Prettify(s)
  2157. }
  2158. func (s CreateSmsTemplateShrinkRequest) GoString() string {
  2159. return s.String()
  2160. }
  2161. func (s *CreateSmsTemplateShrinkRequest) SetApplySceneContent(v string) *CreateSmsTemplateShrinkRequest {
  2162. s.ApplySceneContent = &v
  2163. return s
  2164. }
  2165. func (s *CreateSmsTemplateShrinkRequest) SetIntlType(v int32) *CreateSmsTemplateShrinkRequest {
  2166. s.IntlType = &v
  2167. return s
  2168. }
  2169. func (s *CreateSmsTemplateShrinkRequest) SetMoreDataShrink(v string) *CreateSmsTemplateShrinkRequest {
  2170. s.MoreDataShrink = &v
  2171. return s
  2172. }
  2173. func (s *CreateSmsTemplateShrinkRequest) SetOwnerId(v int64) *CreateSmsTemplateShrinkRequest {
  2174. s.OwnerId = &v
  2175. return s
  2176. }
  2177. func (s *CreateSmsTemplateShrinkRequest) SetRelatedSignName(v string) *CreateSmsTemplateShrinkRequest {
  2178. s.RelatedSignName = &v
  2179. return s
  2180. }
  2181. func (s *CreateSmsTemplateShrinkRequest) SetRemark(v string) *CreateSmsTemplateShrinkRequest {
  2182. s.Remark = &v
  2183. return s
  2184. }
  2185. func (s *CreateSmsTemplateShrinkRequest) SetResourceOwnerAccount(v string) *CreateSmsTemplateShrinkRequest {
  2186. s.ResourceOwnerAccount = &v
  2187. return s
  2188. }
  2189. func (s *CreateSmsTemplateShrinkRequest) SetResourceOwnerId(v int64) *CreateSmsTemplateShrinkRequest {
  2190. s.ResourceOwnerId = &v
  2191. return s
  2192. }
  2193. func (s *CreateSmsTemplateShrinkRequest) SetTemplateContent(v string) *CreateSmsTemplateShrinkRequest {
  2194. s.TemplateContent = &v
  2195. return s
  2196. }
  2197. func (s *CreateSmsTemplateShrinkRequest) SetTemplateName(v string) *CreateSmsTemplateShrinkRequest {
  2198. s.TemplateName = &v
  2199. return s
  2200. }
  2201. func (s *CreateSmsTemplateShrinkRequest) SetTemplateRule(v string) *CreateSmsTemplateShrinkRequest {
  2202. s.TemplateRule = &v
  2203. return s
  2204. }
  2205. func (s *CreateSmsTemplateShrinkRequest) SetTemplateType(v int32) *CreateSmsTemplateShrinkRequest {
  2206. s.TemplateType = &v
  2207. return s
  2208. }
  2209. type CreateSmsTemplateResponseBody struct {
  2210. // Request status code.
  2211. //
  2212. // - OK indicates a successful request.
  2213. //
  2214. // - For other error codes, refer to the **Error Codes* - section of this chapter or the product\\"s [API Error Codes](https://help.aliyun.com/document_detail/101346.html).
  2215. //
  2216. // example:
  2217. //
  2218. // OK
  2219. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  2220. // Description of the status code.
  2221. //
  2222. // example:
  2223. //
  2224. // successful
  2225. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  2226. // Work order ID.
  2227. //
  2228. // This parameter is used by auditors when querying audits. If you need expedited review, you must provide this work order number.
  2229. //
  2230. // example:
  2231. //
  2232. // 2005020****
  2233. OrderId *string `json:"OrderId,omitempty" xml:"OrderId,omitempty"`
  2234. // The ID generated by Alibaba Cloud for this request, which is a unique identifier that can be used for troubleshooting and issue定位.
  2235. //
  2236. // example:
  2237. //
  2238. // F655A8D5-B967-440B-8683-DAD6FF8DE990
  2239. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  2240. // SMS template code.
  2241. //
  2242. // After submitting the template application, you can use the SMS template code to query the template audit details via the [GetSmsTemplate](https://help.aliyun.com/zh/sms/developer-reference/api-dysmsapi-2017-05-25-getsmstemplate?) API. You can also [configure delivery receipts](https://help.aliyun.com/zh/sms/developer-reference/configure-delivery-receipts-1?spm), and obtain the template audit status messages through TemplateSmsReport.
  2243. //
  2244. // example:
  2245. //
  2246. // SMS_10000****
  2247. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  2248. // SMS template name.
  2249. //
  2250. // example:
  2251. //
  2252. // aliyunCode
  2253. TemplateName *string `json:"TemplateName,omitempty" xml:"TemplateName,omitempty"`
  2254. }
  2255. func (s CreateSmsTemplateResponseBody) String() string {
  2256. return tea.Prettify(s)
  2257. }
  2258. func (s CreateSmsTemplateResponseBody) GoString() string {
  2259. return s.String()
  2260. }
  2261. func (s *CreateSmsTemplateResponseBody) SetCode(v string) *CreateSmsTemplateResponseBody {
  2262. s.Code = &v
  2263. return s
  2264. }
  2265. func (s *CreateSmsTemplateResponseBody) SetMessage(v string) *CreateSmsTemplateResponseBody {
  2266. s.Message = &v
  2267. return s
  2268. }
  2269. func (s *CreateSmsTemplateResponseBody) SetOrderId(v string) *CreateSmsTemplateResponseBody {
  2270. s.OrderId = &v
  2271. return s
  2272. }
  2273. func (s *CreateSmsTemplateResponseBody) SetRequestId(v string) *CreateSmsTemplateResponseBody {
  2274. s.RequestId = &v
  2275. return s
  2276. }
  2277. func (s *CreateSmsTemplateResponseBody) SetTemplateCode(v string) *CreateSmsTemplateResponseBody {
  2278. s.TemplateCode = &v
  2279. return s
  2280. }
  2281. func (s *CreateSmsTemplateResponseBody) SetTemplateName(v string) *CreateSmsTemplateResponseBody {
  2282. s.TemplateName = &v
  2283. return s
  2284. }
  2285. type CreateSmsTemplateResponse struct {
  2286. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  2287. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  2288. Body *CreateSmsTemplateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  2289. }
  2290. func (s CreateSmsTemplateResponse) String() string {
  2291. return tea.Prettify(s)
  2292. }
  2293. func (s CreateSmsTemplateResponse) GoString() string {
  2294. return s.String()
  2295. }
  2296. func (s *CreateSmsTemplateResponse) SetHeaders(v map[string]*string) *CreateSmsTemplateResponse {
  2297. s.Headers = v
  2298. return s
  2299. }
  2300. func (s *CreateSmsTemplateResponse) SetStatusCode(v int32) *CreateSmsTemplateResponse {
  2301. s.StatusCode = &v
  2302. return s
  2303. }
  2304. func (s *CreateSmsTemplateResponse) SetBody(v *CreateSmsTemplateResponseBody) *CreateSmsTemplateResponse {
  2305. s.Body = v
  2306. return s
  2307. }
  2308. type DeleteExtCodeSignRequest struct {
  2309. // 扩展码A3
  2310. //
  2311. // This parameter is required.
  2312. //
  2313. // example:
  2314. //
  2315. // 01
  2316. ExtCode *string `json:"ExtCode,omitempty" xml:"ExtCode,omitempty"`
  2317. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  2318. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  2319. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  2320. // 签名
  2321. //
  2322. // This parameter is required.
  2323. //
  2324. // example:
  2325. //
  2326. // 示例值
  2327. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  2328. }
  2329. func (s DeleteExtCodeSignRequest) String() string {
  2330. return tea.Prettify(s)
  2331. }
  2332. func (s DeleteExtCodeSignRequest) GoString() string {
  2333. return s.String()
  2334. }
  2335. func (s *DeleteExtCodeSignRequest) SetExtCode(v string) *DeleteExtCodeSignRequest {
  2336. s.ExtCode = &v
  2337. return s
  2338. }
  2339. func (s *DeleteExtCodeSignRequest) SetOwnerId(v int64) *DeleteExtCodeSignRequest {
  2340. s.OwnerId = &v
  2341. return s
  2342. }
  2343. func (s *DeleteExtCodeSignRequest) SetResourceOwnerAccount(v string) *DeleteExtCodeSignRequest {
  2344. s.ResourceOwnerAccount = &v
  2345. return s
  2346. }
  2347. func (s *DeleteExtCodeSignRequest) SetResourceOwnerId(v int64) *DeleteExtCodeSignRequest {
  2348. s.ResourceOwnerId = &v
  2349. return s
  2350. }
  2351. func (s *DeleteExtCodeSignRequest) SetSignName(v string) *DeleteExtCodeSignRequest {
  2352. s.SignName = &v
  2353. return s
  2354. }
  2355. type DeleteExtCodeSignResponseBody struct {
  2356. AccessDeniedDetail *string `json:"AccessDeniedDetail,omitempty" xml:"AccessDeniedDetail,omitempty"`
  2357. // example:
  2358. //
  2359. // OK
  2360. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  2361. // example:
  2362. //
  2363. // false
  2364. Data *bool `json:"Data,omitempty" xml:"Data,omitempty"`
  2365. // example:
  2366. //
  2367. // OK
  2368. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  2369. // example:
  2370. //
  2371. // 90E63D28-E31D-1EB2-8939-A9486641****
  2372. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  2373. // example:
  2374. //
  2375. // true
  2376. Success *bool `json:"Success,omitempty" xml:"Success,omitempty"`
  2377. }
  2378. func (s DeleteExtCodeSignResponseBody) String() string {
  2379. return tea.Prettify(s)
  2380. }
  2381. func (s DeleteExtCodeSignResponseBody) GoString() string {
  2382. return s.String()
  2383. }
  2384. func (s *DeleteExtCodeSignResponseBody) SetAccessDeniedDetail(v string) *DeleteExtCodeSignResponseBody {
  2385. s.AccessDeniedDetail = &v
  2386. return s
  2387. }
  2388. func (s *DeleteExtCodeSignResponseBody) SetCode(v string) *DeleteExtCodeSignResponseBody {
  2389. s.Code = &v
  2390. return s
  2391. }
  2392. func (s *DeleteExtCodeSignResponseBody) SetData(v bool) *DeleteExtCodeSignResponseBody {
  2393. s.Data = &v
  2394. return s
  2395. }
  2396. func (s *DeleteExtCodeSignResponseBody) SetMessage(v string) *DeleteExtCodeSignResponseBody {
  2397. s.Message = &v
  2398. return s
  2399. }
  2400. func (s *DeleteExtCodeSignResponseBody) SetRequestId(v string) *DeleteExtCodeSignResponseBody {
  2401. s.RequestId = &v
  2402. return s
  2403. }
  2404. func (s *DeleteExtCodeSignResponseBody) SetSuccess(v bool) *DeleteExtCodeSignResponseBody {
  2405. s.Success = &v
  2406. return s
  2407. }
  2408. type DeleteExtCodeSignResponse struct {
  2409. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  2410. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  2411. Body *DeleteExtCodeSignResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  2412. }
  2413. func (s DeleteExtCodeSignResponse) String() string {
  2414. return tea.Prettify(s)
  2415. }
  2416. func (s DeleteExtCodeSignResponse) GoString() string {
  2417. return s.String()
  2418. }
  2419. func (s *DeleteExtCodeSignResponse) SetHeaders(v map[string]*string) *DeleteExtCodeSignResponse {
  2420. s.Headers = v
  2421. return s
  2422. }
  2423. func (s *DeleteExtCodeSignResponse) SetStatusCode(v int32) *DeleteExtCodeSignResponse {
  2424. s.StatusCode = &v
  2425. return s
  2426. }
  2427. func (s *DeleteExtCodeSignResponse) SetBody(v *DeleteExtCodeSignResponseBody) *DeleteExtCodeSignResponse {
  2428. s.Body = v
  2429. return s
  2430. }
  2431. type DeleteShortUrlRequest struct {
  2432. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  2433. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  2434. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  2435. // The source address. The address can be up to 1,000 characters in length.
  2436. //
  2437. // This parameter is required.
  2438. //
  2439. // example:
  2440. //
  2441. // https://www.****.com/product/sms
  2442. SourceUrl *string `json:"SourceUrl,omitempty" xml:"SourceUrl,omitempty"`
  2443. }
  2444. func (s DeleteShortUrlRequest) String() string {
  2445. return tea.Prettify(s)
  2446. }
  2447. func (s DeleteShortUrlRequest) GoString() string {
  2448. return s.String()
  2449. }
  2450. func (s *DeleteShortUrlRequest) SetOwnerId(v int64) *DeleteShortUrlRequest {
  2451. s.OwnerId = &v
  2452. return s
  2453. }
  2454. func (s *DeleteShortUrlRequest) SetResourceOwnerAccount(v string) *DeleteShortUrlRequest {
  2455. s.ResourceOwnerAccount = &v
  2456. return s
  2457. }
  2458. func (s *DeleteShortUrlRequest) SetResourceOwnerId(v int64) *DeleteShortUrlRequest {
  2459. s.ResourceOwnerId = &v
  2460. return s
  2461. }
  2462. func (s *DeleteShortUrlRequest) SetSourceUrl(v string) *DeleteShortUrlRequest {
  2463. s.SourceUrl = &v
  2464. return s
  2465. }
  2466. type DeleteShortUrlResponseBody struct {
  2467. // The response code.
  2468. //
  2469. // - If OK is returned, the request is successful.
  2470. //
  2471. // - Other values indicate that the request fails. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  2472. //
  2473. // example:
  2474. //
  2475. // OK
  2476. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  2477. // The returned message.
  2478. //
  2479. // example:
  2480. //
  2481. // OK
  2482. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  2483. // The request ID.
  2484. //
  2485. // example:
  2486. //
  2487. // 819BE656-D2E0-4858-8B21-B2E477085AAF
  2488. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  2489. }
  2490. func (s DeleteShortUrlResponseBody) String() string {
  2491. return tea.Prettify(s)
  2492. }
  2493. func (s DeleteShortUrlResponseBody) GoString() string {
  2494. return s.String()
  2495. }
  2496. func (s *DeleteShortUrlResponseBody) SetCode(v string) *DeleteShortUrlResponseBody {
  2497. s.Code = &v
  2498. return s
  2499. }
  2500. func (s *DeleteShortUrlResponseBody) SetMessage(v string) *DeleteShortUrlResponseBody {
  2501. s.Message = &v
  2502. return s
  2503. }
  2504. func (s *DeleteShortUrlResponseBody) SetRequestId(v string) *DeleteShortUrlResponseBody {
  2505. s.RequestId = &v
  2506. return s
  2507. }
  2508. type DeleteShortUrlResponse struct {
  2509. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  2510. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  2511. Body *DeleteShortUrlResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  2512. }
  2513. func (s DeleteShortUrlResponse) String() string {
  2514. return tea.Prettify(s)
  2515. }
  2516. func (s DeleteShortUrlResponse) GoString() string {
  2517. return s.String()
  2518. }
  2519. func (s *DeleteShortUrlResponse) SetHeaders(v map[string]*string) *DeleteShortUrlResponse {
  2520. s.Headers = v
  2521. return s
  2522. }
  2523. func (s *DeleteShortUrlResponse) SetStatusCode(v int32) *DeleteShortUrlResponse {
  2524. s.StatusCode = &v
  2525. return s
  2526. }
  2527. func (s *DeleteShortUrlResponse) SetBody(v *DeleteShortUrlResponseBody) *DeleteShortUrlResponse {
  2528. s.Body = v
  2529. return s
  2530. }
  2531. type DeleteSmsSignRequest struct {
  2532. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  2533. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  2534. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  2535. // The signature.
  2536. //
  2537. // > The signature must be submitted by the current Alibaba Cloud account, and has been approved.
  2538. //
  2539. // This parameter is required.
  2540. //
  2541. // example:
  2542. //
  2543. // Aliyun
  2544. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  2545. }
  2546. func (s DeleteSmsSignRequest) String() string {
  2547. return tea.Prettify(s)
  2548. }
  2549. func (s DeleteSmsSignRequest) GoString() string {
  2550. return s.String()
  2551. }
  2552. func (s *DeleteSmsSignRequest) SetOwnerId(v int64) *DeleteSmsSignRequest {
  2553. s.OwnerId = &v
  2554. return s
  2555. }
  2556. func (s *DeleteSmsSignRequest) SetResourceOwnerAccount(v string) *DeleteSmsSignRequest {
  2557. s.ResourceOwnerAccount = &v
  2558. return s
  2559. }
  2560. func (s *DeleteSmsSignRequest) SetResourceOwnerId(v int64) *DeleteSmsSignRequest {
  2561. s.ResourceOwnerId = &v
  2562. return s
  2563. }
  2564. func (s *DeleteSmsSignRequest) SetSignName(v string) *DeleteSmsSignRequest {
  2565. s.SignName = &v
  2566. return s
  2567. }
  2568. type DeleteSmsSignResponseBody struct {
  2569. // The response code.
  2570. //
  2571. // - If OK is returned, the request is successful.
  2572. //
  2573. // - Other values indicate that the request fails. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  2574. //
  2575. // example:
  2576. //
  2577. // OK
  2578. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  2579. // The returned message.
  2580. //
  2581. // example:
  2582. //
  2583. // OK
  2584. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  2585. // The request ID.
  2586. //
  2587. // example:
  2588. //
  2589. // F655A8D5-B967-440B-8683-DAD6FF8D****
  2590. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  2591. // The signature.
  2592. //
  2593. // example:
  2594. //
  2595. // Aliyun
  2596. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  2597. }
  2598. func (s DeleteSmsSignResponseBody) String() string {
  2599. return tea.Prettify(s)
  2600. }
  2601. func (s DeleteSmsSignResponseBody) GoString() string {
  2602. return s.String()
  2603. }
  2604. func (s *DeleteSmsSignResponseBody) SetCode(v string) *DeleteSmsSignResponseBody {
  2605. s.Code = &v
  2606. return s
  2607. }
  2608. func (s *DeleteSmsSignResponseBody) SetMessage(v string) *DeleteSmsSignResponseBody {
  2609. s.Message = &v
  2610. return s
  2611. }
  2612. func (s *DeleteSmsSignResponseBody) SetRequestId(v string) *DeleteSmsSignResponseBody {
  2613. s.RequestId = &v
  2614. return s
  2615. }
  2616. func (s *DeleteSmsSignResponseBody) SetSignName(v string) *DeleteSmsSignResponseBody {
  2617. s.SignName = &v
  2618. return s
  2619. }
  2620. type DeleteSmsSignResponse struct {
  2621. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  2622. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  2623. Body *DeleteSmsSignResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  2624. }
  2625. func (s DeleteSmsSignResponse) String() string {
  2626. return tea.Prettify(s)
  2627. }
  2628. func (s DeleteSmsSignResponse) GoString() string {
  2629. return s.String()
  2630. }
  2631. func (s *DeleteSmsSignResponse) SetHeaders(v map[string]*string) *DeleteSmsSignResponse {
  2632. s.Headers = v
  2633. return s
  2634. }
  2635. func (s *DeleteSmsSignResponse) SetStatusCode(v int32) *DeleteSmsSignResponse {
  2636. s.StatusCode = &v
  2637. return s
  2638. }
  2639. func (s *DeleteSmsSignResponse) SetBody(v *DeleteSmsSignResponseBody) *DeleteSmsSignResponse {
  2640. s.Body = v
  2641. return s
  2642. }
  2643. type DeleteSmsTemplateRequest struct {
  2644. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  2645. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  2646. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  2647. // The code of the message template.
  2648. //
  2649. // You can log on to the [Alibaba Cloud SMS console](https://dysms.console.aliyun.com/dysms.htm) and obtain the message template code on the **Message Templates* - tab. You can also obtain the message template code by calling the [AddSmsTemplate](https://help.aliyun.com/document_detail/121208.html) operation.
  2650. //
  2651. // This parameter is required.
  2652. //
  2653. // example:
  2654. //
  2655. // SMS_152550****
  2656. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  2657. }
  2658. func (s DeleteSmsTemplateRequest) String() string {
  2659. return tea.Prettify(s)
  2660. }
  2661. func (s DeleteSmsTemplateRequest) GoString() string {
  2662. return s.String()
  2663. }
  2664. func (s *DeleteSmsTemplateRequest) SetOwnerId(v int64) *DeleteSmsTemplateRequest {
  2665. s.OwnerId = &v
  2666. return s
  2667. }
  2668. func (s *DeleteSmsTemplateRequest) SetResourceOwnerAccount(v string) *DeleteSmsTemplateRequest {
  2669. s.ResourceOwnerAccount = &v
  2670. return s
  2671. }
  2672. func (s *DeleteSmsTemplateRequest) SetResourceOwnerId(v int64) *DeleteSmsTemplateRequest {
  2673. s.ResourceOwnerId = &v
  2674. return s
  2675. }
  2676. func (s *DeleteSmsTemplateRequest) SetTemplateCode(v string) *DeleteSmsTemplateRequest {
  2677. s.TemplateCode = &v
  2678. return s
  2679. }
  2680. type DeleteSmsTemplateResponseBody struct {
  2681. // The response code.
  2682. //
  2683. // - The value OK indicates that the request was successful.
  2684. //
  2685. // - For more information about other response codes, see [API error codes](https://help.aliyun.com/document_detail/101346.html).
  2686. //
  2687. // example:
  2688. //
  2689. // OK
  2690. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  2691. // The returned message.
  2692. //
  2693. // example:
  2694. //
  2695. // OK
  2696. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  2697. // The request ID.
  2698. //
  2699. // example:
  2700. //
  2701. // CCA2BCFF-2BA7-427C-90EE-AC6994748607
  2702. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  2703. // The code of the message template.
  2704. //
  2705. // example:
  2706. //
  2707. // SMS_20375****
  2708. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  2709. }
  2710. func (s DeleteSmsTemplateResponseBody) String() string {
  2711. return tea.Prettify(s)
  2712. }
  2713. func (s DeleteSmsTemplateResponseBody) GoString() string {
  2714. return s.String()
  2715. }
  2716. func (s *DeleteSmsTemplateResponseBody) SetCode(v string) *DeleteSmsTemplateResponseBody {
  2717. s.Code = &v
  2718. return s
  2719. }
  2720. func (s *DeleteSmsTemplateResponseBody) SetMessage(v string) *DeleteSmsTemplateResponseBody {
  2721. s.Message = &v
  2722. return s
  2723. }
  2724. func (s *DeleteSmsTemplateResponseBody) SetRequestId(v string) *DeleteSmsTemplateResponseBody {
  2725. s.RequestId = &v
  2726. return s
  2727. }
  2728. func (s *DeleteSmsTemplateResponseBody) SetTemplateCode(v string) *DeleteSmsTemplateResponseBody {
  2729. s.TemplateCode = &v
  2730. return s
  2731. }
  2732. type DeleteSmsTemplateResponse struct {
  2733. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  2734. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  2735. Body *DeleteSmsTemplateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  2736. }
  2737. func (s DeleteSmsTemplateResponse) String() string {
  2738. return tea.Prettify(s)
  2739. }
  2740. func (s DeleteSmsTemplateResponse) GoString() string {
  2741. return s.String()
  2742. }
  2743. func (s *DeleteSmsTemplateResponse) SetHeaders(v map[string]*string) *DeleteSmsTemplateResponse {
  2744. s.Headers = v
  2745. return s
  2746. }
  2747. func (s *DeleteSmsTemplateResponse) SetStatusCode(v int32) *DeleteSmsTemplateResponse {
  2748. s.StatusCode = &v
  2749. return s
  2750. }
  2751. func (s *DeleteSmsTemplateResponse) SetBody(v *DeleteSmsTemplateResponseBody) *DeleteSmsTemplateResponse {
  2752. s.Body = v
  2753. return s
  2754. }
  2755. type GetCardSmsDetailsRequest struct {
  2756. // Card SMS sending ID, which is the BizCardId field in the response when calling SendCardSms or SendBatchCardSms.
  2757. //
  2758. // example:
  2759. //
  2760. // 123456^0
  2761. BizCardId *string `json:"BizCardId,omitempty" xml:"BizCardId,omitempty"`
  2762. // Digital SMS sending ID, which is the BizDigitalId field in the response when calling SendCardSms or SendBatchCardSms.
  2763. //
  2764. // example:
  2765. //
  2766. // 12346^0
  2767. BizDigitId *string `json:"BizDigitId,omitempty" xml:"BizDigitId,omitempty"`
  2768. // Text SMS sending ID, which is the BizSmsId field in the response when calling SendCardSms or SendBatchCardSms.
  2769. //
  2770. // example:
  2771. //
  2772. // 1234576^0
  2773. BizSmsId *string `json:"BizSmsId,omitempty" xml:"BizSmsId,omitempty"`
  2774. // For paginated viewing of sending records, specify the current page number of the sending records.
  2775. //
  2776. // example:
  2777. //
  2778. // 1
  2779. CurrentPage *int64 `json:"CurrentPage,omitempty" xml:"CurrentPage,omitempty"`
  2780. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  2781. // For paginated viewing of sending records, specify the number of card SMS records to display per page.
  2782. //
  2783. // The value range is 1~50.
  2784. //
  2785. // example:
  2786. //
  2787. // 10
  2788. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
  2789. // Domestic phone number that received the SMS. Format: 11-digit phone number, for example, 1390000****.
  2790. //
  2791. // This parameter is required.
  2792. //
  2793. // example:
  2794. //
  2795. // 1390000****
  2796. PhoneNumber *string `json:"PhoneNumber,omitempty" xml:"PhoneNumber,omitempty"`
  2797. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  2798. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  2799. // Card SMS sending date, supports querying records from the last 30 days.
  2800. //
  2801. // Format: yyyyMMdd, for example, 20240112.
  2802. //
  2803. // This parameter is required.
  2804. //
  2805. // example:
  2806. //
  2807. // 20240112
  2808. SendDate *string `json:"SendDate,omitempty" xml:"SendDate,omitempty"`
  2809. }
  2810. func (s GetCardSmsDetailsRequest) String() string {
  2811. return tea.Prettify(s)
  2812. }
  2813. func (s GetCardSmsDetailsRequest) GoString() string {
  2814. return s.String()
  2815. }
  2816. func (s *GetCardSmsDetailsRequest) SetBizCardId(v string) *GetCardSmsDetailsRequest {
  2817. s.BizCardId = &v
  2818. return s
  2819. }
  2820. func (s *GetCardSmsDetailsRequest) SetBizDigitId(v string) *GetCardSmsDetailsRequest {
  2821. s.BizDigitId = &v
  2822. return s
  2823. }
  2824. func (s *GetCardSmsDetailsRequest) SetBizSmsId(v string) *GetCardSmsDetailsRequest {
  2825. s.BizSmsId = &v
  2826. return s
  2827. }
  2828. func (s *GetCardSmsDetailsRequest) SetCurrentPage(v int64) *GetCardSmsDetailsRequest {
  2829. s.CurrentPage = &v
  2830. return s
  2831. }
  2832. func (s *GetCardSmsDetailsRequest) SetOwnerId(v int64) *GetCardSmsDetailsRequest {
  2833. s.OwnerId = &v
  2834. return s
  2835. }
  2836. func (s *GetCardSmsDetailsRequest) SetPageSize(v int64) *GetCardSmsDetailsRequest {
  2837. s.PageSize = &v
  2838. return s
  2839. }
  2840. func (s *GetCardSmsDetailsRequest) SetPhoneNumber(v string) *GetCardSmsDetailsRequest {
  2841. s.PhoneNumber = &v
  2842. return s
  2843. }
  2844. func (s *GetCardSmsDetailsRequest) SetResourceOwnerAccount(v string) *GetCardSmsDetailsRequest {
  2845. s.ResourceOwnerAccount = &v
  2846. return s
  2847. }
  2848. func (s *GetCardSmsDetailsRequest) SetResourceOwnerId(v int64) *GetCardSmsDetailsRequest {
  2849. s.ResourceOwnerId = &v
  2850. return s
  2851. }
  2852. func (s *GetCardSmsDetailsRequest) SetSendDate(v string) *GetCardSmsDetailsRequest {
  2853. s.SendDate = &v
  2854. return s
  2855. }
  2856. type GetCardSmsDetailsResponseBody struct {
  2857. // Access denied detail; this field is returned only if the RAM check fails.
  2858. //
  2859. // example:
  2860. //
  2861. // 无
  2862. AccessDeniedDetail *string `json:"AccessDeniedDetail,omitempty" xml:"AccessDeniedDetail,omitempty"`
  2863. // Card SMS sending result
  2864. CardSendDetailDTO *GetCardSmsDetailsResponseBodyCardSendDetailDTO `json:"CardSendDetailDTO,omitempty" xml:"CardSendDetailDTO,omitempty" type:"Struct"`
  2865. // Request status code.
  2866. //
  2867. // - OK indicates a successful request.
  2868. //
  2869. // - For other error codes, see [API Error Codes](https://help.aliyun.com/document_detail/101346.html).
  2870. //
  2871. // example:
  2872. //
  2873. // OK
  2874. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  2875. // Description of the status code.
  2876. //
  2877. // example:
  2878. //
  2879. // OK
  2880. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  2881. // Indicates whether the API call was successful. Values:
  2882. //
  2883. // - **true* - - **false**
  2884. //
  2885. // example:
  2886. //
  2887. // true
  2888. Success *bool `json:"Success,omitempty" xml:"Success,omitempty"`
  2889. }
  2890. func (s GetCardSmsDetailsResponseBody) String() string {
  2891. return tea.Prettify(s)
  2892. }
  2893. func (s GetCardSmsDetailsResponseBody) GoString() string {
  2894. return s.String()
  2895. }
  2896. func (s *GetCardSmsDetailsResponseBody) SetAccessDeniedDetail(v string) *GetCardSmsDetailsResponseBody {
  2897. s.AccessDeniedDetail = &v
  2898. return s
  2899. }
  2900. func (s *GetCardSmsDetailsResponseBody) SetCardSendDetailDTO(v *GetCardSmsDetailsResponseBodyCardSendDetailDTO) *GetCardSmsDetailsResponseBody {
  2901. s.CardSendDetailDTO = v
  2902. return s
  2903. }
  2904. func (s *GetCardSmsDetailsResponseBody) SetCode(v string) *GetCardSmsDetailsResponseBody {
  2905. s.Code = &v
  2906. return s
  2907. }
  2908. func (s *GetCardSmsDetailsResponseBody) SetMessage(v string) *GetCardSmsDetailsResponseBody {
  2909. s.Message = &v
  2910. return s
  2911. }
  2912. func (s *GetCardSmsDetailsResponseBody) SetSuccess(v bool) *GetCardSmsDetailsResponseBody {
  2913. s.Success = &v
  2914. return s
  2915. }
  2916. type GetCardSmsDetailsResponseBodyCardSendDetailDTO struct {
  2917. // Current page number
  2918. //
  2919. // example:
  2920. //
  2921. // 1
  2922. CurrentPage *int64 `json:"CurrentPage,omitempty" xml:"CurrentPage,omitempty"`
  2923. // Page size
  2924. //
  2925. // example:
  2926. //
  2927. // 10
  2928. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
  2929. // List of card SMS sending records
  2930. Records []*GetCardSmsDetailsResponseBodyCardSendDetailDTORecords `json:"Records,omitempty" xml:"Records,omitempty" type:"Repeated"`
  2931. // Total count
  2932. //
  2933. // example:
  2934. //
  2935. // 10
  2936. TotalCount *int64 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
  2937. }
  2938. func (s GetCardSmsDetailsResponseBodyCardSendDetailDTO) String() string {
  2939. return tea.Prettify(s)
  2940. }
  2941. func (s GetCardSmsDetailsResponseBodyCardSendDetailDTO) GoString() string {
  2942. return s.String()
  2943. }
  2944. func (s *GetCardSmsDetailsResponseBodyCardSendDetailDTO) SetCurrentPage(v int64) *GetCardSmsDetailsResponseBodyCardSendDetailDTO {
  2945. s.CurrentPage = &v
  2946. return s
  2947. }
  2948. func (s *GetCardSmsDetailsResponseBodyCardSendDetailDTO) SetPageSize(v int64) *GetCardSmsDetailsResponseBodyCardSendDetailDTO {
  2949. s.PageSize = &v
  2950. return s
  2951. }
  2952. func (s *GetCardSmsDetailsResponseBodyCardSendDetailDTO) SetRecords(v []*GetCardSmsDetailsResponseBodyCardSendDetailDTORecords) *GetCardSmsDetailsResponseBodyCardSendDetailDTO {
  2953. s.Records = v
  2954. return s
  2955. }
  2956. func (s *GetCardSmsDetailsResponseBodyCardSendDetailDTO) SetTotalCount(v int64) *GetCardSmsDetailsResponseBodyCardSendDetailDTO {
  2957. s.TotalCount = &v
  2958. return s
  2959. }
  2960. type GetCardSmsDetailsResponseBodyCardSendDetailDTORecords struct {
  2961. // Error code for sending
  2962. //
  2963. // example:
  2964. //
  2965. // Success
  2966. ErrCode *string `json:"ErrCode,omitempty" xml:"ErrCode,omitempty"`
  2967. // Customer-transmitted outId
  2968. //
  2969. // example:
  2970. //
  2971. // 12345678
  2972. OutId *string `json:"OutId,omitempty" xml:"OutId,omitempty"`
  2973. // Phone number that received the SMS
  2974. //
  2975. // example:
  2976. //
  2977. // 156****9080
  2978. PhoneNumber *string `json:"PhoneNumber,omitempty" xml:"PhoneNumber,omitempty"`
  2979. // Receive date
  2980. //
  2981. // example:
  2982. //
  2983. // 2024-09-27 11:26:35
  2984. ReceiveDate *string `json:"ReceiveDate,omitempty" xml:"ReceiveDate,omitempty"`
  2985. // Receive SMS type
  2986. //
  2987. // example:
  2988. //
  2989. // CARD_SMS
  2990. ReceiveType *string `json:"ReceiveType,omitempty" xml:"ReceiveType,omitempty"`
  2991. // Render date
  2992. //
  2993. // example:
  2994. //
  2995. // 2024-09-27 12:13:39
  2996. RenderDate *string `json:"RenderDate,omitempty" xml:"RenderDate,omitempty"`
  2997. // Render status. 0: Not rendered; 1: Rendered successfully; 3: Not rendered
  2998. //
  2999. // example:
  3000. //
  3001. // 1
  3002. RenderStatus *int64 `json:"RenderStatus,omitempty" xml:"RenderStatus,omitempty"`
  3003. // Time when the SMS was sent
  3004. //
  3005. // example:
  3006. //
  3007. // 2024-09-27 11:26:32
  3008. SendDate *string `json:"SendDate,omitempty" xml:"SendDate,omitempty"`
  3009. // Sending status. 1: Sending; 2: Send failed; 3: Sent successfully; 4: Addressing failed
  3010. //
  3011. // example:
  3012. //
  3013. // 3
  3014. SendStatus *int64 `json:"SendStatus,omitempty" xml:"SendStatus,omitempty"`
  3015. // SMS content. Only applicable for text messages.
  3016. //
  3017. // example:
  3018. //
  3019. // 您收到一条短信消息
  3020. SmsContent *string `json:"SmsContent,omitempty" xml:"SmsContent,omitempty"`
  3021. // Template code
  3022. //
  3023. // example:
  3024. //
  3025. // CARD_SMS_6***
  3026. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  3027. }
  3028. func (s GetCardSmsDetailsResponseBodyCardSendDetailDTORecords) String() string {
  3029. return tea.Prettify(s)
  3030. }
  3031. func (s GetCardSmsDetailsResponseBodyCardSendDetailDTORecords) GoString() string {
  3032. return s.String()
  3033. }
  3034. func (s *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords) SetErrCode(v string) *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords {
  3035. s.ErrCode = &v
  3036. return s
  3037. }
  3038. func (s *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords) SetOutId(v string) *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords {
  3039. s.OutId = &v
  3040. return s
  3041. }
  3042. func (s *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords) SetPhoneNumber(v string) *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords {
  3043. s.PhoneNumber = &v
  3044. return s
  3045. }
  3046. func (s *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords) SetReceiveDate(v string) *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords {
  3047. s.ReceiveDate = &v
  3048. return s
  3049. }
  3050. func (s *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords) SetReceiveType(v string) *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords {
  3051. s.ReceiveType = &v
  3052. return s
  3053. }
  3054. func (s *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords) SetRenderDate(v string) *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords {
  3055. s.RenderDate = &v
  3056. return s
  3057. }
  3058. func (s *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords) SetRenderStatus(v int64) *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords {
  3059. s.RenderStatus = &v
  3060. return s
  3061. }
  3062. func (s *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords) SetSendDate(v string) *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords {
  3063. s.SendDate = &v
  3064. return s
  3065. }
  3066. func (s *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords) SetSendStatus(v int64) *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords {
  3067. s.SendStatus = &v
  3068. return s
  3069. }
  3070. func (s *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords) SetSmsContent(v string) *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords {
  3071. s.SmsContent = &v
  3072. return s
  3073. }
  3074. func (s *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords) SetTemplateCode(v string) *GetCardSmsDetailsResponseBodyCardSendDetailDTORecords {
  3075. s.TemplateCode = &v
  3076. return s
  3077. }
  3078. type GetCardSmsDetailsResponse struct {
  3079. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  3080. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  3081. Body *GetCardSmsDetailsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  3082. }
  3083. func (s GetCardSmsDetailsResponse) String() string {
  3084. return tea.Prettify(s)
  3085. }
  3086. func (s GetCardSmsDetailsResponse) GoString() string {
  3087. return s.String()
  3088. }
  3089. func (s *GetCardSmsDetailsResponse) SetHeaders(v map[string]*string) *GetCardSmsDetailsResponse {
  3090. s.Headers = v
  3091. return s
  3092. }
  3093. func (s *GetCardSmsDetailsResponse) SetStatusCode(v int32) *GetCardSmsDetailsResponse {
  3094. s.StatusCode = &v
  3095. return s
  3096. }
  3097. func (s *GetCardSmsDetailsResponse) SetBody(v *GetCardSmsDetailsResponseBody) *GetCardSmsDetailsResponse {
  3098. s.Body = v
  3099. return s
  3100. }
  3101. type GetCardSmsLinkRequest struct {
  3102. // The code type of the URLs.
  3103. //
  3104. // - **1**: group texting
  3105. //
  3106. // - **2**: personalization
  3107. //
  3108. // example:
  3109. //
  3110. // 2
  3111. CardCodeType *int32 `json:"CardCodeType,omitempty" xml:"CardCodeType,omitempty"`
  3112. // The type of the short URLs.
  3113. //
  3114. // - 1: standard short code.
  3115. //
  3116. // - 2: custom short code.
  3117. //
  3118. // > If the **CardLinkType* - is not specified, standard short codes are generated. If you need to generate custom short codes, contact Alibaba Cloud SMS technical support.
  3119. //
  3120. // example:
  3121. //
  3122. // 1
  3123. CardLinkType *int32 `json:"CardLinkType,omitempty" xml:"CardLinkType,omitempty"`
  3124. // The code of the message template. You can view the template code in the **Template Code* - column on the **Templates* - tab of the **Go China* - page in the Alibaba Cloud SMS console.
  3125. //
  3126. // > Make sure that the message template has been approved.
  3127. //
  3128. // This parameter is required.
  3129. //
  3130. // example:
  3131. //
  3132. // CARD_SMS_****
  3133. CardTemplateCode *string `json:"CardTemplateCode,omitempty" xml:"CardTemplateCode,omitempty"`
  3134. // The variables of the message template.
  3135. //
  3136. // example:
  3137. //
  3138. // [{},{}]
  3139. CardTemplateParamJson *string `json:"CardTemplateParamJson,omitempty" xml:"CardTemplateParamJson,omitempty"`
  3140. // The custom short code. It can contain 4 to 8 digits or letters.
  3141. //
  3142. // > If the CardLinkType parameter is set to 2, the CustomShortCodeJson parameter is required.
  3143. //
  3144. // example:
  3145. //
  3146. // abCde
  3147. CustomShortCodeJson *string `json:"CustomShortCodeJson,omitempty" xml:"CustomShortCodeJson,omitempty"`
  3148. // The original domain name. You must submit domain names for approval in advance.
  3149. //
  3150. // >
  3151. //
  3152. // - If the **CardLinkType* - parameter is set to **2**, the **Domain* - parameter is required.
  3153. //
  3154. // - The **Domain* - parameter cannot exceed 100 characters in length. If the parameter is not specified, a default domain name is used.
  3155. //
  3156. // example:
  3157. //
  3158. // xxx.com
  3159. Domain *string `json:"Domain,omitempty" xml:"Domain,omitempty"`
  3160. // The extension field.
  3161. //
  3162. // example:
  3163. //
  3164. // BC20220608102511660860762****
  3165. OutId *string `json:"OutId,omitempty" xml:"OutId,omitempty"`
  3166. // The mobile phone numbers of recipients, custom identifiers, or system identifiers.
  3167. //
  3168. // >
  3169. //
  3170. // - A maximum of 10,000 mobile phone numbers are supported.
  3171. //
  3172. // - You can enter custom identifier. Each identifier can be a maximum of 60 characters in length.
  3173. //
  3174. // - You can apply for a maximum of 10 OPPO templates at a time.
  3175. //
  3176. // example:
  3177. //
  3178. // [\\"1390000****
  3179. //
  3180. // \\",\\"1370000****
  3181. //
  3182. // \\"]
  3183. PhoneNumberJson *string `json:"PhoneNumberJson,omitempty" xml:"PhoneNumberJson,omitempty"`
  3184. // The signature. You can view the template code in the **Signature* - column on the **Signaturess* - tab of the **Go China* - page in the Alibaba Cloud SMS console.
  3185. //
  3186. // > The signatures must be approved and correspond to the mobile numbers in sequence.
  3187. //
  3188. // This parameter is required.
  3189. //
  3190. // example:
  3191. //
  3192. // [\\"aliyun\\", \\"aliyun2\\"]
  3193. SignNameJson *string `json:"SignNameJson,omitempty" xml:"SignNameJson,omitempty"`
  3194. }
  3195. func (s GetCardSmsLinkRequest) String() string {
  3196. return tea.Prettify(s)
  3197. }
  3198. func (s GetCardSmsLinkRequest) GoString() string {
  3199. return s.String()
  3200. }
  3201. func (s *GetCardSmsLinkRequest) SetCardCodeType(v int32) *GetCardSmsLinkRequest {
  3202. s.CardCodeType = &v
  3203. return s
  3204. }
  3205. func (s *GetCardSmsLinkRequest) SetCardLinkType(v int32) *GetCardSmsLinkRequest {
  3206. s.CardLinkType = &v
  3207. return s
  3208. }
  3209. func (s *GetCardSmsLinkRequest) SetCardTemplateCode(v string) *GetCardSmsLinkRequest {
  3210. s.CardTemplateCode = &v
  3211. return s
  3212. }
  3213. func (s *GetCardSmsLinkRequest) SetCardTemplateParamJson(v string) *GetCardSmsLinkRequest {
  3214. s.CardTemplateParamJson = &v
  3215. return s
  3216. }
  3217. func (s *GetCardSmsLinkRequest) SetCustomShortCodeJson(v string) *GetCardSmsLinkRequest {
  3218. s.CustomShortCodeJson = &v
  3219. return s
  3220. }
  3221. func (s *GetCardSmsLinkRequest) SetDomain(v string) *GetCardSmsLinkRequest {
  3222. s.Domain = &v
  3223. return s
  3224. }
  3225. func (s *GetCardSmsLinkRequest) SetOutId(v string) *GetCardSmsLinkRequest {
  3226. s.OutId = &v
  3227. return s
  3228. }
  3229. func (s *GetCardSmsLinkRequest) SetPhoneNumberJson(v string) *GetCardSmsLinkRequest {
  3230. s.PhoneNumberJson = &v
  3231. return s
  3232. }
  3233. func (s *GetCardSmsLinkRequest) SetSignNameJson(v string) *GetCardSmsLinkRequest {
  3234. s.SignNameJson = &v
  3235. return s
  3236. }
  3237. type GetCardSmsLinkResponseBody struct {
  3238. // The HTTP status code.
  3239. //
  3240. // - The value OK indicates that the request was successful.
  3241. //
  3242. // - Other values indicate that the request failed. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  3243. //
  3244. // example:
  3245. //
  3246. // OK
  3247. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  3248. // The data returned.
  3249. Data *GetCardSmsLinkResponseBodyData `json:"Data,omitempty" xml:"Data,omitempty" type:"Struct"`
  3250. // The request ID.
  3251. //
  3252. // example:
  3253. //
  3254. // CC89A90C-978F-46AC-B80D-54738371E7CA
  3255. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  3256. // Indicates whether the request is successful. Valid values:
  3257. //
  3258. // - **true**
  3259. //
  3260. // - **false**
  3261. //
  3262. // example:
  3263. //
  3264. // true
  3265. Success *bool `json:"Success,omitempty" xml:"Success,omitempty"`
  3266. }
  3267. func (s GetCardSmsLinkResponseBody) String() string {
  3268. return tea.Prettify(s)
  3269. }
  3270. func (s GetCardSmsLinkResponseBody) GoString() string {
  3271. return s.String()
  3272. }
  3273. func (s *GetCardSmsLinkResponseBody) SetCode(v string) *GetCardSmsLinkResponseBody {
  3274. s.Code = &v
  3275. return s
  3276. }
  3277. func (s *GetCardSmsLinkResponseBody) SetData(v *GetCardSmsLinkResponseBodyData) *GetCardSmsLinkResponseBody {
  3278. s.Data = v
  3279. return s
  3280. }
  3281. func (s *GetCardSmsLinkResponseBody) SetRequestId(v string) *GetCardSmsLinkResponseBody {
  3282. s.RequestId = &v
  3283. return s
  3284. }
  3285. func (s *GetCardSmsLinkResponseBody) SetSuccess(v bool) *GetCardSmsLinkResponseBody {
  3286. s.Success = &v
  3287. return s
  3288. }
  3289. type GetCardSmsLinkResponseBodyData struct {
  3290. // The mobile phone numbers that support card messages.
  3291. //
  3292. // example:
  3293. //
  3294. // [\\"1390000****\\",\\"1370000****\\"]
  3295. CardPhoneNumbers *string `json:"CardPhoneNumbers,omitempty" xml:"CardPhoneNumbers,omitempty"`
  3296. // The signatures must correspond to the mobile numbers and short URLs in sequence.
  3297. //
  3298. // example:
  3299. //
  3300. // ["aliyun","aliyun2"]
  3301. CardSignNames *string `json:"CardSignNames,omitempty" xml:"CardSignNames,omitempty"`
  3302. // The short URLs.
  3303. //
  3304. // example:
  3305. //
  3306. // [\\"mw2m.cn/LAaGGa\\",\\"mw2m.cn/LAAaes\\"]
  3307. CardSmsLinks *string `json:"CardSmsLinks,omitempty" xml:"CardSmsLinks,omitempty"`
  3308. // The review status of the card message template.
  3309. //
  3310. // - **0**: pending approval
  3311. //
  3312. // - **1**: approved
  3313. //
  3314. // - **2**: rejected
  3315. //
  3316. // > Unapproved card messages are rolled back.
  3317. //
  3318. // example:
  3319. //
  3320. // 0
  3321. CardTmpState *int32 `json:"CardTmpState,omitempty" xml:"CardTmpState,omitempty"`
  3322. // The mobile phone numbers that do not support card messages.
  3323. //
  3324. // example:
  3325. //
  3326. // 1390000****
  3327. NotMediaMobiles *string `json:"NotMediaMobiles,omitempty" xml:"NotMediaMobiles,omitempty"`
  3328. }
  3329. func (s GetCardSmsLinkResponseBodyData) String() string {
  3330. return tea.Prettify(s)
  3331. }
  3332. func (s GetCardSmsLinkResponseBodyData) GoString() string {
  3333. return s.String()
  3334. }
  3335. func (s *GetCardSmsLinkResponseBodyData) SetCardPhoneNumbers(v string) *GetCardSmsLinkResponseBodyData {
  3336. s.CardPhoneNumbers = &v
  3337. return s
  3338. }
  3339. func (s *GetCardSmsLinkResponseBodyData) SetCardSignNames(v string) *GetCardSmsLinkResponseBodyData {
  3340. s.CardSignNames = &v
  3341. return s
  3342. }
  3343. func (s *GetCardSmsLinkResponseBodyData) SetCardSmsLinks(v string) *GetCardSmsLinkResponseBodyData {
  3344. s.CardSmsLinks = &v
  3345. return s
  3346. }
  3347. func (s *GetCardSmsLinkResponseBodyData) SetCardTmpState(v int32) *GetCardSmsLinkResponseBodyData {
  3348. s.CardTmpState = &v
  3349. return s
  3350. }
  3351. func (s *GetCardSmsLinkResponseBodyData) SetNotMediaMobiles(v string) *GetCardSmsLinkResponseBodyData {
  3352. s.NotMediaMobiles = &v
  3353. return s
  3354. }
  3355. type GetCardSmsLinkResponse struct {
  3356. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  3357. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  3358. Body *GetCardSmsLinkResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  3359. }
  3360. func (s GetCardSmsLinkResponse) String() string {
  3361. return tea.Prettify(s)
  3362. }
  3363. func (s GetCardSmsLinkResponse) GoString() string {
  3364. return s.String()
  3365. }
  3366. func (s *GetCardSmsLinkResponse) SetHeaders(v map[string]*string) *GetCardSmsLinkResponse {
  3367. s.Headers = v
  3368. return s
  3369. }
  3370. func (s *GetCardSmsLinkResponse) SetStatusCode(v int32) *GetCardSmsLinkResponse {
  3371. s.StatusCode = &v
  3372. return s
  3373. }
  3374. func (s *GetCardSmsLinkResponse) SetBody(v *GetCardSmsLinkResponseBody) *GetCardSmsLinkResponse {
  3375. s.Body = v
  3376. return s
  3377. }
  3378. type GetMediaResourceIdRequest struct {
  3379. // The extended fields.
  3380. //
  3381. // > If you set the ResourceType parameter to **2**, this parameter is required.
  3382. //
  3383. // example:
  3384. //
  3385. // {\\"img_rate\\":\\"oneToOne\\"}
  3386. ExtendInfo *string `json:"ExtendInfo,omitempty" xml:"ExtendInfo,omitempty"`
  3387. // The size of the resource. Unit: bytes.
  3388. //
  3389. // This parameter is required.
  3390. //
  3391. // example:
  3392. //
  3393. // 12
  3394. FileSize *int64 `json:"FileSize,omitempty" xml:"FileSize,omitempty"`
  3395. // The description of the resource.
  3396. //
  3397. // example:
  3398. //
  3399. // remark
  3400. Memo *string `json:"Memo,omitempty" xml:"Memo,omitempty"`
  3401. // The address of the resource.
  3402. //
  3403. // This parameter is required.
  3404. //
  3405. // example:
  3406. //
  3407. // oss://alicom-fc-media/1947741454322274/alicom-fc-media/pic/202205191526575398603697152.png
  3408. OssKey *string `json:"OssKey,omitempty" xml:"OssKey,omitempty"`
  3409. // The type of the resource.
  3410. //
  3411. // - **1**: text.
  3412. //
  3413. // - **2**: image. A small image cannot exceed 100 KB in size, and a large image cannot exceed 2 MB in size. The image must be clear. Supported format: JPG, JPEG, and PNG.
  3414. //
  3415. // - **3**: audio.
  3416. //
  3417. // - **4**: video. Supported format: MP4.
  3418. //
  3419. // >
  3420. //
  3421. // - If you set the ResourceType parameter to 2, the **img_rate* - required is required. Valid values:
  3422. //
  3423. // - 1:1
  3424. //
  3425. // - 16:9
  3426. //
  3427. // - 3:1
  3428. //
  3429. // - 48:65
  3430. //
  3431. // This parameter is required.
  3432. //
  3433. // example:
  3434. //
  3435. // 1
  3436. ResourceType *int32 `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
  3437. }
  3438. func (s GetMediaResourceIdRequest) String() string {
  3439. return tea.Prettify(s)
  3440. }
  3441. func (s GetMediaResourceIdRequest) GoString() string {
  3442. return s.String()
  3443. }
  3444. func (s *GetMediaResourceIdRequest) SetExtendInfo(v string) *GetMediaResourceIdRequest {
  3445. s.ExtendInfo = &v
  3446. return s
  3447. }
  3448. func (s *GetMediaResourceIdRequest) SetFileSize(v int64) *GetMediaResourceIdRequest {
  3449. s.FileSize = &v
  3450. return s
  3451. }
  3452. func (s *GetMediaResourceIdRequest) SetMemo(v string) *GetMediaResourceIdRequest {
  3453. s.Memo = &v
  3454. return s
  3455. }
  3456. func (s *GetMediaResourceIdRequest) SetOssKey(v string) *GetMediaResourceIdRequest {
  3457. s.OssKey = &v
  3458. return s
  3459. }
  3460. func (s *GetMediaResourceIdRequest) SetResourceType(v int32) *GetMediaResourceIdRequest {
  3461. s.ResourceType = &v
  3462. return s
  3463. }
  3464. type GetMediaResourceIdResponseBody struct {
  3465. // The response code.
  3466. //
  3467. // - If OK is returned, the request is successful.
  3468. //
  3469. // - Other values indicate that the request fails. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  3470. //
  3471. // example:
  3472. //
  3473. // OK
  3474. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  3475. // The data returned.
  3476. Data *GetMediaResourceIdResponseBodyData `json:"Data,omitempty" xml:"Data,omitempty" type:"Struct"`
  3477. // The request ID.
  3478. //
  3479. // example:
  3480. //
  3481. // F07CF237-F6E3-5F77-B91B-F9B7C5DE84AB
  3482. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  3483. // Indicates whether the request was successful. Valid values:
  3484. //
  3485. // - **true**
  3486. //
  3487. // - **false**
  3488. //
  3489. // example:
  3490. //
  3491. // true
  3492. Success *bool `json:"Success,omitempty" xml:"Success,omitempty"`
  3493. }
  3494. func (s GetMediaResourceIdResponseBody) String() string {
  3495. return tea.Prettify(s)
  3496. }
  3497. func (s GetMediaResourceIdResponseBody) GoString() string {
  3498. return s.String()
  3499. }
  3500. func (s *GetMediaResourceIdResponseBody) SetCode(v string) *GetMediaResourceIdResponseBody {
  3501. s.Code = &v
  3502. return s
  3503. }
  3504. func (s *GetMediaResourceIdResponseBody) SetData(v *GetMediaResourceIdResponseBodyData) *GetMediaResourceIdResponseBody {
  3505. s.Data = v
  3506. return s
  3507. }
  3508. func (s *GetMediaResourceIdResponseBody) SetRequestId(v string) *GetMediaResourceIdResponseBody {
  3509. s.RequestId = &v
  3510. return s
  3511. }
  3512. func (s *GetMediaResourceIdResponseBody) SetSuccess(v bool) *GetMediaResourceIdResponseBody {
  3513. s.Success = &v
  3514. return s
  3515. }
  3516. type GetMediaResourceIdResponseBodyData struct {
  3517. // The download URL of the resource.
  3518. //
  3519. // example:
  3520. //
  3521. // http://test-example.com/download.jpg
  3522. ResUrlDownload *string `json:"ResUrlDownload,omitempty" xml:"ResUrlDownload,omitempty"`
  3523. // The resource ID.
  3524. //
  3525. // example:
  3526. //
  3527. // SMS_14571****
  3528. ResourceId *int64 `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"`
  3529. }
  3530. func (s GetMediaResourceIdResponseBodyData) String() string {
  3531. return tea.Prettify(s)
  3532. }
  3533. func (s GetMediaResourceIdResponseBodyData) GoString() string {
  3534. return s.String()
  3535. }
  3536. func (s *GetMediaResourceIdResponseBodyData) SetResUrlDownload(v string) *GetMediaResourceIdResponseBodyData {
  3537. s.ResUrlDownload = &v
  3538. return s
  3539. }
  3540. func (s *GetMediaResourceIdResponseBodyData) SetResourceId(v int64) *GetMediaResourceIdResponseBodyData {
  3541. s.ResourceId = &v
  3542. return s
  3543. }
  3544. type GetMediaResourceIdResponse struct {
  3545. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  3546. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  3547. Body *GetMediaResourceIdResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  3548. }
  3549. func (s GetMediaResourceIdResponse) String() string {
  3550. return tea.Prettify(s)
  3551. }
  3552. func (s GetMediaResourceIdResponse) GoString() string {
  3553. return s.String()
  3554. }
  3555. func (s *GetMediaResourceIdResponse) SetHeaders(v map[string]*string) *GetMediaResourceIdResponse {
  3556. s.Headers = v
  3557. return s
  3558. }
  3559. func (s *GetMediaResourceIdResponse) SetStatusCode(v int32) *GetMediaResourceIdResponse {
  3560. s.StatusCode = &v
  3561. return s
  3562. }
  3563. func (s *GetMediaResourceIdResponse) SetBody(v *GetMediaResourceIdResponseBody) *GetMediaResourceIdResponse {
  3564. s.Body = v
  3565. return s
  3566. }
  3567. type GetOSSInfoForCardTemplateResponseBody struct {
  3568. // The HTTP status code.
  3569. //
  3570. // - The value OK indicates that the request was successful.
  3571. //
  3572. // - For more information about other response codes, see [API error codes](https://help.aliyun.com/document_detail/101346.html).
  3573. //
  3574. // example:
  3575. //
  3576. // OK
  3577. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  3578. // The data returned.
  3579. Data *GetOSSInfoForCardTemplateResponseBodyData `json:"Data,omitempty" xml:"Data,omitempty" type:"Struct"`
  3580. // The request ID.
  3581. //
  3582. // example:
  3583. //
  3584. // A90E4451-FED7-49D2-87C8-00700A8C4D0D
  3585. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  3586. // Indicates whether the request is successful. Valid values:
  3587. //
  3588. // - **true**
  3589. //
  3590. // - **false**
  3591. //
  3592. // example:
  3593. //
  3594. // true
  3595. Success *bool `json:"Success,omitempty" xml:"Success,omitempty"`
  3596. }
  3597. func (s GetOSSInfoForCardTemplateResponseBody) String() string {
  3598. return tea.Prettify(s)
  3599. }
  3600. func (s GetOSSInfoForCardTemplateResponseBody) GoString() string {
  3601. return s.String()
  3602. }
  3603. func (s *GetOSSInfoForCardTemplateResponseBody) SetCode(v string) *GetOSSInfoForCardTemplateResponseBody {
  3604. s.Code = &v
  3605. return s
  3606. }
  3607. func (s *GetOSSInfoForCardTemplateResponseBody) SetData(v *GetOSSInfoForCardTemplateResponseBodyData) *GetOSSInfoForCardTemplateResponseBody {
  3608. s.Data = v
  3609. return s
  3610. }
  3611. func (s *GetOSSInfoForCardTemplateResponseBody) SetRequestId(v string) *GetOSSInfoForCardTemplateResponseBody {
  3612. s.RequestId = &v
  3613. return s
  3614. }
  3615. func (s *GetOSSInfoForCardTemplateResponseBody) SetSuccess(v bool) *GetOSSInfoForCardTemplateResponseBody {
  3616. s.Success = &v
  3617. return s
  3618. }
  3619. type GetOSSInfoForCardTemplateResponseBodyData struct {
  3620. // The AccessKey ID.
  3621. //
  3622. // example:
  3623. //
  3624. // LTAIxetqt1Dg****
  3625. AccessKeyId *string `json:"AccessKeyId,omitempty" xml:"AccessKeyId,omitempty"`
  3626. // The ID of the Alibaba Cloud account.
  3627. //
  3628. // example:
  3629. //
  3630. // 599333677478****
  3631. AliUid *string `json:"AliUid,omitempty" xml:"AliUid,omitempty"`
  3632. // The name of the OSS bucket.
  3633. //
  3634. // example:
  3635. //
  3636. // alicom-cardsms-resources
  3637. Bucket *string `json:"Bucket,omitempty" xml:"Bucket,omitempty"`
  3638. // The timeout period.
  3639. //
  3640. // example:
  3641. //
  3642. // 1634209418
  3643. ExpireTime *string `json:"ExpireTime,omitempty" xml:"ExpireTime,omitempty"`
  3644. // The hostname.
  3645. //
  3646. // example:
  3647. //
  3648. // https://alicom-cardsms-resources.oss-cn-zhangjiakou.aliyuncs.com
  3649. Host *string `json:"Host,omitempty" xml:"Host,omitempty"`
  3650. // The signature policy.
  3651. //
  3652. // example:
  3653. //
  3654. // eyJxxx0=
  3655. Policy *string `json:"Policy,omitempty" xml:"Policy,omitempty"`
  3656. // The signature.
  3657. //
  3658. // example:
  3659. //
  3660. // Aliyun
  3661. Signature *string `json:"Signature,omitempty" xml:"Signature,omitempty"`
  3662. // The path of the policy.
  3663. //
  3664. // example:
  3665. //
  3666. // 1631792777
  3667. StartPath *string `json:"StartPath,omitempty" xml:"StartPath,omitempty"`
  3668. }
  3669. func (s GetOSSInfoForCardTemplateResponseBodyData) String() string {
  3670. return tea.Prettify(s)
  3671. }
  3672. func (s GetOSSInfoForCardTemplateResponseBodyData) GoString() string {
  3673. return s.String()
  3674. }
  3675. func (s *GetOSSInfoForCardTemplateResponseBodyData) SetAccessKeyId(v string) *GetOSSInfoForCardTemplateResponseBodyData {
  3676. s.AccessKeyId = &v
  3677. return s
  3678. }
  3679. func (s *GetOSSInfoForCardTemplateResponseBodyData) SetAliUid(v string) *GetOSSInfoForCardTemplateResponseBodyData {
  3680. s.AliUid = &v
  3681. return s
  3682. }
  3683. func (s *GetOSSInfoForCardTemplateResponseBodyData) SetBucket(v string) *GetOSSInfoForCardTemplateResponseBodyData {
  3684. s.Bucket = &v
  3685. return s
  3686. }
  3687. func (s *GetOSSInfoForCardTemplateResponseBodyData) SetExpireTime(v string) *GetOSSInfoForCardTemplateResponseBodyData {
  3688. s.ExpireTime = &v
  3689. return s
  3690. }
  3691. func (s *GetOSSInfoForCardTemplateResponseBodyData) SetHost(v string) *GetOSSInfoForCardTemplateResponseBodyData {
  3692. s.Host = &v
  3693. return s
  3694. }
  3695. func (s *GetOSSInfoForCardTemplateResponseBodyData) SetPolicy(v string) *GetOSSInfoForCardTemplateResponseBodyData {
  3696. s.Policy = &v
  3697. return s
  3698. }
  3699. func (s *GetOSSInfoForCardTemplateResponseBodyData) SetSignature(v string) *GetOSSInfoForCardTemplateResponseBodyData {
  3700. s.Signature = &v
  3701. return s
  3702. }
  3703. func (s *GetOSSInfoForCardTemplateResponseBodyData) SetStartPath(v string) *GetOSSInfoForCardTemplateResponseBodyData {
  3704. s.StartPath = &v
  3705. return s
  3706. }
  3707. type GetOSSInfoForCardTemplateResponse struct {
  3708. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  3709. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  3710. Body *GetOSSInfoForCardTemplateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  3711. }
  3712. func (s GetOSSInfoForCardTemplateResponse) String() string {
  3713. return tea.Prettify(s)
  3714. }
  3715. func (s GetOSSInfoForCardTemplateResponse) GoString() string {
  3716. return s.String()
  3717. }
  3718. func (s *GetOSSInfoForCardTemplateResponse) SetHeaders(v map[string]*string) *GetOSSInfoForCardTemplateResponse {
  3719. s.Headers = v
  3720. return s
  3721. }
  3722. func (s *GetOSSInfoForCardTemplateResponse) SetStatusCode(v int32) *GetOSSInfoForCardTemplateResponse {
  3723. s.StatusCode = &v
  3724. return s
  3725. }
  3726. func (s *GetOSSInfoForCardTemplateResponse) SetBody(v *GetOSSInfoForCardTemplateResponseBody) *GetOSSInfoForCardTemplateResponse {
  3727. s.Body = v
  3728. return s
  3729. }
  3730. type GetOSSInfoForUploadFileRequest struct {
  3731. // Business type, default value is **fcMediaSms**.
  3732. //
  3733. // When creating signatures and templates, and uploading **additional materials**, this value is **fcMediaSms**.
  3734. //
  3735. // example:
  3736. //
  3737. // fcMediaSms
  3738. BizType *string `json:"BizType,omitempty" xml:"BizType,omitempty"`
  3739. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  3740. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  3741. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  3742. }
  3743. func (s GetOSSInfoForUploadFileRequest) String() string {
  3744. return tea.Prettify(s)
  3745. }
  3746. func (s GetOSSInfoForUploadFileRequest) GoString() string {
  3747. return s.String()
  3748. }
  3749. func (s *GetOSSInfoForUploadFileRequest) SetBizType(v string) *GetOSSInfoForUploadFileRequest {
  3750. s.BizType = &v
  3751. return s
  3752. }
  3753. func (s *GetOSSInfoForUploadFileRequest) SetOwnerId(v int64) *GetOSSInfoForUploadFileRequest {
  3754. s.OwnerId = &v
  3755. return s
  3756. }
  3757. func (s *GetOSSInfoForUploadFileRequest) SetResourceOwnerAccount(v string) *GetOSSInfoForUploadFileRequest {
  3758. s.ResourceOwnerAccount = &v
  3759. return s
  3760. }
  3761. func (s *GetOSSInfoForUploadFileRequest) SetResourceOwnerId(v int64) *GetOSSInfoForUploadFileRequest {
  3762. s.ResourceOwnerId = &v
  3763. return s
  3764. }
  3765. type GetOSSInfoForUploadFileResponseBody struct {
  3766. // Request status code.
  3767. //
  3768. // - OK return represents a successful request.
  3769. //
  3770. // - For other error codes, please refer to the [Error Code List](https://help.aliyun.com/document_detail/101346.htm).
  3771. //
  3772. // example:
  3773. //
  3774. // OK
  3775. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  3776. // Description of the status code.
  3777. //
  3778. // example:
  3779. //
  3780. // OK
  3781. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  3782. // Return result.
  3783. Model *GetOSSInfoForUploadFileResponseBodyModel `json:"Model,omitempty" xml:"Model,omitempty" type:"Struct"`
  3784. // The ID of this call request, which is a unique identifier generated by Alibaba Cloud for the request, can be used for troubleshooting and issue定位.
  3785. //
  3786. // example:
  3787. //
  3788. // A90E4451-FED7-49D2-87C8-00700EDCFD0D
  3789. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  3790. // Indicates success. Values:
  3791. //
  3792. // - **true**
  3793. //
  3794. // - **false**
  3795. //
  3796. // example:
  3797. //
  3798. // true
  3799. Success *bool `json:"Success,omitempty" xml:"Success,omitempty"`
  3800. }
  3801. func (s GetOSSInfoForUploadFileResponseBody) String() string {
  3802. return tea.Prettify(s)
  3803. }
  3804. func (s GetOSSInfoForUploadFileResponseBody) GoString() string {
  3805. return s.String()
  3806. }
  3807. func (s *GetOSSInfoForUploadFileResponseBody) SetCode(v string) *GetOSSInfoForUploadFileResponseBody {
  3808. s.Code = &v
  3809. return s
  3810. }
  3811. func (s *GetOSSInfoForUploadFileResponseBody) SetMessage(v string) *GetOSSInfoForUploadFileResponseBody {
  3812. s.Message = &v
  3813. return s
  3814. }
  3815. func (s *GetOSSInfoForUploadFileResponseBody) SetModel(v *GetOSSInfoForUploadFileResponseBodyModel) *GetOSSInfoForUploadFileResponseBody {
  3816. s.Model = v
  3817. return s
  3818. }
  3819. func (s *GetOSSInfoForUploadFileResponseBody) SetRequestId(v string) *GetOSSInfoForUploadFileResponseBody {
  3820. s.RequestId = &v
  3821. return s
  3822. }
  3823. func (s *GetOSSInfoForUploadFileResponseBody) SetSuccess(v bool) *GetOSSInfoForUploadFileResponseBody {
  3824. s.Success = &v
  3825. return s
  3826. }
  3827. type GetOSSInfoForUploadFileResponseBodyModel struct {
  3828. // AccessKey ID used for signing.
  3829. //
  3830. // example:
  3831. //
  3832. // LTAIxetqt1Dg****
  3833. AccessKeyId *string `json:"AccessKeyId,omitempty" xml:"AccessKeyId,omitempty"`
  3834. // Expiration time.
  3835. //
  3836. // example:
  3837. //
  3838. // 1719297445
  3839. ExpireTime *string `json:"ExpireTime,omitempty" xml:"ExpireTime,omitempty"`
  3840. // Host address.
  3841. //
  3842. // example:
  3843. //
  3844. // https://alicom-fc-media.oss-cn-zhangjiakou.aliyuncs.com
  3845. Host *string `json:"Host,omitempty" xml:"Host,omitempty"`
  3846. // Signature policy.
  3847. //
  3848. // example:
  3849. //
  3850. // eyJleHBpcmF0aW9uIjoiMjAyN***Ni0yNVQwNjozNzoyNS45NzBaI**iY29uZGl0aW9ucyI6W1siY29udGVudC1sZW5ndGgtcmFuZ2UiLDAsMTA0ODU3NjAwMF0sWyJzdGFydHMtd2l0***sIiRrZXkiLCIiXV19
  3851. Policy *string `json:"Policy,omitempty" xml:"Policy,omitempty"`
  3852. // Signature information calculated based on **AccessKey Secret* - and **Policy**. When calling the OSS API, OSS verifies this signature information to confirm the legitimacy of the Post request.
  3853. //
  3854. // example:
  3855. //
  3856. // BXnwCWPrhVb*****aoZHZfli5KE=
  3857. Signature *string `json:"Signature,omitempty" xml:"Signature,omitempty"`
  3858. // Policy path.
  3859. //
  3860. // example:
  3861. //
  3862. // 123456
  3863. StartPath *string `json:"StartPath,omitempty" xml:"StartPath,omitempty"`
  3864. }
  3865. func (s GetOSSInfoForUploadFileResponseBodyModel) String() string {
  3866. return tea.Prettify(s)
  3867. }
  3868. func (s GetOSSInfoForUploadFileResponseBodyModel) GoString() string {
  3869. return s.String()
  3870. }
  3871. func (s *GetOSSInfoForUploadFileResponseBodyModel) SetAccessKeyId(v string) *GetOSSInfoForUploadFileResponseBodyModel {
  3872. s.AccessKeyId = &v
  3873. return s
  3874. }
  3875. func (s *GetOSSInfoForUploadFileResponseBodyModel) SetExpireTime(v string) *GetOSSInfoForUploadFileResponseBodyModel {
  3876. s.ExpireTime = &v
  3877. return s
  3878. }
  3879. func (s *GetOSSInfoForUploadFileResponseBodyModel) SetHost(v string) *GetOSSInfoForUploadFileResponseBodyModel {
  3880. s.Host = &v
  3881. return s
  3882. }
  3883. func (s *GetOSSInfoForUploadFileResponseBodyModel) SetPolicy(v string) *GetOSSInfoForUploadFileResponseBodyModel {
  3884. s.Policy = &v
  3885. return s
  3886. }
  3887. func (s *GetOSSInfoForUploadFileResponseBodyModel) SetSignature(v string) *GetOSSInfoForUploadFileResponseBodyModel {
  3888. s.Signature = &v
  3889. return s
  3890. }
  3891. func (s *GetOSSInfoForUploadFileResponseBodyModel) SetStartPath(v string) *GetOSSInfoForUploadFileResponseBodyModel {
  3892. s.StartPath = &v
  3893. return s
  3894. }
  3895. type GetOSSInfoForUploadFileResponse struct {
  3896. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  3897. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  3898. Body *GetOSSInfoForUploadFileResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  3899. }
  3900. func (s GetOSSInfoForUploadFileResponse) String() string {
  3901. return tea.Prettify(s)
  3902. }
  3903. func (s GetOSSInfoForUploadFileResponse) GoString() string {
  3904. return s.String()
  3905. }
  3906. func (s *GetOSSInfoForUploadFileResponse) SetHeaders(v map[string]*string) *GetOSSInfoForUploadFileResponse {
  3907. s.Headers = v
  3908. return s
  3909. }
  3910. func (s *GetOSSInfoForUploadFileResponse) SetStatusCode(v int32) *GetOSSInfoForUploadFileResponse {
  3911. s.StatusCode = &v
  3912. return s
  3913. }
  3914. func (s *GetOSSInfoForUploadFileResponse) SetBody(v *GetOSSInfoForUploadFileResponseBody) *GetOSSInfoForUploadFileResponse {
  3915. s.Body = v
  3916. return s
  3917. }
  3918. type GetSmsSignRequest struct {
  3919. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  3920. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  3921. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  3922. // Signature name. Must be an SMS signature already applied for by this account.
  3923. //
  3924. // - Obtain from the return parameters after calling the [CreateSmsSign](https://help.aliyun.com/zh/sms/developer-reference/api-dysmsapi-2017-05-25-createsmssign?spm) API.
  3925. //
  3926. // - View the signature on the [Signature Management](https://dysms.console.aliyun.com/domestic/text/sign) page.
  3927. //
  3928. // This parameter is required.
  3929. //
  3930. // example:
  3931. //
  3932. // Aliyun
  3933. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  3934. }
  3935. func (s GetSmsSignRequest) String() string {
  3936. return tea.Prettify(s)
  3937. }
  3938. func (s GetSmsSignRequest) GoString() string {
  3939. return s.String()
  3940. }
  3941. func (s *GetSmsSignRequest) SetOwnerId(v int64) *GetSmsSignRequest {
  3942. s.OwnerId = &v
  3943. return s
  3944. }
  3945. func (s *GetSmsSignRequest) SetResourceOwnerAccount(v string) *GetSmsSignRequest {
  3946. s.ResourceOwnerAccount = &v
  3947. return s
  3948. }
  3949. func (s *GetSmsSignRequest) SetResourceOwnerId(v int64) *GetSmsSignRequest {
  3950. s.ResourceOwnerId = &v
  3951. return s
  3952. }
  3953. func (s *GetSmsSignRequest) SetSignName(v string) *GetSmsSignRequest {
  3954. s.SignName = &v
  3955. return s
  3956. }
  3957. type GetSmsSignResponseBody struct {
  3958. // Content of application scenarios.
  3959. //
  3960. // example:
  3961. //
  3962. // http://www.aliyun.com/
  3963. ApplyScene *string `json:"ApplyScene,omitempty" xml:"ApplyScene,omitempty"`
  3964. // Audit information.
  3965. AuditInfo *GetSmsSignResponseBodyAuditInfo `json:"AuditInfo,omitempty" xml:"AuditInfo,omitempty" type:"Struct"`
  3966. // Request status code.
  3967. //
  3968. // - OK indicates a successful request.
  3969. //
  3970. // - For other error codes, see [API Error Codes](https://help.aliyun.com/document_detail/101346.html).
  3971. //
  3972. // example:
  3973. //
  3974. // OK
  3975. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  3976. // Creation date and time of the SMS signature.
  3977. //
  3978. // example:
  3979. //
  3980. // 2024-06-03 10:02:34
  3981. CreateDate *string `json:"CreateDate,omitempty" xml:"CreateDate,omitempty"`
  3982. // 更多资料信息,补充上传业务证明文件或业务截图文件列表。
  3983. FileUrlList []*string `json:"FileUrlList,omitempty" xml:"FileUrlList,omitempty" type:"Repeated"`
  3984. // Description of the status code.
  3985. //
  3986. // example:
  3987. //
  3988. // OK
  3989. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  3990. // Work order number.
  3991. //
  3992. // Used by reviewers when querying the review. You need to provide this work order number if you require expedited review.
  3993. //
  3994. // example:
  3995. //
  3996. // 20044156924
  3997. OrderId *string `json:"OrderId,omitempty" xml:"OrderId,omitempty"`
  3998. // Credential ID, the credential ID associated when applying for the signature.
  3999. //
  4000. // example:
  4001. //
  4002. // 2004393****
  4003. QualificationId *int64 `json:"QualificationId,omitempty" xml:"QualificationId,omitempty"`
  4004. RegisterResult *int32 `json:"RegisterResult,omitempty" xml:"RegisterResult,omitempty"`
  4005. // Explanation of the SMS signature scenario, with a maximum length of 200 characters.
  4006. //
  4007. // example:
  4008. //
  4009. // Send verification code text message during login.
  4010. Remark *string `json:"Remark,omitempty" xml:"Remark,omitempty"`
  4011. // The ID of this call request, which is a unique identifier generated by Alibaba Cloud for the request and can be used for troubleshooting and issue localization.
  4012. //
  4013. // example:
  4014. //
  4015. // F655A8D5-B967-440B-8683-DAD6FF8DE990
  4016. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  4017. // SMS signature code.
  4018. //
  4019. // example:
  4020. //
  4021. // SIGN_100000077042023_17174665*****_ZM2kG
  4022. SignCode *string `json:"SignCode,omitempty" xml:"SignCode,omitempty"`
  4023. // SMS signature name.
  4024. //
  4025. // example:
  4026. //
  4027. // Aliyun
  4028. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  4029. // Signature review status. Values:
  4030. //
  4031. // - **0**: Under review.
  4032. //
  4033. // - **1**: Approved.
  4034. //
  4035. // - **2**: Review failed, please check the Reason parameter for the failure cause.
  4036. //
  4037. // - **10**: Review canceled.
  4038. //
  4039. // example:
  4040. //
  4041. // 2
  4042. SignStatus *int64 `json:"SignStatus,omitempty" xml:"SignStatus,omitempty"`
  4043. // Signature tag indicating whether the signature is user-defined, system-provided, test, or trial. Values:
  4044. //
  4045. // - 2: User-defined signature
  4046. //
  4047. // - 3: System-provided signature
  4048. //
  4049. // - 4: Test signature
  4050. //
  4051. // - 5: Trial signature
  4052. //
  4053. // example:
  4054. //
  4055. // 2
  4056. SignTag *string `json:"SignTag,omitempty" xml:"SignTag,omitempty"`
  4057. // scenarios for using signatures.
  4058. //
  4059. // example:
  4060. //
  4061. // App.
  4062. SignUsage *string `json:"SignUsage,omitempty" xml:"SignUsage,omitempty"`
  4063. // Signature usage indication—self-use or third-party use.
  4064. //
  4065. // - false: Self-use (default)
  4066. //
  4067. // - true: Third-party use
  4068. //
  4069. // example:
  4070. //
  4071. // false
  4072. ThirdParty *bool `json:"ThirdParty,omitempty" xml:"ThirdParty,omitempty"`
  4073. }
  4074. func (s GetSmsSignResponseBody) String() string {
  4075. return tea.Prettify(s)
  4076. }
  4077. func (s GetSmsSignResponseBody) GoString() string {
  4078. return s.String()
  4079. }
  4080. func (s *GetSmsSignResponseBody) SetApplyScene(v string) *GetSmsSignResponseBody {
  4081. s.ApplyScene = &v
  4082. return s
  4083. }
  4084. func (s *GetSmsSignResponseBody) SetAuditInfo(v *GetSmsSignResponseBodyAuditInfo) *GetSmsSignResponseBody {
  4085. s.AuditInfo = v
  4086. return s
  4087. }
  4088. func (s *GetSmsSignResponseBody) SetCode(v string) *GetSmsSignResponseBody {
  4089. s.Code = &v
  4090. return s
  4091. }
  4092. func (s *GetSmsSignResponseBody) SetCreateDate(v string) *GetSmsSignResponseBody {
  4093. s.CreateDate = &v
  4094. return s
  4095. }
  4096. func (s *GetSmsSignResponseBody) SetFileUrlList(v []*string) *GetSmsSignResponseBody {
  4097. s.FileUrlList = v
  4098. return s
  4099. }
  4100. func (s *GetSmsSignResponseBody) SetMessage(v string) *GetSmsSignResponseBody {
  4101. s.Message = &v
  4102. return s
  4103. }
  4104. func (s *GetSmsSignResponseBody) SetOrderId(v string) *GetSmsSignResponseBody {
  4105. s.OrderId = &v
  4106. return s
  4107. }
  4108. func (s *GetSmsSignResponseBody) SetQualificationId(v int64) *GetSmsSignResponseBody {
  4109. s.QualificationId = &v
  4110. return s
  4111. }
  4112. func (s *GetSmsSignResponseBody) SetRegisterResult(v int32) *GetSmsSignResponseBody {
  4113. s.RegisterResult = &v
  4114. return s
  4115. }
  4116. func (s *GetSmsSignResponseBody) SetRemark(v string) *GetSmsSignResponseBody {
  4117. s.Remark = &v
  4118. return s
  4119. }
  4120. func (s *GetSmsSignResponseBody) SetRequestId(v string) *GetSmsSignResponseBody {
  4121. s.RequestId = &v
  4122. return s
  4123. }
  4124. func (s *GetSmsSignResponseBody) SetSignCode(v string) *GetSmsSignResponseBody {
  4125. s.SignCode = &v
  4126. return s
  4127. }
  4128. func (s *GetSmsSignResponseBody) SetSignName(v string) *GetSmsSignResponseBody {
  4129. s.SignName = &v
  4130. return s
  4131. }
  4132. func (s *GetSmsSignResponseBody) SetSignStatus(v int64) *GetSmsSignResponseBody {
  4133. s.SignStatus = &v
  4134. return s
  4135. }
  4136. func (s *GetSmsSignResponseBody) SetSignTag(v string) *GetSmsSignResponseBody {
  4137. s.SignTag = &v
  4138. return s
  4139. }
  4140. func (s *GetSmsSignResponseBody) SetSignUsage(v string) *GetSmsSignResponseBody {
  4141. s.SignUsage = &v
  4142. return s
  4143. }
  4144. func (s *GetSmsSignResponseBody) SetThirdParty(v bool) *GetSmsSignResponseBody {
  4145. s.ThirdParty = &v
  4146. return s
  4147. }
  4148. type GetSmsSignResponseBodyAuditInfo struct {
  4149. // Audit date and time.
  4150. //
  4151. // example:
  4152. //
  4153. // 2024-06-03 12:02:34
  4154. AuditDate *string `json:"AuditDate,omitempty" xml:"AuditDate,omitempty"`
  4155. // Reasons for not passing the review.
  4156. //
  4157. // example:
  4158. //
  4159. // reason for rejection.
  4160. RejectInfo *string `json:"RejectInfo,omitempty" xml:"RejectInfo,omitempty"`
  4161. }
  4162. func (s GetSmsSignResponseBodyAuditInfo) String() string {
  4163. return tea.Prettify(s)
  4164. }
  4165. func (s GetSmsSignResponseBodyAuditInfo) GoString() string {
  4166. return s.String()
  4167. }
  4168. func (s *GetSmsSignResponseBodyAuditInfo) SetAuditDate(v string) *GetSmsSignResponseBodyAuditInfo {
  4169. s.AuditDate = &v
  4170. return s
  4171. }
  4172. func (s *GetSmsSignResponseBodyAuditInfo) SetRejectInfo(v string) *GetSmsSignResponseBodyAuditInfo {
  4173. s.RejectInfo = &v
  4174. return s
  4175. }
  4176. type GetSmsSignResponse struct {
  4177. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  4178. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  4179. Body *GetSmsSignResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  4180. }
  4181. func (s GetSmsSignResponse) String() string {
  4182. return tea.Prettify(s)
  4183. }
  4184. func (s GetSmsSignResponse) GoString() string {
  4185. return s.String()
  4186. }
  4187. func (s *GetSmsSignResponse) SetHeaders(v map[string]*string) *GetSmsSignResponse {
  4188. s.Headers = v
  4189. return s
  4190. }
  4191. func (s *GetSmsSignResponse) SetStatusCode(v int32) *GetSmsSignResponse {
  4192. s.StatusCode = &v
  4193. return s
  4194. }
  4195. func (s *GetSmsSignResponse) SetBody(v *GetSmsSignResponseBody) *GetSmsSignResponse {
  4196. s.Body = v
  4197. return s
  4198. }
  4199. type GetSmsTemplateRequest struct {
  4200. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  4201. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  4202. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  4203. // SMS template code.
  4204. //
  4205. // - Obtain the SMS template code from the return parameters of the [CreateSmsTemplate](https://help.aliyun.com/zh/sms/developer-reference/api-dysmsapi-2017-05-25-createsmstemplate?spm) API.
  4206. //
  4207. // - View the SMS template code on the [Template Management](https://dysms.console.aliyun.com/domestic/text/template) page.
  4208. //
  4209. // This parameter is required.
  4210. //
  4211. // example:
  4212. //
  4213. // SMS_20375****
  4214. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  4215. }
  4216. func (s GetSmsTemplateRequest) String() string {
  4217. return tea.Prettify(s)
  4218. }
  4219. func (s GetSmsTemplateRequest) GoString() string {
  4220. return s.String()
  4221. }
  4222. func (s *GetSmsTemplateRequest) SetOwnerId(v int64) *GetSmsTemplateRequest {
  4223. s.OwnerId = &v
  4224. return s
  4225. }
  4226. func (s *GetSmsTemplateRequest) SetResourceOwnerAccount(v string) *GetSmsTemplateRequest {
  4227. s.ResourceOwnerAccount = &v
  4228. return s
  4229. }
  4230. func (s *GetSmsTemplateRequest) SetResourceOwnerId(v int64) *GetSmsTemplateRequest {
  4231. s.ResourceOwnerId = &v
  4232. return s
  4233. }
  4234. func (s *GetSmsTemplateRequest) SetTemplateCode(v string) *GetSmsTemplateRequest {
  4235. s.TemplateCode = &v
  4236. return s
  4237. }
  4238. type GetSmsTemplateResponseBody struct {
  4239. // Application scenario content.
  4240. //
  4241. // example:
  4242. //
  4243. // http://www.aliyun.com/
  4244. ApplyScene *string `json:"ApplyScene,omitempty" xml:"ApplyScene,omitempty"`
  4245. // Audit information.
  4246. AuditInfo *GetSmsTemplateResponseBodyAuditInfo `json:"AuditInfo,omitempty" xml:"AuditInfo,omitempty" type:"Struct"`
  4247. // Request status code.
  4248. //
  4249. // - OK indicates a successful request.
  4250. //
  4251. // - For other error codes, please refer to [API Error Codes](https://help.aliyun.com/document_detail/101346.html).
  4252. //
  4253. // example:
  4254. //
  4255. // OK
  4256. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  4257. // The time when the SMS template was created.
  4258. //
  4259. // example:
  4260. //
  4261. // 2024-06-03 10:02:34
  4262. CreateDate *string `json:"CreateDate,omitempty" xml:"CreateDate,omitempty"`
  4263. // File information, compatible with signatures created by the [AddSmsSign](https://help.aliyun.com/zh/sms/developer-reference/api-dysmsapi-2017-05-25-addsmstemplate?spm) API.
  4264. FileUrlList *GetSmsTemplateResponseBodyFileUrlList `json:"FileUrlList,omitempty" xml:"FileUrlList,omitempty" type:"Struct"`
  4265. // International/Hong Kong, Macao, and Taiwan template type. When the **TemplateType* - parameter is **3**, this parameter is required for international/Hong Kong, Macao, and Taiwan templates, with values:
  4266. //
  4267. // - **0**: Verification code.
  4268. //
  4269. // - **1**: SMS notification.
  4270. //
  4271. // - **2**: Promotional SMS.
  4272. //
  4273. // example:
  4274. //
  4275. // 0
  4276. IntlType *int32 `json:"IntlType,omitempty" xml:"IntlType,omitempty"`
  4277. // Description of the status code.
  4278. //
  4279. // example:
  4280. //
  4281. // OK
  4282. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  4283. // Additional documentation information, supplementing uploaded business proof files or operational screenshots file list.
  4284. MoreDataFileUrlList *GetSmsTemplateResponseBodyMoreDataFileUrlList `json:"MoreDataFileUrlList,omitempty" xml:"MoreDataFileUrlList,omitempty" type:"Struct"`
  4285. // Work order number.
  4286. //
  4287. // This parameter is used by auditors when querying the audit. You need to provide this work order number when requesting expedited review.
  4288. //
  4289. // example:
  4290. //
  4291. // 2003019****
  4292. OrderId *string `json:"OrderId,omitempty" xml:"OrderId,omitempty"`
  4293. // The SMS signature associated with the template when applied.
  4294. //
  4295. // example:
  4296. //
  4297. // 阿里云
  4298. RelatedSignName *string `json:"RelatedSignName,omitempty" xml:"RelatedSignName,omitempty"`
  4299. // Explanation for the SMS template application, which is one of the reference information for template review.
  4300. //
  4301. // example:
  4302. //
  4303. // 申请验证码模板
  4304. Remark *string `json:"Remark,omitempty" xml:"Remark,omitempty"`
  4305. // The ID of this call request, which is a unique identifier generated by Alibaba Cloud for the request and can be used for troubleshooting and issue定位.
  4306. //
  4307. // example:
  4308. //
  4309. // 819BE656-D2E0-4858-8B21-B2E47708****
  4310. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  4311. // SMS template code.
  4312. //
  4313. // example:
  4314. //
  4315. // SMS_20375****
  4316. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  4317. // Content of the SMS template.
  4318. //
  4319. // example:
  4320. //
  4321. // 您正在申请手机注册,验证码为:${code},5分钟内有效!
  4322. TemplateContent *string `json:"TemplateContent,omitempty" xml:"TemplateContent,omitempty"`
  4323. // Name of the SMS template.
  4324. //
  4325. // example:
  4326. //
  4327. // 验证码
  4328. TemplateName *string `json:"TemplateName,omitempty" xml:"TemplateName,omitempty"`
  4329. // Template review status. Return values:
  4330. //
  4331. // - **0**: Under review.
  4332. //
  4333. // - **1**: Approved.
  4334. //
  4335. // - **2**: Not approved, with reasons for failure returned. Please refer to [Handling Suggestions for Failed SMS Reviews](https://help.aliyun.com/zh/sms/user-guide/causes-of-application-failures-and-suggestions?spm=a2c4g.11186623.0.0.41fd339f3bPSCQ), invoke the [UpdateSmsTemplate](https://help.aliyun.com/zh/sms/developer-reference/api-dysmsapi-2017-05-25-updatesmstemplate?spm) API or modify the SMS template on the [Template Management](https://dysms.console.aliyun.com/domestic/text/template) page.
  4336. //
  4337. // - **10**: Review canceled.
  4338. //
  4339. // example:
  4340. //
  4341. // 2
  4342. TemplateStatus *string `json:"TemplateStatus,omitempty" xml:"TemplateStatus,omitempty"`
  4343. // Template identifier, indicating whether the template is user-defined or system-provided. Values:
  4344. //
  4345. // - **2**: User-defined template.
  4346. //
  4347. // - **3**: System-provided template.
  4348. //
  4349. // example:
  4350. //
  4351. // 2
  4352. TemplateTag *int32 `json:"TemplateTag,omitempty" xml:"TemplateTag,omitempty"`
  4353. // SMS type. Values:
  4354. //
  4355. // - **0**: Verification code.
  4356. //
  4357. // - **1**: SMS notification.
  4358. //
  4359. // - **2**: Promotional SMS.
  4360. //
  4361. // - **3**: International/Hong Kong, Macao, and Taiwan messages.
  4362. //
  4363. // > Only enterprise-certified users can apply for promotional SMS and international/Hong Kong, Macao, and Taiwan messages. For details on the differences between personal and enterprise user rights, please refer to [Usage Notes](https://help.aliyun.com/zh/sms/user-guide/usage-notes?spm=a2c4g.11186623.0.0.67447f576NJnE8).
  4364. //
  4365. // example:
  4366. //
  4367. // 0
  4368. TemplateType *string `json:"TemplateType,omitempty" xml:"TemplateType,omitempty"`
  4369. // Template variable rules.
  4370. //
  4371. // For detailed rules of template variables, refer to the [Example Document](https://help.aliyun.com/zh/sms/templaterule-template-variable-parameter-filling-example).
  4372. //
  4373. // example:
  4374. //
  4375. // {"code":"characterWithNumber"}
  4376. VariableAttribute *string `json:"VariableAttribute,omitempty" xml:"VariableAttribute,omitempty"`
  4377. VendorAuditStatus map[string]interface{} `json:"VendorAuditStatus,omitempty" xml:"VendorAuditStatus,omitempty"`
  4378. }
  4379. func (s GetSmsTemplateResponseBody) String() string {
  4380. return tea.Prettify(s)
  4381. }
  4382. func (s GetSmsTemplateResponseBody) GoString() string {
  4383. return s.String()
  4384. }
  4385. func (s *GetSmsTemplateResponseBody) SetApplyScene(v string) *GetSmsTemplateResponseBody {
  4386. s.ApplyScene = &v
  4387. return s
  4388. }
  4389. func (s *GetSmsTemplateResponseBody) SetAuditInfo(v *GetSmsTemplateResponseBodyAuditInfo) *GetSmsTemplateResponseBody {
  4390. s.AuditInfo = v
  4391. return s
  4392. }
  4393. func (s *GetSmsTemplateResponseBody) SetCode(v string) *GetSmsTemplateResponseBody {
  4394. s.Code = &v
  4395. return s
  4396. }
  4397. func (s *GetSmsTemplateResponseBody) SetCreateDate(v string) *GetSmsTemplateResponseBody {
  4398. s.CreateDate = &v
  4399. return s
  4400. }
  4401. func (s *GetSmsTemplateResponseBody) SetFileUrlList(v *GetSmsTemplateResponseBodyFileUrlList) *GetSmsTemplateResponseBody {
  4402. s.FileUrlList = v
  4403. return s
  4404. }
  4405. func (s *GetSmsTemplateResponseBody) SetIntlType(v int32) *GetSmsTemplateResponseBody {
  4406. s.IntlType = &v
  4407. return s
  4408. }
  4409. func (s *GetSmsTemplateResponseBody) SetMessage(v string) *GetSmsTemplateResponseBody {
  4410. s.Message = &v
  4411. return s
  4412. }
  4413. func (s *GetSmsTemplateResponseBody) SetMoreDataFileUrlList(v *GetSmsTemplateResponseBodyMoreDataFileUrlList) *GetSmsTemplateResponseBody {
  4414. s.MoreDataFileUrlList = v
  4415. return s
  4416. }
  4417. func (s *GetSmsTemplateResponseBody) SetOrderId(v string) *GetSmsTemplateResponseBody {
  4418. s.OrderId = &v
  4419. return s
  4420. }
  4421. func (s *GetSmsTemplateResponseBody) SetRelatedSignName(v string) *GetSmsTemplateResponseBody {
  4422. s.RelatedSignName = &v
  4423. return s
  4424. }
  4425. func (s *GetSmsTemplateResponseBody) SetRemark(v string) *GetSmsTemplateResponseBody {
  4426. s.Remark = &v
  4427. return s
  4428. }
  4429. func (s *GetSmsTemplateResponseBody) SetRequestId(v string) *GetSmsTemplateResponseBody {
  4430. s.RequestId = &v
  4431. return s
  4432. }
  4433. func (s *GetSmsTemplateResponseBody) SetTemplateCode(v string) *GetSmsTemplateResponseBody {
  4434. s.TemplateCode = &v
  4435. return s
  4436. }
  4437. func (s *GetSmsTemplateResponseBody) SetTemplateContent(v string) *GetSmsTemplateResponseBody {
  4438. s.TemplateContent = &v
  4439. return s
  4440. }
  4441. func (s *GetSmsTemplateResponseBody) SetTemplateName(v string) *GetSmsTemplateResponseBody {
  4442. s.TemplateName = &v
  4443. return s
  4444. }
  4445. func (s *GetSmsTemplateResponseBody) SetTemplateStatus(v string) *GetSmsTemplateResponseBody {
  4446. s.TemplateStatus = &v
  4447. return s
  4448. }
  4449. func (s *GetSmsTemplateResponseBody) SetTemplateTag(v int32) *GetSmsTemplateResponseBody {
  4450. s.TemplateTag = &v
  4451. return s
  4452. }
  4453. func (s *GetSmsTemplateResponseBody) SetTemplateType(v string) *GetSmsTemplateResponseBody {
  4454. s.TemplateType = &v
  4455. return s
  4456. }
  4457. func (s *GetSmsTemplateResponseBody) SetVariableAttribute(v string) *GetSmsTemplateResponseBody {
  4458. s.VariableAttribute = &v
  4459. return s
  4460. }
  4461. func (s *GetSmsTemplateResponseBody) SetVendorAuditStatus(v map[string]interface{}) *GetSmsTemplateResponseBody {
  4462. s.VendorAuditStatus = v
  4463. return s
  4464. }
  4465. type GetSmsTemplateResponseBodyAuditInfo struct {
  4466. // Audit date and time.
  4467. //
  4468. // example:
  4469. //
  4470. // 2024-06-03 11:20:34
  4471. AuditDate *string `json:"AuditDate,omitempty" xml:"AuditDate,omitempty"`
  4472. // Reasons for failed audit.
  4473. //
  4474. // example:
  4475. //
  4476. // 模板内容中包含错别字。
  4477. RejectInfo *string `json:"RejectInfo,omitempty" xml:"RejectInfo,omitempty"`
  4478. }
  4479. func (s GetSmsTemplateResponseBodyAuditInfo) String() string {
  4480. return tea.Prettify(s)
  4481. }
  4482. func (s GetSmsTemplateResponseBodyAuditInfo) GoString() string {
  4483. return s.String()
  4484. }
  4485. func (s *GetSmsTemplateResponseBodyAuditInfo) SetAuditDate(v string) *GetSmsTemplateResponseBodyAuditInfo {
  4486. s.AuditDate = &v
  4487. return s
  4488. }
  4489. func (s *GetSmsTemplateResponseBodyAuditInfo) SetRejectInfo(v string) *GetSmsTemplateResponseBodyAuditInfo {
  4490. s.RejectInfo = &v
  4491. return s
  4492. }
  4493. type GetSmsTemplateResponseBodyFileUrlList struct {
  4494. FileUrl []*string `json:"FileUrl,omitempty" xml:"FileUrl,omitempty" type:"Repeated"`
  4495. }
  4496. func (s GetSmsTemplateResponseBodyFileUrlList) String() string {
  4497. return tea.Prettify(s)
  4498. }
  4499. func (s GetSmsTemplateResponseBodyFileUrlList) GoString() string {
  4500. return s.String()
  4501. }
  4502. func (s *GetSmsTemplateResponseBodyFileUrlList) SetFileUrl(v []*string) *GetSmsTemplateResponseBodyFileUrlList {
  4503. s.FileUrl = v
  4504. return s
  4505. }
  4506. type GetSmsTemplateResponseBodyMoreDataFileUrlList struct {
  4507. MoreDataFileUrl []*string `json:"MoreDataFileUrl,omitempty" xml:"MoreDataFileUrl,omitempty" type:"Repeated"`
  4508. }
  4509. func (s GetSmsTemplateResponseBodyMoreDataFileUrlList) String() string {
  4510. return tea.Prettify(s)
  4511. }
  4512. func (s GetSmsTemplateResponseBodyMoreDataFileUrlList) GoString() string {
  4513. return s.String()
  4514. }
  4515. func (s *GetSmsTemplateResponseBodyMoreDataFileUrlList) SetMoreDataFileUrl(v []*string) *GetSmsTemplateResponseBodyMoreDataFileUrlList {
  4516. s.MoreDataFileUrl = v
  4517. return s
  4518. }
  4519. type GetSmsTemplateResponse struct {
  4520. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  4521. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  4522. Body *GetSmsTemplateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  4523. }
  4524. func (s GetSmsTemplateResponse) String() string {
  4525. return tea.Prettify(s)
  4526. }
  4527. func (s GetSmsTemplateResponse) GoString() string {
  4528. return s.String()
  4529. }
  4530. func (s *GetSmsTemplateResponse) SetHeaders(v map[string]*string) *GetSmsTemplateResponse {
  4531. s.Headers = v
  4532. return s
  4533. }
  4534. func (s *GetSmsTemplateResponse) SetStatusCode(v int32) *GetSmsTemplateResponse {
  4535. s.StatusCode = &v
  4536. return s
  4537. }
  4538. func (s *GetSmsTemplateResponse) SetBody(v *GetSmsTemplateResponseBody) *GetSmsTemplateResponse {
  4539. s.Body = v
  4540. return s
  4541. }
  4542. type ListTagResourcesRequest struct {
  4543. // The token used to query the next page.
  4544. //
  4545. // example:
  4546. //
  4547. // 23432453245
  4548. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
  4549. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  4550. // The number of entries per page.
  4551. //
  4552. // example:
  4553. //
  4554. // 20
  4555. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
  4556. // The name of the cloud service. Set the value to **dysms**.
  4557. //
  4558. // example:
  4559. //
  4560. // dysms
  4561. ProdCode *string `json:"ProdCode,omitempty" xml:"ProdCode,omitempty"`
  4562. // The region ID. Set the value to **cn-hangzhou**.
  4563. //
  4564. // This parameter is required.
  4565. //
  4566. // example:
  4567. //
  4568. // cn-hangzhou
  4569. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"`
  4570. // The code of the message template. Specify either the Tag or the ResourceId parameter.
  4571. //
  4572. // example:
  4573. //
  4574. // SMS_23423423
  4575. ResourceId []*string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty" type:"Repeated"`
  4576. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  4577. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  4578. // The type of the resource. Set the value to TEMPLATE.
  4579. //
  4580. // This parameter is required.
  4581. //
  4582. // example:
  4583. //
  4584. // TEMPLATE
  4585. ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
  4586. // The tag list. Specify either the Tag or the ResourceId parameter. You can specify a maximum of 20 tags.
  4587. Tag []*ListTagResourcesRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"`
  4588. }
  4589. func (s ListTagResourcesRequest) String() string {
  4590. return tea.Prettify(s)
  4591. }
  4592. func (s ListTagResourcesRequest) GoString() string {
  4593. return s.String()
  4594. }
  4595. func (s *ListTagResourcesRequest) SetNextToken(v string) *ListTagResourcesRequest {
  4596. s.NextToken = &v
  4597. return s
  4598. }
  4599. func (s *ListTagResourcesRequest) SetOwnerId(v int64) *ListTagResourcesRequest {
  4600. s.OwnerId = &v
  4601. return s
  4602. }
  4603. func (s *ListTagResourcesRequest) SetPageSize(v int32) *ListTagResourcesRequest {
  4604. s.PageSize = &v
  4605. return s
  4606. }
  4607. func (s *ListTagResourcesRequest) SetProdCode(v string) *ListTagResourcesRequest {
  4608. s.ProdCode = &v
  4609. return s
  4610. }
  4611. func (s *ListTagResourcesRequest) SetRegionId(v string) *ListTagResourcesRequest {
  4612. s.RegionId = &v
  4613. return s
  4614. }
  4615. func (s *ListTagResourcesRequest) SetResourceId(v []*string) *ListTagResourcesRequest {
  4616. s.ResourceId = v
  4617. return s
  4618. }
  4619. func (s *ListTagResourcesRequest) SetResourceOwnerAccount(v string) *ListTagResourcesRequest {
  4620. s.ResourceOwnerAccount = &v
  4621. return s
  4622. }
  4623. func (s *ListTagResourcesRequest) SetResourceOwnerId(v int64) *ListTagResourcesRequest {
  4624. s.ResourceOwnerId = &v
  4625. return s
  4626. }
  4627. func (s *ListTagResourcesRequest) SetResourceType(v string) *ListTagResourcesRequest {
  4628. s.ResourceType = &v
  4629. return s
  4630. }
  4631. func (s *ListTagResourcesRequest) SetTag(v []*ListTagResourcesRequestTag) *ListTagResourcesRequest {
  4632. s.Tag = v
  4633. return s
  4634. }
  4635. type ListTagResourcesRequestTag struct {
  4636. // The key of the tag.
  4637. //
  4638. // example:
  4639. //
  4640. // TestKey
  4641. Key *string `json:"Key,omitempty" xml:"Key,omitempty"`
  4642. // The value of the tag.
  4643. //
  4644. // example:
  4645. //
  4646. // TestValue
  4647. Value *string `json:"Value,omitempty" xml:"Value,omitempty"`
  4648. }
  4649. func (s ListTagResourcesRequestTag) String() string {
  4650. return tea.Prettify(s)
  4651. }
  4652. func (s ListTagResourcesRequestTag) GoString() string {
  4653. return s.String()
  4654. }
  4655. func (s *ListTagResourcesRequestTag) SetKey(v string) *ListTagResourcesRequestTag {
  4656. s.Key = &v
  4657. return s
  4658. }
  4659. func (s *ListTagResourcesRequestTag) SetValue(v string) *ListTagResourcesRequestTag {
  4660. s.Value = &v
  4661. return s
  4662. }
  4663. type ListTagResourcesResponseBody struct {
  4664. // The response code.
  4665. //
  4666. // - If OK is returned, the request is successful.
  4667. //
  4668. // - Other values indicate that the request fails. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  4669. //
  4670. // example:
  4671. //
  4672. // OK
  4673. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  4674. // The token used to query the next page.
  4675. //
  4676. // example:
  4677. //
  4678. // "23432453245"
  4679. NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"`
  4680. // The request ID.
  4681. //
  4682. // example:
  4683. //
  4684. // A90E4451-FED7-49D2-87C8-00700A8C4D0D
  4685. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  4686. // The list of tags.
  4687. TagResources *ListTagResourcesResponseBodyTagResources `json:"TagResources,omitempty" xml:"TagResources,omitempty" type:"Struct"`
  4688. }
  4689. func (s ListTagResourcesResponseBody) String() string {
  4690. return tea.Prettify(s)
  4691. }
  4692. func (s ListTagResourcesResponseBody) GoString() string {
  4693. return s.String()
  4694. }
  4695. func (s *ListTagResourcesResponseBody) SetCode(v string) *ListTagResourcesResponseBody {
  4696. s.Code = &v
  4697. return s
  4698. }
  4699. func (s *ListTagResourcesResponseBody) SetNextToken(v string) *ListTagResourcesResponseBody {
  4700. s.NextToken = &v
  4701. return s
  4702. }
  4703. func (s *ListTagResourcesResponseBody) SetRequestId(v string) *ListTagResourcesResponseBody {
  4704. s.RequestId = &v
  4705. return s
  4706. }
  4707. func (s *ListTagResourcesResponseBody) SetTagResources(v *ListTagResourcesResponseBodyTagResources) *ListTagResourcesResponseBody {
  4708. s.TagResources = v
  4709. return s
  4710. }
  4711. type ListTagResourcesResponseBodyTagResources struct {
  4712. TagResource []*ListTagResourcesResponseBodyTagResourcesTagResource `json:"TagResource,omitempty" xml:"TagResource,omitempty" type:"Repeated"`
  4713. }
  4714. func (s ListTagResourcesResponseBodyTagResources) String() string {
  4715. return tea.Prettify(s)
  4716. }
  4717. func (s ListTagResourcesResponseBodyTagResources) GoString() string {
  4718. return s.String()
  4719. }
  4720. func (s *ListTagResourcesResponseBodyTagResources) SetTagResource(v []*ListTagResourcesResponseBodyTagResourcesTagResource) *ListTagResourcesResponseBodyTagResources {
  4721. s.TagResource = v
  4722. return s
  4723. }
  4724. type ListTagResourcesResponseBodyTagResourcesTagResource struct {
  4725. // The code of the message template.
  4726. //
  4727. // example:
  4728. //
  4729. // SMS_23423****
  4730. ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"`
  4731. // The type of resource.
  4732. //
  4733. // example:
  4734. //
  4735. // ALIYUN::DYSMS::TEMPLATE
  4736. ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
  4737. // The tag key.
  4738. //
  4739. // example:
  4740. //
  4741. // TestKey
  4742. TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"`
  4743. // The tag value.
  4744. //
  4745. // example:
  4746. //
  4747. // TestValue
  4748. TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"`
  4749. }
  4750. func (s ListTagResourcesResponseBodyTagResourcesTagResource) String() string {
  4751. return tea.Prettify(s)
  4752. }
  4753. func (s ListTagResourcesResponseBodyTagResourcesTagResource) GoString() string {
  4754. return s.String()
  4755. }
  4756. func (s *ListTagResourcesResponseBodyTagResourcesTagResource) SetResourceId(v string) *ListTagResourcesResponseBodyTagResourcesTagResource {
  4757. s.ResourceId = &v
  4758. return s
  4759. }
  4760. func (s *ListTagResourcesResponseBodyTagResourcesTagResource) SetResourceType(v string) *ListTagResourcesResponseBodyTagResourcesTagResource {
  4761. s.ResourceType = &v
  4762. return s
  4763. }
  4764. func (s *ListTagResourcesResponseBodyTagResourcesTagResource) SetTagKey(v string) *ListTagResourcesResponseBodyTagResourcesTagResource {
  4765. s.TagKey = &v
  4766. return s
  4767. }
  4768. func (s *ListTagResourcesResponseBodyTagResourcesTagResource) SetTagValue(v string) *ListTagResourcesResponseBodyTagResourcesTagResource {
  4769. s.TagValue = &v
  4770. return s
  4771. }
  4772. type ListTagResourcesResponse struct {
  4773. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  4774. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  4775. Body *ListTagResourcesResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  4776. }
  4777. func (s ListTagResourcesResponse) String() string {
  4778. return tea.Prettify(s)
  4779. }
  4780. func (s ListTagResourcesResponse) GoString() string {
  4781. return s.String()
  4782. }
  4783. func (s *ListTagResourcesResponse) SetHeaders(v map[string]*string) *ListTagResourcesResponse {
  4784. s.Headers = v
  4785. return s
  4786. }
  4787. func (s *ListTagResourcesResponse) SetStatusCode(v int32) *ListTagResourcesResponse {
  4788. s.StatusCode = &v
  4789. return s
  4790. }
  4791. func (s *ListTagResourcesResponse) SetBody(v *ListTagResourcesResponseBody) *ListTagResourcesResponse {
  4792. s.Body = v
  4793. return s
  4794. }
  4795. type ModifySmsSignRequest struct {
  4796. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  4797. // The scenario description of your released services. Provide the information of your services, such as a website URL, a domain name with an ICP filing, an app download URL, or the name of your WeChat official account or mini program. For sign-in scenarios, you must also provide an account and password for tests. A detailed description can improve the review efficiency of signatures and templates.
  4798. //
  4799. // > The description can be up to 200 characters in length.
  4800. //
  4801. // This parameter is required.
  4802. //
  4803. // example:
  4804. //
  4805. // This is the abbreviation of our company.
  4806. Remark *string `json:"Remark,omitempty" xml:"Remark,omitempty"`
  4807. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  4808. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  4809. // The list of signature files.
  4810. //
  4811. // This parameter is required.
  4812. SignFileList []*ModifySmsSignRequestSignFileList `json:"SignFileList,omitempty" xml:"SignFileList,omitempty" type:"Repeated"`
  4813. // The signature.
  4814. //
  4815. // This parameter is required.
  4816. //
  4817. // example:
  4818. //
  4819. // Aliyun
  4820. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  4821. // The source of the signature. Valid values:
  4822. //
  4823. // - **0**: full name or abbreviation of an enterprise or institution.
  4824. //
  4825. // - **1**: full name or abbreviation of a website with Ministry of Industry and Information Technology (MIIT) filing.
  4826. //
  4827. // - **2**: full name or abbreviation of an app.
  4828. //
  4829. // - **3**: full name or abbreviation of a WeChat official account or applet.
  4830. //
  4831. // - **4**: full name or abbreviation of an e-commerce store.
  4832. //
  4833. // - **5**: full name or abbreviation of a trademark.
  4834. //
  4835. // This parameter is required.
  4836. //
  4837. // example:
  4838. //
  4839. // 1
  4840. SignSource *int32 `json:"SignSource,omitempty" xml:"SignSource,omitempty"`
  4841. // The type of the signature. Valid values:
  4842. //
  4843. // - **0**: verification-code signature
  4844. //
  4845. // - **1**: general-purpose signature
  4846. //
  4847. // example:
  4848. //
  4849. // 1
  4850. SignType *int32 `json:"SignType,omitempty" xml:"SignType,omitempty"`
  4851. }
  4852. func (s ModifySmsSignRequest) String() string {
  4853. return tea.Prettify(s)
  4854. }
  4855. func (s ModifySmsSignRequest) GoString() string {
  4856. return s.String()
  4857. }
  4858. func (s *ModifySmsSignRequest) SetOwnerId(v int64) *ModifySmsSignRequest {
  4859. s.OwnerId = &v
  4860. return s
  4861. }
  4862. func (s *ModifySmsSignRequest) SetRemark(v string) *ModifySmsSignRequest {
  4863. s.Remark = &v
  4864. return s
  4865. }
  4866. func (s *ModifySmsSignRequest) SetResourceOwnerAccount(v string) *ModifySmsSignRequest {
  4867. s.ResourceOwnerAccount = &v
  4868. return s
  4869. }
  4870. func (s *ModifySmsSignRequest) SetResourceOwnerId(v int64) *ModifySmsSignRequest {
  4871. s.ResourceOwnerId = &v
  4872. return s
  4873. }
  4874. func (s *ModifySmsSignRequest) SetSignFileList(v []*ModifySmsSignRequestSignFileList) *ModifySmsSignRequest {
  4875. s.SignFileList = v
  4876. return s
  4877. }
  4878. func (s *ModifySmsSignRequest) SetSignName(v string) *ModifySmsSignRequest {
  4879. s.SignName = &v
  4880. return s
  4881. }
  4882. func (s *ModifySmsSignRequest) SetSignSource(v int32) *ModifySmsSignRequest {
  4883. s.SignSource = &v
  4884. return s
  4885. }
  4886. func (s *ModifySmsSignRequest) SetSignType(v int32) *ModifySmsSignRequest {
  4887. s.SignType = &v
  4888. return s
  4889. }
  4890. type ModifySmsSignRequestSignFileList struct {
  4891. // The base64-encoded string of the signed files. The size of the image cannot exceed 2 MB.
  4892. //
  4893. // In some scenarios, documents are required to prove your identity. For more information, see [Signature specifications](https://help.aliyun.com/document_detail/108076.html).
  4894. //
  4895. // This parameter is required.
  4896. //
  4897. // example:
  4898. //
  4899. // R0lGODlhHAAmAKIHAKqqqsvLy0hISObm5vf394uLiwAA
  4900. FileContents *string `json:"FileContents,omitempty" xml:"FileContents,omitempty"`
  4901. // The format of the documents. You can upload multiple images. JPG, PNG, GIF, and JPEG are supported.
  4902. //
  4903. // In some scenarios, documents are required to prove your identity. For more information, see [Signature specifications](https://help.aliyun.com/document_detail/108076.html).
  4904. //
  4905. // > If the signature is used for other purposes or the signature source is an enterprise or public institution, you must upload some documents and an authorization letter. For more information, see [Documents](https://help.aliyun.com/document_detail/108076.html) and [Letter of authorization](https://help.aliyun.com/document_detail/56741.html).
  4906. //
  4907. // This parameter is required.
  4908. //
  4909. // example:
  4910. //
  4911. // jpg
  4912. FileSuffix *string `json:"FileSuffix,omitempty" xml:"FileSuffix,omitempty"`
  4913. }
  4914. func (s ModifySmsSignRequestSignFileList) String() string {
  4915. return tea.Prettify(s)
  4916. }
  4917. func (s ModifySmsSignRequestSignFileList) GoString() string {
  4918. return s.String()
  4919. }
  4920. func (s *ModifySmsSignRequestSignFileList) SetFileContents(v string) *ModifySmsSignRequestSignFileList {
  4921. s.FileContents = &v
  4922. return s
  4923. }
  4924. func (s *ModifySmsSignRequestSignFileList) SetFileSuffix(v string) *ModifySmsSignRequestSignFileList {
  4925. s.FileSuffix = &v
  4926. return s
  4927. }
  4928. type ModifySmsSignResponseBody struct {
  4929. // The response code.
  4930. //
  4931. // - The value OK indicates that the request was successful.
  4932. //
  4933. // - For more information about other response codes, see [API error codes](https://help.aliyun.com/document_detail/101346.html).
  4934. //
  4935. // example:
  4936. //
  4937. // OK
  4938. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  4939. // The returned message.
  4940. //
  4941. // example:
  4942. //
  4943. // OK
  4944. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  4945. // The request ID.
  4946. //
  4947. // example:
  4948. //
  4949. // F655A8D5-B967-440B-8683-DAD6FF8DE990
  4950. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  4951. // The signature.
  4952. //
  4953. // example:
  4954. //
  4955. // Aliyun
  4956. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  4957. }
  4958. func (s ModifySmsSignResponseBody) String() string {
  4959. return tea.Prettify(s)
  4960. }
  4961. func (s ModifySmsSignResponseBody) GoString() string {
  4962. return s.String()
  4963. }
  4964. func (s *ModifySmsSignResponseBody) SetCode(v string) *ModifySmsSignResponseBody {
  4965. s.Code = &v
  4966. return s
  4967. }
  4968. func (s *ModifySmsSignResponseBody) SetMessage(v string) *ModifySmsSignResponseBody {
  4969. s.Message = &v
  4970. return s
  4971. }
  4972. func (s *ModifySmsSignResponseBody) SetRequestId(v string) *ModifySmsSignResponseBody {
  4973. s.RequestId = &v
  4974. return s
  4975. }
  4976. func (s *ModifySmsSignResponseBody) SetSignName(v string) *ModifySmsSignResponseBody {
  4977. s.SignName = &v
  4978. return s
  4979. }
  4980. type ModifySmsSignResponse struct {
  4981. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  4982. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  4983. Body *ModifySmsSignResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  4984. }
  4985. func (s ModifySmsSignResponse) String() string {
  4986. return tea.Prettify(s)
  4987. }
  4988. func (s ModifySmsSignResponse) GoString() string {
  4989. return s.String()
  4990. }
  4991. func (s *ModifySmsSignResponse) SetHeaders(v map[string]*string) *ModifySmsSignResponse {
  4992. s.Headers = v
  4993. return s
  4994. }
  4995. func (s *ModifySmsSignResponse) SetStatusCode(v int32) *ModifySmsSignResponse {
  4996. s.StatusCode = &v
  4997. return s
  4998. }
  4999. func (s *ModifySmsSignResponse) SetBody(v *ModifySmsSignResponseBody) *ModifySmsSignResponse {
  5000. s.Body = v
  5001. return s
  5002. }
  5003. type ModifySmsTemplateRequest struct {
  5004. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  5005. // The description of the message template. It is one of the reference information for template review. The description cannot exceed 100 characters in length.
  5006. //
  5007. // This parameter is required.
  5008. //
  5009. // example:
  5010. //
  5011. // Modify the parameters of the template.
  5012. Remark *string `json:"Remark,omitempty" xml:"Remark,omitempty"`
  5013. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  5014. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  5015. // The code of the message template.
  5016. //
  5017. // You can log on to the [Short Message Service (SMS) console](https://dysms.console.aliyun.com/dysms.htm), click **Go China* - or **Go Globe* - in the left-side navigation pane, and then view the template code on the **Templates* - tab. You can also call the [AddSmsTemplate](https://help.aliyun.com/document_detail/121208.html) operation to obtain the template code.
  5018. //
  5019. // This parameter is required.
  5020. //
  5021. // example:
  5022. //
  5023. // SMS_15255****
  5024. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  5025. // The content of the template. The content must be 1 to 500 characters in length.
  5026. //
  5027. // > When you modify a template, design the template content based on the review comments.
  5028. //
  5029. // This parameter is required.
  5030. //
  5031. // example:
  5032. //
  5033. // You are applying for mobile registration. The verification code is: ${code}, valid for 5 minutes!
  5034. TemplateContent *string `json:"TemplateContent,omitempty" xml:"TemplateContent,omitempty"`
  5035. // The name of the template. The name must be 1 to 30 characters in length.
  5036. //
  5037. // This parameter is required.
  5038. //
  5039. // example:
  5040. //
  5041. // aliyun verification code
  5042. TemplateName *string `json:"TemplateName,omitempty" xml:"TemplateName,omitempty"`
  5043. // The type of the message. Valid values:
  5044. //
  5045. // - **0**: verification code
  5046. //
  5047. // - **1**: text message
  5048. //
  5049. // - **2**: promotional message
  5050. //
  5051. // - **3**: message sent to countries or regions outside the Chinese mainland
  5052. //
  5053. // This parameter is required.
  5054. //
  5055. // example:
  5056. //
  5057. // 1
  5058. TemplateType *int32 `json:"TemplateType,omitempty" xml:"TemplateType,omitempty"`
  5059. }
  5060. func (s ModifySmsTemplateRequest) String() string {
  5061. return tea.Prettify(s)
  5062. }
  5063. func (s ModifySmsTemplateRequest) GoString() string {
  5064. return s.String()
  5065. }
  5066. func (s *ModifySmsTemplateRequest) SetOwnerId(v int64) *ModifySmsTemplateRequest {
  5067. s.OwnerId = &v
  5068. return s
  5069. }
  5070. func (s *ModifySmsTemplateRequest) SetRemark(v string) *ModifySmsTemplateRequest {
  5071. s.Remark = &v
  5072. return s
  5073. }
  5074. func (s *ModifySmsTemplateRequest) SetResourceOwnerAccount(v string) *ModifySmsTemplateRequest {
  5075. s.ResourceOwnerAccount = &v
  5076. return s
  5077. }
  5078. func (s *ModifySmsTemplateRequest) SetResourceOwnerId(v int64) *ModifySmsTemplateRequest {
  5079. s.ResourceOwnerId = &v
  5080. return s
  5081. }
  5082. func (s *ModifySmsTemplateRequest) SetTemplateCode(v string) *ModifySmsTemplateRequest {
  5083. s.TemplateCode = &v
  5084. return s
  5085. }
  5086. func (s *ModifySmsTemplateRequest) SetTemplateContent(v string) *ModifySmsTemplateRequest {
  5087. s.TemplateContent = &v
  5088. return s
  5089. }
  5090. func (s *ModifySmsTemplateRequest) SetTemplateName(v string) *ModifySmsTemplateRequest {
  5091. s.TemplateName = &v
  5092. return s
  5093. }
  5094. func (s *ModifySmsTemplateRequest) SetTemplateType(v int32) *ModifySmsTemplateRequest {
  5095. s.TemplateType = &v
  5096. return s
  5097. }
  5098. type ModifySmsTemplateResponseBody struct {
  5099. // The response code.
  5100. //
  5101. // - The value OK indicates that the request was successful.
  5102. //
  5103. // - Other values indicate that the request failed. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  5104. //
  5105. // example:
  5106. //
  5107. // OK
  5108. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  5109. // The returned message.
  5110. //
  5111. // example:
  5112. //
  5113. // OK
  5114. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  5115. // The request ID.
  5116. //
  5117. // example:
  5118. //
  5119. // F655A8D5-B967-440B-8683-DAD6FF8DE990
  5120. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  5121. // The code of the message template.
  5122. //
  5123. // example:
  5124. //
  5125. // SMS_15255****
  5126. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  5127. }
  5128. func (s ModifySmsTemplateResponseBody) String() string {
  5129. return tea.Prettify(s)
  5130. }
  5131. func (s ModifySmsTemplateResponseBody) GoString() string {
  5132. return s.String()
  5133. }
  5134. func (s *ModifySmsTemplateResponseBody) SetCode(v string) *ModifySmsTemplateResponseBody {
  5135. s.Code = &v
  5136. return s
  5137. }
  5138. func (s *ModifySmsTemplateResponseBody) SetMessage(v string) *ModifySmsTemplateResponseBody {
  5139. s.Message = &v
  5140. return s
  5141. }
  5142. func (s *ModifySmsTemplateResponseBody) SetRequestId(v string) *ModifySmsTemplateResponseBody {
  5143. s.RequestId = &v
  5144. return s
  5145. }
  5146. func (s *ModifySmsTemplateResponseBody) SetTemplateCode(v string) *ModifySmsTemplateResponseBody {
  5147. s.TemplateCode = &v
  5148. return s
  5149. }
  5150. type ModifySmsTemplateResponse struct {
  5151. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  5152. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  5153. Body *ModifySmsTemplateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  5154. }
  5155. func (s ModifySmsTemplateResponse) String() string {
  5156. return tea.Prettify(s)
  5157. }
  5158. func (s ModifySmsTemplateResponse) GoString() string {
  5159. return s.String()
  5160. }
  5161. func (s *ModifySmsTemplateResponse) SetHeaders(v map[string]*string) *ModifySmsTemplateResponse {
  5162. s.Headers = v
  5163. return s
  5164. }
  5165. func (s *ModifySmsTemplateResponse) SetStatusCode(v int32) *ModifySmsTemplateResponse {
  5166. s.StatusCode = &v
  5167. return s
  5168. }
  5169. func (s *ModifySmsTemplateResponse) SetBody(v *ModifySmsTemplateResponseBody) *ModifySmsTemplateResponse {
  5170. s.Body = v
  5171. return s
  5172. }
  5173. type QueryCardSmsTemplateRequest struct {
  5174. // The code of the message template.
  5175. //
  5176. // You can view the template code in the **Template Code* - column on the **Templates* - tab of the **Go China* - page in the Alibaba Cloud SMS console.
  5177. //
  5178. // > Make sure that the message template has been approved.
  5179. //
  5180. // This parameter is required.
  5181. //
  5182. // example:
  5183. //
  5184. // CARD_SMS_4139
  5185. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  5186. }
  5187. func (s QueryCardSmsTemplateRequest) String() string {
  5188. return tea.Prettify(s)
  5189. }
  5190. func (s QueryCardSmsTemplateRequest) GoString() string {
  5191. return s.String()
  5192. }
  5193. func (s *QueryCardSmsTemplateRequest) SetTemplateCode(v string) *QueryCardSmsTemplateRequest {
  5194. s.TemplateCode = &v
  5195. return s
  5196. }
  5197. type QueryCardSmsTemplateResponseBody struct {
  5198. // The HTTP status code.
  5199. //
  5200. // - The value OK indicates that the request was successful.
  5201. //
  5202. // - For more information about other response codes, see [API error codes](https://help.aliyun.com/document_detail/101346.html).
  5203. //
  5204. // example:
  5205. //
  5206. // OK
  5207. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  5208. // The data returned.
  5209. Data *QueryCardSmsTemplateResponseBodyData `json:"Data,omitempty" xml:"Data,omitempty" type:"Struct"`
  5210. // The request ID.
  5211. //
  5212. // example:
  5213. //
  5214. // F655A8D5-B967-440B-8683-DAD6FF8DE990
  5215. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  5216. // Indicates whether the request is successful. Valid values:
  5217. //
  5218. // - **true**
  5219. //
  5220. // - **false**
  5221. //
  5222. // example:
  5223. //
  5224. // true
  5225. Success *bool `json:"Success,omitempty" xml:"Success,omitempty"`
  5226. }
  5227. func (s QueryCardSmsTemplateResponseBody) String() string {
  5228. return tea.Prettify(s)
  5229. }
  5230. func (s QueryCardSmsTemplateResponseBody) GoString() string {
  5231. return s.String()
  5232. }
  5233. func (s *QueryCardSmsTemplateResponseBody) SetCode(v string) *QueryCardSmsTemplateResponseBody {
  5234. s.Code = &v
  5235. return s
  5236. }
  5237. func (s *QueryCardSmsTemplateResponseBody) SetData(v *QueryCardSmsTemplateResponseBodyData) *QueryCardSmsTemplateResponseBody {
  5238. s.Data = v
  5239. return s
  5240. }
  5241. func (s *QueryCardSmsTemplateResponseBody) SetRequestId(v string) *QueryCardSmsTemplateResponseBody {
  5242. s.RequestId = &v
  5243. return s
  5244. }
  5245. func (s *QueryCardSmsTemplateResponseBody) SetSuccess(v bool) *QueryCardSmsTemplateResponseBody {
  5246. s.Success = &v
  5247. return s
  5248. }
  5249. type QueryCardSmsTemplateResponseBodyData struct {
  5250. // The array of objects.
  5251. Templates []map[string]interface{} `json:"Templates,omitempty" xml:"Templates,omitempty" type:"Repeated"`
  5252. }
  5253. func (s QueryCardSmsTemplateResponseBodyData) String() string {
  5254. return tea.Prettify(s)
  5255. }
  5256. func (s QueryCardSmsTemplateResponseBodyData) GoString() string {
  5257. return s.String()
  5258. }
  5259. func (s *QueryCardSmsTemplateResponseBodyData) SetTemplates(v []map[string]interface{}) *QueryCardSmsTemplateResponseBodyData {
  5260. s.Templates = v
  5261. return s
  5262. }
  5263. type QueryCardSmsTemplateResponse struct {
  5264. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  5265. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  5266. Body *QueryCardSmsTemplateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  5267. }
  5268. func (s QueryCardSmsTemplateResponse) String() string {
  5269. return tea.Prettify(s)
  5270. }
  5271. func (s QueryCardSmsTemplateResponse) GoString() string {
  5272. return s.String()
  5273. }
  5274. func (s *QueryCardSmsTemplateResponse) SetHeaders(v map[string]*string) *QueryCardSmsTemplateResponse {
  5275. s.Headers = v
  5276. return s
  5277. }
  5278. func (s *QueryCardSmsTemplateResponse) SetStatusCode(v int32) *QueryCardSmsTemplateResponse {
  5279. s.StatusCode = &v
  5280. return s
  5281. }
  5282. func (s *QueryCardSmsTemplateResponse) SetBody(v *QueryCardSmsTemplateResponseBody) *QueryCardSmsTemplateResponse {
  5283. s.Body = v
  5284. return s
  5285. }
  5286. type QueryCardSmsTemplateReportRequest struct {
  5287. // The end of the time range to query. Specify the time in the yyyy-MM-dd HH:mm:ss format.
  5288. //
  5289. // example:
  5290. //
  5291. // 2020-10-11 00:00:01
  5292. EndDate *string `json:"EndDate,omitempty" xml:"EndDate,omitempty"`
  5293. // The beginning of the time range to query. Specify the time in the yyyy-MM-dd HH:mm:ss format.
  5294. //
  5295. // example:
  5296. //
  5297. // 2020-10-10 00:00:01
  5298. StartDate *string `json:"StartDate,omitempty" xml:"StartDate,omitempty"`
  5299. // The array of message templates.
  5300. //
  5301. // This parameter is required.
  5302. TemplateCodes []*string `json:"TemplateCodes,omitempty" xml:"TemplateCodes,omitempty" type:"Repeated"`
  5303. }
  5304. func (s QueryCardSmsTemplateReportRequest) String() string {
  5305. return tea.Prettify(s)
  5306. }
  5307. func (s QueryCardSmsTemplateReportRequest) GoString() string {
  5308. return s.String()
  5309. }
  5310. func (s *QueryCardSmsTemplateReportRequest) SetEndDate(v string) *QueryCardSmsTemplateReportRequest {
  5311. s.EndDate = &v
  5312. return s
  5313. }
  5314. func (s *QueryCardSmsTemplateReportRequest) SetStartDate(v string) *QueryCardSmsTemplateReportRequest {
  5315. s.StartDate = &v
  5316. return s
  5317. }
  5318. func (s *QueryCardSmsTemplateReportRequest) SetTemplateCodes(v []*string) *QueryCardSmsTemplateReportRequest {
  5319. s.TemplateCodes = v
  5320. return s
  5321. }
  5322. type QueryCardSmsTemplateReportResponseBody struct {
  5323. // The HTTP status code.
  5324. //
  5325. // - The value OK indicates that the request was successful.
  5326. //
  5327. // - Other values indicate that the request failed. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  5328. //
  5329. // example:
  5330. //
  5331. // OK
  5332. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  5333. // The data returned.
  5334. Data *QueryCardSmsTemplateReportResponseBodyData `json:"Data,omitempty" xml:"Data,omitempty" type:"Struct"`
  5335. // The request ID.
  5336. //
  5337. // example:
  5338. //
  5339. // CC89A90C-978F-46AC-B80D-54738371E7CA
  5340. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  5341. // Indicates whether the request is successful. Valid values:
  5342. //
  5343. // - **true**
  5344. //
  5345. // - **false**
  5346. //
  5347. // example:
  5348. //
  5349. // true
  5350. Success *bool `json:"Success,omitempty" xml:"Success,omitempty"`
  5351. }
  5352. func (s QueryCardSmsTemplateReportResponseBody) String() string {
  5353. return tea.Prettify(s)
  5354. }
  5355. func (s QueryCardSmsTemplateReportResponseBody) GoString() string {
  5356. return s.String()
  5357. }
  5358. func (s *QueryCardSmsTemplateReportResponseBody) SetCode(v string) *QueryCardSmsTemplateReportResponseBody {
  5359. s.Code = &v
  5360. return s
  5361. }
  5362. func (s *QueryCardSmsTemplateReportResponseBody) SetData(v *QueryCardSmsTemplateReportResponseBodyData) *QueryCardSmsTemplateReportResponseBody {
  5363. s.Data = v
  5364. return s
  5365. }
  5366. func (s *QueryCardSmsTemplateReportResponseBody) SetRequestId(v string) *QueryCardSmsTemplateReportResponseBody {
  5367. s.RequestId = &v
  5368. return s
  5369. }
  5370. func (s *QueryCardSmsTemplateReportResponseBody) SetSuccess(v bool) *QueryCardSmsTemplateReportResponseBody {
  5371. s.Success = &v
  5372. return s
  5373. }
  5374. type QueryCardSmsTemplateReportResponseBodyData struct {
  5375. // The details of the data returned.
  5376. Model []map[string]interface{} `json:"model,omitempty" xml:"model,omitempty" type:"Repeated"`
  5377. }
  5378. func (s QueryCardSmsTemplateReportResponseBodyData) String() string {
  5379. return tea.Prettify(s)
  5380. }
  5381. func (s QueryCardSmsTemplateReportResponseBodyData) GoString() string {
  5382. return s.String()
  5383. }
  5384. func (s *QueryCardSmsTemplateReportResponseBodyData) SetModel(v []map[string]interface{}) *QueryCardSmsTemplateReportResponseBodyData {
  5385. s.Model = v
  5386. return s
  5387. }
  5388. type QueryCardSmsTemplateReportResponse struct {
  5389. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  5390. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  5391. Body *QueryCardSmsTemplateReportResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  5392. }
  5393. func (s QueryCardSmsTemplateReportResponse) String() string {
  5394. return tea.Prettify(s)
  5395. }
  5396. func (s QueryCardSmsTemplateReportResponse) GoString() string {
  5397. return s.String()
  5398. }
  5399. func (s *QueryCardSmsTemplateReportResponse) SetHeaders(v map[string]*string) *QueryCardSmsTemplateReportResponse {
  5400. s.Headers = v
  5401. return s
  5402. }
  5403. func (s *QueryCardSmsTemplateReportResponse) SetStatusCode(v int32) *QueryCardSmsTemplateReportResponse {
  5404. s.StatusCode = &v
  5405. return s
  5406. }
  5407. func (s *QueryCardSmsTemplateReportResponse) SetBody(v *QueryCardSmsTemplateReportResponseBody) *QueryCardSmsTemplateReportResponse {
  5408. s.Body = v
  5409. return s
  5410. }
  5411. type QueryExtCodeSignRequest struct {
  5412. // 扩展码A3
  5413. //
  5414. // example:
  5415. //
  5416. // 01
  5417. ExtCode *string `json:"ExtCode,omitempty" xml:"ExtCode,omitempty"`
  5418. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  5419. // example:
  5420. //
  5421. // 1
  5422. PageNo *int64 `json:"PageNo,omitempty" xml:"PageNo,omitempty"`
  5423. // example:
  5424. //
  5425. // 20
  5426. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
  5427. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  5428. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  5429. // 签名
  5430. //
  5431. // example:
  5432. //
  5433. // 示例值示例值
  5434. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  5435. }
  5436. func (s QueryExtCodeSignRequest) String() string {
  5437. return tea.Prettify(s)
  5438. }
  5439. func (s QueryExtCodeSignRequest) GoString() string {
  5440. return s.String()
  5441. }
  5442. func (s *QueryExtCodeSignRequest) SetExtCode(v string) *QueryExtCodeSignRequest {
  5443. s.ExtCode = &v
  5444. return s
  5445. }
  5446. func (s *QueryExtCodeSignRequest) SetOwnerId(v int64) *QueryExtCodeSignRequest {
  5447. s.OwnerId = &v
  5448. return s
  5449. }
  5450. func (s *QueryExtCodeSignRequest) SetPageNo(v int64) *QueryExtCodeSignRequest {
  5451. s.PageNo = &v
  5452. return s
  5453. }
  5454. func (s *QueryExtCodeSignRequest) SetPageSize(v int64) *QueryExtCodeSignRequest {
  5455. s.PageSize = &v
  5456. return s
  5457. }
  5458. func (s *QueryExtCodeSignRequest) SetResourceOwnerAccount(v string) *QueryExtCodeSignRequest {
  5459. s.ResourceOwnerAccount = &v
  5460. return s
  5461. }
  5462. func (s *QueryExtCodeSignRequest) SetResourceOwnerId(v int64) *QueryExtCodeSignRequest {
  5463. s.ResourceOwnerId = &v
  5464. return s
  5465. }
  5466. func (s *QueryExtCodeSignRequest) SetSignName(v string) *QueryExtCodeSignRequest {
  5467. s.SignName = &v
  5468. return s
  5469. }
  5470. type QueryExtCodeSignResponseBody struct {
  5471. AccessDeniedDetail *string `json:"AccessDeniedDetail,omitempty" xml:"AccessDeniedDetail,omitempty"`
  5472. // example:
  5473. //
  5474. // OK
  5475. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  5476. Data *QueryExtCodeSignResponseBodyData `json:"Data,omitempty" xml:"Data,omitempty" type:"Struct"`
  5477. // example:
  5478. //
  5479. // OK
  5480. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  5481. // example:
  5482. //
  5483. // 90E63D28-E31D-1EB2-8939-A9486641****
  5484. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  5485. // example:
  5486. //
  5487. // true
  5488. Success *bool `json:"Success,omitempty" xml:"Success,omitempty"`
  5489. }
  5490. func (s QueryExtCodeSignResponseBody) String() string {
  5491. return tea.Prettify(s)
  5492. }
  5493. func (s QueryExtCodeSignResponseBody) GoString() string {
  5494. return s.String()
  5495. }
  5496. func (s *QueryExtCodeSignResponseBody) SetAccessDeniedDetail(v string) *QueryExtCodeSignResponseBody {
  5497. s.AccessDeniedDetail = &v
  5498. return s
  5499. }
  5500. func (s *QueryExtCodeSignResponseBody) SetCode(v string) *QueryExtCodeSignResponseBody {
  5501. s.Code = &v
  5502. return s
  5503. }
  5504. func (s *QueryExtCodeSignResponseBody) SetData(v *QueryExtCodeSignResponseBodyData) *QueryExtCodeSignResponseBody {
  5505. s.Data = v
  5506. return s
  5507. }
  5508. func (s *QueryExtCodeSignResponseBody) SetMessage(v string) *QueryExtCodeSignResponseBody {
  5509. s.Message = &v
  5510. return s
  5511. }
  5512. func (s *QueryExtCodeSignResponseBody) SetRequestId(v string) *QueryExtCodeSignResponseBody {
  5513. s.RequestId = &v
  5514. return s
  5515. }
  5516. func (s *QueryExtCodeSignResponseBody) SetSuccess(v bool) *QueryExtCodeSignResponseBody {
  5517. s.Success = &v
  5518. return s
  5519. }
  5520. type QueryExtCodeSignResponseBodyData struct {
  5521. List []*QueryExtCodeSignResponseBodyDataList `json:"List,omitempty" xml:"List,omitempty" type:"Repeated"`
  5522. // example:
  5523. //
  5524. // 1
  5525. PageNo *int64 `json:"PageNo,omitempty" xml:"PageNo,omitempty"`
  5526. // example:
  5527. //
  5528. // 20
  5529. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
  5530. // example:
  5531. //
  5532. // 5
  5533. Total *int64 `json:"Total,omitempty" xml:"Total,omitempty"`
  5534. }
  5535. func (s QueryExtCodeSignResponseBodyData) String() string {
  5536. return tea.Prettify(s)
  5537. }
  5538. func (s QueryExtCodeSignResponseBodyData) GoString() string {
  5539. return s.String()
  5540. }
  5541. func (s *QueryExtCodeSignResponseBodyData) SetList(v []*QueryExtCodeSignResponseBodyDataList) *QueryExtCodeSignResponseBodyData {
  5542. s.List = v
  5543. return s
  5544. }
  5545. func (s *QueryExtCodeSignResponseBodyData) SetPageNo(v int64) *QueryExtCodeSignResponseBodyData {
  5546. s.PageNo = &v
  5547. return s
  5548. }
  5549. func (s *QueryExtCodeSignResponseBodyData) SetPageSize(v int64) *QueryExtCodeSignResponseBodyData {
  5550. s.PageSize = &v
  5551. return s
  5552. }
  5553. func (s *QueryExtCodeSignResponseBodyData) SetTotal(v int64) *QueryExtCodeSignResponseBodyData {
  5554. s.Total = &v
  5555. return s
  5556. }
  5557. type QueryExtCodeSignResponseBodyDataList struct {
  5558. // 是否可回收
  5559. //
  5560. // example:
  5561. //
  5562. // 1
  5563. Active *int64 `json:"Active,omitempty" xml:"Active,omitempty"`
  5564. // 扩展码A3
  5565. //
  5566. // example:
  5567. //
  5568. // 01
  5569. ExtCode *string `json:"ExtCode,omitempty" xml:"ExtCode,omitempty"`
  5570. // 近1个月发送成功条数(只读)
  5571. //
  5572. // example:
  5573. //
  5574. // 69
  5575. SendCount *int64 `json:"SendCount,omitempty" xml:"SendCount,omitempty"`
  5576. // 签名
  5577. //
  5578. // example:
  5579. //
  5580. // 示例值示例值
  5581. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  5582. // 来源
  5583. //
  5584. // example:
  5585. //
  5586. // 示例值示例值示例值
  5587. Source *string `json:"Source,omitempty" xml:"Source,omitempty"`
  5588. }
  5589. func (s QueryExtCodeSignResponseBodyDataList) String() string {
  5590. return tea.Prettify(s)
  5591. }
  5592. func (s QueryExtCodeSignResponseBodyDataList) GoString() string {
  5593. return s.String()
  5594. }
  5595. func (s *QueryExtCodeSignResponseBodyDataList) SetActive(v int64) *QueryExtCodeSignResponseBodyDataList {
  5596. s.Active = &v
  5597. return s
  5598. }
  5599. func (s *QueryExtCodeSignResponseBodyDataList) SetExtCode(v string) *QueryExtCodeSignResponseBodyDataList {
  5600. s.ExtCode = &v
  5601. return s
  5602. }
  5603. func (s *QueryExtCodeSignResponseBodyDataList) SetSendCount(v int64) *QueryExtCodeSignResponseBodyDataList {
  5604. s.SendCount = &v
  5605. return s
  5606. }
  5607. func (s *QueryExtCodeSignResponseBodyDataList) SetSignName(v string) *QueryExtCodeSignResponseBodyDataList {
  5608. s.SignName = &v
  5609. return s
  5610. }
  5611. func (s *QueryExtCodeSignResponseBodyDataList) SetSource(v string) *QueryExtCodeSignResponseBodyDataList {
  5612. s.Source = &v
  5613. return s
  5614. }
  5615. type QueryExtCodeSignResponse struct {
  5616. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  5617. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  5618. Body *QueryExtCodeSignResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  5619. }
  5620. func (s QueryExtCodeSignResponse) String() string {
  5621. return tea.Prettify(s)
  5622. }
  5623. func (s QueryExtCodeSignResponse) GoString() string {
  5624. return s.String()
  5625. }
  5626. func (s *QueryExtCodeSignResponse) SetHeaders(v map[string]*string) *QueryExtCodeSignResponse {
  5627. s.Headers = v
  5628. return s
  5629. }
  5630. func (s *QueryExtCodeSignResponse) SetStatusCode(v int32) *QueryExtCodeSignResponse {
  5631. s.StatusCode = &v
  5632. return s
  5633. }
  5634. func (s *QueryExtCodeSignResponse) SetBody(v *QueryExtCodeSignResponseBody) *QueryExtCodeSignResponse {
  5635. s.Body = v
  5636. return s
  5637. }
  5638. type QueryMobilesCardSupportRequest struct {
  5639. // The list of mobile phone numbers.
  5640. //
  5641. // This parameter is required.
  5642. Mobiles []map[string]interface{} `json:"Mobiles,omitempty" xml:"Mobiles,omitempty" type:"Repeated"`
  5643. // The code of the message template. You can view the template code in the **Template Code* - column on the **Templates* - tab of the **Go China* - page in the Alibaba Cloud SMS console.
  5644. //
  5645. // > Make sure that the message template has been approved.
  5646. //
  5647. // This parameter is required.
  5648. //
  5649. // example:
  5650. //
  5651. // CARD_SMS_0000
  5652. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  5653. }
  5654. func (s QueryMobilesCardSupportRequest) String() string {
  5655. return tea.Prettify(s)
  5656. }
  5657. func (s QueryMobilesCardSupportRequest) GoString() string {
  5658. return s.String()
  5659. }
  5660. func (s *QueryMobilesCardSupportRequest) SetMobiles(v []map[string]interface{}) *QueryMobilesCardSupportRequest {
  5661. s.Mobiles = v
  5662. return s
  5663. }
  5664. func (s *QueryMobilesCardSupportRequest) SetTemplateCode(v string) *QueryMobilesCardSupportRequest {
  5665. s.TemplateCode = &v
  5666. return s
  5667. }
  5668. type QueryMobilesCardSupportShrinkRequest struct {
  5669. // The list of mobile phone numbers.
  5670. //
  5671. // This parameter is required.
  5672. MobilesShrink *string `json:"Mobiles,omitempty" xml:"Mobiles,omitempty"`
  5673. // The code of the message template. You can view the template code in the **Template Code* - column on the **Templates* - tab of the **Go China* - page in the Alibaba Cloud SMS console.
  5674. //
  5675. // > Make sure that the message template has been approved.
  5676. //
  5677. // This parameter is required.
  5678. //
  5679. // example:
  5680. //
  5681. // CARD_SMS_0000
  5682. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  5683. }
  5684. func (s QueryMobilesCardSupportShrinkRequest) String() string {
  5685. return tea.Prettify(s)
  5686. }
  5687. func (s QueryMobilesCardSupportShrinkRequest) GoString() string {
  5688. return s.String()
  5689. }
  5690. func (s *QueryMobilesCardSupportShrinkRequest) SetMobilesShrink(v string) *QueryMobilesCardSupportShrinkRequest {
  5691. s.MobilesShrink = &v
  5692. return s
  5693. }
  5694. func (s *QueryMobilesCardSupportShrinkRequest) SetTemplateCode(v string) *QueryMobilesCardSupportShrinkRequest {
  5695. s.TemplateCode = &v
  5696. return s
  5697. }
  5698. type QueryMobilesCardSupportResponseBody struct {
  5699. // The HTTP status code.
  5700. //
  5701. // - The value OK indicates that the request was successful.
  5702. //
  5703. // - Other values indicate that the request failed. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  5704. //
  5705. // example:
  5706. //
  5707. // OK
  5708. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  5709. // The data returned.
  5710. Data *QueryMobilesCardSupportResponseBodyData `json:"Data,omitempty" xml:"Data,omitempty" type:"Struct"`
  5711. // The request ID.
  5712. //
  5713. // example:
  5714. //
  5715. // 08C17DFE-2E10-54F4-BAFB-7180039CC217
  5716. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  5717. // Indicates whether the request is successful. Valid values:
  5718. //
  5719. // - **true**
  5720. //
  5721. // - **false**
  5722. //
  5723. // example:
  5724. //
  5725. // true
  5726. Success *bool `json:"Success,omitempty" xml:"Success,omitempty"`
  5727. }
  5728. func (s QueryMobilesCardSupportResponseBody) String() string {
  5729. return tea.Prettify(s)
  5730. }
  5731. func (s QueryMobilesCardSupportResponseBody) GoString() string {
  5732. return s.String()
  5733. }
  5734. func (s *QueryMobilesCardSupportResponseBody) SetCode(v string) *QueryMobilesCardSupportResponseBody {
  5735. s.Code = &v
  5736. return s
  5737. }
  5738. func (s *QueryMobilesCardSupportResponseBody) SetData(v *QueryMobilesCardSupportResponseBodyData) *QueryMobilesCardSupportResponseBody {
  5739. s.Data = v
  5740. return s
  5741. }
  5742. func (s *QueryMobilesCardSupportResponseBody) SetRequestId(v string) *QueryMobilesCardSupportResponseBody {
  5743. s.RequestId = &v
  5744. return s
  5745. }
  5746. func (s *QueryMobilesCardSupportResponseBody) SetSuccess(v bool) *QueryMobilesCardSupportResponseBody {
  5747. s.Success = &v
  5748. return s
  5749. }
  5750. type QueryMobilesCardSupportResponseBodyData struct {
  5751. // The list of returned results.
  5752. QueryResult []*QueryMobilesCardSupportResponseBodyDataQueryResult `json:"QueryResult,omitempty" xml:"QueryResult,omitempty" type:"Repeated"`
  5753. }
  5754. func (s QueryMobilesCardSupportResponseBodyData) String() string {
  5755. return tea.Prettify(s)
  5756. }
  5757. func (s QueryMobilesCardSupportResponseBodyData) GoString() string {
  5758. return s.String()
  5759. }
  5760. func (s *QueryMobilesCardSupportResponseBodyData) SetQueryResult(v []*QueryMobilesCardSupportResponseBodyDataQueryResult) *QueryMobilesCardSupportResponseBodyData {
  5761. s.QueryResult = v
  5762. return s
  5763. }
  5764. type QueryMobilesCardSupportResponseBodyDataQueryResult struct {
  5765. // The mobile phone number.
  5766. //
  5767. // example:
  5768. //
  5769. // 1380000****
  5770. Mobile *string `json:"Mobile,omitempty" xml:"Mobile,omitempty"`
  5771. // Indicates whether the mobile phone number supports card messages. Valid values:
  5772. //
  5773. // - **true**
  5774. //
  5775. // - **false**
  5776. //
  5777. // example:
  5778. //
  5779. // true
  5780. Support *bool `json:"Support,omitempty" xml:"Support,omitempty"`
  5781. }
  5782. func (s QueryMobilesCardSupportResponseBodyDataQueryResult) String() string {
  5783. return tea.Prettify(s)
  5784. }
  5785. func (s QueryMobilesCardSupportResponseBodyDataQueryResult) GoString() string {
  5786. return s.String()
  5787. }
  5788. func (s *QueryMobilesCardSupportResponseBodyDataQueryResult) SetMobile(v string) *QueryMobilesCardSupportResponseBodyDataQueryResult {
  5789. s.Mobile = &v
  5790. return s
  5791. }
  5792. func (s *QueryMobilesCardSupportResponseBodyDataQueryResult) SetSupport(v bool) *QueryMobilesCardSupportResponseBodyDataQueryResult {
  5793. s.Support = &v
  5794. return s
  5795. }
  5796. type QueryMobilesCardSupportResponse struct {
  5797. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  5798. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  5799. Body *QueryMobilesCardSupportResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  5800. }
  5801. func (s QueryMobilesCardSupportResponse) String() string {
  5802. return tea.Prettify(s)
  5803. }
  5804. func (s QueryMobilesCardSupportResponse) GoString() string {
  5805. return s.String()
  5806. }
  5807. func (s *QueryMobilesCardSupportResponse) SetHeaders(v map[string]*string) *QueryMobilesCardSupportResponse {
  5808. s.Headers = v
  5809. return s
  5810. }
  5811. func (s *QueryMobilesCardSupportResponse) SetStatusCode(v int32) *QueryMobilesCardSupportResponse {
  5812. s.StatusCode = &v
  5813. return s
  5814. }
  5815. func (s *QueryMobilesCardSupportResponse) SetBody(v *QueryMobilesCardSupportResponseBody) *QueryMobilesCardSupportResponse {
  5816. s.Body = v
  5817. return s
  5818. }
  5819. type QueryPageSmartShortUrlLogRequest struct {
  5820. // This parameter is required.
  5821. //
  5822. // example:
  5823. //
  5824. // 20181225
  5825. CreateDateEnd *int64 `json:"CreateDateEnd,omitempty" xml:"CreateDateEnd,omitempty"`
  5826. // This parameter is required.
  5827. //
  5828. // example:
  5829. //
  5830. // 20181225
  5831. CreateDateStart *int64 `json:"CreateDateStart,omitempty" xml:"CreateDateStart,omitempty"`
  5832. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  5833. // This parameter is required.
  5834. //
  5835. // example:
  5836. //
  5837. // 1
  5838. PageNo *int64 `json:"PageNo,omitempty" xml:"PageNo,omitempty"`
  5839. // This parameter is required.
  5840. //
  5841. // example:
  5842. //
  5843. // 10
  5844. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
  5845. // example:
  5846. //
  5847. // 1390000****
  5848. PhoneNumber *string `json:"PhoneNumber,omitempty" xml:"PhoneNumber,omitempty"`
  5849. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  5850. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  5851. // example:
  5852. //
  5853. // http://ays.cn/****
  5854. ShortUrl *string `json:"ShortUrl,omitempty" xml:"ShortUrl,omitempty"`
  5855. }
  5856. func (s QueryPageSmartShortUrlLogRequest) String() string {
  5857. return tea.Prettify(s)
  5858. }
  5859. func (s QueryPageSmartShortUrlLogRequest) GoString() string {
  5860. return s.String()
  5861. }
  5862. func (s *QueryPageSmartShortUrlLogRequest) SetCreateDateEnd(v int64) *QueryPageSmartShortUrlLogRequest {
  5863. s.CreateDateEnd = &v
  5864. return s
  5865. }
  5866. func (s *QueryPageSmartShortUrlLogRequest) SetCreateDateStart(v int64) *QueryPageSmartShortUrlLogRequest {
  5867. s.CreateDateStart = &v
  5868. return s
  5869. }
  5870. func (s *QueryPageSmartShortUrlLogRequest) SetOwnerId(v int64) *QueryPageSmartShortUrlLogRequest {
  5871. s.OwnerId = &v
  5872. return s
  5873. }
  5874. func (s *QueryPageSmartShortUrlLogRequest) SetPageNo(v int64) *QueryPageSmartShortUrlLogRequest {
  5875. s.PageNo = &v
  5876. return s
  5877. }
  5878. func (s *QueryPageSmartShortUrlLogRequest) SetPageSize(v int64) *QueryPageSmartShortUrlLogRequest {
  5879. s.PageSize = &v
  5880. return s
  5881. }
  5882. func (s *QueryPageSmartShortUrlLogRequest) SetPhoneNumber(v string) *QueryPageSmartShortUrlLogRequest {
  5883. s.PhoneNumber = &v
  5884. return s
  5885. }
  5886. func (s *QueryPageSmartShortUrlLogRequest) SetResourceOwnerAccount(v string) *QueryPageSmartShortUrlLogRequest {
  5887. s.ResourceOwnerAccount = &v
  5888. return s
  5889. }
  5890. func (s *QueryPageSmartShortUrlLogRequest) SetResourceOwnerId(v int64) *QueryPageSmartShortUrlLogRequest {
  5891. s.ResourceOwnerId = &v
  5892. return s
  5893. }
  5894. func (s *QueryPageSmartShortUrlLogRequest) SetShortUrl(v string) *QueryPageSmartShortUrlLogRequest {
  5895. s.ShortUrl = &v
  5896. return s
  5897. }
  5898. type QueryPageSmartShortUrlLogResponseBody struct {
  5899. // example:
  5900. //
  5901. // 示例值示例值
  5902. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  5903. // example:
  5904. //
  5905. // 示例值示例值
  5906. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  5907. Model *QueryPageSmartShortUrlLogResponseBodyModel `json:"Model,omitempty" xml:"Model,omitempty" type:"Struct"`
  5908. // example:
  5909. //
  5910. // 示例值示例值
  5911. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  5912. // example:
  5913. //
  5914. // true
  5915. Success *bool `json:"Success,omitempty" xml:"Success,omitempty"`
  5916. }
  5917. func (s QueryPageSmartShortUrlLogResponseBody) String() string {
  5918. return tea.Prettify(s)
  5919. }
  5920. func (s QueryPageSmartShortUrlLogResponseBody) GoString() string {
  5921. return s.String()
  5922. }
  5923. func (s *QueryPageSmartShortUrlLogResponseBody) SetCode(v string) *QueryPageSmartShortUrlLogResponseBody {
  5924. s.Code = &v
  5925. return s
  5926. }
  5927. func (s *QueryPageSmartShortUrlLogResponseBody) SetMessage(v string) *QueryPageSmartShortUrlLogResponseBody {
  5928. s.Message = &v
  5929. return s
  5930. }
  5931. func (s *QueryPageSmartShortUrlLogResponseBody) SetModel(v *QueryPageSmartShortUrlLogResponseBodyModel) *QueryPageSmartShortUrlLogResponseBody {
  5932. s.Model = v
  5933. return s
  5934. }
  5935. func (s *QueryPageSmartShortUrlLogResponseBody) SetRequestId(v string) *QueryPageSmartShortUrlLogResponseBody {
  5936. s.RequestId = &v
  5937. return s
  5938. }
  5939. func (s *QueryPageSmartShortUrlLogResponseBody) SetSuccess(v bool) *QueryPageSmartShortUrlLogResponseBody {
  5940. s.Success = &v
  5941. return s
  5942. }
  5943. type QueryPageSmartShortUrlLogResponseBodyModel struct {
  5944. List []*QueryPageSmartShortUrlLogResponseBodyModelList `json:"List,omitempty" xml:"List,omitempty" type:"Repeated"`
  5945. // example:
  5946. //
  5947. // 74
  5948. PageNo *int64 `json:"PageNo,omitempty" xml:"PageNo,omitempty"`
  5949. // example:
  5950. //
  5951. // 15
  5952. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
  5953. // example:
  5954. //
  5955. // 66
  5956. TotalCount *int64 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
  5957. // example:
  5958. //
  5959. // 86
  5960. TotalPage *int64 `json:"TotalPage,omitempty" xml:"TotalPage,omitempty"`
  5961. }
  5962. func (s QueryPageSmartShortUrlLogResponseBodyModel) String() string {
  5963. return tea.Prettify(s)
  5964. }
  5965. func (s QueryPageSmartShortUrlLogResponseBodyModel) GoString() string {
  5966. return s.String()
  5967. }
  5968. func (s *QueryPageSmartShortUrlLogResponseBodyModel) SetList(v []*QueryPageSmartShortUrlLogResponseBodyModelList) *QueryPageSmartShortUrlLogResponseBodyModel {
  5969. s.List = v
  5970. return s
  5971. }
  5972. func (s *QueryPageSmartShortUrlLogResponseBodyModel) SetPageNo(v int64) *QueryPageSmartShortUrlLogResponseBodyModel {
  5973. s.PageNo = &v
  5974. return s
  5975. }
  5976. func (s *QueryPageSmartShortUrlLogResponseBodyModel) SetPageSize(v int64) *QueryPageSmartShortUrlLogResponseBodyModel {
  5977. s.PageSize = &v
  5978. return s
  5979. }
  5980. func (s *QueryPageSmartShortUrlLogResponseBodyModel) SetTotalCount(v int64) *QueryPageSmartShortUrlLogResponseBodyModel {
  5981. s.TotalCount = &v
  5982. return s
  5983. }
  5984. func (s *QueryPageSmartShortUrlLogResponseBodyModel) SetTotalPage(v int64) *QueryPageSmartShortUrlLogResponseBodyModel {
  5985. s.TotalPage = &v
  5986. return s
  5987. }
  5988. type QueryPageSmartShortUrlLogResponseBodyModelList struct {
  5989. // example:
  5990. //
  5991. // 87
  5992. ClickState *int64 `json:"ClickState,omitempty" xml:"ClickState,omitempty"`
  5993. // example:
  5994. //
  5995. // 51
  5996. ClickTime *int64 `json:"ClickTime,omitempty" xml:"ClickTime,omitempty"`
  5997. // example:
  5998. //
  5999. // 64
  6000. CreateTime *int64 `json:"CreateTime,omitempty" xml:"CreateTime,omitempty"`
  6001. // example:
  6002. //
  6003. // 示例值示例值
  6004. PhoneNumber *string `json:"PhoneNumber,omitempty" xml:"PhoneNumber,omitempty"`
  6005. // example:
  6006. //
  6007. // 示例值示例值示例值
  6008. ShortName *string `json:"ShortName,omitempty" xml:"ShortName,omitempty"`
  6009. // example:
  6010. //
  6011. // 示例值示例值示例值
  6012. ShortUrl *string `json:"ShortUrl,omitempty" xml:"ShortUrl,omitempty"`
  6013. }
  6014. func (s QueryPageSmartShortUrlLogResponseBodyModelList) String() string {
  6015. return tea.Prettify(s)
  6016. }
  6017. func (s QueryPageSmartShortUrlLogResponseBodyModelList) GoString() string {
  6018. return s.String()
  6019. }
  6020. func (s *QueryPageSmartShortUrlLogResponseBodyModelList) SetClickState(v int64) *QueryPageSmartShortUrlLogResponseBodyModelList {
  6021. s.ClickState = &v
  6022. return s
  6023. }
  6024. func (s *QueryPageSmartShortUrlLogResponseBodyModelList) SetClickTime(v int64) *QueryPageSmartShortUrlLogResponseBodyModelList {
  6025. s.ClickTime = &v
  6026. return s
  6027. }
  6028. func (s *QueryPageSmartShortUrlLogResponseBodyModelList) SetCreateTime(v int64) *QueryPageSmartShortUrlLogResponseBodyModelList {
  6029. s.CreateTime = &v
  6030. return s
  6031. }
  6032. func (s *QueryPageSmartShortUrlLogResponseBodyModelList) SetPhoneNumber(v string) *QueryPageSmartShortUrlLogResponseBodyModelList {
  6033. s.PhoneNumber = &v
  6034. return s
  6035. }
  6036. func (s *QueryPageSmartShortUrlLogResponseBodyModelList) SetShortName(v string) *QueryPageSmartShortUrlLogResponseBodyModelList {
  6037. s.ShortName = &v
  6038. return s
  6039. }
  6040. func (s *QueryPageSmartShortUrlLogResponseBodyModelList) SetShortUrl(v string) *QueryPageSmartShortUrlLogResponseBodyModelList {
  6041. s.ShortUrl = &v
  6042. return s
  6043. }
  6044. type QueryPageSmartShortUrlLogResponse struct {
  6045. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  6046. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  6047. Body *QueryPageSmartShortUrlLogResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  6048. }
  6049. func (s QueryPageSmartShortUrlLogResponse) String() string {
  6050. return tea.Prettify(s)
  6051. }
  6052. func (s QueryPageSmartShortUrlLogResponse) GoString() string {
  6053. return s.String()
  6054. }
  6055. func (s *QueryPageSmartShortUrlLogResponse) SetHeaders(v map[string]*string) *QueryPageSmartShortUrlLogResponse {
  6056. s.Headers = v
  6057. return s
  6058. }
  6059. func (s *QueryPageSmartShortUrlLogResponse) SetStatusCode(v int32) *QueryPageSmartShortUrlLogResponse {
  6060. s.StatusCode = &v
  6061. return s
  6062. }
  6063. func (s *QueryPageSmartShortUrlLogResponse) SetBody(v *QueryPageSmartShortUrlLogResponseBody) *QueryPageSmartShortUrlLogResponse {
  6064. s.Body = v
  6065. return s
  6066. }
  6067. type QuerySendDetailsRequest struct {
  6068. // The ID of the delivery receipt. The delivery receipt ID is the value of the BizId parameter that is returned when you call the SendSms or SendBatchSms operation.
  6069. //
  6070. // example:
  6071. //
  6072. // 134523^435****
  6073. BizId *string `json:"BizId,omitempty" xml:"BizId,omitempty"`
  6074. // The page number of the first page.
  6075. //
  6076. // This parameter is required.
  6077. //
  6078. // example:
  6079. //
  6080. // 1
  6081. CurrentPage *int64 `json:"CurrentPage,omitempty" xml:"CurrentPage,omitempty"`
  6082. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  6083. // The number of items displayed per page.
  6084. //
  6085. // Valid values: 1 to 50.
  6086. //
  6087. // This parameter is required.
  6088. //
  6089. // example:
  6090. //
  6091. // 10
  6092. PageSize *int64 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
  6093. // The mobile numbers of the recipients. Format:
  6094. //
  6095. // - If you send messages in the Chinese mainland, specify an 11-digit mobile number, for example, 1390000\\*\\*\\*\\*.
  6096. //
  6097. // - If you send messages to countries or regions outside the Chinese mainland, specify this parameter in the \\<Area code>\\<Mobile number> format. Example: 8520000\\*\\*\\*\\*.
  6098. //
  6099. // This parameter is required.
  6100. //
  6101. // example:
  6102. //
  6103. // 1390000****
  6104. PhoneNumber *string `json:"PhoneNumber,omitempty" xml:"PhoneNumber,omitempty"`
  6105. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  6106. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  6107. // The date when the message was sent. You can query messages that were sent within the last 30 days.
  6108. //
  6109. // Format: yyyyMMdd. Example: 20181225.
  6110. //
  6111. // This parameter is required.
  6112. //
  6113. // example:
  6114. //
  6115. // 20181228
  6116. SendDate *string `json:"SendDate,omitempty" xml:"SendDate,omitempty"`
  6117. }
  6118. func (s QuerySendDetailsRequest) String() string {
  6119. return tea.Prettify(s)
  6120. }
  6121. func (s QuerySendDetailsRequest) GoString() string {
  6122. return s.String()
  6123. }
  6124. func (s *QuerySendDetailsRequest) SetBizId(v string) *QuerySendDetailsRequest {
  6125. s.BizId = &v
  6126. return s
  6127. }
  6128. func (s *QuerySendDetailsRequest) SetCurrentPage(v int64) *QuerySendDetailsRequest {
  6129. s.CurrentPage = &v
  6130. return s
  6131. }
  6132. func (s *QuerySendDetailsRequest) SetOwnerId(v int64) *QuerySendDetailsRequest {
  6133. s.OwnerId = &v
  6134. return s
  6135. }
  6136. func (s *QuerySendDetailsRequest) SetPageSize(v int64) *QuerySendDetailsRequest {
  6137. s.PageSize = &v
  6138. return s
  6139. }
  6140. func (s *QuerySendDetailsRequest) SetPhoneNumber(v string) *QuerySendDetailsRequest {
  6141. s.PhoneNumber = &v
  6142. return s
  6143. }
  6144. func (s *QuerySendDetailsRequest) SetResourceOwnerAccount(v string) *QuerySendDetailsRequest {
  6145. s.ResourceOwnerAccount = &v
  6146. return s
  6147. }
  6148. func (s *QuerySendDetailsRequest) SetResourceOwnerId(v int64) *QuerySendDetailsRequest {
  6149. s.ResourceOwnerId = &v
  6150. return s
  6151. }
  6152. func (s *QuerySendDetailsRequest) SetSendDate(v string) *QuerySendDetailsRequest {
  6153. s.SendDate = &v
  6154. return s
  6155. }
  6156. type QuerySendDetailsResponseBody struct {
  6157. // The response code.
  6158. //
  6159. // - The value OK indicates that the request was successful.
  6160. //
  6161. // - Other values indicate that the request failed. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  6162. //
  6163. // example:
  6164. //
  6165. // OK
  6166. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  6167. // The returned message.
  6168. //
  6169. // example:
  6170. //
  6171. // OK
  6172. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  6173. // The request ID.
  6174. //
  6175. // example:
  6176. //
  6177. // 819BE656-D2E0-4858-8B21-B2E477085AAF
  6178. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  6179. // The details of the message.
  6180. SmsSendDetailDTOs *QuerySendDetailsResponseBodySmsSendDetailDTOs `json:"SmsSendDetailDTOs,omitempty" xml:"SmsSendDetailDTOs,omitempty" type:"Struct"`
  6181. // The number of sent messages.
  6182. //
  6183. // example:
  6184. //
  6185. // 1
  6186. TotalCount *string `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
  6187. }
  6188. func (s QuerySendDetailsResponseBody) String() string {
  6189. return tea.Prettify(s)
  6190. }
  6191. func (s QuerySendDetailsResponseBody) GoString() string {
  6192. return s.String()
  6193. }
  6194. func (s *QuerySendDetailsResponseBody) SetCode(v string) *QuerySendDetailsResponseBody {
  6195. s.Code = &v
  6196. return s
  6197. }
  6198. func (s *QuerySendDetailsResponseBody) SetMessage(v string) *QuerySendDetailsResponseBody {
  6199. s.Message = &v
  6200. return s
  6201. }
  6202. func (s *QuerySendDetailsResponseBody) SetRequestId(v string) *QuerySendDetailsResponseBody {
  6203. s.RequestId = &v
  6204. return s
  6205. }
  6206. func (s *QuerySendDetailsResponseBody) SetSmsSendDetailDTOs(v *QuerySendDetailsResponseBodySmsSendDetailDTOs) *QuerySendDetailsResponseBody {
  6207. s.SmsSendDetailDTOs = v
  6208. return s
  6209. }
  6210. func (s *QuerySendDetailsResponseBody) SetTotalCount(v string) *QuerySendDetailsResponseBody {
  6211. s.TotalCount = &v
  6212. return s
  6213. }
  6214. type QuerySendDetailsResponseBodySmsSendDetailDTOs struct {
  6215. SmsSendDetailDTO []*QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO `json:"SmsSendDetailDTO,omitempty" xml:"SmsSendDetailDTO,omitempty" type:"Repeated"`
  6216. }
  6217. func (s QuerySendDetailsResponseBodySmsSendDetailDTOs) String() string {
  6218. return tea.Prettify(s)
  6219. }
  6220. func (s QuerySendDetailsResponseBodySmsSendDetailDTOs) GoString() string {
  6221. return s.String()
  6222. }
  6223. func (s *QuerySendDetailsResponseBodySmsSendDetailDTOs) SetSmsSendDetailDTO(v []*QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO) *QuerySendDetailsResponseBodySmsSendDetailDTOs {
  6224. s.SmsSendDetailDTO = v
  6225. return s
  6226. }
  6227. type QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO struct {
  6228. // The content of the message.
  6229. //
  6230. // example:
  6231. //
  6232. // 【Aliyun】This is a test message.
  6233. Content *string `json:"Content,omitempty" xml:"Content,omitempty"`
  6234. // The status code returned by the carrier.
  6235. //
  6236. // - If the message is delivered, "DELIVERED" is returned.
  6237. //
  6238. // - For information about the error codes that may be returned if the message is not delivered, see [error codes](https://help.aliyun.com/document_detail/101347.html).
  6239. //
  6240. // example:
  6241. //
  6242. // DELIVERED
  6243. ErrCode *string `json:"ErrCode,omitempty" xml:"ErrCode,omitempty"`
  6244. // The extended field.
  6245. //
  6246. // example:
  6247. //
  6248. // 123
  6249. OutId *string `json:"OutId,omitempty" xml:"OutId,omitempty"`
  6250. // The mobile numbers of the recipients.
  6251. //
  6252. // example:
  6253. //
  6254. // 1390000****
  6255. PhoneNum *string `json:"PhoneNum,omitempty" xml:"PhoneNum,omitempty"`
  6256. // The date and time when the message was received.
  6257. //
  6258. // example:
  6259. //
  6260. // 2019-01-08 16:44:13
  6261. ReceiveDate *string `json:"ReceiveDate,omitempty" xml:"ReceiveDate,omitempty"`
  6262. // The date and time when the message was sent.
  6263. //
  6264. // example:
  6265. //
  6266. // 2019-01-08 16:44:10
  6267. SendDate *string `json:"SendDate,omitempty" xml:"SendDate,omitempty"`
  6268. // The delivery status of the message. Valid values:
  6269. //
  6270. // - **1**: The message has not received a delivery receipt yet.
  6271. //
  6272. // - **2**: The message failed to be delivered.
  6273. //
  6274. // - **3**: The message was delivered.
  6275. //
  6276. // example:
  6277. //
  6278. // 3
  6279. SendStatus *int64 `json:"SendStatus,omitempty" xml:"SendStatus,omitempty"`
  6280. // The ID of the message template.
  6281. //
  6282. // example:
  6283. //
  6284. // SMS_12231****
  6285. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  6286. }
  6287. func (s QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO) String() string {
  6288. return tea.Prettify(s)
  6289. }
  6290. func (s QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO) GoString() string {
  6291. return s.String()
  6292. }
  6293. func (s *QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO) SetContent(v string) *QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO {
  6294. s.Content = &v
  6295. return s
  6296. }
  6297. func (s *QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO) SetErrCode(v string) *QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO {
  6298. s.ErrCode = &v
  6299. return s
  6300. }
  6301. func (s *QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO) SetOutId(v string) *QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO {
  6302. s.OutId = &v
  6303. return s
  6304. }
  6305. func (s *QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO) SetPhoneNum(v string) *QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO {
  6306. s.PhoneNum = &v
  6307. return s
  6308. }
  6309. func (s *QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO) SetReceiveDate(v string) *QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO {
  6310. s.ReceiveDate = &v
  6311. return s
  6312. }
  6313. func (s *QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO) SetSendDate(v string) *QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO {
  6314. s.SendDate = &v
  6315. return s
  6316. }
  6317. func (s *QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO) SetSendStatus(v int64) *QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO {
  6318. s.SendStatus = &v
  6319. return s
  6320. }
  6321. func (s *QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO) SetTemplateCode(v string) *QuerySendDetailsResponseBodySmsSendDetailDTOsSmsSendDetailDTO {
  6322. s.TemplateCode = &v
  6323. return s
  6324. }
  6325. type QuerySendDetailsResponse struct {
  6326. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  6327. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  6328. Body *QuerySendDetailsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  6329. }
  6330. func (s QuerySendDetailsResponse) String() string {
  6331. return tea.Prettify(s)
  6332. }
  6333. func (s QuerySendDetailsResponse) GoString() string {
  6334. return s.String()
  6335. }
  6336. func (s *QuerySendDetailsResponse) SetHeaders(v map[string]*string) *QuerySendDetailsResponse {
  6337. s.Headers = v
  6338. return s
  6339. }
  6340. func (s *QuerySendDetailsResponse) SetStatusCode(v int32) *QuerySendDetailsResponse {
  6341. s.StatusCode = &v
  6342. return s
  6343. }
  6344. func (s *QuerySendDetailsResponse) SetBody(v *QuerySendDetailsResponseBody) *QuerySendDetailsResponse {
  6345. s.Body = v
  6346. return s
  6347. }
  6348. type QuerySendStatisticsRequest struct {
  6349. // The end of the time range to query. Format: yyyyMMdd. Example: 20181225.
  6350. //
  6351. // This parameter is required.
  6352. //
  6353. // example:
  6354. //
  6355. // 20201003
  6356. EndDate *string `json:"EndDate,omitempty" xml:"EndDate,omitempty"`
  6357. // The site from where the message is sent. Valid values:
  6358. //
  6359. // - **1**: China site
  6360. //
  6361. // - **2**: international site
  6362. //
  6363. // This parameter is required.
  6364. //
  6365. // example:
  6366. //
  6367. // 1
  6368. IsGlobe *int32 `json:"IsGlobe,omitempty" xml:"IsGlobe,omitempty"`
  6369. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  6370. // The page number. Default value: **1**.
  6371. //
  6372. // This parameter is required.
  6373. //
  6374. // example:
  6375. //
  6376. // 1
  6377. PageIndex *int32 `json:"PageIndex,omitempty" xml:"PageIndex,omitempty"`
  6378. // The number of entries to return on each page. Valid values: **1 to 50**.
  6379. //
  6380. // This parameter is required.
  6381. //
  6382. // example:
  6383. //
  6384. // 10
  6385. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
  6386. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  6387. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  6388. // The signature.
  6389. //
  6390. // example:
  6391. //
  6392. // Aliyun
  6393. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  6394. // The beginning of the time range to query. Format: yyyyMMdd. Example: 20181225.
  6395. //
  6396. // This parameter is required.
  6397. //
  6398. // example:
  6399. //
  6400. // 20201002
  6401. StartDate *string `json:"StartDate,omitempty" xml:"StartDate,omitempty"`
  6402. // The type of the message template. Valid values: Valid values:
  6403. //
  6404. // - **0**: verification code
  6405. //
  6406. // - **1**: notification
  6407. //
  6408. // - **2**: promotional message (Enterprise users only)
  6409. //
  6410. // - **3**: international purpose (Enterprise users only)
  6411. //
  6412. // - **7**: digital message
  6413. //
  6414. // example:
  6415. //
  6416. // 0
  6417. TemplateType *int32 `json:"TemplateType,omitempty" xml:"TemplateType,omitempty"`
  6418. }
  6419. func (s QuerySendStatisticsRequest) String() string {
  6420. return tea.Prettify(s)
  6421. }
  6422. func (s QuerySendStatisticsRequest) GoString() string {
  6423. return s.String()
  6424. }
  6425. func (s *QuerySendStatisticsRequest) SetEndDate(v string) *QuerySendStatisticsRequest {
  6426. s.EndDate = &v
  6427. return s
  6428. }
  6429. func (s *QuerySendStatisticsRequest) SetIsGlobe(v int32) *QuerySendStatisticsRequest {
  6430. s.IsGlobe = &v
  6431. return s
  6432. }
  6433. func (s *QuerySendStatisticsRequest) SetOwnerId(v int64) *QuerySendStatisticsRequest {
  6434. s.OwnerId = &v
  6435. return s
  6436. }
  6437. func (s *QuerySendStatisticsRequest) SetPageIndex(v int32) *QuerySendStatisticsRequest {
  6438. s.PageIndex = &v
  6439. return s
  6440. }
  6441. func (s *QuerySendStatisticsRequest) SetPageSize(v int32) *QuerySendStatisticsRequest {
  6442. s.PageSize = &v
  6443. return s
  6444. }
  6445. func (s *QuerySendStatisticsRequest) SetResourceOwnerAccount(v string) *QuerySendStatisticsRequest {
  6446. s.ResourceOwnerAccount = &v
  6447. return s
  6448. }
  6449. func (s *QuerySendStatisticsRequest) SetResourceOwnerId(v int64) *QuerySendStatisticsRequest {
  6450. s.ResourceOwnerId = &v
  6451. return s
  6452. }
  6453. func (s *QuerySendStatisticsRequest) SetSignName(v string) *QuerySendStatisticsRequest {
  6454. s.SignName = &v
  6455. return s
  6456. }
  6457. func (s *QuerySendStatisticsRequest) SetStartDate(v string) *QuerySendStatisticsRequest {
  6458. s.StartDate = &v
  6459. return s
  6460. }
  6461. func (s *QuerySendStatisticsRequest) SetTemplateType(v int32) *QuerySendStatisticsRequest {
  6462. s.TemplateType = &v
  6463. return s
  6464. }
  6465. type QuerySendStatisticsResponseBody struct {
  6466. // The response code.
  6467. //
  6468. // - If OK is returned, the request is successful.
  6469. //
  6470. // - Other values indicate that the request fails. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  6471. //
  6472. // example:
  6473. //
  6474. // OK
  6475. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  6476. // The data returned.
  6477. Data *QuerySendStatisticsResponseBodyData `json:"Data,omitempty" xml:"Data,omitempty" type:"Struct"`
  6478. // The returned message.
  6479. //
  6480. // example:
  6481. //
  6482. // OK
  6483. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  6484. // The request ID.
  6485. //
  6486. // example:
  6487. //
  6488. // 819BE656-D2E0-4858-8B21-B2E47708****
  6489. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  6490. }
  6491. func (s QuerySendStatisticsResponseBody) String() string {
  6492. return tea.Prettify(s)
  6493. }
  6494. func (s QuerySendStatisticsResponseBody) GoString() string {
  6495. return s.String()
  6496. }
  6497. func (s *QuerySendStatisticsResponseBody) SetCode(v string) *QuerySendStatisticsResponseBody {
  6498. s.Code = &v
  6499. return s
  6500. }
  6501. func (s *QuerySendStatisticsResponseBody) SetData(v *QuerySendStatisticsResponseBodyData) *QuerySendStatisticsResponseBody {
  6502. s.Data = v
  6503. return s
  6504. }
  6505. func (s *QuerySendStatisticsResponseBody) SetMessage(v string) *QuerySendStatisticsResponseBody {
  6506. s.Message = &v
  6507. return s
  6508. }
  6509. func (s *QuerySendStatisticsResponseBody) SetRequestId(v string) *QuerySendStatisticsResponseBody {
  6510. s.RequestId = &v
  6511. return s
  6512. }
  6513. type QuerySendStatisticsResponseBodyData struct {
  6514. // The details of the data returned.
  6515. TargetList []*QuerySendStatisticsResponseBodyDataTargetList `json:"TargetList,omitempty" xml:"TargetList,omitempty" type:"Repeated"`
  6516. // The total number of entries returned.
  6517. //
  6518. // example:
  6519. //
  6520. // 20
  6521. TotalSize *int64 `json:"TotalSize,omitempty" xml:"TotalSize,omitempty"`
  6522. }
  6523. func (s QuerySendStatisticsResponseBodyData) String() string {
  6524. return tea.Prettify(s)
  6525. }
  6526. func (s QuerySendStatisticsResponseBodyData) GoString() string {
  6527. return s.String()
  6528. }
  6529. func (s *QuerySendStatisticsResponseBodyData) SetTargetList(v []*QuerySendStatisticsResponseBodyDataTargetList) *QuerySendStatisticsResponseBodyData {
  6530. s.TargetList = v
  6531. return s
  6532. }
  6533. func (s *QuerySendStatisticsResponseBodyData) SetTotalSize(v int64) *QuerySendStatisticsResponseBodyData {
  6534. s.TotalSize = &v
  6535. return s
  6536. }
  6537. type QuerySendStatisticsResponseBodyDataTargetList struct {
  6538. // The number of messages without a delivery receipt.
  6539. //
  6540. // example:
  6541. //
  6542. // 1
  6543. NoRespondedCount *int64 `json:"NoRespondedCount,omitempty" xml:"NoRespondedCount,omitempty"`
  6544. // The number of messages with a delivery receipt that indicates a failure.
  6545. //
  6546. // example:
  6547. //
  6548. // 2
  6549. RespondedFailCount *int64 `json:"RespondedFailCount,omitempty" xml:"RespondedFailCount,omitempty"`
  6550. // The number of messages with a delivery receipt that indicates a success.
  6551. //
  6552. // example:
  6553. //
  6554. // 17
  6555. RespondedSuccessCount *int64 `json:"RespondedSuccessCount,omitempty" xml:"RespondedSuccessCount,omitempty"`
  6556. // The date when the message is sent. Format: yyyyMMdd. Example: 20181225.
  6557. //
  6558. // example:
  6559. //
  6560. // 20201010
  6561. SendDate *string `json:"SendDate,omitempty" xml:"SendDate,omitempty"`
  6562. // The number of delivered messages.
  6563. //
  6564. // example:
  6565. //
  6566. // 20
  6567. TotalCount *int64 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
  6568. }
  6569. func (s QuerySendStatisticsResponseBodyDataTargetList) String() string {
  6570. return tea.Prettify(s)
  6571. }
  6572. func (s QuerySendStatisticsResponseBodyDataTargetList) GoString() string {
  6573. return s.String()
  6574. }
  6575. func (s *QuerySendStatisticsResponseBodyDataTargetList) SetNoRespondedCount(v int64) *QuerySendStatisticsResponseBodyDataTargetList {
  6576. s.NoRespondedCount = &v
  6577. return s
  6578. }
  6579. func (s *QuerySendStatisticsResponseBodyDataTargetList) SetRespondedFailCount(v int64) *QuerySendStatisticsResponseBodyDataTargetList {
  6580. s.RespondedFailCount = &v
  6581. return s
  6582. }
  6583. func (s *QuerySendStatisticsResponseBodyDataTargetList) SetRespondedSuccessCount(v int64) *QuerySendStatisticsResponseBodyDataTargetList {
  6584. s.RespondedSuccessCount = &v
  6585. return s
  6586. }
  6587. func (s *QuerySendStatisticsResponseBodyDataTargetList) SetSendDate(v string) *QuerySendStatisticsResponseBodyDataTargetList {
  6588. s.SendDate = &v
  6589. return s
  6590. }
  6591. func (s *QuerySendStatisticsResponseBodyDataTargetList) SetTotalCount(v int64) *QuerySendStatisticsResponseBodyDataTargetList {
  6592. s.TotalCount = &v
  6593. return s
  6594. }
  6595. type QuerySendStatisticsResponse struct {
  6596. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  6597. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  6598. Body *QuerySendStatisticsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  6599. }
  6600. func (s QuerySendStatisticsResponse) String() string {
  6601. return tea.Prettify(s)
  6602. }
  6603. func (s QuerySendStatisticsResponse) GoString() string {
  6604. return s.String()
  6605. }
  6606. func (s *QuerySendStatisticsResponse) SetHeaders(v map[string]*string) *QuerySendStatisticsResponse {
  6607. s.Headers = v
  6608. return s
  6609. }
  6610. func (s *QuerySendStatisticsResponse) SetStatusCode(v int32) *QuerySendStatisticsResponse {
  6611. s.StatusCode = &v
  6612. return s
  6613. }
  6614. func (s *QuerySendStatisticsResponse) SetBody(v *QuerySendStatisticsResponseBody) *QuerySendStatisticsResponse {
  6615. s.Body = v
  6616. return s
  6617. }
  6618. type QueryShortUrlRequest struct {
  6619. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  6620. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  6621. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  6622. // The short URL. You can query the short URL by calling the [AddShortUrl](https://help.aliyun.com/document_detail/186774.html) operation.
  6623. //
  6624. // This parameter is required.
  6625. //
  6626. // example:
  6627. //
  6628. // http://****.cn/6y8uy7
  6629. ShortUrl *string `json:"ShortUrl,omitempty" xml:"ShortUrl,omitempty"`
  6630. }
  6631. func (s QueryShortUrlRequest) String() string {
  6632. return tea.Prettify(s)
  6633. }
  6634. func (s QueryShortUrlRequest) GoString() string {
  6635. return s.String()
  6636. }
  6637. func (s *QueryShortUrlRequest) SetOwnerId(v int64) *QueryShortUrlRequest {
  6638. s.OwnerId = &v
  6639. return s
  6640. }
  6641. func (s *QueryShortUrlRequest) SetResourceOwnerAccount(v string) *QueryShortUrlRequest {
  6642. s.ResourceOwnerAccount = &v
  6643. return s
  6644. }
  6645. func (s *QueryShortUrlRequest) SetResourceOwnerId(v int64) *QueryShortUrlRequest {
  6646. s.ResourceOwnerId = &v
  6647. return s
  6648. }
  6649. func (s *QueryShortUrlRequest) SetShortUrl(v string) *QueryShortUrlRequest {
  6650. s.ShortUrl = &v
  6651. return s
  6652. }
  6653. type QueryShortUrlResponseBody struct {
  6654. // The response code.
  6655. //
  6656. // - If OK is returned, the request is successful.
  6657. //
  6658. // - Other values indicate that the request fails. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  6659. //
  6660. // example:
  6661. //
  6662. // OK
  6663. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  6664. // The details of the short URL.
  6665. Data *QueryShortUrlResponseBodyData `json:"Data,omitempty" xml:"Data,omitempty" type:"Struct"`
  6666. // The returned message.
  6667. //
  6668. // example:
  6669. //
  6670. // OK
  6671. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  6672. // The request ID.
  6673. //
  6674. // example:
  6675. //
  6676. // 819BE656-D2E0-4858-8B21-B2E477085AAF
  6677. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  6678. }
  6679. func (s QueryShortUrlResponseBody) String() string {
  6680. return tea.Prettify(s)
  6681. }
  6682. func (s QueryShortUrlResponseBody) GoString() string {
  6683. return s.String()
  6684. }
  6685. func (s *QueryShortUrlResponseBody) SetCode(v string) *QueryShortUrlResponseBody {
  6686. s.Code = &v
  6687. return s
  6688. }
  6689. func (s *QueryShortUrlResponseBody) SetData(v *QueryShortUrlResponseBodyData) *QueryShortUrlResponseBody {
  6690. s.Data = v
  6691. return s
  6692. }
  6693. func (s *QueryShortUrlResponseBody) SetMessage(v string) *QueryShortUrlResponseBody {
  6694. s.Message = &v
  6695. return s
  6696. }
  6697. func (s *QueryShortUrlResponseBody) SetRequestId(v string) *QueryShortUrlResponseBody {
  6698. s.RequestId = &v
  6699. return s
  6700. }
  6701. type QueryShortUrlResponseBodyData struct {
  6702. // The time when the short URL was created.
  6703. //
  6704. // example:
  6705. //
  6706. // 2019-01-08 16:44:13
  6707. CreateDate *string `json:"CreateDate,omitempty" xml:"CreateDate,omitempty"`
  6708. // The time when the short URL expires.
  6709. //
  6710. // example:
  6711. //
  6712. // 2019-01-22 11:21:11
  6713. ExpireDate *string `json:"ExpireDate,omitempty" xml:"ExpireDate,omitempty"`
  6714. // The PV.
  6715. //
  6716. // example:
  6717. //
  6718. // 300
  6719. PageViewCount *string `json:"PageViewCount,omitempty" xml:"PageViewCount,omitempty"`
  6720. // The short URL.
  6721. //
  6722. // example:
  6723. //
  6724. // http://****.cn/6y8uy7
  6725. ShortUrl *string `json:"ShortUrl,omitempty" xml:"ShortUrl,omitempty"`
  6726. // The service name of the short URL.
  6727. //
  6728. // example:
  6729. //
  6730. // The Alibaba Cloud Short Link service.
  6731. ShortUrlName *string `json:"ShortUrlName,omitempty" xml:"ShortUrlName,omitempty"`
  6732. // The status of the short URL. Valid values:
  6733. //
  6734. // - **expired**
  6735. //
  6736. // - **effective**
  6737. //
  6738. // - **audit**
  6739. //
  6740. // - **reject**
  6741. //
  6742. // example:
  6743. //
  6744. // expired
  6745. ShortUrlStatus *string `json:"ShortUrlStatus,omitempty" xml:"ShortUrlStatus,omitempty"`
  6746. // The source address.
  6747. //
  6748. // example:
  6749. //
  6750. // https://www.****.com/product/sms
  6751. SourceUrl *string `json:"SourceUrl,omitempty" xml:"SourceUrl,omitempty"`
  6752. // The UV.
  6753. //
  6754. // example:
  6755. //
  6756. // 23
  6757. UniqueVisitorCount *string `json:"UniqueVisitorCount,omitempty" xml:"UniqueVisitorCount,omitempty"`
  6758. }
  6759. func (s QueryShortUrlResponseBodyData) String() string {
  6760. return tea.Prettify(s)
  6761. }
  6762. func (s QueryShortUrlResponseBodyData) GoString() string {
  6763. return s.String()
  6764. }
  6765. func (s *QueryShortUrlResponseBodyData) SetCreateDate(v string) *QueryShortUrlResponseBodyData {
  6766. s.CreateDate = &v
  6767. return s
  6768. }
  6769. func (s *QueryShortUrlResponseBodyData) SetExpireDate(v string) *QueryShortUrlResponseBodyData {
  6770. s.ExpireDate = &v
  6771. return s
  6772. }
  6773. func (s *QueryShortUrlResponseBodyData) SetPageViewCount(v string) *QueryShortUrlResponseBodyData {
  6774. s.PageViewCount = &v
  6775. return s
  6776. }
  6777. func (s *QueryShortUrlResponseBodyData) SetShortUrl(v string) *QueryShortUrlResponseBodyData {
  6778. s.ShortUrl = &v
  6779. return s
  6780. }
  6781. func (s *QueryShortUrlResponseBodyData) SetShortUrlName(v string) *QueryShortUrlResponseBodyData {
  6782. s.ShortUrlName = &v
  6783. return s
  6784. }
  6785. func (s *QueryShortUrlResponseBodyData) SetShortUrlStatus(v string) *QueryShortUrlResponseBodyData {
  6786. s.ShortUrlStatus = &v
  6787. return s
  6788. }
  6789. func (s *QueryShortUrlResponseBodyData) SetSourceUrl(v string) *QueryShortUrlResponseBodyData {
  6790. s.SourceUrl = &v
  6791. return s
  6792. }
  6793. func (s *QueryShortUrlResponseBodyData) SetUniqueVisitorCount(v string) *QueryShortUrlResponseBodyData {
  6794. s.UniqueVisitorCount = &v
  6795. return s
  6796. }
  6797. type QueryShortUrlResponse struct {
  6798. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  6799. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  6800. Body *QueryShortUrlResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  6801. }
  6802. func (s QueryShortUrlResponse) String() string {
  6803. return tea.Prettify(s)
  6804. }
  6805. func (s QueryShortUrlResponse) GoString() string {
  6806. return s.String()
  6807. }
  6808. func (s *QueryShortUrlResponse) SetHeaders(v map[string]*string) *QueryShortUrlResponse {
  6809. s.Headers = v
  6810. return s
  6811. }
  6812. func (s *QueryShortUrlResponse) SetStatusCode(v int32) *QueryShortUrlResponse {
  6813. s.StatusCode = &v
  6814. return s
  6815. }
  6816. func (s *QueryShortUrlResponse) SetBody(v *QueryShortUrlResponseBody) *QueryShortUrlResponse {
  6817. s.Body = v
  6818. return s
  6819. }
  6820. type QuerySmsSignRequest struct {
  6821. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  6822. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  6823. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  6824. // The signature.
  6825. //
  6826. // This parameter is required.
  6827. //
  6828. // example:
  6829. //
  6830. // Aliyun
  6831. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  6832. }
  6833. func (s QuerySmsSignRequest) String() string {
  6834. return tea.Prettify(s)
  6835. }
  6836. func (s QuerySmsSignRequest) GoString() string {
  6837. return s.String()
  6838. }
  6839. func (s *QuerySmsSignRequest) SetOwnerId(v int64) *QuerySmsSignRequest {
  6840. s.OwnerId = &v
  6841. return s
  6842. }
  6843. func (s *QuerySmsSignRequest) SetResourceOwnerAccount(v string) *QuerySmsSignRequest {
  6844. s.ResourceOwnerAccount = &v
  6845. return s
  6846. }
  6847. func (s *QuerySmsSignRequest) SetResourceOwnerId(v int64) *QuerySmsSignRequest {
  6848. s.ResourceOwnerId = &v
  6849. return s
  6850. }
  6851. func (s *QuerySmsSignRequest) SetSignName(v string) *QuerySmsSignRequest {
  6852. s.SignName = &v
  6853. return s
  6854. }
  6855. type QuerySmsSignResponseBody struct {
  6856. // The response code.
  6857. //
  6858. // - If OK is returned, the request is successful.
  6859. //
  6860. // - Other values indicate that the request fails. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  6861. //
  6862. // example:
  6863. //
  6864. // OK
  6865. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  6866. // The date and time when the signature was created.
  6867. //
  6868. // example:
  6869. //
  6870. // 2019-01-08 16:44:13
  6871. CreateDate *string `json:"CreateDate,omitempty" xml:"CreateDate,omitempty"`
  6872. // The returned message.
  6873. //
  6874. // example:
  6875. //
  6876. // OK
  6877. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  6878. // The remarks of the review. Valid values:
  6879. //
  6880. // - If the signature is in the **Approved* - or **Pending Approval* - state, No Remarks is returned.
  6881. //
  6882. // - If the signature is in the **Not Approved* - state, the reason why the signature is rejected is returned.
  6883. //
  6884. // example:
  6885. //
  6886. // The document cannot verify the authenticity of the information. Please upload it again.
  6887. Reason *string `json:"Reason,omitempty" xml:"Reason,omitempty"`
  6888. // The request ID.
  6889. //
  6890. // example:
  6891. //
  6892. // CC89A90C-978F-46AC-B80D-54738371E7CA
  6893. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  6894. // The signature.
  6895. //
  6896. // example:
  6897. //
  6898. // Aliyun
  6899. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  6900. // The status of the signature. Valid values:
  6901. //
  6902. // - **0**: The signature is pending approval.
  6903. //
  6904. // - **1**: The signature is approved.
  6905. //
  6906. // - **2**: The signature is rejected. The Reason parameter indicates the reason why the signature is rejected.
  6907. //
  6908. // - **10**: The signature is cancelled.
  6909. //
  6910. // example:
  6911. //
  6912. // 1
  6913. SignStatus *int32 `json:"SignStatus,omitempty" xml:"SignStatus,omitempty"`
  6914. }
  6915. func (s QuerySmsSignResponseBody) String() string {
  6916. return tea.Prettify(s)
  6917. }
  6918. func (s QuerySmsSignResponseBody) GoString() string {
  6919. return s.String()
  6920. }
  6921. func (s *QuerySmsSignResponseBody) SetCode(v string) *QuerySmsSignResponseBody {
  6922. s.Code = &v
  6923. return s
  6924. }
  6925. func (s *QuerySmsSignResponseBody) SetCreateDate(v string) *QuerySmsSignResponseBody {
  6926. s.CreateDate = &v
  6927. return s
  6928. }
  6929. func (s *QuerySmsSignResponseBody) SetMessage(v string) *QuerySmsSignResponseBody {
  6930. s.Message = &v
  6931. return s
  6932. }
  6933. func (s *QuerySmsSignResponseBody) SetReason(v string) *QuerySmsSignResponseBody {
  6934. s.Reason = &v
  6935. return s
  6936. }
  6937. func (s *QuerySmsSignResponseBody) SetRequestId(v string) *QuerySmsSignResponseBody {
  6938. s.RequestId = &v
  6939. return s
  6940. }
  6941. func (s *QuerySmsSignResponseBody) SetSignName(v string) *QuerySmsSignResponseBody {
  6942. s.SignName = &v
  6943. return s
  6944. }
  6945. func (s *QuerySmsSignResponseBody) SetSignStatus(v int32) *QuerySmsSignResponseBody {
  6946. s.SignStatus = &v
  6947. return s
  6948. }
  6949. type QuerySmsSignResponse struct {
  6950. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  6951. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  6952. Body *QuerySmsSignResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  6953. }
  6954. func (s QuerySmsSignResponse) String() string {
  6955. return tea.Prettify(s)
  6956. }
  6957. func (s QuerySmsSignResponse) GoString() string {
  6958. return s.String()
  6959. }
  6960. func (s *QuerySmsSignResponse) SetHeaders(v map[string]*string) *QuerySmsSignResponse {
  6961. s.Headers = v
  6962. return s
  6963. }
  6964. func (s *QuerySmsSignResponse) SetStatusCode(v int32) *QuerySmsSignResponse {
  6965. s.StatusCode = &v
  6966. return s
  6967. }
  6968. func (s *QuerySmsSignResponse) SetBody(v *QuerySmsSignResponseBody) *QuerySmsSignResponse {
  6969. s.Body = v
  6970. return s
  6971. }
  6972. type QuerySmsSignListRequest struct {
  6973. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  6974. // The page number. Default value: **1**.
  6975. //
  6976. // example:
  6977. //
  6978. // 1
  6979. PageIndex *int32 `json:"PageIndex,omitempty" xml:"PageIndex,omitempty"`
  6980. // The number of signatures per page. Valid values: **1 to 50**.
  6981. //
  6982. // example:
  6983. //
  6984. // 10
  6985. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
  6986. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  6987. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  6988. }
  6989. func (s QuerySmsSignListRequest) String() string {
  6990. return tea.Prettify(s)
  6991. }
  6992. func (s QuerySmsSignListRequest) GoString() string {
  6993. return s.String()
  6994. }
  6995. func (s *QuerySmsSignListRequest) SetOwnerId(v int64) *QuerySmsSignListRequest {
  6996. s.OwnerId = &v
  6997. return s
  6998. }
  6999. func (s *QuerySmsSignListRequest) SetPageIndex(v int32) *QuerySmsSignListRequest {
  7000. s.PageIndex = &v
  7001. return s
  7002. }
  7003. func (s *QuerySmsSignListRequest) SetPageSize(v int32) *QuerySmsSignListRequest {
  7004. s.PageSize = &v
  7005. return s
  7006. }
  7007. func (s *QuerySmsSignListRequest) SetResourceOwnerAccount(v string) *QuerySmsSignListRequest {
  7008. s.ResourceOwnerAccount = &v
  7009. return s
  7010. }
  7011. func (s *QuerySmsSignListRequest) SetResourceOwnerId(v int64) *QuerySmsSignListRequest {
  7012. s.ResourceOwnerId = &v
  7013. return s
  7014. }
  7015. type QuerySmsSignListResponseBody struct {
  7016. // The HTTP status code.
  7017. //
  7018. // - The value OK indicates that the request was successful.
  7019. //
  7020. // - Other values indicate that the request failed. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  7021. //
  7022. // example:
  7023. //
  7024. // OK
  7025. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  7026. // The page number. Default value: **1**.
  7027. //
  7028. // example:
  7029. //
  7030. // 1
  7031. CurrentPage *int32 `json:"CurrentPage,omitempty" xml:"CurrentPage,omitempty"`
  7032. // The returned message.
  7033. //
  7034. // example:
  7035. //
  7036. // OK
  7037. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  7038. // The number of signatures per page. Valid values: **1 to 50**.
  7039. //
  7040. // example:
  7041. //
  7042. // 10
  7043. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
  7044. // The request ID.
  7045. //
  7046. // example:
  7047. //
  7048. // 819BE656-D2E0-4858-8B21-B2E47708****
  7049. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  7050. // The queried message signatures.
  7051. SmsSignList []*QuerySmsSignListResponseBodySmsSignList `json:"SmsSignList,omitempty" xml:"SmsSignList,omitempty" type:"Repeated"`
  7052. // The total number of signatures.
  7053. //
  7054. // example:
  7055. //
  7056. // 100
  7057. TotalCount *int64 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
  7058. }
  7059. func (s QuerySmsSignListResponseBody) String() string {
  7060. return tea.Prettify(s)
  7061. }
  7062. func (s QuerySmsSignListResponseBody) GoString() string {
  7063. return s.String()
  7064. }
  7065. func (s *QuerySmsSignListResponseBody) SetCode(v string) *QuerySmsSignListResponseBody {
  7066. s.Code = &v
  7067. return s
  7068. }
  7069. func (s *QuerySmsSignListResponseBody) SetCurrentPage(v int32) *QuerySmsSignListResponseBody {
  7070. s.CurrentPage = &v
  7071. return s
  7072. }
  7073. func (s *QuerySmsSignListResponseBody) SetMessage(v string) *QuerySmsSignListResponseBody {
  7074. s.Message = &v
  7075. return s
  7076. }
  7077. func (s *QuerySmsSignListResponseBody) SetPageSize(v int32) *QuerySmsSignListResponseBody {
  7078. s.PageSize = &v
  7079. return s
  7080. }
  7081. func (s *QuerySmsSignListResponseBody) SetRequestId(v string) *QuerySmsSignListResponseBody {
  7082. s.RequestId = &v
  7083. return s
  7084. }
  7085. func (s *QuerySmsSignListResponseBody) SetSmsSignList(v []*QuerySmsSignListResponseBodySmsSignList) *QuerySmsSignListResponseBody {
  7086. s.SmsSignList = v
  7087. return s
  7088. }
  7089. func (s *QuerySmsSignListResponseBody) SetTotalCount(v int64) *QuerySmsSignListResponseBody {
  7090. s.TotalCount = &v
  7091. return s
  7092. }
  7093. type QuerySmsSignListResponseBodySmsSignList struct {
  7094. // The approval status of the signature. Valid values:
  7095. //
  7096. // - **AUDIT_STATE_INIT**: The signature is pending approval.
  7097. //
  7098. // - **AUDIT_STATE_PASS**: The signature is approved.
  7099. //
  7100. // - **AUDIT_STATE_NOT_PASS**: The signature is rejected. You can view the reason in the Reason response parameter.
  7101. //
  7102. // - **AUDIT_STATE_CANCEL**: The approval is canceled.
  7103. //
  7104. // example:
  7105. //
  7106. // AUDIT_STATE_NOT_PASS
  7107. AuditStatus *string `json:"AuditStatus,omitempty" xml:"AuditStatus,omitempty"`
  7108. // The type of the signature scenario. The return value ends with "type". Valid values:
  7109. //
  7110. // - Verification code type
  7111. //
  7112. // - General-purpose type
  7113. //
  7114. // example:
  7115. //
  7116. // Verification code type
  7117. BusinessType *string `json:"BusinessType,omitempty" xml:"BusinessType,omitempty"`
  7118. // The time when the signature was created. Format: yyyy-MM-dd HH:mm:ss.
  7119. //
  7120. // example:
  7121. //
  7122. // 2020-01-08 16:44:13
  7123. CreateDate *string `json:"CreateDate,omitempty" xml:"CreateDate,omitempty"`
  7124. // The ticket ID.
  7125. //
  7126. // example:
  7127. //
  7128. // 236****5
  7129. OrderId *string `json:"OrderId,omitempty" xml:"OrderId,omitempty"`
  7130. // The approval remarks.
  7131. //
  7132. // - If the value of AuditStatus is **AUDIT_STATE_PASS* - or **AUDIT_STATE_INIT**, the value of Reason is No Approval Remarks.
  7133. //
  7134. // - If the value of AuditStatus is **AUDIT_STATE_NOT_PASS**, the reason why the signature is rejected is returned.
  7135. Reason *QuerySmsSignListResponseBodySmsSignListReason `json:"Reason,omitempty" xml:"Reason,omitempty" type:"Struct"`
  7136. // The name of the signature.
  7137. //
  7138. // example:
  7139. //
  7140. // Aliyun
  7141. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  7142. }
  7143. func (s QuerySmsSignListResponseBodySmsSignList) String() string {
  7144. return tea.Prettify(s)
  7145. }
  7146. func (s QuerySmsSignListResponseBodySmsSignList) GoString() string {
  7147. return s.String()
  7148. }
  7149. func (s *QuerySmsSignListResponseBodySmsSignList) SetAuditStatus(v string) *QuerySmsSignListResponseBodySmsSignList {
  7150. s.AuditStatus = &v
  7151. return s
  7152. }
  7153. func (s *QuerySmsSignListResponseBodySmsSignList) SetBusinessType(v string) *QuerySmsSignListResponseBodySmsSignList {
  7154. s.BusinessType = &v
  7155. return s
  7156. }
  7157. func (s *QuerySmsSignListResponseBodySmsSignList) SetCreateDate(v string) *QuerySmsSignListResponseBodySmsSignList {
  7158. s.CreateDate = &v
  7159. return s
  7160. }
  7161. func (s *QuerySmsSignListResponseBodySmsSignList) SetOrderId(v string) *QuerySmsSignListResponseBodySmsSignList {
  7162. s.OrderId = &v
  7163. return s
  7164. }
  7165. func (s *QuerySmsSignListResponseBodySmsSignList) SetReason(v *QuerySmsSignListResponseBodySmsSignListReason) *QuerySmsSignListResponseBodySmsSignList {
  7166. s.Reason = v
  7167. return s
  7168. }
  7169. func (s *QuerySmsSignListResponseBodySmsSignList) SetSignName(v string) *QuerySmsSignListResponseBodySmsSignList {
  7170. s.SignName = &v
  7171. return s
  7172. }
  7173. type QuerySmsSignListResponseBodySmsSignListReason struct {
  7174. // The time when the signature was rejected. Format: yyyy-MM-dd HH:mm:ss.
  7175. //
  7176. // example:
  7177. //
  7178. // 2020-01-08 19:02:13
  7179. RejectDate *string `json:"RejectDate,omitempty" xml:"RejectDate,omitempty"`
  7180. // The reason why the signature was rejected.
  7181. //
  7182. // example:
  7183. //
  7184. // The document cannot verify the authenticity of the information. Please upload it again.
  7185. RejectInfo *string `json:"RejectInfo,omitempty" xml:"RejectInfo,omitempty"`
  7186. // The remarks about the rejection.
  7187. //
  7188. // example:
  7189. //
  7190. // The document cannot verify the authenticity of the information. Please upload it again.
  7191. RejectSubInfo *string `json:"RejectSubInfo,omitempty" xml:"RejectSubInfo,omitempty"`
  7192. }
  7193. func (s QuerySmsSignListResponseBodySmsSignListReason) String() string {
  7194. return tea.Prettify(s)
  7195. }
  7196. func (s QuerySmsSignListResponseBodySmsSignListReason) GoString() string {
  7197. return s.String()
  7198. }
  7199. func (s *QuerySmsSignListResponseBodySmsSignListReason) SetRejectDate(v string) *QuerySmsSignListResponseBodySmsSignListReason {
  7200. s.RejectDate = &v
  7201. return s
  7202. }
  7203. func (s *QuerySmsSignListResponseBodySmsSignListReason) SetRejectInfo(v string) *QuerySmsSignListResponseBodySmsSignListReason {
  7204. s.RejectInfo = &v
  7205. return s
  7206. }
  7207. func (s *QuerySmsSignListResponseBodySmsSignListReason) SetRejectSubInfo(v string) *QuerySmsSignListResponseBodySmsSignListReason {
  7208. s.RejectSubInfo = &v
  7209. return s
  7210. }
  7211. type QuerySmsSignListResponse struct {
  7212. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  7213. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  7214. Body *QuerySmsSignListResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  7215. }
  7216. func (s QuerySmsSignListResponse) String() string {
  7217. return tea.Prettify(s)
  7218. }
  7219. func (s QuerySmsSignListResponse) GoString() string {
  7220. return s.String()
  7221. }
  7222. func (s *QuerySmsSignListResponse) SetHeaders(v map[string]*string) *QuerySmsSignListResponse {
  7223. s.Headers = v
  7224. return s
  7225. }
  7226. func (s *QuerySmsSignListResponse) SetStatusCode(v int32) *QuerySmsSignListResponse {
  7227. s.StatusCode = &v
  7228. return s
  7229. }
  7230. func (s *QuerySmsSignListResponse) SetBody(v *QuerySmsSignListResponseBody) *QuerySmsSignListResponse {
  7231. s.Body = v
  7232. return s
  7233. }
  7234. type QuerySmsTemplateRequest struct {
  7235. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  7236. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  7237. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  7238. // The code of the message template.
  7239. //
  7240. // You can log on to the [Short Message Service (SMS) console](https://dysms.console.aliyun.com/dysms.htm), click **Go China* - or **Go Globe* - in the left-side navigation pane, and then view the template code on the **Templates* - tab. You can also call the [AddSmsTemplate](https://help.aliyun.com/document_detail/121208.html) operation to obtain the template code.
  7241. //
  7242. // This parameter is required.
  7243. //
  7244. // example:
  7245. //
  7246. // SMS_1525***
  7247. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  7248. }
  7249. func (s QuerySmsTemplateRequest) String() string {
  7250. return tea.Prettify(s)
  7251. }
  7252. func (s QuerySmsTemplateRequest) GoString() string {
  7253. return s.String()
  7254. }
  7255. func (s *QuerySmsTemplateRequest) SetOwnerId(v int64) *QuerySmsTemplateRequest {
  7256. s.OwnerId = &v
  7257. return s
  7258. }
  7259. func (s *QuerySmsTemplateRequest) SetResourceOwnerAccount(v string) *QuerySmsTemplateRequest {
  7260. s.ResourceOwnerAccount = &v
  7261. return s
  7262. }
  7263. func (s *QuerySmsTemplateRequest) SetResourceOwnerId(v int64) *QuerySmsTemplateRequest {
  7264. s.ResourceOwnerId = &v
  7265. return s
  7266. }
  7267. func (s *QuerySmsTemplateRequest) SetTemplateCode(v string) *QuerySmsTemplateRequest {
  7268. s.TemplateCode = &v
  7269. return s
  7270. }
  7271. type QuerySmsTemplateResponseBody struct {
  7272. // The HTTP status code.
  7273. //
  7274. // - The value OK indicates that the request was successful.
  7275. //
  7276. // - Other values indicate that the request failed. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  7277. //
  7278. // example:
  7279. //
  7280. // OK
  7281. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  7282. // The time when the message template was created.
  7283. //
  7284. // example:
  7285. //
  7286. // 2019-06-04 11:42:17
  7287. CreateDate *string `json:"CreateDate,omitempty" xml:"CreateDate,omitempty"`
  7288. // The returned message.
  7289. //
  7290. // example:
  7291. //
  7292. // OK
  7293. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  7294. // The approval remarks.
  7295. //
  7296. // - If the value of AuditStatus is **AUDIT_STATE_PASS* - or **AUDIT_STATE_INIT**, the value of Reason is No Approval Remarks.
  7297. //
  7298. // - If the value of AuditStatus is **AUDIT_STATE_NOT_PASS**, the reason why the message template is rejected is returned.
  7299. //
  7300. // example:
  7301. //
  7302. // The document cannot verify the authenticity of the information. Please upload it again.
  7303. Reason *string `json:"Reason,omitempty" xml:"Reason,omitempty"`
  7304. // The request ID.
  7305. //
  7306. // example:
  7307. //
  7308. // 0A974B78-02BF-4C79-ADF3-90CFBA1B55B1
  7309. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  7310. // The code of the message template.
  7311. //
  7312. // example:
  7313. //
  7314. // SMS_16703****
  7315. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  7316. // The content of the message template.
  7317. //
  7318. // example:
  7319. //
  7320. // You are applying for mobile registration. The verification code is: ${code}, valid for 5 minutes!
  7321. TemplateContent *string `json:"TemplateContent,omitempty" xml:"TemplateContent,omitempty"`
  7322. // The name of the message template.
  7323. //
  7324. // example:
  7325. //
  7326. // aliyun verification code
  7327. TemplateName *string `json:"TemplateName,omitempty" xml:"TemplateName,omitempty"`
  7328. // The approval status of the message template. Valid values:
  7329. //
  7330. // - **0**: The message template is pending approval.
  7331. //
  7332. // - **1**: The message template is approved.
  7333. //
  7334. // - **AUDIT_STATE_NOT_PASS**: The message template is rejected. You can view the reason in the Reason response parameter.
  7335. //
  7336. // - **10**: The approval is canceled.
  7337. //
  7338. // example:
  7339. //
  7340. // 1
  7341. TemplateStatus *int32 `json:"TemplateStatus,omitempty" xml:"TemplateStatus,omitempty"`
  7342. // The type of the message. Valid values:
  7343. //
  7344. // - **0**: verification code
  7345. //
  7346. // - **1**: notification message
  7347. //
  7348. // - **2**: promotional message
  7349. //
  7350. // - **3**: message sent to countries or regions outside the Chinese mainland
  7351. //
  7352. // example:
  7353. //
  7354. // 1
  7355. TemplateType *int32 `json:"TemplateType,omitempty" xml:"TemplateType,omitempty"`
  7356. }
  7357. func (s QuerySmsTemplateResponseBody) String() string {
  7358. return tea.Prettify(s)
  7359. }
  7360. func (s QuerySmsTemplateResponseBody) GoString() string {
  7361. return s.String()
  7362. }
  7363. func (s *QuerySmsTemplateResponseBody) SetCode(v string) *QuerySmsTemplateResponseBody {
  7364. s.Code = &v
  7365. return s
  7366. }
  7367. func (s *QuerySmsTemplateResponseBody) SetCreateDate(v string) *QuerySmsTemplateResponseBody {
  7368. s.CreateDate = &v
  7369. return s
  7370. }
  7371. func (s *QuerySmsTemplateResponseBody) SetMessage(v string) *QuerySmsTemplateResponseBody {
  7372. s.Message = &v
  7373. return s
  7374. }
  7375. func (s *QuerySmsTemplateResponseBody) SetReason(v string) *QuerySmsTemplateResponseBody {
  7376. s.Reason = &v
  7377. return s
  7378. }
  7379. func (s *QuerySmsTemplateResponseBody) SetRequestId(v string) *QuerySmsTemplateResponseBody {
  7380. s.RequestId = &v
  7381. return s
  7382. }
  7383. func (s *QuerySmsTemplateResponseBody) SetTemplateCode(v string) *QuerySmsTemplateResponseBody {
  7384. s.TemplateCode = &v
  7385. return s
  7386. }
  7387. func (s *QuerySmsTemplateResponseBody) SetTemplateContent(v string) *QuerySmsTemplateResponseBody {
  7388. s.TemplateContent = &v
  7389. return s
  7390. }
  7391. func (s *QuerySmsTemplateResponseBody) SetTemplateName(v string) *QuerySmsTemplateResponseBody {
  7392. s.TemplateName = &v
  7393. return s
  7394. }
  7395. func (s *QuerySmsTemplateResponseBody) SetTemplateStatus(v int32) *QuerySmsTemplateResponseBody {
  7396. s.TemplateStatus = &v
  7397. return s
  7398. }
  7399. func (s *QuerySmsTemplateResponseBody) SetTemplateType(v int32) *QuerySmsTemplateResponseBody {
  7400. s.TemplateType = &v
  7401. return s
  7402. }
  7403. type QuerySmsTemplateResponse struct {
  7404. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  7405. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  7406. Body *QuerySmsTemplateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  7407. }
  7408. func (s QuerySmsTemplateResponse) String() string {
  7409. return tea.Prettify(s)
  7410. }
  7411. func (s QuerySmsTemplateResponse) GoString() string {
  7412. return s.String()
  7413. }
  7414. func (s *QuerySmsTemplateResponse) SetHeaders(v map[string]*string) *QuerySmsTemplateResponse {
  7415. s.Headers = v
  7416. return s
  7417. }
  7418. func (s *QuerySmsTemplateResponse) SetStatusCode(v int32) *QuerySmsTemplateResponse {
  7419. s.StatusCode = &v
  7420. return s
  7421. }
  7422. func (s *QuerySmsTemplateResponse) SetBody(v *QuerySmsTemplateResponseBody) *QuerySmsTemplateResponse {
  7423. s.Body = v
  7424. return s
  7425. }
  7426. type QuerySmsTemplateListRequest struct {
  7427. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  7428. // The page number. Default value: **1**.
  7429. //
  7430. // example:
  7431. //
  7432. // 1
  7433. PageIndex *int32 `json:"PageIndex,omitempty" xml:"PageIndex,omitempty"`
  7434. // The number of templates per page. Valid values: **1 to 50**.
  7435. //
  7436. // example:
  7437. //
  7438. // 10
  7439. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
  7440. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  7441. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  7442. }
  7443. func (s QuerySmsTemplateListRequest) String() string {
  7444. return tea.Prettify(s)
  7445. }
  7446. func (s QuerySmsTemplateListRequest) GoString() string {
  7447. return s.String()
  7448. }
  7449. func (s *QuerySmsTemplateListRequest) SetOwnerId(v int64) *QuerySmsTemplateListRequest {
  7450. s.OwnerId = &v
  7451. return s
  7452. }
  7453. func (s *QuerySmsTemplateListRequest) SetPageIndex(v int32) *QuerySmsTemplateListRequest {
  7454. s.PageIndex = &v
  7455. return s
  7456. }
  7457. func (s *QuerySmsTemplateListRequest) SetPageSize(v int32) *QuerySmsTemplateListRequest {
  7458. s.PageSize = &v
  7459. return s
  7460. }
  7461. func (s *QuerySmsTemplateListRequest) SetResourceOwnerAccount(v string) *QuerySmsTemplateListRequest {
  7462. s.ResourceOwnerAccount = &v
  7463. return s
  7464. }
  7465. func (s *QuerySmsTemplateListRequest) SetResourceOwnerId(v int64) *QuerySmsTemplateListRequest {
  7466. s.ResourceOwnerId = &v
  7467. return s
  7468. }
  7469. type QuerySmsTemplateListResponseBody struct {
  7470. // The HTTP status code.
  7471. //
  7472. // - The value OK indicates that the request was successful.
  7473. //
  7474. // - Other values indicate that the request failed. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  7475. //
  7476. // example:
  7477. //
  7478. // OK
  7479. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  7480. // The page number. Default value: **1**.
  7481. //
  7482. // example:
  7483. //
  7484. // 1
  7485. CurrentPage *int32 `json:"CurrentPage,omitempty" xml:"CurrentPage,omitempty"`
  7486. // The returned message.
  7487. //
  7488. // example:
  7489. //
  7490. // OK
  7491. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  7492. // The number of templates per page. Valid values: **1 to 50**.
  7493. //
  7494. // example:
  7495. //
  7496. // 10
  7497. PageSize *int32 `json:"PageSize,omitempty" xml:"PageSize,omitempty"`
  7498. // The request ID.
  7499. //
  7500. // example:
  7501. //
  7502. // 819BE656-D2E0-4858-8B21-B2E47708****
  7503. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  7504. // The queried message templates.
  7505. SmsTemplateList []*QuerySmsTemplateListResponseBodySmsTemplateList `json:"SmsTemplateList,omitempty" xml:"SmsTemplateList,omitempty" type:"Repeated"`
  7506. // The total number of templates.
  7507. //
  7508. // example:
  7509. //
  7510. // 100
  7511. TotalCount *int64 `json:"TotalCount,omitempty" xml:"TotalCount,omitempty"`
  7512. }
  7513. func (s QuerySmsTemplateListResponseBody) String() string {
  7514. return tea.Prettify(s)
  7515. }
  7516. func (s QuerySmsTemplateListResponseBody) GoString() string {
  7517. return s.String()
  7518. }
  7519. func (s *QuerySmsTemplateListResponseBody) SetCode(v string) *QuerySmsTemplateListResponseBody {
  7520. s.Code = &v
  7521. return s
  7522. }
  7523. func (s *QuerySmsTemplateListResponseBody) SetCurrentPage(v int32) *QuerySmsTemplateListResponseBody {
  7524. s.CurrentPage = &v
  7525. return s
  7526. }
  7527. func (s *QuerySmsTemplateListResponseBody) SetMessage(v string) *QuerySmsTemplateListResponseBody {
  7528. s.Message = &v
  7529. return s
  7530. }
  7531. func (s *QuerySmsTemplateListResponseBody) SetPageSize(v int32) *QuerySmsTemplateListResponseBody {
  7532. s.PageSize = &v
  7533. return s
  7534. }
  7535. func (s *QuerySmsTemplateListResponseBody) SetRequestId(v string) *QuerySmsTemplateListResponseBody {
  7536. s.RequestId = &v
  7537. return s
  7538. }
  7539. func (s *QuerySmsTemplateListResponseBody) SetSmsTemplateList(v []*QuerySmsTemplateListResponseBodySmsTemplateList) *QuerySmsTemplateListResponseBody {
  7540. s.SmsTemplateList = v
  7541. return s
  7542. }
  7543. func (s *QuerySmsTemplateListResponseBody) SetTotalCount(v int64) *QuerySmsTemplateListResponseBody {
  7544. s.TotalCount = &v
  7545. return s
  7546. }
  7547. type QuerySmsTemplateListResponseBodySmsTemplateList struct {
  7548. // The approval status of the message template. Valid values:
  7549. //
  7550. // - **AUDIT_STATE_INIT**: The message template is pending approval.
  7551. //
  7552. // - **AUDIT_STATE_PASS**: The message template is approved.
  7553. //
  7554. // - **AUDIT_STATE_NOT_PASS**: The message template is rejected. You can view the reason in the Reason response parameter.
  7555. //
  7556. // - **AUDIT_STATE_CANCEL* - or **AUDIT_SATE_CANCEL**: The approval is canceled.
  7557. //
  7558. // example:
  7559. //
  7560. // AUDIT_STATE_PASS
  7561. AuditStatus *string `json:"AuditStatus,omitempty" xml:"AuditStatus,omitempty"`
  7562. // The time when the message template was created. The time is in the yyyy-MM-dd HH:mm:ss format.
  7563. //
  7564. // example:
  7565. //
  7566. // 2020-06-04 11:42:17
  7567. CreateDate *string `json:"CreateDate,omitempty" xml:"CreateDate,omitempty"`
  7568. // The ticket ID.
  7569. //
  7570. // example:
  7571. //
  7572. // 2361****
  7573. OrderId *string `json:"OrderId,omitempty" xml:"OrderId,omitempty"`
  7574. // The type of the message template. We recommend that you specify this parameter. Valid values:
  7575. //
  7576. // - **0**: verification code
  7577. //
  7578. // - **1**: notification message
  7579. //
  7580. // - **2**: promotional message
  7581. //
  7582. // - **3**: message sent to countries or regions outside the Chinese mainland
  7583. //
  7584. // - **7**: digital message
  7585. //
  7586. // > The template type is the same as the value of the TemplateType parameter in the AddSmsTemplate and ModifySmsTemplate operations.
  7587. //
  7588. // example:
  7589. //
  7590. // 0
  7591. OuterTemplateType *int32 `json:"OuterTemplateType,omitempty" xml:"OuterTemplateType,omitempty"`
  7592. // The approval remarks.
  7593. //
  7594. // - If the value of AuditStatus is **AUDIT_STATE_PASS* - or **AUDIT_STATE_INIT**, the value of Reason is No Approval Remarks.
  7595. //
  7596. // - If the value of AuditStatus is **AUDIT_STATE_NOT_PASS**, the reason why the message template is rejected is returned.
  7597. Reason *QuerySmsTemplateListResponseBodySmsTemplateListReason `json:"Reason,omitempty" xml:"Reason,omitempty" type:"Struct"`
  7598. // The code of the message template.
  7599. //
  7600. // You can log on to the [Short Message Service (SMS) console](https://dysms.console.aliyun.com/dysms.htm), click **Go China* - or **Go Globe* - in the left-side navigation pane, and then view the template code on the **Templates* - tab. You can also call the [AddSmsTemplate](https://help.aliyun.com/document_detail/121208.html) operation to obtain the template code.
  7601. //
  7602. // example:
  7603. //
  7604. // SMS_1525***
  7605. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  7606. // The content of the message template.
  7607. //
  7608. // example:
  7609. //
  7610. // 123456789
  7611. TemplateContent *string `json:"TemplateContent,omitempty" xml:"TemplateContent,omitempty"`
  7612. // The name of the message template.
  7613. //
  7614. // example:
  7615. //
  7616. // aliyun verification code
  7617. TemplateName *string `json:"TemplateName,omitempty" xml:"TemplateName,omitempty"`
  7618. // The type of the message template. Valid values:
  7619. //
  7620. // - **0**: notification message
  7621. //
  7622. // - **1**: promotional message
  7623. //
  7624. // - **2**: verification code
  7625. //
  7626. // - **6**: message sent to countries or regions outside the Chinese mainland
  7627. //
  7628. // - **7**: digital message
  7629. //
  7630. // example:
  7631. //
  7632. // 7
  7633. TemplateType *int32 `json:"TemplateType,omitempty" xml:"TemplateType,omitempty"`
  7634. }
  7635. func (s QuerySmsTemplateListResponseBodySmsTemplateList) String() string {
  7636. return tea.Prettify(s)
  7637. }
  7638. func (s QuerySmsTemplateListResponseBodySmsTemplateList) GoString() string {
  7639. return s.String()
  7640. }
  7641. func (s *QuerySmsTemplateListResponseBodySmsTemplateList) SetAuditStatus(v string) *QuerySmsTemplateListResponseBodySmsTemplateList {
  7642. s.AuditStatus = &v
  7643. return s
  7644. }
  7645. func (s *QuerySmsTemplateListResponseBodySmsTemplateList) SetCreateDate(v string) *QuerySmsTemplateListResponseBodySmsTemplateList {
  7646. s.CreateDate = &v
  7647. return s
  7648. }
  7649. func (s *QuerySmsTemplateListResponseBodySmsTemplateList) SetOrderId(v string) *QuerySmsTemplateListResponseBodySmsTemplateList {
  7650. s.OrderId = &v
  7651. return s
  7652. }
  7653. func (s *QuerySmsTemplateListResponseBodySmsTemplateList) SetOuterTemplateType(v int32) *QuerySmsTemplateListResponseBodySmsTemplateList {
  7654. s.OuterTemplateType = &v
  7655. return s
  7656. }
  7657. func (s *QuerySmsTemplateListResponseBodySmsTemplateList) SetReason(v *QuerySmsTemplateListResponseBodySmsTemplateListReason) *QuerySmsTemplateListResponseBodySmsTemplateList {
  7658. s.Reason = v
  7659. return s
  7660. }
  7661. func (s *QuerySmsTemplateListResponseBodySmsTemplateList) SetTemplateCode(v string) *QuerySmsTemplateListResponseBodySmsTemplateList {
  7662. s.TemplateCode = &v
  7663. return s
  7664. }
  7665. func (s *QuerySmsTemplateListResponseBodySmsTemplateList) SetTemplateContent(v string) *QuerySmsTemplateListResponseBodySmsTemplateList {
  7666. s.TemplateContent = &v
  7667. return s
  7668. }
  7669. func (s *QuerySmsTemplateListResponseBodySmsTemplateList) SetTemplateName(v string) *QuerySmsTemplateListResponseBodySmsTemplateList {
  7670. s.TemplateName = &v
  7671. return s
  7672. }
  7673. func (s *QuerySmsTemplateListResponseBodySmsTemplateList) SetTemplateType(v int32) *QuerySmsTemplateListResponseBodySmsTemplateList {
  7674. s.TemplateType = &v
  7675. return s
  7676. }
  7677. type QuerySmsTemplateListResponseBodySmsTemplateListReason struct {
  7678. // The time when the message template was rejected. Format: yyyy-MM-dd HH:mm:ss.
  7679. //
  7680. // example:
  7681. //
  7682. // 2020-06-04 16:01:17
  7683. RejectDate *string `json:"RejectDate,omitempty" xml:"RejectDate,omitempty"`
  7684. // The reason why the message template was rejected.
  7685. //
  7686. // example:
  7687. //
  7688. // The document cannot verify the authenticity of the information. Please upload it again.
  7689. RejectInfo *string `json:"RejectInfo,omitempty" xml:"RejectInfo,omitempty"`
  7690. // The remarks about the rejection.
  7691. //
  7692. // example:
  7693. //
  7694. // The document cannot verify the authenticity of the information. Please upload it again.
  7695. RejectSubInfo *string `json:"RejectSubInfo,omitempty" xml:"RejectSubInfo,omitempty"`
  7696. }
  7697. func (s QuerySmsTemplateListResponseBodySmsTemplateListReason) String() string {
  7698. return tea.Prettify(s)
  7699. }
  7700. func (s QuerySmsTemplateListResponseBodySmsTemplateListReason) GoString() string {
  7701. return s.String()
  7702. }
  7703. func (s *QuerySmsTemplateListResponseBodySmsTemplateListReason) SetRejectDate(v string) *QuerySmsTemplateListResponseBodySmsTemplateListReason {
  7704. s.RejectDate = &v
  7705. return s
  7706. }
  7707. func (s *QuerySmsTemplateListResponseBodySmsTemplateListReason) SetRejectInfo(v string) *QuerySmsTemplateListResponseBodySmsTemplateListReason {
  7708. s.RejectInfo = &v
  7709. return s
  7710. }
  7711. func (s *QuerySmsTemplateListResponseBodySmsTemplateListReason) SetRejectSubInfo(v string) *QuerySmsTemplateListResponseBodySmsTemplateListReason {
  7712. s.RejectSubInfo = &v
  7713. return s
  7714. }
  7715. type QuerySmsTemplateListResponse struct {
  7716. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  7717. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  7718. Body *QuerySmsTemplateListResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  7719. }
  7720. func (s QuerySmsTemplateListResponse) String() string {
  7721. return tea.Prettify(s)
  7722. }
  7723. func (s QuerySmsTemplateListResponse) GoString() string {
  7724. return s.String()
  7725. }
  7726. func (s *QuerySmsTemplateListResponse) SetHeaders(v map[string]*string) *QuerySmsTemplateListResponse {
  7727. s.Headers = v
  7728. return s
  7729. }
  7730. func (s *QuerySmsTemplateListResponse) SetStatusCode(v int32) *QuerySmsTemplateListResponse {
  7731. s.StatusCode = &v
  7732. return s
  7733. }
  7734. func (s *QuerySmsTemplateListResponse) SetBody(v *QuerySmsTemplateListResponseBody) *QuerySmsTemplateListResponse {
  7735. s.Body = v
  7736. return s
  7737. }
  7738. type SendBatchCardSmsRequest struct {
  7739. // The code of the message template. You can view the template code in the **Template Code* - column on the **Templates* - tab of the **Go China* - page in the Alibaba Cloud SMS console.
  7740. //
  7741. // > Make sure that the message template has been approved.
  7742. //
  7743. // This parameter is required.
  7744. //
  7745. // example:
  7746. //
  7747. // CARD_SMS_3245
  7748. CardTemplateCode *string `json:"CardTemplateCode,omitempty" xml:"CardTemplateCode,omitempty"`
  7749. // The variables of the card message template.
  7750. //
  7751. // example:
  7752. //
  7753. // [{\\"customurl\\":\\"http://www.alibaba.com\\",\\"dyncParams\\":\\"{\\\\\\"a\\\\\\":\\\\\\"hello\\\\\\",\\\\\\"b\\\\\\":\\\\\\"world\\\\\\"}\\"}]
  7754. CardTemplateParamJson *string `json:"CardTemplateParamJson,omitempty" xml:"CardTemplateParamJson,omitempty"`
  7755. // The code of the digital message template that applies when the card message is rolled back. You can view the template code in the **Template Code* - column on the **Templates* - tab of the **Go China* - page in the Alibaba Cloud SMS console.
  7756. //
  7757. // > Make sure that the message template has been approved.
  7758. //
  7759. // example:
  7760. //
  7761. // DIGITAL_SMS_234080176
  7762. DigitalTemplateCode *string `json:"DigitalTemplateCode,omitempty" xml:"DigitalTemplateCode,omitempty"`
  7763. // The variables of the digital message template.
  7764. //
  7765. // example:
  7766. //
  7767. // [{"a":1,"b":2},{"a":9,"b":8}]
  7768. DigitalTemplateParamJson *string `json:"DigitalTemplateParamJson,omitempty" xml:"DigitalTemplateParamJson,omitempty"`
  7769. // The rollback type. Valid values:
  7770. //
  7771. // - **SMS**: text message
  7772. //
  7773. // - **DIGITALSMS**: digital message
  7774. //
  7775. // - **NONE**: none
  7776. //
  7777. // This parameter is required.
  7778. //
  7779. // example:
  7780. //
  7781. // SMS
  7782. FallbackType *string `json:"FallbackType,omitempty" xml:"FallbackType,omitempty"`
  7783. // The ID that is reserved for the caller of the operation.
  7784. //
  7785. // example:
  7786. //
  7787. // 16545681783595370
  7788. OutId *string `json:"OutId,omitempty" xml:"OutId,omitempty"`
  7789. // The mobile numbers of the recipients.
  7790. //
  7791. // This parameter is required.
  7792. //
  7793. // example:
  7794. //
  7795. // [\\"1390000****\\",\\"1370000****\\"]"
  7796. PhoneNumberJson *string `json:"PhoneNumberJson,omitempty" xml:"PhoneNumberJson,omitempty"`
  7797. // The signature. You can view the template code in the **Signature* - column on the **Signaturess* - tab of the **Go China* - page in the Alibaba Cloud SMS console.
  7798. //
  7799. // > The signatures must be approved and correspond to the mobile numbers in sequence.
  7800. //
  7801. // This parameter is required.
  7802. //
  7803. // example:
  7804. //
  7805. // [\\"aliyun\\",\\"aliyuncode\\"]
  7806. SignNameJson *string `json:"SignNameJson,omitempty" xml:"SignNameJson,omitempty"`
  7807. // The code of the text message template that applies when the card message is rolled back. You can view the template code in the **Template Code* - column on the **Templates* - tab of the **Go China* - page in the Alibaba Cloud SMS console.
  7808. //
  7809. // > Make sure that the message template has been approved.
  7810. //
  7811. // example:
  7812. //
  7813. // SMS_234251075
  7814. SmsTemplateCode *string `json:"SmsTemplateCode,omitempty" xml:"SmsTemplateCode,omitempty"`
  7815. // The variables of the text message template.
  7816. //
  7817. // example:
  7818. //
  7819. // [{"a":1,"b":2},{"a":9,"b":8}]
  7820. SmsTemplateParamJson *string `json:"SmsTemplateParamJson,omitempty" xml:"SmsTemplateParamJson,omitempty"`
  7821. // The extension code of the upstream message.
  7822. //
  7823. // example:
  7824. //
  7825. // [\\"6\\",\\"6\\"]
  7826. SmsUpExtendCodeJson *string `json:"SmsUpExtendCodeJson,omitempty" xml:"SmsUpExtendCodeJson,omitempty"`
  7827. // The code of the message template.
  7828. //
  7829. // You can log on to the [Alibaba Cloud console](https://dysms.console.aliyun.com/dysms.htm?spm=5176.12818093.categories-n-products.ddysms.3b2816d0xml2NA#/overview), click **Go China* - or **Go Globe* - in the left-side navigation pane, and then view the **template code* - on the **Templates* - tab.
  7830. //
  7831. // > You must specify a message template that is created in the SMS console and approved by Alibaba Cloud. If you send messages to countries or regions outside the Chinese mainland, use the corresponding message templates.
  7832. //
  7833. // example:
  7834. //
  7835. // SMS_20375****
  7836. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  7837. // The value of the variable in the message template.
  7838. //
  7839. // > If you need to add line breaks to the JSON template, make sure that the format is valid. In addition, the sequence of variable values must be the same as that of the mobile numbers and signatures.
  7840. //
  7841. // example:
  7842. //
  7843. // [{"name":"TemplateParamJson"},{"name":"TemplateParamJson"}]
  7844. TemplateParamJson *string `json:"TemplateParamJson,omitempty" xml:"TemplateParamJson,omitempty"`
  7845. }
  7846. func (s SendBatchCardSmsRequest) String() string {
  7847. return tea.Prettify(s)
  7848. }
  7849. func (s SendBatchCardSmsRequest) GoString() string {
  7850. return s.String()
  7851. }
  7852. func (s *SendBatchCardSmsRequest) SetCardTemplateCode(v string) *SendBatchCardSmsRequest {
  7853. s.CardTemplateCode = &v
  7854. return s
  7855. }
  7856. func (s *SendBatchCardSmsRequest) SetCardTemplateParamJson(v string) *SendBatchCardSmsRequest {
  7857. s.CardTemplateParamJson = &v
  7858. return s
  7859. }
  7860. func (s *SendBatchCardSmsRequest) SetDigitalTemplateCode(v string) *SendBatchCardSmsRequest {
  7861. s.DigitalTemplateCode = &v
  7862. return s
  7863. }
  7864. func (s *SendBatchCardSmsRequest) SetDigitalTemplateParamJson(v string) *SendBatchCardSmsRequest {
  7865. s.DigitalTemplateParamJson = &v
  7866. return s
  7867. }
  7868. func (s *SendBatchCardSmsRequest) SetFallbackType(v string) *SendBatchCardSmsRequest {
  7869. s.FallbackType = &v
  7870. return s
  7871. }
  7872. func (s *SendBatchCardSmsRequest) SetOutId(v string) *SendBatchCardSmsRequest {
  7873. s.OutId = &v
  7874. return s
  7875. }
  7876. func (s *SendBatchCardSmsRequest) SetPhoneNumberJson(v string) *SendBatchCardSmsRequest {
  7877. s.PhoneNumberJson = &v
  7878. return s
  7879. }
  7880. func (s *SendBatchCardSmsRequest) SetSignNameJson(v string) *SendBatchCardSmsRequest {
  7881. s.SignNameJson = &v
  7882. return s
  7883. }
  7884. func (s *SendBatchCardSmsRequest) SetSmsTemplateCode(v string) *SendBatchCardSmsRequest {
  7885. s.SmsTemplateCode = &v
  7886. return s
  7887. }
  7888. func (s *SendBatchCardSmsRequest) SetSmsTemplateParamJson(v string) *SendBatchCardSmsRequest {
  7889. s.SmsTemplateParamJson = &v
  7890. return s
  7891. }
  7892. func (s *SendBatchCardSmsRequest) SetSmsUpExtendCodeJson(v string) *SendBatchCardSmsRequest {
  7893. s.SmsUpExtendCodeJson = &v
  7894. return s
  7895. }
  7896. func (s *SendBatchCardSmsRequest) SetTemplateCode(v string) *SendBatchCardSmsRequest {
  7897. s.TemplateCode = &v
  7898. return s
  7899. }
  7900. func (s *SendBatchCardSmsRequest) SetTemplateParamJson(v string) *SendBatchCardSmsRequest {
  7901. s.TemplateParamJson = &v
  7902. return s
  7903. }
  7904. type SendBatchCardSmsResponseBody struct {
  7905. // The HTTP status code.
  7906. //
  7907. // - The value OK indicates that the request was successful.
  7908. //
  7909. // - For more information about other response codes, see [API error codes](https://help.aliyun.com/document_detail/101346.html).
  7910. //
  7911. // example:
  7912. //
  7913. // OK
  7914. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  7915. // The data returned.
  7916. Data *SendBatchCardSmsResponseBodyData `json:"Data,omitempty" xml:"Data,omitempty" type:"Struct"`
  7917. // The request ID.
  7918. //
  7919. // example:
  7920. //
  7921. // A90E4451-FED7-49D2-87C8-00700A8C4D0D
  7922. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  7923. // Indicates whether the request is successful. Valid values:
  7924. //
  7925. // - **true**
  7926. //
  7927. // - **false**
  7928. //
  7929. // example:
  7930. //
  7931. // true
  7932. Success *bool `json:"Success,omitempty" xml:"Success,omitempty"`
  7933. }
  7934. func (s SendBatchCardSmsResponseBody) String() string {
  7935. return tea.Prettify(s)
  7936. }
  7937. func (s SendBatchCardSmsResponseBody) GoString() string {
  7938. return s.String()
  7939. }
  7940. func (s *SendBatchCardSmsResponseBody) SetCode(v string) *SendBatchCardSmsResponseBody {
  7941. s.Code = &v
  7942. return s
  7943. }
  7944. func (s *SendBatchCardSmsResponseBody) SetData(v *SendBatchCardSmsResponseBodyData) *SendBatchCardSmsResponseBody {
  7945. s.Data = v
  7946. return s
  7947. }
  7948. func (s *SendBatchCardSmsResponseBody) SetRequestId(v string) *SendBatchCardSmsResponseBody {
  7949. s.RequestId = &v
  7950. return s
  7951. }
  7952. func (s *SendBatchCardSmsResponseBody) SetSuccess(v bool) *SendBatchCardSmsResponseBody {
  7953. s.Success = &v
  7954. return s
  7955. }
  7956. type SendBatchCardSmsResponseBodyData struct {
  7957. // The ID of the card message.
  7958. //
  7959. // example:
  7960. //
  7961. // 123
  7962. BizCardId *string `json:"BizCardId,omitempty" xml:"BizCardId,omitempty"`
  7963. // The ID of the digital message.
  7964. //
  7965. // example:
  7966. //
  7967. // 3214
  7968. BizDigitalId *string `json:"BizDigitalId,omitempty" xml:"BizDigitalId,omitempty"`
  7969. // The ID of the text message.
  7970. //
  7971. // example:
  7972. //
  7973. // 3256
  7974. BizSmsId *string `json:"BizSmsId,omitempty" xml:"BizSmsId,omitempty"`
  7975. // The review status of the card message template.
  7976. //
  7977. // - **0**: pending approval
  7978. //
  7979. // - **1**: approved
  7980. //
  7981. // - **2**: rejected
  7982. //
  7983. // > Unapproved card messages are rolled back.
  7984. //
  7985. // example:
  7986. //
  7987. // 0
  7988. CardTmpState *int32 `json:"CardTmpState,omitempty" xml:"CardTmpState,omitempty"`
  7989. // The mobile phone number from which the card message is sent.
  7990. //
  7991. // example:
  7992. //
  7993. // 1390000****
  7994. MediaMobiles *string `json:"MediaMobiles,omitempty" xml:"MediaMobiles,omitempty"`
  7995. // The mobile phone number whose card message is rolled back.
  7996. //
  7997. // example:
  7998. //
  7999. // 1390000****
  8000. NotMediaMobiles *string `json:"NotMediaMobiles,omitempty" xml:"NotMediaMobiles,omitempty"`
  8001. }
  8002. func (s SendBatchCardSmsResponseBodyData) String() string {
  8003. return tea.Prettify(s)
  8004. }
  8005. func (s SendBatchCardSmsResponseBodyData) GoString() string {
  8006. return s.String()
  8007. }
  8008. func (s *SendBatchCardSmsResponseBodyData) SetBizCardId(v string) *SendBatchCardSmsResponseBodyData {
  8009. s.BizCardId = &v
  8010. return s
  8011. }
  8012. func (s *SendBatchCardSmsResponseBodyData) SetBizDigitalId(v string) *SendBatchCardSmsResponseBodyData {
  8013. s.BizDigitalId = &v
  8014. return s
  8015. }
  8016. func (s *SendBatchCardSmsResponseBodyData) SetBizSmsId(v string) *SendBatchCardSmsResponseBodyData {
  8017. s.BizSmsId = &v
  8018. return s
  8019. }
  8020. func (s *SendBatchCardSmsResponseBodyData) SetCardTmpState(v int32) *SendBatchCardSmsResponseBodyData {
  8021. s.CardTmpState = &v
  8022. return s
  8023. }
  8024. func (s *SendBatchCardSmsResponseBodyData) SetMediaMobiles(v string) *SendBatchCardSmsResponseBodyData {
  8025. s.MediaMobiles = &v
  8026. return s
  8027. }
  8028. func (s *SendBatchCardSmsResponseBodyData) SetNotMediaMobiles(v string) *SendBatchCardSmsResponseBodyData {
  8029. s.NotMediaMobiles = &v
  8030. return s
  8031. }
  8032. type SendBatchCardSmsResponse struct {
  8033. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  8034. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  8035. Body *SendBatchCardSmsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  8036. }
  8037. func (s SendBatchCardSmsResponse) String() string {
  8038. return tea.Prettify(s)
  8039. }
  8040. func (s SendBatchCardSmsResponse) GoString() string {
  8041. return s.String()
  8042. }
  8043. func (s *SendBatchCardSmsResponse) SetHeaders(v map[string]*string) *SendBatchCardSmsResponse {
  8044. s.Headers = v
  8045. return s
  8046. }
  8047. func (s *SendBatchCardSmsResponse) SetStatusCode(v int32) *SendBatchCardSmsResponse {
  8048. s.StatusCode = &v
  8049. return s
  8050. }
  8051. func (s *SendBatchCardSmsResponse) SetBody(v *SendBatchCardSmsResponseBody) *SendBatchCardSmsResponse {
  8052. s.Body = v
  8053. return s
  8054. }
  8055. type SendBatchSmsRequest struct {
  8056. // The extension field of the external record. The value is a string that contains no more than 256 characters.
  8057. //
  8058. // > The parameter is optional.
  8059. //
  8060. // example:
  8061. //
  8062. // abcdefg
  8063. OutId *string `json:"OutId,omitempty" xml:"OutId,omitempty"`
  8064. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  8065. // The mobile number of the recipient. Format:
  8066. //
  8067. // - Message delivery to the Chinese mainland: +/+86/0086/86 or an 11-digit mobile number without a prefix. Example: 1590000\\*\\*\\*\\*.
  8068. //
  8069. // - Message delivery to countries or regions outside the Chinese mainland: Dialing code + Mobile number. Example: 852000012\\*\\*\\*\\*.
  8070. //
  8071. // > We recommend that you call the SendSms operation to send verification codes.
  8072. //
  8073. // This parameter is required.
  8074. //
  8075. // example:
  8076. //
  8077. // ["1590000****","1350000****"]
  8078. PhoneNumberJson *string `json:"PhoneNumberJson,omitempty" xml:"PhoneNumberJson,omitempty"`
  8079. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  8080. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  8081. // The signature.
  8082. //
  8083. // Log on to the Alibaba Cloud SMS console. In the left-side navigation pane, click **Go Globe* - or **Go China**. You can view the signature in the **Signature* - column on the **Signatures* - tab.
  8084. //
  8085. // > The signatures must be approved and correspond to the mobile numbers in sequence.
  8086. //
  8087. // This parameter is required.
  8088. //
  8089. // example:
  8090. //
  8091. // ["Aliyun","Alibaba"]
  8092. SignNameJson *string `json:"SignNameJson,omitempty" xml:"SignNameJson,omitempty"`
  8093. // The extension code of the MO message. Format: JSON array.
  8094. //
  8095. // > The parameter is optional.
  8096. //
  8097. // example:
  8098. //
  8099. // ["90999","90998"]
  8100. SmsUpExtendCodeJson *string `json:"SmsUpExtendCodeJson,omitempty" xml:"SmsUpExtendCodeJson,omitempty"`
  8101. // The code of the message template.
  8102. //
  8103. // Log on to the Alibaba Cloud SMS console. In the left-side navigation pane, click **Go Globe* - or **Go China**. You can view the message template in the **Template Code* - column on the **Message Templates* - tab.
  8104. //
  8105. // > The message templates must be created on the Go Globe page and approved.
  8106. //
  8107. // This parameter is required.
  8108. //
  8109. // example:
  8110. //
  8111. // SMS_15255****
  8112. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  8113. // The value of the variable in the message template.
  8114. //
  8115. // > If you need to add line breaks to the JSON template, make sure that the format is valid. In addition, the sequence of variable values must be the same as that of the mobile numbers and signatures.
  8116. //
  8117. // example:
  8118. //
  8119. // [{"name":"TemplateParamJson"},{"name":"TemplateParamJson"}]
  8120. TemplateParamJson *string `json:"TemplateParamJson,omitempty" xml:"TemplateParamJson,omitempty"`
  8121. }
  8122. func (s SendBatchSmsRequest) String() string {
  8123. return tea.Prettify(s)
  8124. }
  8125. func (s SendBatchSmsRequest) GoString() string {
  8126. return s.String()
  8127. }
  8128. func (s *SendBatchSmsRequest) SetOutId(v string) *SendBatchSmsRequest {
  8129. s.OutId = &v
  8130. return s
  8131. }
  8132. func (s *SendBatchSmsRequest) SetOwnerId(v int64) *SendBatchSmsRequest {
  8133. s.OwnerId = &v
  8134. return s
  8135. }
  8136. func (s *SendBatchSmsRequest) SetPhoneNumberJson(v string) *SendBatchSmsRequest {
  8137. s.PhoneNumberJson = &v
  8138. return s
  8139. }
  8140. func (s *SendBatchSmsRequest) SetResourceOwnerAccount(v string) *SendBatchSmsRequest {
  8141. s.ResourceOwnerAccount = &v
  8142. return s
  8143. }
  8144. func (s *SendBatchSmsRequest) SetResourceOwnerId(v int64) *SendBatchSmsRequest {
  8145. s.ResourceOwnerId = &v
  8146. return s
  8147. }
  8148. func (s *SendBatchSmsRequest) SetSignNameJson(v string) *SendBatchSmsRequest {
  8149. s.SignNameJson = &v
  8150. return s
  8151. }
  8152. func (s *SendBatchSmsRequest) SetSmsUpExtendCodeJson(v string) *SendBatchSmsRequest {
  8153. s.SmsUpExtendCodeJson = &v
  8154. return s
  8155. }
  8156. func (s *SendBatchSmsRequest) SetTemplateCode(v string) *SendBatchSmsRequest {
  8157. s.TemplateCode = &v
  8158. return s
  8159. }
  8160. func (s *SendBatchSmsRequest) SetTemplateParamJson(v string) *SendBatchSmsRequest {
  8161. s.TemplateParamJson = &v
  8162. return s
  8163. }
  8164. type SendBatchSmsResponseBody struct {
  8165. // The ID of the delivery receipt. You can use one of the following methods to query the delivery status of a message based on the ID.
  8166. //
  8167. // - Call the [QuerySendDetails](https://help.aliyun.com/document_detail/102352.html) operation.
  8168. //
  8169. // - Log on to the [Alibaba Cloud SMS console](https://dysms.console.aliyun.com/dysms.htm#/overview). In the left-side navigation pane, choose **Analytics* - > **Delivery Report**.
  8170. //
  8171. // example:
  8172. //
  8173. // 9006197469364984400
  8174. BizId *string `json:"BizId,omitempty" xml:"BizId,omitempty"`
  8175. // The response code.
  8176. //
  8177. // - If OK is returned, the request is successful.
  8178. //
  8179. // - Other values indicate that the request fails. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  8180. //
  8181. // example:
  8182. //
  8183. // OK
  8184. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  8185. // The returned message.
  8186. //
  8187. // example:
  8188. //
  8189. // OK
  8190. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  8191. // The request ID.
  8192. //
  8193. // example:
  8194. //
  8195. // F655A8D5-B967-440B-8683-DAD6FF8D230E
  8196. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  8197. }
  8198. func (s SendBatchSmsResponseBody) String() string {
  8199. return tea.Prettify(s)
  8200. }
  8201. func (s SendBatchSmsResponseBody) GoString() string {
  8202. return s.String()
  8203. }
  8204. func (s *SendBatchSmsResponseBody) SetBizId(v string) *SendBatchSmsResponseBody {
  8205. s.BizId = &v
  8206. return s
  8207. }
  8208. func (s *SendBatchSmsResponseBody) SetCode(v string) *SendBatchSmsResponseBody {
  8209. s.Code = &v
  8210. return s
  8211. }
  8212. func (s *SendBatchSmsResponseBody) SetMessage(v string) *SendBatchSmsResponseBody {
  8213. s.Message = &v
  8214. return s
  8215. }
  8216. func (s *SendBatchSmsResponseBody) SetRequestId(v string) *SendBatchSmsResponseBody {
  8217. s.RequestId = &v
  8218. return s
  8219. }
  8220. type SendBatchSmsResponse struct {
  8221. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  8222. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  8223. Body *SendBatchSmsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  8224. }
  8225. func (s SendBatchSmsResponse) String() string {
  8226. return tea.Prettify(s)
  8227. }
  8228. func (s SendBatchSmsResponse) GoString() string {
  8229. return s.String()
  8230. }
  8231. func (s *SendBatchSmsResponse) SetHeaders(v map[string]*string) *SendBatchSmsResponse {
  8232. s.Headers = v
  8233. return s
  8234. }
  8235. func (s *SendBatchSmsResponse) SetStatusCode(v int32) *SendBatchSmsResponse {
  8236. s.StatusCode = &v
  8237. return s
  8238. }
  8239. func (s *SendBatchSmsResponse) SetBody(v *SendBatchSmsResponseBody) *SendBatchSmsResponse {
  8240. s.Body = v
  8241. return s
  8242. }
  8243. type SendCardSmsRequest struct {
  8244. // The objects of the message template.
  8245. //
  8246. // This parameter is required.
  8247. CardObjects []*SendCardSmsRequestCardObjects `json:"CardObjects,omitempty" xml:"CardObjects,omitempty" type:"Repeated"`
  8248. // The code of the message template. You can view the template code in the **Template Code* - column on the **Templates* - tab of the **Go China* - page in the Alibaba Cloud SMS console.
  8249. //
  8250. // > Make sure that the message template has been approved.
  8251. //
  8252. // This parameter is required.
  8253. //
  8254. // example:
  8255. //
  8256. // CARD_SMS_70
  8257. CardTemplateCode *string `json:"CardTemplateCode,omitempty" xml:"CardTemplateCode,omitempty"`
  8258. // The code of the digital message template that applies when the card message is rolled back. You can view the template code in the **Template Code* - column on the **Templates* - tab of the **Go China* - page in the Alibaba Cloud SMS console.
  8259. //
  8260. // > Make sure that the message template has been approved.
  8261. //
  8262. // example:
  8263. //
  8264. // SMS_003
  8265. DigitalTemplateCode *string `json:"DigitalTemplateCode,omitempty" xml:"DigitalTemplateCode,omitempty"`
  8266. // The variables of the digital message template.
  8267. //
  8268. // > If you need to add line breaks to the JSON template, make sure that the format is valid.
  8269. //
  8270. // example:
  8271. //
  8272. // {\\"msg\\",\\"xxxd\\"}
  8273. DigitalTemplateParam *string `json:"DigitalTemplateParam,omitempty" xml:"DigitalTemplateParam,omitempty"`
  8274. // The rollback type. Valid values:
  8275. //
  8276. // - **SMS**: text message
  8277. //
  8278. // - **DIGITALSMS**: digital message
  8279. //
  8280. // - **NONE**: none
  8281. //
  8282. // This parameter is required.
  8283. //
  8284. // example:
  8285. //
  8286. // SMS
  8287. FallbackType *string `json:"FallbackType,omitempty" xml:"FallbackType,omitempty"`
  8288. // The ID that is reserved for the caller of the operation.
  8289. //
  8290. // example:
  8291. //
  8292. // 38d76c9b-4a9a-4c89-afae-61fd8e0e****
  8293. OutId *string `json:"OutId,omitempty" xml:"OutId,omitempty"`
  8294. // The signature. You can view the template code in the **Signature* - column on the **Signaturess* - tab of the **Go China* - page in the Alibaba Cloud SMS console.
  8295. //
  8296. // > The signature must be approved.
  8297. //
  8298. // This parameter is required.
  8299. //
  8300. // example:
  8301. //
  8302. // aliyun
  8303. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  8304. // The code of the text message template that applies when the card message is rolled back. You can view the template code in the **Template Code* - column on the **Templates* - tab of the **Go China* - page in the Alibaba Cloud SMS console.
  8305. //
  8306. // > Make sure that the message template has been approved. If you set the **FallbackType* - parameter to **SMS**, this parameter is required.
  8307. //
  8308. // example:
  8309. //
  8310. // SIER_TEST_01
  8311. SmsTemplateCode *string `json:"SmsTemplateCode,omitempty" xml:"SmsTemplateCode,omitempty"`
  8312. // The variables of the text message template.
  8313. //
  8314. // > If you need to add line breaks to the JSON template, make sure that the format is valid.
  8315. //
  8316. // example:
  8317. //
  8318. // {\\"uri\\":\\"Zg11tZ\\"}
  8319. SmsTemplateParam *string `json:"SmsTemplateParam,omitempty" xml:"SmsTemplateParam,omitempty"`
  8320. // The extension code of the upstream message. Upstream messages are messages sent to the communication service provider. Upstream messages are used to customize a service, complete an inquiry, or send a request. You are charged for sending upstream messages based on the billing standards of the service provider.
  8321. //
  8322. // > If you do not need upstream messages, ignore this parameter.
  8323. //
  8324. // example:
  8325. //
  8326. // 1
  8327. SmsUpExtendCode *string `json:"SmsUpExtendCode,omitempty" xml:"SmsUpExtendCode,omitempty"`
  8328. // The code of the text message template.
  8329. //
  8330. // Log on to the Alibaba Cloud SMS console. In the left-side navigation pane, click **Go Globe* - or **Go China**. You can view the message template in the **Template Code* - column on the **Message Templates* - tab.
  8331. //
  8332. // > The message templates must be created on the Go Globe page and approved.
  8333. //
  8334. // example:
  8335. //
  8336. // SMS_2322****
  8337. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  8338. // The variables of the message template. Format: JSON.
  8339. //
  8340. // > If you need to add line breaks to the JSON template, make sure that the format is valid.
  8341. //
  8342. // example:
  8343. //
  8344. // {
  8345. //
  8346. // \\"code\\": \\"1111\\"
  8347. //
  8348. // }
  8349. TemplateParam *string `json:"TemplateParam,omitempty" xml:"TemplateParam,omitempty"`
  8350. }
  8351. func (s SendCardSmsRequest) String() string {
  8352. return tea.Prettify(s)
  8353. }
  8354. func (s SendCardSmsRequest) GoString() string {
  8355. return s.String()
  8356. }
  8357. func (s *SendCardSmsRequest) SetCardObjects(v []*SendCardSmsRequestCardObjects) *SendCardSmsRequest {
  8358. s.CardObjects = v
  8359. return s
  8360. }
  8361. func (s *SendCardSmsRequest) SetCardTemplateCode(v string) *SendCardSmsRequest {
  8362. s.CardTemplateCode = &v
  8363. return s
  8364. }
  8365. func (s *SendCardSmsRequest) SetDigitalTemplateCode(v string) *SendCardSmsRequest {
  8366. s.DigitalTemplateCode = &v
  8367. return s
  8368. }
  8369. func (s *SendCardSmsRequest) SetDigitalTemplateParam(v string) *SendCardSmsRequest {
  8370. s.DigitalTemplateParam = &v
  8371. return s
  8372. }
  8373. func (s *SendCardSmsRequest) SetFallbackType(v string) *SendCardSmsRequest {
  8374. s.FallbackType = &v
  8375. return s
  8376. }
  8377. func (s *SendCardSmsRequest) SetOutId(v string) *SendCardSmsRequest {
  8378. s.OutId = &v
  8379. return s
  8380. }
  8381. func (s *SendCardSmsRequest) SetSignName(v string) *SendCardSmsRequest {
  8382. s.SignName = &v
  8383. return s
  8384. }
  8385. func (s *SendCardSmsRequest) SetSmsTemplateCode(v string) *SendCardSmsRequest {
  8386. s.SmsTemplateCode = &v
  8387. return s
  8388. }
  8389. func (s *SendCardSmsRequest) SetSmsTemplateParam(v string) *SendCardSmsRequest {
  8390. s.SmsTemplateParam = &v
  8391. return s
  8392. }
  8393. func (s *SendCardSmsRequest) SetSmsUpExtendCode(v string) *SendCardSmsRequest {
  8394. s.SmsUpExtendCode = &v
  8395. return s
  8396. }
  8397. func (s *SendCardSmsRequest) SetTemplateCode(v string) *SendCardSmsRequest {
  8398. s.TemplateCode = &v
  8399. return s
  8400. }
  8401. func (s *SendCardSmsRequest) SetTemplateParam(v string) *SendCardSmsRequest {
  8402. s.TemplateParam = &v
  8403. return s
  8404. }
  8405. type SendCardSmsRequestCardObjects struct {
  8406. // The URL to which the message is redirected if the message fails to be rendered.
  8407. //
  8408. // example:
  8409. //
  8410. // https://alibaba.com
  8411. CustomUrl *string `json:"customUrl,omitempty" xml:"customUrl,omitempty"`
  8412. // The variables. Special characters, such as $ and {}, do not need to be entered.
  8413. //
  8414. // example:
  8415. //
  8416. // {\\"param3\\":\\"three\\",\\"param1\\":\\"one\\",\\"param2\\":\\"two\\"}
  8417. DyncParams *string `json:"dyncParams,omitempty" xml:"dyncParams,omitempty"`
  8418. // The mobile phone number.
  8419. //
  8420. // example:
  8421. //
  8422. // 1390000****
  8423. Mobile *string `json:"mobile,omitempty" xml:"mobile,omitempty"`
  8424. }
  8425. func (s SendCardSmsRequestCardObjects) String() string {
  8426. return tea.Prettify(s)
  8427. }
  8428. func (s SendCardSmsRequestCardObjects) GoString() string {
  8429. return s.String()
  8430. }
  8431. func (s *SendCardSmsRequestCardObjects) SetCustomUrl(v string) *SendCardSmsRequestCardObjects {
  8432. s.CustomUrl = &v
  8433. return s
  8434. }
  8435. func (s *SendCardSmsRequestCardObjects) SetDyncParams(v string) *SendCardSmsRequestCardObjects {
  8436. s.DyncParams = &v
  8437. return s
  8438. }
  8439. func (s *SendCardSmsRequestCardObjects) SetMobile(v string) *SendCardSmsRequestCardObjects {
  8440. s.Mobile = &v
  8441. return s
  8442. }
  8443. type SendCardSmsResponseBody struct {
  8444. // The response code.
  8445. //
  8446. // - If OK is returned, the request is successful.
  8447. //
  8448. // - Other values indicate that the request fails. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  8449. //
  8450. // example:
  8451. //
  8452. // OK
  8453. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  8454. // The data returned.
  8455. Data *SendCardSmsResponseBodyData `json:"Data,omitempty" xml:"Data,omitempty" type:"Struct"`
  8456. // The request ID.
  8457. //
  8458. // example:
  8459. //
  8460. // F655A8D5-B967-440B-8683-DAD6FF8D28D0
  8461. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  8462. // Indicates whether the request was successful. Valid values:
  8463. //
  8464. // - **true**
  8465. //
  8466. // - **false**
  8467. //
  8468. // example:
  8469. //
  8470. // true
  8471. Success *bool `json:"Success,omitempty" xml:"Success,omitempty"`
  8472. }
  8473. func (s SendCardSmsResponseBody) String() string {
  8474. return tea.Prettify(s)
  8475. }
  8476. func (s SendCardSmsResponseBody) GoString() string {
  8477. return s.String()
  8478. }
  8479. func (s *SendCardSmsResponseBody) SetCode(v string) *SendCardSmsResponseBody {
  8480. s.Code = &v
  8481. return s
  8482. }
  8483. func (s *SendCardSmsResponseBody) SetData(v *SendCardSmsResponseBodyData) *SendCardSmsResponseBody {
  8484. s.Data = v
  8485. return s
  8486. }
  8487. func (s *SendCardSmsResponseBody) SetRequestId(v string) *SendCardSmsResponseBody {
  8488. s.RequestId = &v
  8489. return s
  8490. }
  8491. func (s *SendCardSmsResponseBody) SetSuccess(v bool) *SendCardSmsResponseBody {
  8492. s.Success = &v
  8493. return s
  8494. }
  8495. type SendCardSmsResponseBodyData struct {
  8496. // The ID of the card message.
  8497. //
  8498. // example:
  8499. //
  8500. // 123
  8501. BizCardId *string `json:"BizCardId,omitempty" xml:"BizCardId,omitempty"`
  8502. // The ID of the digital message.
  8503. //
  8504. // example:
  8505. //
  8506. // 232
  8507. BizDigitalId *string `json:"BizDigitalId,omitempty" xml:"BizDigitalId,omitempty"`
  8508. // The ID of the text message.
  8509. //
  8510. // example:
  8511. //
  8512. // 524
  8513. BizSmsId *string `json:"BizSmsId,omitempty" xml:"BizSmsId,omitempty"`
  8514. // The review status of the card message template.
  8515. //
  8516. // - **0**: pending approval
  8517. //
  8518. // - **1**: approved
  8519. //
  8520. // - **2**: rejected
  8521. //
  8522. // > Unapproved card messages are rolled back.
  8523. //
  8524. // example:
  8525. //
  8526. // 0
  8527. CardTmpState *int32 `json:"CardTmpState,omitempty" xml:"CardTmpState,omitempty"`
  8528. // The mobile phone number from which the card message is sent.
  8529. //
  8530. // example:
  8531. //
  8532. // 1390000****
  8533. MediaMobiles *string `json:"MediaMobiles,omitempty" xml:"MediaMobiles,omitempty"`
  8534. // The mobile phone number whose card message is rolled back.
  8535. //
  8536. // example:
  8537. //
  8538. // 1390000****
  8539. NotMediaMobiles *string `json:"NotMediaMobiles,omitempty" xml:"NotMediaMobiles,omitempty"`
  8540. }
  8541. func (s SendCardSmsResponseBodyData) String() string {
  8542. return tea.Prettify(s)
  8543. }
  8544. func (s SendCardSmsResponseBodyData) GoString() string {
  8545. return s.String()
  8546. }
  8547. func (s *SendCardSmsResponseBodyData) SetBizCardId(v string) *SendCardSmsResponseBodyData {
  8548. s.BizCardId = &v
  8549. return s
  8550. }
  8551. func (s *SendCardSmsResponseBodyData) SetBizDigitalId(v string) *SendCardSmsResponseBodyData {
  8552. s.BizDigitalId = &v
  8553. return s
  8554. }
  8555. func (s *SendCardSmsResponseBodyData) SetBizSmsId(v string) *SendCardSmsResponseBodyData {
  8556. s.BizSmsId = &v
  8557. return s
  8558. }
  8559. func (s *SendCardSmsResponseBodyData) SetCardTmpState(v int32) *SendCardSmsResponseBodyData {
  8560. s.CardTmpState = &v
  8561. return s
  8562. }
  8563. func (s *SendCardSmsResponseBodyData) SetMediaMobiles(v string) *SendCardSmsResponseBodyData {
  8564. s.MediaMobiles = &v
  8565. return s
  8566. }
  8567. func (s *SendCardSmsResponseBodyData) SetNotMediaMobiles(v string) *SendCardSmsResponseBodyData {
  8568. s.NotMediaMobiles = &v
  8569. return s
  8570. }
  8571. type SendCardSmsResponse struct {
  8572. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  8573. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  8574. Body *SendCardSmsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  8575. }
  8576. func (s SendCardSmsResponse) String() string {
  8577. return tea.Prettify(s)
  8578. }
  8579. func (s SendCardSmsResponse) GoString() string {
  8580. return s.String()
  8581. }
  8582. func (s *SendCardSmsResponse) SetHeaders(v map[string]*string) *SendCardSmsResponse {
  8583. s.Headers = v
  8584. return s
  8585. }
  8586. func (s *SendCardSmsResponse) SetStatusCode(v int32) *SendCardSmsResponse {
  8587. s.StatusCode = &v
  8588. return s
  8589. }
  8590. func (s *SendCardSmsResponse) SetBody(v *SendCardSmsResponseBody) *SendCardSmsResponse {
  8591. s.Body = v
  8592. return s
  8593. }
  8594. type SendSmsRequest struct {
  8595. // The extension field.
  8596. //
  8597. // > You can ignore this parameter if you do not have special requirements.
  8598. //
  8599. // example:
  8600. //
  8601. // abcdefgh
  8602. OutId *string `json:"OutId,omitempty" xml:"OutId,omitempty"`
  8603. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  8604. // The mobile numbers of the recipients. Format:
  8605. //
  8606. // - If you send messages to the Chinese mainland, specify mobile numbers that are prefixed with +, +86, 0086, or 86, or 11-digit mobile numbers without prefixes. Example: 1390000\\*\\*\\*\\*.
  8607. //
  8608. // - If you send messages to countries or regions outside the Chinese mainland, specify this parameter in the \\<Area code>\\<Mobile number> format. Example: 852000012\\*\\*\\*\\*.
  8609. //
  8610. // You can send messages to multiple mobile numbers, separate the mobile numbers with commas (,). You can specify up to 1,000 mobile numbers in each request. Compared with sending messages to a single mobile number, sending messages to multiple mobile numbers requires longer response time.
  8611. //
  8612. // > We recommend that you send one verification code message to a mobile number in each request.
  8613. //
  8614. // This parameter is required.
  8615. //
  8616. // example:
  8617. //
  8618. // 1390000****
  8619. PhoneNumbers *string `json:"PhoneNumbers,omitempty" xml:"PhoneNumbers,omitempty"`
  8620. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  8621. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  8622. // The signature.
  8623. //
  8624. // You can log on to the [Short Message Service (SMS) console](https://dysms.console.aliyun.com/dysms.htm?spm=5176.12818093.categories-n-products.ddysms.3b2816d0xml2NA#/overview), click **Go China* - or **Go Globe* - in the left-side navigation pane, and then view the signature on the **Signatures* - tab.
  8625. //
  8626. // > You must specify a signature that is created in the SMS console and approved by Alibaba Cloud. For more information about SMS signature specifications, see [SMS signature specifications](https://help.aliyun.com/document_detail/108076.html).
  8627. //
  8628. // This parameter is required.
  8629. //
  8630. // example:
  8631. //
  8632. // Aliyun
  8633. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  8634. // The extension code of the upstream message. Upstream messages are messages sent to the communication service provider. Upstream messages are used to customize a service, complete an inquiry, or send a request. You are charged for sending upstream messages based on the billing standards of the service provider.
  8635. //
  8636. // > The extension code is automatically generated by the system when the signature is generated. You do not need to specify the extension code. You can ignore this parameter if you do not have special requirements.
  8637. //
  8638. // example:
  8639. //
  8640. // 90999
  8641. SmsUpExtendCode *string `json:"SmsUpExtendCode,omitempty" xml:"SmsUpExtendCode,omitempty"`
  8642. // The code of the message template.
  8643. //
  8644. // You can log on to the [Short Message Service (SMS) console](https://dysms.console.aliyun.com/dysms.htm?spm=5176.12818093.categories-n-products.ddysms.3b2816d0xml2NA#/overview), click **Go China* - or **Go Globe* - in the left-side navigation pane, and then view the **template code* - on the **Templates* - tab.
  8645. //
  8646. // > You must specify a message template that is created in the SMS console and approved by Alibaba Cloud. If you send messages to countries or regions outside the Chinese mainland, use the corresponding message templates.
  8647. //
  8648. // This parameter is required.
  8649. //
  8650. // example:
  8651. //
  8652. // SMS_15305****
  8653. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  8654. // The value of the variable in the message template. You can specify multiple parameter values. Example:{"name":"Sam","number":"1390000\\*\\*\\*\\*"}.
  8655. //
  8656. // >
  8657. //
  8658. // - If line breaks are required in JSON-formatted data, they must meet the relevant requirements that are specified in the standard JSON protocol.
  8659. //
  8660. // - For more information about template variables, see [SMS template specifications](https://help.aliyun.com/document_detail/108253.html).
  8661. //
  8662. // example:
  8663. //
  8664. // {"code":"1111"}
  8665. TemplateParam *string `json:"TemplateParam,omitempty" xml:"TemplateParam,omitempty"`
  8666. }
  8667. func (s SendSmsRequest) String() string {
  8668. return tea.Prettify(s)
  8669. }
  8670. func (s SendSmsRequest) GoString() string {
  8671. return s.String()
  8672. }
  8673. func (s *SendSmsRequest) SetOutId(v string) *SendSmsRequest {
  8674. s.OutId = &v
  8675. return s
  8676. }
  8677. func (s *SendSmsRequest) SetOwnerId(v int64) *SendSmsRequest {
  8678. s.OwnerId = &v
  8679. return s
  8680. }
  8681. func (s *SendSmsRequest) SetPhoneNumbers(v string) *SendSmsRequest {
  8682. s.PhoneNumbers = &v
  8683. return s
  8684. }
  8685. func (s *SendSmsRequest) SetResourceOwnerAccount(v string) *SendSmsRequest {
  8686. s.ResourceOwnerAccount = &v
  8687. return s
  8688. }
  8689. func (s *SendSmsRequest) SetResourceOwnerId(v int64) *SendSmsRequest {
  8690. s.ResourceOwnerId = &v
  8691. return s
  8692. }
  8693. func (s *SendSmsRequest) SetSignName(v string) *SendSmsRequest {
  8694. s.SignName = &v
  8695. return s
  8696. }
  8697. func (s *SendSmsRequest) SetSmsUpExtendCode(v string) *SendSmsRequest {
  8698. s.SmsUpExtendCode = &v
  8699. return s
  8700. }
  8701. func (s *SendSmsRequest) SetTemplateCode(v string) *SendSmsRequest {
  8702. s.TemplateCode = &v
  8703. return s
  8704. }
  8705. func (s *SendSmsRequest) SetTemplateParam(v string) *SendSmsRequest {
  8706. s.TemplateParam = &v
  8707. return s
  8708. }
  8709. type SendSmsResponseBody struct {
  8710. // The ID of the delivery receipt.
  8711. //
  8712. // You can call the [QuerySendDetails](~~QuerySendDetails~~) operation to query the delivery status based on the receipt ID.
  8713. //
  8714. // example:
  8715. //
  8716. // 9006197469364984****
  8717. BizId *string `json:"BizId,omitempty" xml:"BizId,omitempty"`
  8718. // The HTTP status code.
  8719. //
  8720. // - The value OK indicates that the request was successful.
  8721. //
  8722. // - Other values indicate that the request failed. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  8723. //
  8724. // example:
  8725. //
  8726. // OK
  8727. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  8728. // The returned message.
  8729. //
  8730. // example:
  8731. //
  8732. // OK
  8733. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  8734. // The request ID.
  8735. //
  8736. // example:
  8737. //
  8738. // F655A8D5-B967-440B-8683-DAD6FF8DE990
  8739. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  8740. }
  8741. func (s SendSmsResponseBody) String() string {
  8742. return tea.Prettify(s)
  8743. }
  8744. func (s SendSmsResponseBody) GoString() string {
  8745. return s.String()
  8746. }
  8747. func (s *SendSmsResponseBody) SetBizId(v string) *SendSmsResponseBody {
  8748. s.BizId = &v
  8749. return s
  8750. }
  8751. func (s *SendSmsResponseBody) SetCode(v string) *SendSmsResponseBody {
  8752. s.Code = &v
  8753. return s
  8754. }
  8755. func (s *SendSmsResponseBody) SetMessage(v string) *SendSmsResponseBody {
  8756. s.Message = &v
  8757. return s
  8758. }
  8759. func (s *SendSmsResponseBody) SetRequestId(v string) *SendSmsResponseBody {
  8760. s.RequestId = &v
  8761. return s
  8762. }
  8763. type SendSmsResponse struct {
  8764. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  8765. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  8766. Body *SendSmsResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  8767. }
  8768. func (s SendSmsResponse) String() string {
  8769. return tea.Prettify(s)
  8770. }
  8771. func (s SendSmsResponse) GoString() string {
  8772. return s.String()
  8773. }
  8774. func (s *SendSmsResponse) SetHeaders(v map[string]*string) *SendSmsResponse {
  8775. s.Headers = v
  8776. return s
  8777. }
  8778. func (s *SendSmsResponse) SetStatusCode(v int32) *SendSmsResponse {
  8779. s.StatusCode = &v
  8780. return s
  8781. }
  8782. func (s *SendSmsResponse) SetBody(v *SendSmsResponseBody) *SendSmsResponse {
  8783. s.Body = v
  8784. return s
  8785. }
  8786. type SmsConversionIntlRequest struct {
  8787. // The time when the OTP message was delivered. The value is a UNIX timestamp. Unit: milliseconds.
  8788. //
  8789. // - If you leave the parameter empty, the current timestamp is specified by default.
  8790. //
  8791. // - If you specify the parameter, the timestamp must be greater than the message sending time and less than the current timestamp.
  8792. //
  8793. // example:
  8794. //
  8795. // 1349055900000
  8796. ConversionTime *int64 `json:"ConversionTime,omitempty" xml:"ConversionTime,omitempty"`
  8797. // Specifies whether customers replied to the OTP message. Valid values: true and false.
  8798. //
  8799. // This parameter is required.
  8800. //
  8801. // example:
  8802. //
  8803. // true
  8804. Delivered *bool `json:"Delivered,omitempty" xml:"Delivered,omitempty"`
  8805. // The ID of the message.
  8806. //
  8807. // This parameter is required.
  8808. //
  8809. // example:
  8810. //
  8811. // 1008030300****
  8812. MessageId *string `json:"MessageId,omitempty" xml:"MessageId,omitempty"`
  8813. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  8814. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  8815. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  8816. }
  8817. func (s SmsConversionIntlRequest) String() string {
  8818. return tea.Prettify(s)
  8819. }
  8820. func (s SmsConversionIntlRequest) GoString() string {
  8821. return s.String()
  8822. }
  8823. func (s *SmsConversionIntlRequest) SetConversionTime(v int64) *SmsConversionIntlRequest {
  8824. s.ConversionTime = &v
  8825. return s
  8826. }
  8827. func (s *SmsConversionIntlRequest) SetDelivered(v bool) *SmsConversionIntlRequest {
  8828. s.Delivered = &v
  8829. return s
  8830. }
  8831. func (s *SmsConversionIntlRequest) SetMessageId(v string) *SmsConversionIntlRequest {
  8832. s.MessageId = &v
  8833. return s
  8834. }
  8835. func (s *SmsConversionIntlRequest) SetOwnerId(v int64) *SmsConversionIntlRequest {
  8836. s.OwnerId = &v
  8837. return s
  8838. }
  8839. func (s *SmsConversionIntlRequest) SetResourceOwnerAccount(v string) *SmsConversionIntlRequest {
  8840. s.ResourceOwnerAccount = &v
  8841. return s
  8842. }
  8843. func (s *SmsConversionIntlRequest) SetResourceOwnerId(v int64) *SmsConversionIntlRequest {
  8844. s.ResourceOwnerId = &v
  8845. return s
  8846. }
  8847. type SmsConversionIntlResponseBody struct {
  8848. // The response code. If OK is returned, the request is successful. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html?spm=a2c4g.101345.0.0.74326ff2J5EZyt).
  8849. //
  8850. // example:
  8851. //
  8852. // OK
  8853. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  8854. // The returned message.
  8855. //
  8856. // example:
  8857. //
  8858. // OK
  8859. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  8860. // The request ID.
  8861. //
  8862. // example:
  8863. //
  8864. // F655A8D5-B967-440B-8683-DAD6FF8D****
  8865. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  8866. }
  8867. func (s SmsConversionIntlResponseBody) String() string {
  8868. return tea.Prettify(s)
  8869. }
  8870. func (s SmsConversionIntlResponseBody) GoString() string {
  8871. return s.String()
  8872. }
  8873. func (s *SmsConversionIntlResponseBody) SetCode(v string) *SmsConversionIntlResponseBody {
  8874. s.Code = &v
  8875. return s
  8876. }
  8877. func (s *SmsConversionIntlResponseBody) SetMessage(v string) *SmsConversionIntlResponseBody {
  8878. s.Message = &v
  8879. return s
  8880. }
  8881. func (s *SmsConversionIntlResponseBody) SetRequestId(v string) *SmsConversionIntlResponseBody {
  8882. s.RequestId = &v
  8883. return s
  8884. }
  8885. type SmsConversionIntlResponse struct {
  8886. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  8887. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  8888. Body *SmsConversionIntlResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  8889. }
  8890. func (s SmsConversionIntlResponse) String() string {
  8891. return tea.Prettify(s)
  8892. }
  8893. func (s SmsConversionIntlResponse) GoString() string {
  8894. return s.String()
  8895. }
  8896. func (s *SmsConversionIntlResponse) SetHeaders(v map[string]*string) *SmsConversionIntlResponse {
  8897. s.Headers = v
  8898. return s
  8899. }
  8900. func (s *SmsConversionIntlResponse) SetStatusCode(v int32) *SmsConversionIntlResponse {
  8901. s.StatusCode = &v
  8902. return s
  8903. }
  8904. func (s *SmsConversionIntlResponse) SetBody(v *SmsConversionIntlResponseBody) *SmsConversionIntlResponse {
  8905. s.Body = v
  8906. return s
  8907. }
  8908. type TagResourcesRequest struct {
  8909. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  8910. // The name of the cloud service. Set the value to **dysms**.
  8911. //
  8912. // example:
  8913. //
  8914. // dysms
  8915. ProdCode *string `json:"ProdCode,omitempty" xml:"ProdCode,omitempty"`
  8916. // The region ID. Set the value to **cn-hangzhou**.
  8917. //
  8918. // This parameter is required.
  8919. //
  8920. // example:
  8921. //
  8922. // cn-hangzhou
  8923. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"`
  8924. // The code of the message template.
  8925. //
  8926. // example:
  8927. //
  8928. // SMS_23423423
  8929. ResourceId []*string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty" type:"Repeated"`
  8930. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  8931. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  8932. // The type of the resource. Set the value to **TEMPLATE**.
  8933. //
  8934. // This parameter is required.
  8935. //
  8936. // example:
  8937. //
  8938. // TEMPLATE
  8939. ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
  8940. // The tag.
  8941. //
  8942. // This parameter is required.
  8943. Tag []*TagResourcesRequestTag `json:"Tag,omitempty" xml:"Tag,omitempty" type:"Repeated"`
  8944. }
  8945. func (s TagResourcesRequest) String() string {
  8946. return tea.Prettify(s)
  8947. }
  8948. func (s TagResourcesRequest) GoString() string {
  8949. return s.String()
  8950. }
  8951. func (s *TagResourcesRequest) SetOwnerId(v int64) *TagResourcesRequest {
  8952. s.OwnerId = &v
  8953. return s
  8954. }
  8955. func (s *TagResourcesRequest) SetProdCode(v string) *TagResourcesRequest {
  8956. s.ProdCode = &v
  8957. return s
  8958. }
  8959. func (s *TagResourcesRequest) SetRegionId(v string) *TagResourcesRequest {
  8960. s.RegionId = &v
  8961. return s
  8962. }
  8963. func (s *TagResourcesRequest) SetResourceId(v []*string) *TagResourcesRequest {
  8964. s.ResourceId = v
  8965. return s
  8966. }
  8967. func (s *TagResourcesRequest) SetResourceOwnerAccount(v string) *TagResourcesRequest {
  8968. s.ResourceOwnerAccount = &v
  8969. return s
  8970. }
  8971. func (s *TagResourcesRequest) SetResourceOwnerId(v int64) *TagResourcesRequest {
  8972. s.ResourceOwnerId = &v
  8973. return s
  8974. }
  8975. func (s *TagResourcesRequest) SetResourceType(v string) *TagResourcesRequest {
  8976. s.ResourceType = &v
  8977. return s
  8978. }
  8979. func (s *TagResourcesRequest) SetTag(v []*TagResourcesRequestTag) *TagResourcesRequest {
  8980. s.Tag = v
  8981. return s
  8982. }
  8983. type TagResourcesRequestTag struct {
  8984. // The array of tag keys. Valid values of N: 1 to 20.
  8985. //
  8986. // example:
  8987. //
  8988. // TestKey
  8989. Key *string `json:"Key,omitempty" xml:"Key,omitempty"`
  8990. // The array of tag values. Valid values of N: 1 to 20.
  8991. //
  8992. // example:
  8993. //
  8994. // TestValue
  8995. Value *string `json:"Value,omitempty" xml:"Value,omitempty"`
  8996. }
  8997. func (s TagResourcesRequestTag) String() string {
  8998. return tea.Prettify(s)
  8999. }
  9000. func (s TagResourcesRequestTag) GoString() string {
  9001. return s.String()
  9002. }
  9003. func (s *TagResourcesRequestTag) SetKey(v string) *TagResourcesRequestTag {
  9004. s.Key = &v
  9005. return s
  9006. }
  9007. func (s *TagResourcesRequestTag) SetValue(v string) *TagResourcesRequestTag {
  9008. s.Value = &v
  9009. return s
  9010. }
  9011. type TagResourcesResponseBody struct {
  9012. // The response code.
  9013. //
  9014. // - If OK is returned, the request is successful.
  9015. //
  9016. // - Other values indicate that the request fails. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  9017. //
  9018. // example:
  9019. //
  9020. // OK
  9021. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  9022. // Indicates whether tags were attached. Valid values:
  9023. //
  9024. // - **true**
  9025. //
  9026. // - **false**
  9027. //
  9028. // example:
  9029. //
  9030. // true
  9031. Data *string `json:"Data,omitempty" xml:"Data,omitempty"`
  9032. // The request ID.
  9033. //
  9034. // example:
  9035. //
  9036. // A90E4451-FED7-49D2-87C8-00700A8C****
  9037. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  9038. }
  9039. func (s TagResourcesResponseBody) String() string {
  9040. return tea.Prettify(s)
  9041. }
  9042. func (s TagResourcesResponseBody) GoString() string {
  9043. return s.String()
  9044. }
  9045. func (s *TagResourcesResponseBody) SetCode(v string) *TagResourcesResponseBody {
  9046. s.Code = &v
  9047. return s
  9048. }
  9049. func (s *TagResourcesResponseBody) SetData(v string) *TagResourcesResponseBody {
  9050. s.Data = &v
  9051. return s
  9052. }
  9053. func (s *TagResourcesResponseBody) SetRequestId(v string) *TagResourcesResponseBody {
  9054. s.RequestId = &v
  9055. return s
  9056. }
  9057. type TagResourcesResponse struct {
  9058. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  9059. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  9060. Body *TagResourcesResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  9061. }
  9062. func (s TagResourcesResponse) String() string {
  9063. return tea.Prettify(s)
  9064. }
  9065. func (s TagResourcesResponse) GoString() string {
  9066. return s.String()
  9067. }
  9068. func (s *TagResourcesResponse) SetHeaders(v map[string]*string) *TagResourcesResponse {
  9069. s.Headers = v
  9070. return s
  9071. }
  9072. func (s *TagResourcesResponse) SetStatusCode(v int32) *TagResourcesResponse {
  9073. s.StatusCode = &v
  9074. return s
  9075. }
  9076. func (s *TagResourcesResponse) SetBody(v *TagResourcesResponseBody) *TagResourcesResponse {
  9077. s.Body = v
  9078. return s
  9079. }
  9080. type UntagResourcesRequest struct {
  9081. // Specifies whether to delete all tags from the message template. Valid values:
  9082. //
  9083. // - **true**
  9084. //
  9085. // - **false**
  9086. //
  9087. // example:
  9088. //
  9089. // false
  9090. All *bool `json:"All,omitempty" xml:"All,omitempty"`
  9091. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  9092. // The name of the cloud service. Set the value to **dysms**.
  9093. //
  9094. // example:
  9095. //
  9096. // dysms
  9097. ProdCode *string `json:"ProdCode,omitempty" xml:"ProdCode,omitempty"`
  9098. // The region. Set the value to cn-hangzhou.
  9099. //
  9100. // This parameter is required.
  9101. //
  9102. // example:
  9103. //
  9104. // cn-hangzhou
  9105. RegionId *string `json:"RegionId,omitempty" xml:"RegionId,omitempty"`
  9106. // The array of message template codes. You can specify 1 to 20 message templates.
  9107. //
  9108. // example:
  9109. //
  9110. // SMS_23423423
  9111. ResourceId []*string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty" type:"Repeated"`
  9112. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  9113. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  9114. // The type of the resource. Set the value to TEMPLATE.
  9115. //
  9116. // This parameter is required.
  9117. //
  9118. // example:
  9119. //
  9120. // TEMPLATE
  9121. ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"`
  9122. // The array of tag keys. You can specify 1 to 20 tag keys.
  9123. //
  9124. // example:
  9125. //
  9126. // TestKey
  9127. TagKey []*string `json:"TagKey,omitempty" xml:"TagKey,omitempty" type:"Repeated"`
  9128. }
  9129. func (s UntagResourcesRequest) String() string {
  9130. return tea.Prettify(s)
  9131. }
  9132. func (s UntagResourcesRequest) GoString() string {
  9133. return s.String()
  9134. }
  9135. func (s *UntagResourcesRequest) SetAll(v bool) *UntagResourcesRequest {
  9136. s.All = &v
  9137. return s
  9138. }
  9139. func (s *UntagResourcesRequest) SetOwnerId(v int64) *UntagResourcesRequest {
  9140. s.OwnerId = &v
  9141. return s
  9142. }
  9143. func (s *UntagResourcesRequest) SetProdCode(v string) *UntagResourcesRequest {
  9144. s.ProdCode = &v
  9145. return s
  9146. }
  9147. func (s *UntagResourcesRequest) SetRegionId(v string) *UntagResourcesRequest {
  9148. s.RegionId = &v
  9149. return s
  9150. }
  9151. func (s *UntagResourcesRequest) SetResourceId(v []*string) *UntagResourcesRequest {
  9152. s.ResourceId = v
  9153. return s
  9154. }
  9155. func (s *UntagResourcesRequest) SetResourceOwnerAccount(v string) *UntagResourcesRequest {
  9156. s.ResourceOwnerAccount = &v
  9157. return s
  9158. }
  9159. func (s *UntagResourcesRequest) SetResourceOwnerId(v int64) *UntagResourcesRequest {
  9160. s.ResourceOwnerId = &v
  9161. return s
  9162. }
  9163. func (s *UntagResourcesRequest) SetResourceType(v string) *UntagResourcesRequest {
  9164. s.ResourceType = &v
  9165. return s
  9166. }
  9167. func (s *UntagResourcesRequest) SetTagKey(v []*string) *UntagResourcesRequest {
  9168. s.TagKey = v
  9169. return s
  9170. }
  9171. type UntagResourcesResponseBody struct {
  9172. // The HTTP status code.
  9173. //
  9174. // - The value OK indicates that the request was successful.
  9175. //
  9176. // - Other values indicate that the request failed. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
  9177. //
  9178. // example:
  9179. //
  9180. // OK
  9181. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  9182. // Indicates whether the request is successful. Valid values:
  9183. //
  9184. // - **true**
  9185. //
  9186. // - **false**
  9187. //
  9188. // example:
  9189. //
  9190. // true
  9191. Data *string `json:"Data,omitempty" xml:"Data,omitempty"`
  9192. // The request ID.
  9193. //
  9194. // example:
  9195. //
  9196. // A90E4451-FED7-49D2-87C8-00700A8C****
  9197. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  9198. }
  9199. func (s UntagResourcesResponseBody) String() string {
  9200. return tea.Prettify(s)
  9201. }
  9202. func (s UntagResourcesResponseBody) GoString() string {
  9203. return s.String()
  9204. }
  9205. func (s *UntagResourcesResponseBody) SetCode(v string) *UntagResourcesResponseBody {
  9206. s.Code = &v
  9207. return s
  9208. }
  9209. func (s *UntagResourcesResponseBody) SetData(v string) *UntagResourcesResponseBody {
  9210. s.Data = &v
  9211. return s
  9212. }
  9213. func (s *UntagResourcesResponseBody) SetRequestId(v string) *UntagResourcesResponseBody {
  9214. s.RequestId = &v
  9215. return s
  9216. }
  9217. type UntagResourcesResponse struct {
  9218. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  9219. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  9220. Body *UntagResourcesResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  9221. }
  9222. func (s UntagResourcesResponse) String() string {
  9223. return tea.Prettify(s)
  9224. }
  9225. func (s UntagResourcesResponse) GoString() string {
  9226. return s.String()
  9227. }
  9228. func (s *UntagResourcesResponse) SetHeaders(v map[string]*string) *UntagResourcesResponse {
  9229. s.Headers = v
  9230. return s
  9231. }
  9232. func (s *UntagResourcesResponse) SetStatusCode(v int32) *UntagResourcesResponse {
  9233. s.StatusCode = &v
  9234. return s
  9235. }
  9236. func (s *UntagResourcesResponse) SetBody(v *UntagResourcesResponseBody) *UntagResourcesResponse {
  9237. s.Body = v
  9238. return s
  9239. }
  9240. type UpdateExtCodeSignRequest struct {
  9241. // 要修改的扩展码A3
  9242. //
  9243. // This parameter is required.
  9244. //
  9245. // example:
  9246. //
  9247. // 01
  9248. ExistExtCode *string `json:"ExistExtCode,omitempty" xml:"ExistExtCode,omitempty"`
  9249. // 修改后的扩展码A3
  9250. //
  9251. // This parameter is required.
  9252. //
  9253. // example:
  9254. //
  9255. // 02
  9256. NewExtCode *string `json:"NewExtCode,omitempty" xml:"NewExtCode,omitempty"`
  9257. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  9258. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  9259. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  9260. // 签名
  9261. //
  9262. // This parameter is required.
  9263. //
  9264. // example:
  9265. //
  9266. // 示例值示例值示例值
  9267. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  9268. }
  9269. func (s UpdateExtCodeSignRequest) String() string {
  9270. return tea.Prettify(s)
  9271. }
  9272. func (s UpdateExtCodeSignRequest) GoString() string {
  9273. return s.String()
  9274. }
  9275. func (s *UpdateExtCodeSignRequest) SetExistExtCode(v string) *UpdateExtCodeSignRequest {
  9276. s.ExistExtCode = &v
  9277. return s
  9278. }
  9279. func (s *UpdateExtCodeSignRequest) SetNewExtCode(v string) *UpdateExtCodeSignRequest {
  9280. s.NewExtCode = &v
  9281. return s
  9282. }
  9283. func (s *UpdateExtCodeSignRequest) SetOwnerId(v int64) *UpdateExtCodeSignRequest {
  9284. s.OwnerId = &v
  9285. return s
  9286. }
  9287. func (s *UpdateExtCodeSignRequest) SetResourceOwnerAccount(v string) *UpdateExtCodeSignRequest {
  9288. s.ResourceOwnerAccount = &v
  9289. return s
  9290. }
  9291. func (s *UpdateExtCodeSignRequest) SetResourceOwnerId(v int64) *UpdateExtCodeSignRequest {
  9292. s.ResourceOwnerId = &v
  9293. return s
  9294. }
  9295. func (s *UpdateExtCodeSignRequest) SetSignName(v string) *UpdateExtCodeSignRequest {
  9296. s.SignName = &v
  9297. return s
  9298. }
  9299. type UpdateExtCodeSignResponseBody struct {
  9300. AccessDeniedDetail *string `json:"AccessDeniedDetail,omitempty" xml:"AccessDeniedDetail,omitempty"`
  9301. // example:
  9302. //
  9303. // OK
  9304. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  9305. // example:
  9306. //
  9307. // false
  9308. Data *bool `json:"Data,omitempty" xml:"Data,omitempty"`
  9309. // example:
  9310. //
  9311. // OK
  9312. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  9313. // example:
  9314. //
  9315. // 90E63D28-E31D-1EB2-8939-A9486641****
  9316. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  9317. // example:
  9318. //
  9319. // true
  9320. Success *bool `json:"Success,omitempty" xml:"Success,omitempty"`
  9321. }
  9322. func (s UpdateExtCodeSignResponseBody) String() string {
  9323. return tea.Prettify(s)
  9324. }
  9325. func (s UpdateExtCodeSignResponseBody) GoString() string {
  9326. return s.String()
  9327. }
  9328. func (s *UpdateExtCodeSignResponseBody) SetAccessDeniedDetail(v string) *UpdateExtCodeSignResponseBody {
  9329. s.AccessDeniedDetail = &v
  9330. return s
  9331. }
  9332. func (s *UpdateExtCodeSignResponseBody) SetCode(v string) *UpdateExtCodeSignResponseBody {
  9333. s.Code = &v
  9334. return s
  9335. }
  9336. func (s *UpdateExtCodeSignResponseBody) SetData(v bool) *UpdateExtCodeSignResponseBody {
  9337. s.Data = &v
  9338. return s
  9339. }
  9340. func (s *UpdateExtCodeSignResponseBody) SetMessage(v string) *UpdateExtCodeSignResponseBody {
  9341. s.Message = &v
  9342. return s
  9343. }
  9344. func (s *UpdateExtCodeSignResponseBody) SetRequestId(v string) *UpdateExtCodeSignResponseBody {
  9345. s.RequestId = &v
  9346. return s
  9347. }
  9348. func (s *UpdateExtCodeSignResponseBody) SetSuccess(v bool) *UpdateExtCodeSignResponseBody {
  9349. s.Success = &v
  9350. return s
  9351. }
  9352. type UpdateExtCodeSignResponse struct {
  9353. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  9354. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  9355. Body *UpdateExtCodeSignResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  9356. }
  9357. func (s UpdateExtCodeSignResponse) String() string {
  9358. return tea.Prettify(s)
  9359. }
  9360. func (s UpdateExtCodeSignResponse) GoString() string {
  9361. return s.String()
  9362. }
  9363. func (s *UpdateExtCodeSignResponse) SetHeaders(v map[string]*string) *UpdateExtCodeSignResponse {
  9364. s.Headers = v
  9365. return s
  9366. }
  9367. func (s *UpdateExtCodeSignResponse) SetStatusCode(v int32) *UpdateExtCodeSignResponse {
  9368. s.StatusCode = &v
  9369. return s
  9370. }
  9371. func (s *UpdateExtCodeSignResponse) SetBody(v *UpdateExtCodeSignResponseBody) *UpdateExtCodeSignResponse {
  9372. s.Body = v
  9373. return s
  9374. }
  9375. type UpdateSmsSignRequest struct {
  9376. // Application scenarios, instructions as follows:
  9377. //
  9378. // - For registered websites, please enter the domain name registered with MIIT, including HTTP or HTTPS.
  9379. //
  9380. // - For launched apps, provide the display link from the app store with HTTP or HTTPS, ensuring the app is online.
  9381. //
  9382. // - For public accounts or mini-programs, fill in the full name, ensuring they are online.
  9383. //
  9384. // - For e-commerce platform store names (for enterprise users only), provide the display link with HTTP or HTTPS.
  9385. //
  9386. // example:
  9387. //
  9388. // http://www.aliyun.com/
  9389. ApplySceneContent *string `json:"ApplySceneContent,omitempty" xml:"ApplySceneContent,omitempty"`
  9390. // Additional materials, such as uploading business proof documents or screenshots of business operations, to help reviewers understand your business details.
  9391. MoreData []*string `json:"MoreData,omitempty" xml:"MoreData,omitempty" type:"Repeated"`
  9392. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  9393. // Approved or under-review qualification ID.
  9394. //
  9395. // > - Before applying for an SMS signature, please first [apply for qualifications](https://help.aliyun.com/zh/sms/user-guide/new-qualification?spm=a2c4g.11186623.0.0.718d187bbkpMRK).
  9396. //
  9397. // > - You can view the qualification ID on the [Qualification Management](https://dysms.console.aliyun.com/domestic/text/qualification) page.
  9398. //
  9399. // This parameter is required.
  9400. //
  9401. // example:
  9402. //
  9403. // 8563**
  9404. QualificationId *int64 `json:"QualificationId,omitempty" xml:"QualificationId,omitempty"`
  9405. // Explanation of the SMS signature scenario, with a maximum length of 200 characters.
  9406. //
  9407. // > The scenario explanation is one of the reference information for signature review. Please provide a detailed description of the usage scenarios of the launched business, along with verifiable information such as website links, registered domain addresses, app store download links, full names of public accounts or mini-programs, etc. For login scenarios, test account credentials are also required. A well-informed application explanation will enhance the efficiency of signature and template reviews. Refer to the **Application Scenarios* - column in the [Signature Source](https://help.aliyun.com/zh/sms/user-guide/signature-specifications-1?spm=a2c4g.11186623.0.i2#section-xup-k46-yi4) table for filling in SMS scenarios.
  9408. //
  9409. // example:
  9410. //
  9411. // 登录场景申请验证码
  9412. Remark *string `json:"Remark,omitempty" xml:"Remark,omitempty"`
  9413. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  9414. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  9415. // Signature not yet approved.
  9416. //
  9417. // This parameter is required.
  9418. //
  9419. // example:
  9420. //
  9421. // 阿里云验证码
  9422. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  9423. // Source of the signature. Values:
  9424. //
  9425. // - **0**: Full name or abbreviation of enterprises and institutions.
  9426. //
  9427. // - **1**: Full name or abbreviation of MIIT-registered websites.
  9428. //
  9429. // - **2**: Full name or abbreviation of app applications.
  9430. //
  9431. // - **3**: Full name or abbreviation of public accounts or mini-programs.
  9432. //
  9433. // - **4**: Full name or abbreviation of e-commerce platform store names.
  9434. //
  9435. // - **5**: Full name or abbreviation of trademarks.
  9436. //
  9437. // This parameter is required.
  9438. //
  9439. // example:
  9440. //
  9441. // 1
  9442. SignSource *int32 `json:"SignSource,omitempty" xml:"SignSource,omitempty"`
  9443. // Signature type. It is recommended to use the default value.
  9444. //
  9445. // - **0**: Verification code
  9446. //
  9447. // - **1**: General (default)
  9448. //
  9449. // example:
  9450. //
  9451. // 1
  9452. SignType *int32 `json:"SignType,omitempty" xml:"SignType,omitempty"`
  9453. // Whether the signature is for self-use or others.
  9454. //
  9455. // - false: Self-use
  9456. //
  9457. // - true: Others
  9458. //
  9459. // Notice: When the signature is for self-use, select the self-use qualification ID; when it\\"s for others, choose the others\\" qualification ID.
  9460. //
  9461. // example:
  9462. //
  9463. // false
  9464. ThirdParty *bool `json:"ThirdParty,omitempty" xml:"ThirdParty,omitempty"`
  9465. }
  9466. func (s UpdateSmsSignRequest) String() string {
  9467. return tea.Prettify(s)
  9468. }
  9469. func (s UpdateSmsSignRequest) GoString() string {
  9470. return s.String()
  9471. }
  9472. func (s *UpdateSmsSignRequest) SetApplySceneContent(v string) *UpdateSmsSignRequest {
  9473. s.ApplySceneContent = &v
  9474. return s
  9475. }
  9476. func (s *UpdateSmsSignRequest) SetMoreData(v []*string) *UpdateSmsSignRequest {
  9477. s.MoreData = v
  9478. return s
  9479. }
  9480. func (s *UpdateSmsSignRequest) SetOwnerId(v int64) *UpdateSmsSignRequest {
  9481. s.OwnerId = &v
  9482. return s
  9483. }
  9484. func (s *UpdateSmsSignRequest) SetQualificationId(v int64) *UpdateSmsSignRequest {
  9485. s.QualificationId = &v
  9486. return s
  9487. }
  9488. func (s *UpdateSmsSignRequest) SetRemark(v string) *UpdateSmsSignRequest {
  9489. s.Remark = &v
  9490. return s
  9491. }
  9492. func (s *UpdateSmsSignRequest) SetResourceOwnerAccount(v string) *UpdateSmsSignRequest {
  9493. s.ResourceOwnerAccount = &v
  9494. return s
  9495. }
  9496. func (s *UpdateSmsSignRequest) SetResourceOwnerId(v int64) *UpdateSmsSignRequest {
  9497. s.ResourceOwnerId = &v
  9498. return s
  9499. }
  9500. func (s *UpdateSmsSignRequest) SetSignName(v string) *UpdateSmsSignRequest {
  9501. s.SignName = &v
  9502. return s
  9503. }
  9504. func (s *UpdateSmsSignRequest) SetSignSource(v int32) *UpdateSmsSignRequest {
  9505. s.SignSource = &v
  9506. return s
  9507. }
  9508. func (s *UpdateSmsSignRequest) SetSignType(v int32) *UpdateSmsSignRequest {
  9509. s.SignType = &v
  9510. return s
  9511. }
  9512. func (s *UpdateSmsSignRequest) SetThirdParty(v bool) *UpdateSmsSignRequest {
  9513. s.ThirdParty = &v
  9514. return s
  9515. }
  9516. type UpdateSmsSignShrinkRequest struct {
  9517. // Application scenarios, instructions as follows:
  9518. //
  9519. // - For registered websites, please enter the domain name registered with MIIT, including HTTP or HTTPS.
  9520. //
  9521. // - For launched apps, provide the display link from the app store with HTTP or HTTPS, ensuring the app is online.
  9522. //
  9523. // - For public accounts or mini-programs, fill in the full name, ensuring they are online.
  9524. //
  9525. // - For e-commerce platform store names (for enterprise users only), provide the display link with HTTP or HTTPS.
  9526. //
  9527. // example:
  9528. //
  9529. // http://www.aliyun.com/
  9530. ApplySceneContent *string `json:"ApplySceneContent,omitempty" xml:"ApplySceneContent,omitempty"`
  9531. // Additional materials, such as uploading business proof documents or screenshots of business operations, to help reviewers understand your business details.
  9532. MoreDataShrink *string `json:"MoreData,omitempty" xml:"MoreData,omitempty"`
  9533. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  9534. // Approved or under-review qualification ID.
  9535. //
  9536. // > - Before applying for an SMS signature, please first [apply for qualifications](https://help.aliyun.com/zh/sms/user-guide/new-qualification?spm=a2c4g.11186623.0.0.718d187bbkpMRK).
  9537. //
  9538. // > - You can view the qualification ID on the [Qualification Management](https://dysms.console.aliyun.com/domestic/text/qualification) page.
  9539. //
  9540. // This parameter is required.
  9541. //
  9542. // example:
  9543. //
  9544. // 8563**
  9545. QualificationId *int64 `json:"QualificationId,omitempty" xml:"QualificationId,omitempty"`
  9546. // Explanation of the SMS signature scenario, with a maximum length of 200 characters.
  9547. //
  9548. // > The scenario explanation is one of the reference information for signature review. Please provide a detailed description of the usage scenarios of the launched business, along with verifiable information such as website links, registered domain addresses, app store download links, full names of public accounts or mini-programs, etc. For login scenarios, test account credentials are also required. A well-informed application explanation will enhance the efficiency of signature and template reviews. Refer to the **Application Scenarios* - column in the [Signature Source](https://help.aliyun.com/zh/sms/user-guide/signature-specifications-1?spm=a2c4g.11186623.0.i2#section-xup-k46-yi4) table for filling in SMS scenarios.
  9549. //
  9550. // example:
  9551. //
  9552. // 登录场景申请验证码
  9553. Remark *string `json:"Remark,omitempty" xml:"Remark,omitempty"`
  9554. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  9555. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  9556. // Signature not yet approved.
  9557. //
  9558. // This parameter is required.
  9559. //
  9560. // example:
  9561. //
  9562. // 阿里云验证码
  9563. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  9564. // Source of the signature. Values:
  9565. //
  9566. // - **0**: Full name or abbreviation of enterprises and institutions.
  9567. //
  9568. // - **1**: Full name or abbreviation of MIIT-registered websites.
  9569. //
  9570. // - **2**: Full name or abbreviation of app applications.
  9571. //
  9572. // - **3**: Full name or abbreviation of public accounts or mini-programs.
  9573. //
  9574. // - **4**: Full name or abbreviation of e-commerce platform store names.
  9575. //
  9576. // - **5**: Full name or abbreviation of trademarks.
  9577. //
  9578. // This parameter is required.
  9579. //
  9580. // example:
  9581. //
  9582. // 1
  9583. SignSource *int32 `json:"SignSource,omitempty" xml:"SignSource,omitempty"`
  9584. // Signature type. It is recommended to use the default value.
  9585. //
  9586. // - **0**: Verification code
  9587. //
  9588. // - **1**: General (default)
  9589. //
  9590. // example:
  9591. //
  9592. // 1
  9593. SignType *int32 `json:"SignType,omitempty" xml:"SignType,omitempty"`
  9594. // Whether the signature is for self-use or others.
  9595. //
  9596. // - false: Self-use
  9597. //
  9598. // - true: Others
  9599. //
  9600. // Notice: When the signature is for self-use, select the self-use qualification ID; when it\\"s for others, choose the others\\" qualification ID.
  9601. //
  9602. // example:
  9603. //
  9604. // false
  9605. ThirdParty *bool `json:"ThirdParty,omitempty" xml:"ThirdParty,omitempty"`
  9606. }
  9607. func (s UpdateSmsSignShrinkRequest) String() string {
  9608. return tea.Prettify(s)
  9609. }
  9610. func (s UpdateSmsSignShrinkRequest) GoString() string {
  9611. return s.String()
  9612. }
  9613. func (s *UpdateSmsSignShrinkRequest) SetApplySceneContent(v string) *UpdateSmsSignShrinkRequest {
  9614. s.ApplySceneContent = &v
  9615. return s
  9616. }
  9617. func (s *UpdateSmsSignShrinkRequest) SetMoreDataShrink(v string) *UpdateSmsSignShrinkRequest {
  9618. s.MoreDataShrink = &v
  9619. return s
  9620. }
  9621. func (s *UpdateSmsSignShrinkRequest) SetOwnerId(v int64) *UpdateSmsSignShrinkRequest {
  9622. s.OwnerId = &v
  9623. return s
  9624. }
  9625. func (s *UpdateSmsSignShrinkRequest) SetQualificationId(v int64) *UpdateSmsSignShrinkRequest {
  9626. s.QualificationId = &v
  9627. return s
  9628. }
  9629. func (s *UpdateSmsSignShrinkRequest) SetRemark(v string) *UpdateSmsSignShrinkRequest {
  9630. s.Remark = &v
  9631. return s
  9632. }
  9633. func (s *UpdateSmsSignShrinkRequest) SetResourceOwnerAccount(v string) *UpdateSmsSignShrinkRequest {
  9634. s.ResourceOwnerAccount = &v
  9635. return s
  9636. }
  9637. func (s *UpdateSmsSignShrinkRequest) SetResourceOwnerId(v int64) *UpdateSmsSignShrinkRequest {
  9638. s.ResourceOwnerId = &v
  9639. return s
  9640. }
  9641. func (s *UpdateSmsSignShrinkRequest) SetSignName(v string) *UpdateSmsSignShrinkRequest {
  9642. s.SignName = &v
  9643. return s
  9644. }
  9645. func (s *UpdateSmsSignShrinkRequest) SetSignSource(v int32) *UpdateSmsSignShrinkRequest {
  9646. s.SignSource = &v
  9647. return s
  9648. }
  9649. func (s *UpdateSmsSignShrinkRequest) SetSignType(v int32) *UpdateSmsSignShrinkRequest {
  9650. s.SignType = &v
  9651. return s
  9652. }
  9653. func (s *UpdateSmsSignShrinkRequest) SetThirdParty(v bool) *UpdateSmsSignShrinkRequest {
  9654. s.ThirdParty = &v
  9655. return s
  9656. }
  9657. type UpdateSmsSignResponseBody struct {
  9658. // Request status code.
  9659. //
  9660. // - OK indicates a successful request.
  9661. //
  9662. // - For other error codes, refer to [Error Code List](https://help.aliyun.com/document_detail/101346.html).
  9663. //
  9664. // example:
  9665. //
  9666. // OK
  9667. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  9668. // Description of the status code.
  9669. //
  9670. // example:
  9671. //
  9672. // OK
  9673. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  9674. // Work order number.
  9675. //
  9676. // This parameter is used by auditors when querying audits. You need to provide this work order number for expedited review.
  9677. //
  9678. // example:
  9679. //
  9680. // 2004417****
  9681. OrderId *string `json:"OrderId,omitempty" xml:"OrderId,omitempty"`
  9682. // The ID of this call request, uniquely generated by Alibaba Cloud, which can be used for troubleshooting and issue localization.
  9683. //
  9684. // example:
  9685. //
  9686. // A90E4451-FED7-49D2-87C8-00700A8C4D0D
  9687. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  9688. // The modified signature name.
  9689. //
  9690. // example:
  9691. //
  9692. // 登录验证
  9693. SignName *string `json:"SignName,omitempty" xml:"SignName,omitempty"`
  9694. }
  9695. func (s UpdateSmsSignResponseBody) String() string {
  9696. return tea.Prettify(s)
  9697. }
  9698. func (s UpdateSmsSignResponseBody) GoString() string {
  9699. return s.String()
  9700. }
  9701. func (s *UpdateSmsSignResponseBody) SetCode(v string) *UpdateSmsSignResponseBody {
  9702. s.Code = &v
  9703. return s
  9704. }
  9705. func (s *UpdateSmsSignResponseBody) SetMessage(v string) *UpdateSmsSignResponseBody {
  9706. s.Message = &v
  9707. return s
  9708. }
  9709. func (s *UpdateSmsSignResponseBody) SetOrderId(v string) *UpdateSmsSignResponseBody {
  9710. s.OrderId = &v
  9711. return s
  9712. }
  9713. func (s *UpdateSmsSignResponseBody) SetRequestId(v string) *UpdateSmsSignResponseBody {
  9714. s.RequestId = &v
  9715. return s
  9716. }
  9717. func (s *UpdateSmsSignResponseBody) SetSignName(v string) *UpdateSmsSignResponseBody {
  9718. s.SignName = &v
  9719. return s
  9720. }
  9721. type UpdateSmsSignResponse struct {
  9722. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  9723. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  9724. Body *UpdateSmsSignResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  9725. }
  9726. func (s UpdateSmsSignResponse) String() string {
  9727. return tea.Prettify(s)
  9728. }
  9729. func (s UpdateSmsSignResponse) GoString() string {
  9730. return s.String()
  9731. }
  9732. func (s *UpdateSmsSignResponse) SetHeaders(v map[string]*string) *UpdateSmsSignResponse {
  9733. s.Headers = v
  9734. return s
  9735. }
  9736. func (s *UpdateSmsSignResponse) SetStatusCode(v int32) *UpdateSmsSignResponse {
  9737. s.StatusCode = &v
  9738. return s
  9739. }
  9740. func (s *UpdateSmsSignResponse) SetBody(v *UpdateSmsSignResponseBody) *UpdateSmsSignResponse {
  9741. s.Body = v
  9742. return s
  9743. }
  9744. type UpdateSmsTemplateRequest struct {
  9745. // Application scenarios, instructions as follows:
  9746. //
  9747. // - For registered websites, please enter the MIIT-registered domain with HTTP or HTTPS.
  9748. //
  9749. // - For launched apps, provide the app store display link with HTTP or HTTPS, ensuring the app is online.
  9750. //
  9751. // - For public accounts or mini-programs, enter the full name of the public account or mini-program, ensuring they are online.
  9752. //
  9753. // - For e-commerce platform stores, applicable only to enterprise users, enter the display link of the e-commerce store with HTTP or HTTPS.
  9754. //
  9755. // example:
  9756. //
  9757. // http://www.aliyun.com/
  9758. ApplySceneContent *string `json:"ApplySceneContent,omitempty" xml:"ApplySceneContent,omitempty"`
  9759. // International/Hong Kong, Macao, and Taiwan template type. When the **TemplateType* - parameter is **3**, this parameter is required for international/Hong Kong, Macao, and Taiwan templates, with values:
  9760. //
  9761. // - **0**: Verification code.
  9762. //
  9763. // - **1**: SMS notification.
  9764. //
  9765. // - **2**: Promotional SMS.
  9766. //
  9767. // example:
  9768. //
  9769. // 0
  9770. IntlType *int32 `json:"IntlType,omitempty" xml:"IntlType,omitempty"`
  9771. // Additional information, such as uploading business proof documents or screenshots, to help reviewers understand your business details. Optional and can be left unset.
  9772. MoreData []*string `json:"MoreData,omitempty" xml:"MoreData,omitempty" type:"Repeated"`
  9773. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  9774. // SMS signature associated with the template during the application.
  9775. //
  9776. // example:
  9777. //
  9778. // 阿里云
  9779. RelatedSignName *string `json:"RelatedSignName,omitempty" xml:"RelatedSignName,omitempty"`
  9780. // Explanation for the SMS template application, which serves as a reference for template review.
  9781. //
  9782. // example:
  9783. //
  9784. // 登录场景使用验证码
  9785. Remark *string `json:"Remark,omitempty" xml:"Remark,omitempty"`
  9786. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  9787. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  9788. // Template Code of an unapproved template.
  9789. //
  9790. // This parameter is required.
  9791. //
  9792. // example:
  9793. //
  9794. // SMS_152550****
  9795. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  9796. // Template content, up to 500 characters in length.
  9797. //
  9798. // Both the template content and variable content must comply with SMS regulations; otherwise, the template will fail the review. You can also view common template examples on the template application page. Using sample templates can enhance review efficiency and success rates. Variable specifications can be found in [TemplateContent Parameter Variable Specifications](https://help.aliyun.com/zh/sms/templaterule-template-variable-parameter-filling-example?spm).
  9799. //
  9800. // This parameter is required.
  9801. //
  9802. // example:
  9803. //
  9804. // 您正在申请手机注册,验证码为:${code},5分钟内有效!
  9805. TemplateContent *string `json:"TemplateContent,omitempty" xml:"TemplateContent,omitempty"`
  9806. // Template name, up to 30 characters in length.
  9807. //
  9808. // This parameter is required.
  9809. //
  9810. // example:
  9811. //
  9812. // 验证码
  9813. TemplateName *string `json:"TemplateName,omitempty" xml:"TemplateName,omitempty"`
  9814. // Template variable rules.
  9815. //
  9816. // For guidance on filling variable rules, refer to the [Sample Documentation](https://help.aliyun.com/zh/sms/templaterule-template-variable-parameter-filling-example?spm).
  9817. //
  9818. // example:
  9819. //
  9820. // {"code":"characterWithNumber"}
  9821. TemplateRule *string `json:"TemplateRule,omitempty" xml:"TemplateRule,omitempty"`
  9822. // SMS type. Values:
  9823. //
  9824. // - **0**: Verification code.
  9825. //
  9826. // - **1**: SMS notification.
  9827. //
  9828. // - **2**: Promotional SMS.
  9829. //
  9830. // - **3**: International/Hong Kong, Macao, and Taiwan messages.
  9831. //
  9832. // > Only enterprise-certified users can apply for promotional SMS and international/Hong Kong, Macao, and Taiwan messages. Details on differences between personal and enterprise user rights are available in [Usage Guidelines](https://help.aliyun.com/zh/sms/user-guide/usage-notes?spm=a2c4g.11186623.0.0.67447f576NJnE8).
  9833. //
  9834. // This parameter is required.
  9835. //
  9836. // example:
  9837. //
  9838. // 0
  9839. TemplateType *int32 `json:"TemplateType,omitempty" xml:"TemplateType,omitempty"`
  9840. }
  9841. func (s UpdateSmsTemplateRequest) String() string {
  9842. return tea.Prettify(s)
  9843. }
  9844. func (s UpdateSmsTemplateRequest) GoString() string {
  9845. return s.String()
  9846. }
  9847. func (s *UpdateSmsTemplateRequest) SetApplySceneContent(v string) *UpdateSmsTemplateRequest {
  9848. s.ApplySceneContent = &v
  9849. return s
  9850. }
  9851. func (s *UpdateSmsTemplateRequest) SetIntlType(v int32) *UpdateSmsTemplateRequest {
  9852. s.IntlType = &v
  9853. return s
  9854. }
  9855. func (s *UpdateSmsTemplateRequest) SetMoreData(v []*string) *UpdateSmsTemplateRequest {
  9856. s.MoreData = v
  9857. return s
  9858. }
  9859. func (s *UpdateSmsTemplateRequest) SetOwnerId(v int64) *UpdateSmsTemplateRequest {
  9860. s.OwnerId = &v
  9861. return s
  9862. }
  9863. func (s *UpdateSmsTemplateRequest) SetRelatedSignName(v string) *UpdateSmsTemplateRequest {
  9864. s.RelatedSignName = &v
  9865. return s
  9866. }
  9867. func (s *UpdateSmsTemplateRequest) SetRemark(v string) *UpdateSmsTemplateRequest {
  9868. s.Remark = &v
  9869. return s
  9870. }
  9871. func (s *UpdateSmsTemplateRequest) SetResourceOwnerAccount(v string) *UpdateSmsTemplateRequest {
  9872. s.ResourceOwnerAccount = &v
  9873. return s
  9874. }
  9875. func (s *UpdateSmsTemplateRequest) SetResourceOwnerId(v int64) *UpdateSmsTemplateRequest {
  9876. s.ResourceOwnerId = &v
  9877. return s
  9878. }
  9879. func (s *UpdateSmsTemplateRequest) SetTemplateCode(v string) *UpdateSmsTemplateRequest {
  9880. s.TemplateCode = &v
  9881. return s
  9882. }
  9883. func (s *UpdateSmsTemplateRequest) SetTemplateContent(v string) *UpdateSmsTemplateRequest {
  9884. s.TemplateContent = &v
  9885. return s
  9886. }
  9887. func (s *UpdateSmsTemplateRequest) SetTemplateName(v string) *UpdateSmsTemplateRequest {
  9888. s.TemplateName = &v
  9889. return s
  9890. }
  9891. func (s *UpdateSmsTemplateRequest) SetTemplateRule(v string) *UpdateSmsTemplateRequest {
  9892. s.TemplateRule = &v
  9893. return s
  9894. }
  9895. func (s *UpdateSmsTemplateRequest) SetTemplateType(v int32) *UpdateSmsTemplateRequest {
  9896. s.TemplateType = &v
  9897. return s
  9898. }
  9899. type UpdateSmsTemplateShrinkRequest struct {
  9900. // Application scenarios, instructions as follows:
  9901. //
  9902. // - For registered websites, please enter the MIIT-registered domain with HTTP or HTTPS.
  9903. //
  9904. // - For launched apps, provide the app store display link with HTTP or HTTPS, ensuring the app is online.
  9905. //
  9906. // - For public accounts or mini-programs, enter the full name of the public account or mini-program, ensuring they are online.
  9907. //
  9908. // - For e-commerce platform stores, applicable only to enterprise users, enter the display link of the e-commerce store with HTTP or HTTPS.
  9909. //
  9910. // example:
  9911. //
  9912. // http://www.aliyun.com/
  9913. ApplySceneContent *string `json:"ApplySceneContent,omitempty" xml:"ApplySceneContent,omitempty"`
  9914. // International/Hong Kong, Macao, and Taiwan template type. When the **TemplateType* - parameter is **3**, this parameter is required for international/Hong Kong, Macao, and Taiwan templates, with values:
  9915. //
  9916. // - **0**: Verification code.
  9917. //
  9918. // - **1**: SMS notification.
  9919. //
  9920. // - **2**: Promotional SMS.
  9921. //
  9922. // example:
  9923. //
  9924. // 0
  9925. IntlType *int32 `json:"IntlType,omitempty" xml:"IntlType,omitempty"`
  9926. // Additional information, such as uploading business proof documents or screenshots, to help reviewers understand your business details. Optional and can be left unset.
  9927. MoreDataShrink *string `json:"MoreData,omitempty" xml:"MoreData,omitempty"`
  9928. OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
  9929. // SMS signature associated with the template during the application.
  9930. //
  9931. // example:
  9932. //
  9933. // 阿里云
  9934. RelatedSignName *string `json:"RelatedSignName,omitempty" xml:"RelatedSignName,omitempty"`
  9935. // Explanation for the SMS template application, which serves as a reference for template review.
  9936. //
  9937. // example:
  9938. //
  9939. // 登录场景使用验证码
  9940. Remark *string `json:"Remark,omitempty" xml:"Remark,omitempty"`
  9941. ResourceOwnerAccount *string `json:"ResourceOwnerAccount,omitempty" xml:"ResourceOwnerAccount,omitempty"`
  9942. ResourceOwnerId *int64 `json:"ResourceOwnerId,omitempty" xml:"ResourceOwnerId,omitempty"`
  9943. // Template Code of an unapproved template.
  9944. //
  9945. // This parameter is required.
  9946. //
  9947. // example:
  9948. //
  9949. // SMS_152550****
  9950. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  9951. // Template content, up to 500 characters in length.
  9952. //
  9953. // Both the template content and variable content must comply with SMS regulations; otherwise, the template will fail the review. You can also view common template examples on the template application page. Using sample templates can enhance review efficiency and success rates. Variable specifications can be found in [TemplateContent Parameter Variable Specifications](https://help.aliyun.com/zh/sms/templaterule-template-variable-parameter-filling-example?spm).
  9954. //
  9955. // This parameter is required.
  9956. //
  9957. // example:
  9958. //
  9959. // 您正在申请手机注册,验证码为:${code},5分钟内有效!
  9960. TemplateContent *string `json:"TemplateContent,omitempty" xml:"TemplateContent,omitempty"`
  9961. // Template name, up to 30 characters in length.
  9962. //
  9963. // This parameter is required.
  9964. //
  9965. // example:
  9966. //
  9967. // 验证码
  9968. TemplateName *string `json:"TemplateName,omitempty" xml:"TemplateName,omitempty"`
  9969. // Template variable rules.
  9970. //
  9971. // For guidance on filling variable rules, refer to the [Sample Documentation](https://help.aliyun.com/zh/sms/templaterule-template-variable-parameter-filling-example?spm).
  9972. //
  9973. // example:
  9974. //
  9975. // {"code":"characterWithNumber"}
  9976. TemplateRule *string `json:"TemplateRule,omitempty" xml:"TemplateRule,omitempty"`
  9977. // SMS type. Values:
  9978. //
  9979. // - **0**: Verification code.
  9980. //
  9981. // - **1**: SMS notification.
  9982. //
  9983. // - **2**: Promotional SMS.
  9984. //
  9985. // - **3**: International/Hong Kong, Macao, and Taiwan messages.
  9986. //
  9987. // > Only enterprise-certified users can apply for promotional SMS and international/Hong Kong, Macao, and Taiwan messages. Details on differences between personal and enterprise user rights are available in [Usage Guidelines](https://help.aliyun.com/zh/sms/user-guide/usage-notes?spm=a2c4g.11186623.0.0.67447f576NJnE8).
  9988. //
  9989. // This parameter is required.
  9990. //
  9991. // example:
  9992. //
  9993. // 0
  9994. TemplateType *int32 `json:"TemplateType,omitempty" xml:"TemplateType,omitempty"`
  9995. }
  9996. func (s UpdateSmsTemplateShrinkRequest) String() string {
  9997. return tea.Prettify(s)
  9998. }
  9999. func (s UpdateSmsTemplateShrinkRequest) GoString() string {
  10000. return s.String()
  10001. }
  10002. func (s *UpdateSmsTemplateShrinkRequest) SetApplySceneContent(v string) *UpdateSmsTemplateShrinkRequest {
  10003. s.ApplySceneContent = &v
  10004. return s
  10005. }
  10006. func (s *UpdateSmsTemplateShrinkRequest) SetIntlType(v int32) *UpdateSmsTemplateShrinkRequest {
  10007. s.IntlType = &v
  10008. return s
  10009. }
  10010. func (s *UpdateSmsTemplateShrinkRequest) SetMoreDataShrink(v string) *UpdateSmsTemplateShrinkRequest {
  10011. s.MoreDataShrink = &v
  10012. return s
  10013. }
  10014. func (s *UpdateSmsTemplateShrinkRequest) SetOwnerId(v int64) *UpdateSmsTemplateShrinkRequest {
  10015. s.OwnerId = &v
  10016. return s
  10017. }
  10018. func (s *UpdateSmsTemplateShrinkRequest) SetRelatedSignName(v string) *UpdateSmsTemplateShrinkRequest {
  10019. s.RelatedSignName = &v
  10020. return s
  10021. }
  10022. func (s *UpdateSmsTemplateShrinkRequest) SetRemark(v string) *UpdateSmsTemplateShrinkRequest {
  10023. s.Remark = &v
  10024. return s
  10025. }
  10026. func (s *UpdateSmsTemplateShrinkRequest) SetResourceOwnerAccount(v string) *UpdateSmsTemplateShrinkRequest {
  10027. s.ResourceOwnerAccount = &v
  10028. return s
  10029. }
  10030. func (s *UpdateSmsTemplateShrinkRequest) SetResourceOwnerId(v int64) *UpdateSmsTemplateShrinkRequest {
  10031. s.ResourceOwnerId = &v
  10032. return s
  10033. }
  10034. func (s *UpdateSmsTemplateShrinkRequest) SetTemplateCode(v string) *UpdateSmsTemplateShrinkRequest {
  10035. s.TemplateCode = &v
  10036. return s
  10037. }
  10038. func (s *UpdateSmsTemplateShrinkRequest) SetTemplateContent(v string) *UpdateSmsTemplateShrinkRequest {
  10039. s.TemplateContent = &v
  10040. return s
  10041. }
  10042. func (s *UpdateSmsTemplateShrinkRequest) SetTemplateName(v string) *UpdateSmsTemplateShrinkRequest {
  10043. s.TemplateName = &v
  10044. return s
  10045. }
  10046. func (s *UpdateSmsTemplateShrinkRequest) SetTemplateRule(v string) *UpdateSmsTemplateShrinkRequest {
  10047. s.TemplateRule = &v
  10048. return s
  10049. }
  10050. func (s *UpdateSmsTemplateShrinkRequest) SetTemplateType(v int32) *UpdateSmsTemplateShrinkRequest {
  10051. s.TemplateType = &v
  10052. return s
  10053. }
  10054. type UpdateSmsTemplateResponseBody struct {
  10055. // Request status code.
  10056. //
  10057. // - OK indicates a successful request.
  10058. //
  10059. // - For other error codes, refer to the **Error Codes* - section of this chapter or the product\\"s [API Error Codes](https://help.aliyun.com/document_detail/101346.html).
  10060. //
  10061. // example:
  10062. //
  10063. // OK
  10064. Code *string `json:"Code,omitempty" xml:"Code,omitempty"`
  10065. // Description of the status code.
  10066. //
  10067. // example:
  10068. //
  10069. // OK
  10070. Message *string `json:"Message,omitempty" xml:"Message,omitempty"`
  10071. // Work order number.
  10072. //
  10073. // This parameter is used by auditors when querying audits. You need to provide this work order number when requesting expedited review.
  10074. //
  10075. // example:
  10076. //
  10077. // 20041271****
  10078. OrderId *string `json:"OrderId,omitempty" xml:"OrderId,omitempty"`
  10079. // The ID of this call request, which is a unique identifier generated by Alibaba Cloud for the request and can be used to troubleshoot and locate issues.
  10080. //
  10081. // example:
  10082. //
  10083. // 819BE656-D2E0-4858-8B21-B2E477085AAF
  10084. RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"`
  10085. // Code of the SMS template.
  10086. //
  10087. // example:
  10088. //
  10089. // SMS_152550****
  10090. TemplateCode *string `json:"TemplateCode,omitempty" xml:"TemplateCode,omitempty"`
  10091. // Name of the SMS template.
  10092. //
  10093. // example:
  10094. //
  10095. // 验证码
  10096. TemplateName *string `json:"TemplateName,omitempty" xml:"TemplateName,omitempty"`
  10097. }
  10098. func (s UpdateSmsTemplateResponseBody) String() string {
  10099. return tea.Prettify(s)
  10100. }
  10101. func (s UpdateSmsTemplateResponseBody) GoString() string {
  10102. return s.String()
  10103. }
  10104. func (s *UpdateSmsTemplateResponseBody) SetCode(v string) *UpdateSmsTemplateResponseBody {
  10105. s.Code = &v
  10106. return s
  10107. }
  10108. func (s *UpdateSmsTemplateResponseBody) SetMessage(v string) *UpdateSmsTemplateResponseBody {
  10109. s.Message = &v
  10110. return s
  10111. }
  10112. func (s *UpdateSmsTemplateResponseBody) SetOrderId(v string) *UpdateSmsTemplateResponseBody {
  10113. s.OrderId = &v
  10114. return s
  10115. }
  10116. func (s *UpdateSmsTemplateResponseBody) SetRequestId(v string) *UpdateSmsTemplateResponseBody {
  10117. s.RequestId = &v
  10118. return s
  10119. }
  10120. func (s *UpdateSmsTemplateResponseBody) SetTemplateCode(v string) *UpdateSmsTemplateResponseBody {
  10121. s.TemplateCode = &v
  10122. return s
  10123. }
  10124. func (s *UpdateSmsTemplateResponseBody) SetTemplateName(v string) *UpdateSmsTemplateResponseBody {
  10125. s.TemplateName = &v
  10126. return s
  10127. }
  10128. type UpdateSmsTemplateResponse struct {
  10129. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  10130. StatusCode *int32 `json:"statusCode,omitempty" xml:"statusCode,omitempty"`
  10131. Body *UpdateSmsTemplateResponseBody `json:"body,omitempty" xml:"body,omitempty"`
  10132. }
  10133. func (s UpdateSmsTemplateResponse) String() string {
  10134. return tea.Prettify(s)
  10135. }
  10136. func (s UpdateSmsTemplateResponse) GoString() string {
  10137. return s.String()
  10138. }
  10139. func (s *UpdateSmsTemplateResponse) SetHeaders(v map[string]*string) *UpdateSmsTemplateResponse {
  10140. s.Headers = v
  10141. return s
  10142. }
  10143. func (s *UpdateSmsTemplateResponse) SetStatusCode(v int32) *UpdateSmsTemplateResponse {
  10144. s.StatusCode = &v
  10145. return s
  10146. }
  10147. func (s *UpdateSmsTemplateResponse) SetBody(v *UpdateSmsTemplateResponseBody) *UpdateSmsTemplateResponse {
  10148. s.Body = v
  10149. return s
  10150. }
  10151. type Client struct {
  10152. openapi.Client
  10153. }
  10154. func NewClient(config *openapi.Config) (*Client, error) {
  10155. client := new(Client)
  10156. err := client.Init(config)
  10157. return client, err
  10158. }
  10159. func (client *Client) Init(config *openapi.Config) (_err error) {
  10160. _err = client.Client.Init(config)
  10161. if _err != nil {
  10162. return _err
  10163. }
  10164. client.EndpointRule = tea.String("central")
  10165. client.EndpointMap = map[string]*string{
  10166. "ap-southeast-1": tea.String("dysmsapi.ap-southeast-1.aliyuncs.com"),
  10167. "ap-southeast-5": tea.String("dysmsapi.ap-southeast-5.aliyuncs.com"),
  10168. "cn-beijing": tea.String("dysmsapi-proxy.cn-beijing.aliyuncs.com"),
  10169. "cn-hongkong": tea.String("dysmsapi-xman.cn-hongkong.aliyuncs.com"),
  10170. "eu-central-1": tea.String("dysmsapi.eu-central-1.aliyuncs.com"),
  10171. "us-east-1": tea.String("dysmsapi.us-east-1.aliyuncs.com"),
  10172. }
  10173. _err = client.CheckConfig(config)
  10174. if _err != nil {
  10175. return _err
  10176. }
  10177. client.Endpoint, _err = client.GetEndpoint(tea.String("dysmsapi"), client.RegionId, client.EndpointRule, client.Network, client.Suffix, client.EndpointMap, client.Endpoint)
  10178. if _err != nil {
  10179. return _err
  10180. }
  10181. return nil
  10182. }
  10183. func (client *Client) GetEndpoint(productId *string, regionId *string, endpointRule *string, network *string, suffix *string, endpointMap map[string]*string, endpoint *string) (_result *string, _err error) {
  10184. if !tea.BoolValue(util.Empty(endpoint)) {
  10185. _result = endpoint
  10186. return _result, _err
  10187. }
  10188. if !tea.BoolValue(util.IsUnset(endpointMap)) && !tea.BoolValue(util.Empty(endpointMap[tea.StringValue(regionId)])) {
  10189. _result = endpointMap[tea.StringValue(regionId)]
  10190. return _result, _err
  10191. }
  10192. _body, _err := endpointutil.GetEndpointRules(productId, regionId, endpointRule, network, suffix)
  10193. if _err != nil {
  10194. return _result, _err
  10195. }
  10196. _result = _body
  10197. return _result, _err
  10198. }
  10199. // Summary:
  10200. //
  10201. // 添加验证码签名信息
  10202. //
  10203. // @param request - AddExtCodeSignRequest
  10204. //
  10205. // @param runtime - runtime options for this request RuntimeOptions
  10206. //
  10207. // @return AddExtCodeSignResponse
  10208. func (client *Client) AddExtCodeSignWithOptions(request *AddExtCodeSignRequest, runtime *util.RuntimeOptions) (_result *AddExtCodeSignResponse, _err error) {
  10209. _err = util.ValidateModel(request)
  10210. if _err != nil {
  10211. return _result, _err
  10212. }
  10213. query := map[string]interface{}{}
  10214. if !tea.BoolValue(util.IsUnset(request.ExtCode)) {
  10215. query["ExtCode"] = request.ExtCode
  10216. }
  10217. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  10218. query["OwnerId"] = request.OwnerId
  10219. }
  10220. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  10221. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  10222. }
  10223. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  10224. query["ResourceOwnerId"] = request.ResourceOwnerId
  10225. }
  10226. if !tea.BoolValue(util.IsUnset(request.SignName)) {
  10227. query["SignName"] = request.SignName
  10228. }
  10229. req := &openapi.OpenApiRequest{
  10230. Query: openapiutil.Query(query),
  10231. }
  10232. params := &openapi.Params{
  10233. Action: tea.String("AddExtCodeSign"),
  10234. Version: tea.String("2017-05-25"),
  10235. Protocol: tea.String("HTTPS"),
  10236. Pathname: tea.String("/"),
  10237. Method: tea.String("POST"),
  10238. AuthType: tea.String("AK"),
  10239. Style: tea.String("RPC"),
  10240. ReqBodyType: tea.String("formData"),
  10241. BodyType: tea.String("json"),
  10242. }
  10243. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  10244. _result = &AddExtCodeSignResponse{}
  10245. _body, _err := client.CallApi(params, req, runtime)
  10246. if _err != nil {
  10247. return _result, _err
  10248. }
  10249. _err = tea.Convert(_body, &_result)
  10250. return _result, _err
  10251. } else {
  10252. _result = &AddExtCodeSignResponse{}
  10253. _body, _err := client.Execute(params, req, runtime)
  10254. if _err != nil {
  10255. return _result, _err
  10256. }
  10257. _err = tea.Convert(_body, &_result)
  10258. return _result, _err
  10259. }
  10260. }
  10261. // Summary:
  10262. //
  10263. // 添加验证码签名信息
  10264. //
  10265. // @param request - AddExtCodeSignRequest
  10266. //
  10267. // @return AddExtCodeSignResponse
  10268. func (client *Client) AddExtCodeSign(request *AddExtCodeSignRequest) (_result *AddExtCodeSignResponse, _err error) {
  10269. runtime := &util.RuntimeOptions{}
  10270. _result = &AddExtCodeSignResponse{}
  10271. _body, _err := client.AddExtCodeSignWithOptions(request, runtime)
  10272. if _err != nil {
  10273. return _result, _err
  10274. }
  10275. _result = _body
  10276. return _result, _err
  10277. }
  10278. // Summary:
  10279. //
  10280. // Creates a short URL.
  10281. //
  10282. // Description:
  10283. //
  10284. // Before you call this operation, you must register the primary domain name of the source URL in the Short Message Service (SMS) console. After the domain name is registered, you can call this operation to create a short URL. For more information, see [Domain name registration](https://help.aliyun.com/document_detail/302325.html#title-mau-zdh-hd0).
  10285. //
  10286. // - You can create up to 3,000 short URLs within a natural day.
  10287. //
  10288. // - After a short URL is generated, a security review is required. Generally, the review takes 10 minutes to 2 hours to complete. Before the security review is passed, the short URL cannot be directly accessed.
  10289. //
  10290. // @param request - AddShortUrlRequest
  10291. //
  10292. // @param runtime - runtime options for this request RuntimeOptions
  10293. //
  10294. // @return AddShortUrlResponse
  10295. func (client *Client) AddShortUrlWithOptions(request *AddShortUrlRequest, runtime *util.RuntimeOptions) (_result *AddShortUrlResponse, _err error) {
  10296. _err = util.ValidateModel(request)
  10297. if _err != nil {
  10298. return _result, _err
  10299. }
  10300. query := map[string]interface{}{}
  10301. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  10302. query["OwnerId"] = request.OwnerId
  10303. }
  10304. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  10305. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  10306. }
  10307. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  10308. query["ResourceOwnerId"] = request.ResourceOwnerId
  10309. }
  10310. body := map[string]interface{}{}
  10311. if !tea.BoolValue(util.IsUnset(request.EffectiveDays)) {
  10312. body["EffectiveDays"] = request.EffectiveDays
  10313. }
  10314. if !tea.BoolValue(util.IsUnset(request.ShortUrlName)) {
  10315. body["ShortUrlName"] = request.ShortUrlName
  10316. }
  10317. if !tea.BoolValue(util.IsUnset(request.SourceUrl)) {
  10318. body["SourceUrl"] = request.SourceUrl
  10319. }
  10320. req := &openapi.OpenApiRequest{
  10321. Query: openapiutil.Query(query),
  10322. Body: openapiutil.ParseToMap(body),
  10323. }
  10324. params := &openapi.Params{
  10325. Action: tea.String("AddShortUrl"),
  10326. Version: tea.String("2017-05-25"),
  10327. Protocol: tea.String("HTTPS"),
  10328. Pathname: tea.String("/"),
  10329. Method: tea.String("POST"),
  10330. AuthType: tea.String("AK"),
  10331. Style: tea.String("RPC"),
  10332. ReqBodyType: tea.String("formData"),
  10333. BodyType: tea.String("json"),
  10334. }
  10335. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  10336. _result = &AddShortUrlResponse{}
  10337. _body, _err := client.CallApi(params, req, runtime)
  10338. if _err != nil {
  10339. return _result, _err
  10340. }
  10341. _err = tea.Convert(_body, &_result)
  10342. return _result, _err
  10343. } else {
  10344. _result = &AddShortUrlResponse{}
  10345. _body, _err := client.Execute(params, req, runtime)
  10346. if _err != nil {
  10347. return _result, _err
  10348. }
  10349. _err = tea.Convert(_body, &_result)
  10350. return _result, _err
  10351. }
  10352. }
  10353. // Summary:
  10354. //
  10355. // Creates a short URL.
  10356. //
  10357. // Description:
  10358. //
  10359. // Before you call this operation, you must register the primary domain name of the source URL in the Short Message Service (SMS) console. After the domain name is registered, you can call this operation to create a short URL. For more information, see [Domain name registration](https://help.aliyun.com/document_detail/302325.html#title-mau-zdh-hd0).
  10360. //
  10361. // - You can create up to 3,000 short URLs within a natural day.
  10362. //
  10363. // - After a short URL is generated, a security review is required. Generally, the review takes 10 minutes to 2 hours to complete. Before the security review is passed, the short URL cannot be directly accessed.
  10364. //
  10365. // @param request - AddShortUrlRequest
  10366. //
  10367. // @return AddShortUrlResponse
  10368. func (client *Client) AddShortUrl(request *AddShortUrlRequest) (_result *AddShortUrlResponse, _err error) {
  10369. runtime := &util.RuntimeOptions{}
  10370. _result = &AddShortUrlResponse{}
  10371. _body, _err := client.AddShortUrlWithOptions(request, runtime)
  10372. if _err != nil {
  10373. return _result, _err
  10374. }
  10375. _result = _body
  10376. return _result, _err
  10377. }
  10378. // Summary:
  10379. //
  10380. // Creates a signature.
  10381. //
  10382. // Description:
  10383. //
  10384. // You can call the AddSmsSign operation or use the [Short Message Service (SMS) console](https://dysms.console.aliyun.com/dysms.htm#/overview) to create an SMS signature. The signature must comply with the [SMS signature specifications](https://help.aliyun.com/document_detail/108076.html). You can call the QuerySmsSign operation or use the SMS console to query the review status of the signature.
  10385. //
  10386. // For more information, see [Usage notes](https://help.aliyun.com/document_detail/55324.html).
  10387. //
  10388. // ### QPS limit
  10389. //
  10390. // You can call this operation only once per second. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  10391. //
  10392. // >
  10393. //
  10394. // - You cannot cancel the review of a signature.
  10395. //
  10396. // - Individual users can create only one verification code signature, and can create only one general-purpose signature within a natural day. If you need to apply for multiple signatures, we recommend that you upgrade your account to an enterprise user.
  10397. //
  10398. // - If you need to use the same signature for messages sent to recipients both in and outside the Chinese mainland, the signature must be a general-purpose signature.
  10399. //
  10400. // - If you apply for a signature or message template, you must specify the signature scenario or template type. You must also provide the information of your services, such as a website URL, a domain name with an ICP filing, an application download URL, or the name of your WeChat official account or mini program. For sign-in scenarios, you must also provide an account and password for tests. A detailed description can improve the review efficiency of signatures and templates.
  10401. //
  10402. // - An SMS signature must undergo a thorough review process before it can be approved for use.
  10403. //
  10404. // @param request - AddSmsSignRequest
  10405. //
  10406. // @param runtime - runtime options for this request RuntimeOptions
  10407. //
  10408. // @return AddSmsSignResponse
  10409. func (client *Client) AddSmsSignWithOptions(request *AddSmsSignRequest, runtime *util.RuntimeOptions) (_result *AddSmsSignResponse, _err error) {
  10410. _err = util.ValidateModel(request)
  10411. if _err != nil {
  10412. return _result, _err
  10413. }
  10414. query := map[string]interface{}{}
  10415. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  10416. query["OwnerId"] = request.OwnerId
  10417. }
  10418. if !tea.BoolValue(util.IsUnset(request.Remark)) {
  10419. query["Remark"] = request.Remark
  10420. }
  10421. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  10422. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  10423. }
  10424. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  10425. query["ResourceOwnerId"] = request.ResourceOwnerId
  10426. }
  10427. if !tea.BoolValue(util.IsUnset(request.SignName)) {
  10428. query["SignName"] = request.SignName
  10429. }
  10430. if !tea.BoolValue(util.IsUnset(request.SignSource)) {
  10431. query["SignSource"] = request.SignSource
  10432. }
  10433. if !tea.BoolValue(util.IsUnset(request.SignType)) {
  10434. query["SignType"] = request.SignType
  10435. }
  10436. body := map[string]interface{}{}
  10437. if !tea.BoolValue(util.IsUnset(request.SignFileList)) {
  10438. body["SignFileList"] = request.SignFileList
  10439. }
  10440. req := &openapi.OpenApiRequest{
  10441. Query: openapiutil.Query(query),
  10442. Body: openapiutil.ParseToMap(body),
  10443. }
  10444. params := &openapi.Params{
  10445. Action: tea.String("AddSmsSign"),
  10446. Version: tea.String("2017-05-25"),
  10447. Protocol: tea.String("HTTPS"),
  10448. Pathname: tea.String("/"),
  10449. Method: tea.String("POST"),
  10450. AuthType: tea.String("AK"),
  10451. Style: tea.String("RPC"),
  10452. ReqBodyType: tea.String("formData"),
  10453. BodyType: tea.String("json"),
  10454. }
  10455. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  10456. _result = &AddSmsSignResponse{}
  10457. _body, _err := client.CallApi(params, req, runtime)
  10458. if _err != nil {
  10459. return _result, _err
  10460. }
  10461. _err = tea.Convert(_body, &_result)
  10462. return _result, _err
  10463. } else {
  10464. _result = &AddSmsSignResponse{}
  10465. _body, _err := client.Execute(params, req, runtime)
  10466. if _err != nil {
  10467. return _result, _err
  10468. }
  10469. _err = tea.Convert(_body, &_result)
  10470. return _result, _err
  10471. }
  10472. }
  10473. // Summary:
  10474. //
  10475. // Creates a signature.
  10476. //
  10477. // Description:
  10478. //
  10479. // You can call the AddSmsSign operation or use the [Short Message Service (SMS) console](https://dysms.console.aliyun.com/dysms.htm#/overview) to create an SMS signature. The signature must comply with the [SMS signature specifications](https://help.aliyun.com/document_detail/108076.html). You can call the QuerySmsSign operation or use the SMS console to query the review status of the signature.
  10480. //
  10481. // For more information, see [Usage notes](https://help.aliyun.com/document_detail/55324.html).
  10482. //
  10483. // ### QPS limit
  10484. //
  10485. // You can call this operation only once per second. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  10486. //
  10487. // >
  10488. //
  10489. // - You cannot cancel the review of a signature.
  10490. //
  10491. // - Individual users can create only one verification code signature, and can create only one general-purpose signature within a natural day. If you need to apply for multiple signatures, we recommend that you upgrade your account to an enterprise user.
  10492. //
  10493. // - If you need to use the same signature for messages sent to recipients both in and outside the Chinese mainland, the signature must be a general-purpose signature.
  10494. //
  10495. // - If you apply for a signature or message template, you must specify the signature scenario or template type. You must also provide the information of your services, such as a website URL, a domain name with an ICP filing, an application download URL, or the name of your WeChat official account or mini program. For sign-in scenarios, you must also provide an account and password for tests. A detailed description can improve the review efficiency of signatures and templates.
  10496. //
  10497. // - An SMS signature must undergo a thorough review process before it can be approved for use.
  10498. //
  10499. // @param request - AddSmsSignRequest
  10500. //
  10501. // @return AddSmsSignResponse
  10502. func (client *Client) AddSmsSign(request *AddSmsSignRequest) (_result *AddSmsSignResponse, _err error) {
  10503. runtime := &util.RuntimeOptions{}
  10504. _result = &AddSmsSignResponse{}
  10505. _body, _err := client.AddSmsSignWithOptions(request, runtime)
  10506. if _err != nil {
  10507. return _result, _err
  10508. }
  10509. _result = _body
  10510. return _result, _err
  10511. }
  10512. // Deprecated: OpenAPI AddSmsTemplate is deprecated, please use Dysmsapi::2017-05-25::CreateSmsTemplate instead.
  10513. //
  10514. // Summary:
  10515. //
  10516. // Creates a message template.
  10517. //
  10518. // Description:
  10519. //
  10520. // You can call the operation or use the [Alibaba Cloud SMS console](https://dysms.console.aliyun.com/dysms.htm#/overview) to apply for a message template. The template must comply with the [message template specifications](https://help.aliyun.com/document_detail/108253.html). You can call the [QuerySmsTemplate](https://help.aliyun.com/document_detail/419289.html) operation or use the Alibaba Cloud SMS console to check whether the message template is approved.
  10521. //
  10522. // >
  10523. //
  10524. // - Message templates pending approval can be withdrawn. You can withdraw a message template pending approval on the Message Templates tab in the [Alibaba Cloud SMS console](https://dysms.console.aliyun.com/dysms.htm#/overview).
  10525. //
  10526. // - Message templates that have been approved can be deleted, and cannot be modified. You can delete a message template pending approval on the Message Templates tab in the [Alibaba Cloud SMS console](https://dysms.console.aliyun.com/dysms.htm#/overview).
  10527. //
  10528. // - If you call the AddSmsTemplate operation, you can apply for a maximum of 100 message templates in a calendar day. After you apply for a message template, we recommend that you wait for at least 30 seconds before you apply for another one. If you use the Alibaba Cloud SMS console, you can apply for an unlimited number of message templates.
  10529. //
  10530. // - Messages sent to the Chinese mainland and messages sent to countries or regions outside the Chinese mainland use separate message templates. Create message templates based on your needs.
  10531. //
  10532. // - If you apply for a signature or message template, you must specify the signature scenario or template type. You must also provide the information of your services, such as a website URL, a domain name with an ICP filing, an application download URL, or the name of your WeChat official account or mini program. For sign-in scenarios, you must also provide an account and password for tests. A detailed description can improve the review efficiency of signatures and templates.
  10533. //
  10534. // - A signature must undergo a thorough review process before it can be approved for use. For more information, see [Usage notes](https://help.aliyun.com/document_detail/55324.html).
  10535. //
  10536. // ### QPS limits
  10537. //
  10538. // You can call this operation up to 1,000 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  10539. //
  10540. // @param request - AddSmsTemplateRequest
  10541. //
  10542. // @param runtime - runtime options for this request RuntimeOptions
  10543. //
  10544. // @return AddSmsTemplateResponse
  10545. // Deprecated
  10546. func (client *Client) AddSmsTemplateWithOptions(request *AddSmsTemplateRequest, runtime *util.RuntimeOptions) (_result *AddSmsTemplateResponse, _err error) {
  10547. _err = util.ValidateModel(request)
  10548. if _err != nil {
  10549. return _result, _err
  10550. }
  10551. query := map[string]interface{}{}
  10552. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  10553. query["OwnerId"] = request.OwnerId
  10554. }
  10555. if !tea.BoolValue(util.IsUnset(request.Remark)) {
  10556. query["Remark"] = request.Remark
  10557. }
  10558. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  10559. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  10560. }
  10561. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  10562. query["ResourceOwnerId"] = request.ResourceOwnerId
  10563. }
  10564. if !tea.BoolValue(util.IsUnset(request.TemplateContent)) {
  10565. query["TemplateContent"] = request.TemplateContent
  10566. }
  10567. if !tea.BoolValue(util.IsUnset(request.TemplateName)) {
  10568. query["TemplateName"] = request.TemplateName
  10569. }
  10570. if !tea.BoolValue(util.IsUnset(request.TemplateType)) {
  10571. query["TemplateType"] = request.TemplateType
  10572. }
  10573. req := &openapi.OpenApiRequest{
  10574. Query: openapiutil.Query(query),
  10575. }
  10576. params := &openapi.Params{
  10577. Action: tea.String("AddSmsTemplate"),
  10578. Version: tea.String("2017-05-25"),
  10579. Protocol: tea.String("HTTPS"),
  10580. Pathname: tea.String("/"),
  10581. Method: tea.String("POST"),
  10582. AuthType: tea.String("AK"),
  10583. Style: tea.String("RPC"),
  10584. ReqBodyType: tea.String("formData"),
  10585. BodyType: tea.String("json"),
  10586. }
  10587. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  10588. _result = &AddSmsTemplateResponse{}
  10589. _body, _err := client.CallApi(params, req, runtime)
  10590. if _err != nil {
  10591. return _result, _err
  10592. }
  10593. _err = tea.Convert(_body, &_result)
  10594. return _result, _err
  10595. } else {
  10596. _result = &AddSmsTemplateResponse{}
  10597. _body, _err := client.Execute(params, req, runtime)
  10598. if _err != nil {
  10599. return _result, _err
  10600. }
  10601. _err = tea.Convert(_body, &_result)
  10602. return _result, _err
  10603. }
  10604. }
  10605. // Deprecated: OpenAPI AddSmsTemplate is deprecated, please use Dysmsapi::2017-05-25::CreateSmsTemplate instead.
  10606. //
  10607. // Summary:
  10608. //
  10609. // Creates a message template.
  10610. //
  10611. // Description:
  10612. //
  10613. // You can call the operation or use the [Alibaba Cloud SMS console](https://dysms.console.aliyun.com/dysms.htm#/overview) to apply for a message template. The template must comply with the [message template specifications](https://help.aliyun.com/document_detail/108253.html). You can call the [QuerySmsTemplate](https://help.aliyun.com/document_detail/419289.html) operation or use the Alibaba Cloud SMS console to check whether the message template is approved.
  10614. //
  10615. // >
  10616. //
  10617. // - Message templates pending approval can be withdrawn. You can withdraw a message template pending approval on the Message Templates tab in the [Alibaba Cloud SMS console](https://dysms.console.aliyun.com/dysms.htm#/overview).
  10618. //
  10619. // - Message templates that have been approved can be deleted, and cannot be modified. You can delete a message template pending approval on the Message Templates tab in the [Alibaba Cloud SMS console](https://dysms.console.aliyun.com/dysms.htm#/overview).
  10620. //
  10621. // - If you call the AddSmsTemplate operation, you can apply for a maximum of 100 message templates in a calendar day. After you apply for a message template, we recommend that you wait for at least 30 seconds before you apply for another one. If you use the Alibaba Cloud SMS console, you can apply for an unlimited number of message templates.
  10622. //
  10623. // - Messages sent to the Chinese mainland and messages sent to countries or regions outside the Chinese mainland use separate message templates. Create message templates based on your needs.
  10624. //
  10625. // - If you apply for a signature or message template, you must specify the signature scenario or template type. You must also provide the information of your services, such as a website URL, a domain name with an ICP filing, an application download URL, or the name of your WeChat official account or mini program. For sign-in scenarios, you must also provide an account and password for tests. A detailed description can improve the review efficiency of signatures and templates.
  10626. //
  10627. // - A signature must undergo a thorough review process before it can be approved for use. For more information, see [Usage notes](https://help.aliyun.com/document_detail/55324.html).
  10628. //
  10629. // ### QPS limits
  10630. //
  10631. // You can call this operation up to 1,000 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  10632. //
  10633. // @param request - AddSmsTemplateRequest
  10634. //
  10635. // @return AddSmsTemplateResponse
  10636. // Deprecated
  10637. func (client *Client) AddSmsTemplate(request *AddSmsTemplateRequest) (_result *AddSmsTemplateResponse, _err error) {
  10638. runtime := &util.RuntimeOptions{}
  10639. _result = &AddSmsTemplateResponse{}
  10640. _body, _err := client.AddSmsTemplateWithOptions(request, runtime)
  10641. if _err != nil {
  10642. return _result, _err
  10643. }
  10644. _result = _body
  10645. return _result, _err
  10646. }
  10647. // Summary:
  10648. //
  10649. // Checks whether a mobile phone number can receive card messages.
  10650. //
  10651. // Description:
  10652. //
  10653. // ### QPS limit
  10654. //
  10655. // You can call this operation up to 2,000 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  10656. //
  10657. // @param request - CheckMobilesCardSupportRequest
  10658. //
  10659. // @param runtime - runtime options for this request RuntimeOptions
  10660. //
  10661. // @return CheckMobilesCardSupportResponse
  10662. func (client *Client) CheckMobilesCardSupportWithOptions(request *CheckMobilesCardSupportRequest, runtime *util.RuntimeOptions) (_result *CheckMobilesCardSupportResponse, _err error) {
  10663. _err = util.ValidateModel(request)
  10664. if _err != nil {
  10665. return _result, _err
  10666. }
  10667. query := map[string]interface{}{}
  10668. if !tea.BoolValue(util.IsUnset(request.Mobiles)) {
  10669. query["Mobiles"] = request.Mobiles
  10670. }
  10671. if !tea.BoolValue(util.IsUnset(request.TemplateCode)) {
  10672. query["TemplateCode"] = request.TemplateCode
  10673. }
  10674. req := &openapi.OpenApiRequest{
  10675. Query: openapiutil.Query(query),
  10676. }
  10677. params := &openapi.Params{
  10678. Action: tea.String("CheckMobilesCardSupport"),
  10679. Version: tea.String("2017-05-25"),
  10680. Protocol: tea.String("HTTPS"),
  10681. Pathname: tea.String("/"),
  10682. Method: tea.String("POST"),
  10683. AuthType: tea.String("AK"),
  10684. Style: tea.String("RPC"),
  10685. ReqBodyType: tea.String("formData"),
  10686. BodyType: tea.String("json"),
  10687. }
  10688. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  10689. _result = &CheckMobilesCardSupportResponse{}
  10690. _body, _err := client.CallApi(params, req, runtime)
  10691. if _err != nil {
  10692. return _result, _err
  10693. }
  10694. _err = tea.Convert(_body, &_result)
  10695. return _result, _err
  10696. } else {
  10697. _result = &CheckMobilesCardSupportResponse{}
  10698. _body, _err := client.Execute(params, req, runtime)
  10699. if _err != nil {
  10700. return _result, _err
  10701. }
  10702. _err = tea.Convert(_body, &_result)
  10703. return _result, _err
  10704. }
  10705. }
  10706. // Summary:
  10707. //
  10708. // Checks whether a mobile phone number can receive card messages.
  10709. //
  10710. // Description:
  10711. //
  10712. // ### QPS limit
  10713. //
  10714. // You can call this operation up to 2,000 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  10715. //
  10716. // @param request - CheckMobilesCardSupportRequest
  10717. //
  10718. // @return CheckMobilesCardSupportResponse
  10719. func (client *Client) CheckMobilesCardSupport(request *CheckMobilesCardSupportRequest) (_result *CheckMobilesCardSupportResponse, _err error) {
  10720. runtime := &util.RuntimeOptions{}
  10721. _result = &CheckMobilesCardSupportResponse{}
  10722. _body, _err := client.CheckMobilesCardSupportWithOptions(request, runtime)
  10723. if _err != nil {
  10724. return _result, _err
  10725. }
  10726. _result = _body
  10727. return _result, _err
  10728. }
  10729. // Summary:
  10730. //
  10731. // Sends conversion rate information to Alibaba Cloud SMS.
  10732. //
  10733. // @param request - ConversionDataIntlRequest
  10734. //
  10735. // @param runtime - runtime options for this request RuntimeOptions
  10736. //
  10737. // @return ConversionDataIntlResponse
  10738. func (client *Client) ConversionDataIntlWithOptions(request *ConversionDataIntlRequest, runtime *util.RuntimeOptions) (_result *ConversionDataIntlResponse, _err error) {
  10739. _err = util.ValidateModel(request)
  10740. if _err != nil {
  10741. return _result, _err
  10742. }
  10743. query := map[string]interface{}{}
  10744. if !tea.BoolValue(util.IsUnset(request.ConversionRate)) {
  10745. query["ConversionRate"] = request.ConversionRate
  10746. }
  10747. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  10748. query["OwnerId"] = request.OwnerId
  10749. }
  10750. if !tea.BoolValue(util.IsUnset(request.ReportTime)) {
  10751. query["ReportTime"] = request.ReportTime
  10752. }
  10753. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  10754. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  10755. }
  10756. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  10757. query["ResourceOwnerId"] = request.ResourceOwnerId
  10758. }
  10759. req := &openapi.OpenApiRequest{
  10760. Query: openapiutil.Query(query),
  10761. }
  10762. params := &openapi.Params{
  10763. Action: tea.String("ConversionDataIntl"),
  10764. Version: tea.String("2017-05-25"),
  10765. Protocol: tea.String("HTTPS"),
  10766. Pathname: tea.String("/"),
  10767. Method: tea.String("POST"),
  10768. AuthType: tea.String("AK"),
  10769. Style: tea.String("RPC"),
  10770. ReqBodyType: tea.String("formData"),
  10771. BodyType: tea.String("json"),
  10772. }
  10773. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  10774. _result = &ConversionDataIntlResponse{}
  10775. _body, _err := client.CallApi(params, req, runtime)
  10776. if _err != nil {
  10777. return _result, _err
  10778. }
  10779. _err = tea.Convert(_body, &_result)
  10780. return _result, _err
  10781. } else {
  10782. _result = &ConversionDataIntlResponse{}
  10783. _body, _err := client.Execute(params, req, runtime)
  10784. if _err != nil {
  10785. return _result, _err
  10786. }
  10787. _err = tea.Convert(_body, &_result)
  10788. return _result, _err
  10789. }
  10790. }
  10791. // Summary:
  10792. //
  10793. // Sends conversion rate information to Alibaba Cloud SMS.
  10794. //
  10795. // @param request - ConversionDataIntlRequest
  10796. //
  10797. // @return ConversionDataIntlResponse
  10798. func (client *Client) ConversionDataIntl(request *ConversionDataIntlRequest) (_result *ConversionDataIntlResponse, _err error) {
  10799. runtime := &util.RuntimeOptions{}
  10800. _result = &ConversionDataIntlResponse{}
  10801. _body, _err := client.ConversionDataIntlWithOptions(request, runtime)
  10802. if _err != nil {
  10803. return _result, _err
  10804. }
  10805. _result = _body
  10806. return _result, _err
  10807. }
  10808. // Summary:
  10809. //
  10810. // Creates a card message template.
  10811. //
  10812. // Description:
  10813. //
  10814. // The CreateCardSmsTemplate operation saves the card message template information, submits it to the mobile phone manufacturer for approval, and returns the message template ID.
  10815. //
  10816. // - If the type of the message template is not supported or events that are not supported by the mobile phone manufacturer are specified, the template is not submitted. For more information, see [Supported message templates](https://help.aliyun.com/document_detail/434611.html).
  10817. //
  10818. // - For information about sample card message templates, see [Sample card message templates](https://help.aliyun.com/document_detail/435361.html).
  10819. //
  10820. // ### QPS limit
  10821. //
  10822. // You can call this operation up to 300 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  10823. //
  10824. // @param tmpReq - CreateCardSmsTemplateRequest
  10825. //
  10826. // @param runtime - runtime options for this request RuntimeOptions
  10827. //
  10828. // @return CreateCardSmsTemplateResponse
  10829. func (client *Client) CreateCardSmsTemplateWithOptions(tmpReq *CreateCardSmsTemplateRequest, runtime *util.RuntimeOptions) (_result *CreateCardSmsTemplateResponse, _err error) {
  10830. _err = util.ValidateModel(tmpReq)
  10831. if _err != nil {
  10832. return _result, _err
  10833. }
  10834. request := &CreateCardSmsTemplateShrinkRequest{}
  10835. openapiutil.Convert(tmpReq, request)
  10836. if !tea.BoolValue(util.IsUnset(tmpReq.Template)) {
  10837. request.TemplateShrink = openapiutil.ArrayToStringWithSpecifiedStyle(tmpReq.Template, tea.String("Template"), tea.String("json"))
  10838. }
  10839. query := map[string]interface{}{}
  10840. if !tea.BoolValue(util.IsUnset(request.Factorys)) {
  10841. query["Factorys"] = request.Factorys
  10842. }
  10843. if !tea.BoolValue(util.IsUnset(request.Memo)) {
  10844. query["Memo"] = request.Memo
  10845. }
  10846. if !tea.BoolValue(util.IsUnset(request.TemplateShrink)) {
  10847. query["Template"] = request.TemplateShrink
  10848. }
  10849. if !tea.BoolValue(util.IsUnset(request.TemplateName)) {
  10850. query["TemplateName"] = request.TemplateName
  10851. }
  10852. req := &openapi.OpenApiRequest{
  10853. Query: openapiutil.Query(query),
  10854. }
  10855. params := &openapi.Params{
  10856. Action: tea.String("CreateCardSmsTemplate"),
  10857. Version: tea.String("2017-05-25"),
  10858. Protocol: tea.String("HTTPS"),
  10859. Pathname: tea.String("/"),
  10860. Method: tea.String("POST"),
  10861. AuthType: tea.String("AK"),
  10862. Style: tea.String("RPC"),
  10863. ReqBodyType: tea.String("formData"),
  10864. BodyType: tea.String("json"),
  10865. }
  10866. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  10867. _result = &CreateCardSmsTemplateResponse{}
  10868. _body, _err := client.CallApi(params, req, runtime)
  10869. if _err != nil {
  10870. return _result, _err
  10871. }
  10872. _err = tea.Convert(_body, &_result)
  10873. return _result, _err
  10874. } else {
  10875. _result = &CreateCardSmsTemplateResponse{}
  10876. _body, _err := client.Execute(params, req, runtime)
  10877. if _err != nil {
  10878. return _result, _err
  10879. }
  10880. _err = tea.Convert(_body, &_result)
  10881. return _result, _err
  10882. }
  10883. }
  10884. // Summary:
  10885. //
  10886. // Creates a card message template.
  10887. //
  10888. // Description:
  10889. //
  10890. // The CreateCardSmsTemplate operation saves the card message template information, submits it to the mobile phone manufacturer for approval, and returns the message template ID.
  10891. //
  10892. // - If the type of the message template is not supported or events that are not supported by the mobile phone manufacturer are specified, the template is not submitted. For more information, see [Supported message templates](https://help.aliyun.com/document_detail/434611.html).
  10893. //
  10894. // - For information about sample card message templates, see [Sample card message templates](https://help.aliyun.com/document_detail/435361.html).
  10895. //
  10896. // ### QPS limit
  10897. //
  10898. // You can call this operation up to 300 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  10899. //
  10900. // @param request - CreateCardSmsTemplateRequest
  10901. //
  10902. // @return CreateCardSmsTemplateResponse
  10903. func (client *Client) CreateCardSmsTemplate(request *CreateCardSmsTemplateRequest) (_result *CreateCardSmsTemplateResponse, _err error) {
  10904. runtime := &util.RuntimeOptions{}
  10905. _result = &CreateCardSmsTemplateResponse{}
  10906. _body, _err := client.CreateCardSmsTemplateWithOptions(request, runtime)
  10907. if _err != nil {
  10908. return _result, _err
  10909. }
  10910. _result = _body
  10911. return _result, _err
  10912. }
  10913. // Summary:
  10914. //
  10915. // 创建短链
  10916. //
  10917. // @param request - CreateSmartShortUrlRequest
  10918. //
  10919. // @param runtime - runtime options for this request RuntimeOptions
  10920. //
  10921. // @return CreateSmartShortUrlResponse
  10922. func (client *Client) CreateSmartShortUrlWithOptions(request *CreateSmartShortUrlRequest, runtime *util.RuntimeOptions) (_result *CreateSmartShortUrlResponse, _err error) {
  10923. _err = util.ValidateModel(request)
  10924. if _err != nil {
  10925. return _result, _err
  10926. }
  10927. query := map[string]interface{}{}
  10928. if !tea.BoolValue(util.IsUnset(request.OutId)) {
  10929. query["OutId"] = request.OutId
  10930. }
  10931. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  10932. query["OwnerId"] = request.OwnerId
  10933. }
  10934. if !tea.BoolValue(util.IsUnset(request.PhoneNumbers)) {
  10935. query["PhoneNumbers"] = request.PhoneNumbers
  10936. }
  10937. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  10938. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  10939. }
  10940. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  10941. query["ResourceOwnerId"] = request.ResourceOwnerId
  10942. }
  10943. if !tea.BoolValue(util.IsUnset(request.SourceUrl)) {
  10944. query["SourceUrl"] = request.SourceUrl
  10945. }
  10946. req := &openapi.OpenApiRequest{
  10947. Query: openapiutil.Query(query),
  10948. }
  10949. params := &openapi.Params{
  10950. Action: tea.String("CreateSmartShortUrl"),
  10951. Version: tea.String("2017-05-25"),
  10952. Protocol: tea.String("HTTPS"),
  10953. Pathname: tea.String("/"),
  10954. Method: tea.String("POST"),
  10955. AuthType: tea.String("AK"),
  10956. Style: tea.String("RPC"),
  10957. ReqBodyType: tea.String("formData"),
  10958. BodyType: tea.String("json"),
  10959. }
  10960. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  10961. _result = &CreateSmartShortUrlResponse{}
  10962. _body, _err := client.CallApi(params, req, runtime)
  10963. if _err != nil {
  10964. return _result, _err
  10965. }
  10966. _err = tea.Convert(_body, &_result)
  10967. return _result, _err
  10968. } else {
  10969. _result = &CreateSmartShortUrlResponse{}
  10970. _body, _err := client.Execute(params, req, runtime)
  10971. if _err != nil {
  10972. return _result, _err
  10973. }
  10974. _err = tea.Convert(_body, &_result)
  10975. return _result, _err
  10976. }
  10977. }
  10978. // Summary:
  10979. //
  10980. // 创建短链
  10981. //
  10982. // @param request - CreateSmartShortUrlRequest
  10983. //
  10984. // @return CreateSmartShortUrlResponse
  10985. func (client *Client) CreateSmartShortUrl(request *CreateSmartShortUrlRequest) (_result *CreateSmartShortUrlResponse, _err error) {
  10986. runtime := &util.RuntimeOptions{}
  10987. _result = &CreateSmartShortUrlResponse{}
  10988. _body, _err := client.CreateSmartShortUrlWithOptions(request, runtime)
  10989. if _err != nil {
  10990. return _result, _err
  10991. }
  10992. _result = _body
  10993. return _result, _err
  10994. }
  10995. // Summary:
  10996. //
  10997. // # Create SMS Signature
  10998. //
  10999. // Description:
  11000. //
  11001. // - For details about the announcement of changes to the new and original interfaces, see [Announcement on Updates to SMS Service Signature & Template Interfaces](https://help.aliyun.com/zh/sms/product-overview/announcement-on-sms-service-update-signature-template-interface).
  11002. //
  11003. // - Individual authenticated users can apply for one formal signature per natural day under the same Alibaba Cloud account, while enterprise authenticated users have no current restrictions. For details on the differences in rights between individual and enterprise users, please refer to [User Guide](https://help.aliyun.com/zh/sms/user-guide/usage-notes?spm).
  11004. //
  11005. // - Signature information applied through the interface will be synchronized in the SMS service console. For operations related to signatures in the console, see [SMS Signatures](https://help.aliyun.com/zh/sms/user-guide/create-signatures?spm).
  11006. //
  11007. // - After submitting the signature application, you can query the signature review status and details via the [GetSmsSign](https://help.aliyun.com/zh/sms/developer-reference/api-dysmsapi-2017-05-25-getsmssign?spm) interface. You can also [Configure Receipt Messages](https://help.aliyun.com/zh/sms/developer-reference/configure-delivery-receipts-1?spm) and obtain signature review status messages through SignSmsReport.
  11008. //
  11009. // @param tmpReq - CreateSmsSignRequest
  11010. //
  11011. // @param runtime - runtime options for this request RuntimeOptions
  11012. //
  11013. // @return CreateSmsSignResponse
  11014. func (client *Client) CreateSmsSignWithOptions(tmpReq *CreateSmsSignRequest, runtime *util.RuntimeOptions) (_result *CreateSmsSignResponse, _err error) {
  11015. _err = util.ValidateModel(tmpReq)
  11016. if _err != nil {
  11017. return _result, _err
  11018. }
  11019. request := &CreateSmsSignShrinkRequest{}
  11020. openapiutil.Convert(tmpReq, request)
  11021. if !tea.BoolValue(util.IsUnset(tmpReq.MoreData)) {
  11022. request.MoreDataShrink = openapiutil.ArrayToStringWithSpecifiedStyle(tmpReq.MoreData, tea.String("MoreData"), tea.String("json"))
  11023. }
  11024. query := map[string]interface{}{}
  11025. if !tea.BoolValue(util.IsUnset(request.ApplySceneContent)) {
  11026. query["ApplySceneContent"] = request.ApplySceneContent
  11027. }
  11028. if !tea.BoolValue(util.IsUnset(request.MoreDataShrink)) {
  11029. query["MoreData"] = request.MoreDataShrink
  11030. }
  11031. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  11032. query["OwnerId"] = request.OwnerId
  11033. }
  11034. if !tea.BoolValue(util.IsUnset(request.QualificationId)) {
  11035. query["QualificationId"] = request.QualificationId
  11036. }
  11037. if !tea.BoolValue(util.IsUnset(request.Remark)) {
  11038. query["Remark"] = request.Remark
  11039. }
  11040. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  11041. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  11042. }
  11043. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  11044. query["ResourceOwnerId"] = request.ResourceOwnerId
  11045. }
  11046. if !tea.BoolValue(util.IsUnset(request.SignName)) {
  11047. query["SignName"] = request.SignName
  11048. }
  11049. if !tea.BoolValue(util.IsUnset(request.SignSource)) {
  11050. query["SignSource"] = request.SignSource
  11051. }
  11052. if !tea.BoolValue(util.IsUnset(request.SignType)) {
  11053. query["SignType"] = request.SignType
  11054. }
  11055. if !tea.BoolValue(util.IsUnset(request.ThirdParty)) {
  11056. query["ThirdParty"] = request.ThirdParty
  11057. }
  11058. req := &openapi.OpenApiRequest{
  11059. Query: openapiutil.Query(query),
  11060. }
  11061. params := &openapi.Params{
  11062. Action: tea.String("CreateSmsSign"),
  11063. Version: tea.String("2017-05-25"),
  11064. Protocol: tea.String("HTTPS"),
  11065. Pathname: tea.String("/"),
  11066. Method: tea.String("POST"),
  11067. AuthType: tea.String("AK"),
  11068. Style: tea.String("RPC"),
  11069. ReqBodyType: tea.String("formData"),
  11070. BodyType: tea.String("json"),
  11071. }
  11072. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  11073. _result = &CreateSmsSignResponse{}
  11074. _body, _err := client.CallApi(params, req, runtime)
  11075. if _err != nil {
  11076. return _result, _err
  11077. }
  11078. _err = tea.Convert(_body, &_result)
  11079. return _result, _err
  11080. } else {
  11081. _result = &CreateSmsSignResponse{}
  11082. _body, _err := client.Execute(params, req, runtime)
  11083. if _err != nil {
  11084. return _result, _err
  11085. }
  11086. _err = tea.Convert(_body, &_result)
  11087. return _result, _err
  11088. }
  11089. }
  11090. // Summary:
  11091. //
  11092. // # Create SMS Signature
  11093. //
  11094. // Description:
  11095. //
  11096. // - For details about the announcement of changes to the new and original interfaces, see [Announcement on Updates to SMS Service Signature & Template Interfaces](https://help.aliyun.com/zh/sms/product-overview/announcement-on-sms-service-update-signature-template-interface).
  11097. //
  11098. // - Individual authenticated users can apply for one formal signature per natural day under the same Alibaba Cloud account, while enterprise authenticated users have no current restrictions. For details on the differences in rights between individual and enterprise users, please refer to [User Guide](https://help.aliyun.com/zh/sms/user-guide/usage-notes?spm).
  11099. //
  11100. // - Signature information applied through the interface will be synchronized in the SMS service console. For operations related to signatures in the console, see [SMS Signatures](https://help.aliyun.com/zh/sms/user-guide/create-signatures?spm).
  11101. //
  11102. // - After submitting the signature application, you can query the signature review status and details via the [GetSmsSign](https://help.aliyun.com/zh/sms/developer-reference/api-dysmsapi-2017-05-25-getsmssign?spm) interface. You can also [Configure Receipt Messages](https://help.aliyun.com/zh/sms/developer-reference/configure-delivery-receipts-1?spm) and obtain signature review status messages through SignSmsReport.
  11103. //
  11104. // @param request - CreateSmsSignRequest
  11105. //
  11106. // @return CreateSmsSignResponse
  11107. func (client *Client) CreateSmsSign(request *CreateSmsSignRequest) (_result *CreateSmsSignResponse, _err error) {
  11108. runtime := &util.RuntimeOptions{}
  11109. _result = &CreateSmsSignResponse{}
  11110. _body, _err := client.CreateSmsSignWithOptions(request, runtime)
  11111. if _err != nil {
  11112. return _result, _err
  11113. }
  11114. _result = _body
  11115. return _result, _err
  11116. }
  11117. // Summary:
  11118. //
  11119. // # Create SMS Template
  11120. //
  11121. // Description:
  11122. //
  11123. // - For details about the changes of this new interface compared to the original one, please refer to [Announcement on the Update of SMS Service Signature & Template Interfaces](https://help.aliyun.com/zh/sms/product-overview/announcement-on-sms-service-update-signature-template-interface).
  11124. //
  11125. // - It is recommended to apply for SMS templates via the API with at least a 30-second interval between each request.
  11126. //
  11127. // - The template information applied through the API will be synchronized in the SMS service console. For operations related to templates in the console, please refer to SMS Templates.
  11128. //
  11129. // - After submitting the template application, you can query the audit status and details using the GetSmsTemplate interface. You can also configure delivery receipts to obtain the audit status messages via TemplateSmsReport.
  11130. //
  11131. // - Domestic SMS templates are not interchangeable with international/Hong Kong, Macao, and Taiwan SMS templates. Please apply for templates based on your business scenario.
  11132. //
  11133. // - Only enterprise-verified users can apply for promotional messages and international/Hong Kong, Macao, and Taiwan messages. For differences in rights between personal and enterprise users, please refer to Usage Instructions.
  11134. //
  11135. // @param tmpReq - CreateSmsTemplateRequest
  11136. //
  11137. // @param runtime - runtime options for this request RuntimeOptions
  11138. //
  11139. // @return CreateSmsTemplateResponse
  11140. func (client *Client) CreateSmsTemplateWithOptions(tmpReq *CreateSmsTemplateRequest, runtime *util.RuntimeOptions) (_result *CreateSmsTemplateResponse, _err error) {
  11141. _err = util.ValidateModel(tmpReq)
  11142. if _err != nil {
  11143. return _result, _err
  11144. }
  11145. request := &CreateSmsTemplateShrinkRequest{}
  11146. openapiutil.Convert(tmpReq, request)
  11147. if !tea.BoolValue(util.IsUnset(tmpReq.MoreData)) {
  11148. request.MoreDataShrink = openapiutil.ArrayToStringWithSpecifiedStyle(tmpReq.MoreData, tea.String("MoreData"), tea.String("json"))
  11149. }
  11150. query := map[string]interface{}{}
  11151. if !tea.BoolValue(util.IsUnset(request.ApplySceneContent)) {
  11152. query["ApplySceneContent"] = request.ApplySceneContent
  11153. }
  11154. if !tea.BoolValue(util.IsUnset(request.IntlType)) {
  11155. query["IntlType"] = request.IntlType
  11156. }
  11157. if !tea.BoolValue(util.IsUnset(request.MoreDataShrink)) {
  11158. query["MoreData"] = request.MoreDataShrink
  11159. }
  11160. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  11161. query["OwnerId"] = request.OwnerId
  11162. }
  11163. if !tea.BoolValue(util.IsUnset(request.RelatedSignName)) {
  11164. query["RelatedSignName"] = request.RelatedSignName
  11165. }
  11166. if !tea.BoolValue(util.IsUnset(request.Remark)) {
  11167. query["Remark"] = request.Remark
  11168. }
  11169. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  11170. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  11171. }
  11172. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  11173. query["ResourceOwnerId"] = request.ResourceOwnerId
  11174. }
  11175. if !tea.BoolValue(util.IsUnset(request.TemplateContent)) {
  11176. query["TemplateContent"] = request.TemplateContent
  11177. }
  11178. if !tea.BoolValue(util.IsUnset(request.TemplateName)) {
  11179. query["TemplateName"] = request.TemplateName
  11180. }
  11181. if !tea.BoolValue(util.IsUnset(request.TemplateRule)) {
  11182. query["TemplateRule"] = request.TemplateRule
  11183. }
  11184. if !tea.BoolValue(util.IsUnset(request.TemplateType)) {
  11185. query["TemplateType"] = request.TemplateType
  11186. }
  11187. req := &openapi.OpenApiRequest{
  11188. Query: openapiutil.Query(query),
  11189. }
  11190. params := &openapi.Params{
  11191. Action: tea.String("CreateSmsTemplate"),
  11192. Version: tea.String("2017-05-25"),
  11193. Protocol: tea.String("HTTPS"),
  11194. Pathname: tea.String("/"),
  11195. Method: tea.String("POST"),
  11196. AuthType: tea.String("AK"),
  11197. Style: tea.String("RPC"),
  11198. ReqBodyType: tea.String("formData"),
  11199. BodyType: tea.String("json"),
  11200. }
  11201. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  11202. _result = &CreateSmsTemplateResponse{}
  11203. _body, _err := client.CallApi(params, req, runtime)
  11204. if _err != nil {
  11205. return _result, _err
  11206. }
  11207. _err = tea.Convert(_body, &_result)
  11208. return _result, _err
  11209. } else {
  11210. _result = &CreateSmsTemplateResponse{}
  11211. _body, _err := client.Execute(params, req, runtime)
  11212. if _err != nil {
  11213. return _result, _err
  11214. }
  11215. _err = tea.Convert(_body, &_result)
  11216. return _result, _err
  11217. }
  11218. }
  11219. // Summary:
  11220. //
  11221. // # Create SMS Template
  11222. //
  11223. // Description:
  11224. //
  11225. // - For details about the changes of this new interface compared to the original one, please refer to [Announcement on the Update of SMS Service Signature & Template Interfaces](https://help.aliyun.com/zh/sms/product-overview/announcement-on-sms-service-update-signature-template-interface).
  11226. //
  11227. // - It is recommended to apply for SMS templates via the API with at least a 30-second interval between each request.
  11228. //
  11229. // - The template information applied through the API will be synchronized in the SMS service console. For operations related to templates in the console, please refer to SMS Templates.
  11230. //
  11231. // - After submitting the template application, you can query the audit status and details using the GetSmsTemplate interface. You can also configure delivery receipts to obtain the audit status messages via TemplateSmsReport.
  11232. //
  11233. // - Domestic SMS templates are not interchangeable with international/Hong Kong, Macao, and Taiwan SMS templates. Please apply for templates based on your business scenario.
  11234. //
  11235. // - Only enterprise-verified users can apply for promotional messages and international/Hong Kong, Macao, and Taiwan messages. For differences in rights between personal and enterprise users, please refer to Usage Instructions.
  11236. //
  11237. // @param request - CreateSmsTemplateRequest
  11238. //
  11239. // @return CreateSmsTemplateResponse
  11240. func (client *Client) CreateSmsTemplate(request *CreateSmsTemplateRequest) (_result *CreateSmsTemplateResponse, _err error) {
  11241. runtime := &util.RuntimeOptions{}
  11242. _result = &CreateSmsTemplateResponse{}
  11243. _body, _err := client.CreateSmsTemplateWithOptions(request, runtime)
  11244. if _err != nil {
  11245. return _result, _err
  11246. }
  11247. _result = _body
  11248. return _result, _err
  11249. }
  11250. // Summary:
  11251. //
  11252. // 删除验证码签名
  11253. //
  11254. // @param request - DeleteExtCodeSignRequest
  11255. //
  11256. // @param runtime - runtime options for this request RuntimeOptions
  11257. //
  11258. // @return DeleteExtCodeSignResponse
  11259. func (client *Client) DeleteExtCodeSignWithOptions(request *DeleteExtCodeSignRequest, runtime *util.RuntimeOptions) (_result *DeleteExtCodeSignResponse, _err error) {
  11260. _err = util.ValidateModel(request)
  11261. if _err != nil {
  11262. return _result, _err
  11263. }
  11264. query := map[string]interface{}{}
  11265. if !tea.BoolValue(util.IsUnset(request.ExtCode)) {
  11266. query["ExtCode"] = request.ExtCode
  11267. }
  11268. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  11269. query["OwnerId"] = request.OwnerId
  11270. }
  11271. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  11272. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  11273. }
  11274. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  11275. query["ResourceOwnerId"] = request.ResourceOwnerId
  11276. }
  11277. if !tea.BoolValue(util.IsUnset(request.SignName)) {
  11278. query["SignName"] = request.SignName
  11279. }
  11280. req := &openapi.OpenApiRequest{
  11281. Query: openapiutil.Query(query),
  11282. }
  11283. params := &openapi.Params{
  11284. Action: tea.String("DeleteExtCodeSign"),
  11285. Version: tea.String("2017-05-25"),
  11286. Protocol: tea.String("HTTPS"),
  11287. Pathname: tea.String("/"),
  11288. Method: tea.String("POST"),
  11289. AuthType: tea.String("AK"),
  11290. Style: tea.String("RPC"),
  11291. ReqBodyType: tea.String("formData"),
  11292. BodyType: tea.String("json"),
  11293. }
  11294. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  11295. _result = &DeleteExtCodeSignResponse{}
  11296. _body, _err := client.CallApi(params, req, runtime)
  11297. if _err != nil {
  11298. return _result, _err
  11299. }
  11300. _err = tea.Convert(_body, &_result)
  11301. return _result, _err
  11302. } else {
  11303. _result = &DeleteExtCodeSignResponse{}
  11304. _body, _err := client.Execute(params, req, runtime)
  11305. if _err != nil {
  11306. return _result, _err
  11307. }
  11308. _err = tea.Convert(_body, &_result)
  11309. return _result, _err
  11310. }
  11311. }
  11312. // Summary:
  11313. //
  11314. // 删除验证码签名
  11315. //
  11316. // @param request - DeleteExtCodeSignRequest
  11317. //
  11318. // @return DeleteExtCodeSignResponse
  11319. func (client *Client) DeleteExtCodeSign(request *DeleteExtCodeSignRequest) (_result *DeleteExtCodeSignResponse, _err error) {
  11320. runtime := &util.RuntimeOptions{}
  11321. _result = &DeleteExtCodeSignResponse{}
  11322. _body, _err := client.DeleteExtCodeSignWithOptions(request, runtime)
  11323. if _err != nil {
  11324. return _result, _err
  11325. }
  11326. _result = _body
  11327. return _result, _err
  11328. }
  11329. // Summary:
  11330. //
  11331. // Deletes a short URL. After you delete a short URL, it cannot be changed to its original state.
  11332. //
  11333. // Description:
  11334. //
  11335. // ### QPS limits
  11336. //
  11337. // You can call this operation up to 100 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  11338. //
  11339. // @param request - DeleteShortUrlRequest
  11340. //
  11341. // @param runtime - runtime options for this request RuntimeOptions
  11342. //
  11343. // @return DeleteShortUrlResponse
  11344. func (client *Client) DeleteShortUrlWithOptions(request *DeleteShortUrlRequest, runtime *util.RuntimeOptions) (_result *DeleteShortUrlResponse, _err error) {
  11345. _err = util.ValidateModel(request)
  11346. if _err != nil {
  11347. return _result, _err
  11348. }
  11349. query := map[string]interface{}{}
  11350. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  11351. query["OwnerId"] = request.OwnerId
  11352. }
  11353. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  11354. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  11355. }
  11356. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  11357. query["ResourceOwnerId"] = request.ResourceOwnerId
  11358. }
  11359. body := map[string]interface{}{}
  11360. if !tea.BoolValue(util.IsUnset(request.SourceUrl)) {
  11361. body["SourceUrl"] = request.SourceUrl
  11362. }
  11363. req := &openapi.OpenApiRequest{
  11364. Query: openapiutil.Query(query),
  11365. Body: openapiutil.ParseToMap(body),
  11366. }
  11367. params := &openapi.Params{
  11368. Action: tea.String("DeleteShortUrl"),
  11369. Version: tea.String("2017-05-25"),
  11370. Protocol: tea.String("HTTPS"),
  11371. Pathname: tea.String("/"),
  11372. Method: tea.String("POST"),
  11373. AuthType: tea.String("AK"),
  11374. Style: tea.String("RPC"),
  11375. ReqBodyType: tea.String("formData"),
  11376. BodyType: tea.String("json"),
  11377. }
  11378. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  11379. _result = &DeleteShortUrlResponse{}
  11380. _body, _err := client.CallApi(params, req, runtime)
  11381. if _err != nil {
  11382. return _result, _err
  11383. }
  11384. _err = tea.Convert(_body, &_result)
  11385. return _result, _err
  11386. } else {
  11387. _result = &DeleteShortUrlResponse{}
  11388. _body, _err := client.Execute(params, req, runtime)
  11389. if _err != nil {
  11390. return _result, _err
  11391. }
  11392. _err = tea.Convert(_body, &_result)
  11393. return _result, _err
  11394. }
  11395. }
  11396. // Summary:
  11397. //
  11398. // Deletes a short URL. After you delete a short URL, it cannot be changed to its original state.
  11399. //
  11400. // Description:
  11401. //
  11402. // ### QPS limits
  11403. //
  11404. // You can call this operation up to 100 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  11405. //
  11406. // @param request - DeleteShortUrlRequest
  11407. //
  11408. // @return DeleteShortUrlResponse
  11409. func (client *Client) DeleteShortUrl(request *DeleteShortUrlRequest) (_result *DeleteShortUrlResponse, _err error) {
  11410. runtime := &util.RuntimeOptions{}
  11411. _result = &DeleteShortUrlResponse{}
  11412. _body, _err := client.DeleteShortUrlWithOptions(request, runtime)
  11413. if _err != nil {
  11414. return _result, _err
  11415. }
  11416. _result = _body
  11417. return _result, _err
  11418. }
  11419. // Summary:
  11420. //
  11421. // Deletes a signature.
  11422. //
  11423. // Description:
  11424. //
  11425. // You cannot delete a signature that has not been approved.
  11426. //
  11427. // - After you delete a signature, you cannot recover it. Proceed with caution.
  11428. //
  11429. // ### QPS limits
  11430. //
  11431. // You can call this operation up to 1,000 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  11432. //
  11433. // @param request - DeleteSmsSignRequest
  11434. //
  11435. // @param runtime - runtime options for this request RuntimeOptions
  11436. //
  11437. // @return DeleteSmsSignResponse
  11438. func (client *Client) DeleteSmsSignWithOptions(request *DeleteSmsSignRequest, runtime *util.RuntimeOptions) (_result *DeleteSmsSignResponse, _err error) {
  11439. _err = util.ValidateModel(request)
  11440. if _err != nil {
  11441. return _result, _err
  11442. }
  11443. query := map[string]interface{}{}
  11444. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  11445. query["OwnerId"] = request.OwnerId
  11446. }
  11447. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  11448. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  11449. }
  11450. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  11451. query["ResourceOwnerId"] = request.ResourceOwnerId
  11452. }
  11453. if !tea.BoolValue(util.IsUnset(request.SignName)) {
  11454. query["SignName"] = request.SignName
  11455. }
  11456. req := &openapi.OpenApiRequest{
  11457. Query: openapiutil.Query(query),
  11458. }
  11459. params := &openapi.Params{
  11460. Action: tea.String("DeleteSmsSign"),
  11461. Version: tea.String("2017-05-25"),
  11462. Protocol: tea.String("HTTPS"),
  11463. Pathname: tea.String("/"),
  11464. Method: tea.String("POST"),
  11465. AuthType: tea.String("AK"),
  11466. Style: tea.String("RPC"),
  11467. ReqBodyType: tea.String("formData"),
  11468. BodyType: tea.String("json"),
  11469. }
  11470. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  11471. _result = &DeleteSmsSignResponse{}
  11472. _body, _err := client.CallApi(params, req, runtime)
  11473. if _err != nil {
  11474. return _result, _err
  11475. }
  11476. _err = tea.Convert(_body, &_result)
  11477. return _result, _err
  11478. } else {
  11479. _result = &DeleteSmsSignResponse{}
  11480. _body, _err := client.Execute(params, req, runtime)
  11481. if _err != nil {
  11482. return _result, _err
  11483. }
  11484. _err = tea.Convert(_body, &_result)
  11485. return _result, _err
  11486. }
  11487. }
  11488. // Summary:
  11489. //
  11490. // Deletes a signature.
  11491. //
  11492. // Description:
  11493. //
  11494. // You cannot delete a signature that has not been approved.
  11495. //
  11496. // - After you delete a signature, you cannot recover it. Proceed with caution.
  11497. //
  11498. // ### QPS limits
  11499. //
  11500. // You can call this operation up to 1,000 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  11501. //
  11502. // @param request - DeleteSmsSignRequest
  11503. //
  11504. // @return DeleteSmsSignResponse
  11505. func (client *Client) DeleteSmsSign(request *DeleteSmsSignRequest) (_result *DeleteSmsSignResponse, _err error) {
  11506. runtime := &util.RuntimeOptions{}
  11507. _result = &DeleteSmsSignResponse{}
  11508. _body, _err := client.DeleteSmsSignWithOptions(request, runtime)
  11509. if _err != nil {
  11510. return _result, _err
  11511. }
  11512. _result = _body
  11513. return _result, _err
  11514. }
  11515. // Summary:
  11516. //
  11517. // Deletes a message template.
  11518. //
  11519. // Description:
  11520. //
  11521. // Message templates pending approval can be withdrawn. You can delete a message template pending approval on the Message Templates tab in the [Alibaba Cloud SMS console](https://dysms.console.aliyun.com/dysms.htm#/overview).
  11522. //
  11523. // - Message templates that have been approved can be deleted, and cannot be modified. You can delete a message template pending approval on the Message Templates tab in the [Alibaba Cloud SMS console](https://dysms.console.aliyun.com/dysms.htm#/overview).
  11524. //
  11525. // - You cannot recover deleted message templates. Proceed with caution.
  11526. //
  11527. // ### QPS limits
  11528. //
  11529. // You can call this operation up to 1,000 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  11530. //
  11531. // @param request - DeleteSmsTemplateRequest
  11532. //
  11533. // @param runtime - runtime options for this request RuntimeOptions
  11534. //
  11535. // @return DeleteSmsTemplateResponse
  11536. func (client *Client) DeleteSmsTemplateWithOptions(request *DeleteSmsTemplateRequest, runtime *util.RuntimeOptions) (_result *DeleteSmsTemplateResponse, _err error) {
  11537. _err = util.ValidateModel(request)
  11538. if _err != nil {
  11539. return _result, _err
  11540. }
  11541. query := map[string]interface{}{}
  11542. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  11543. query["OwnerId"] = request.OwnerId
  11544. }
  11545. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  11546. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  11547. }
  11548. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  11549. query["ResourceOwnerId"] = request.ResourceOwnerId
  11550. }
  11551. if !tea.BoolValue(util.IsUnset(request.TemplateCode)) {
  11552. query["TemplateCode"] = request.TemplateCode
  11553. }
  11554. req := &openapi.OpenApiRequest{
  11555. Query: openapiutil.Query(query),
  11556. }
  11557. params := &openapi.Params{
  11558. Action: tea.String("DeleteSmsTemplate"),
  11559. Version: tea.String("2017-05-25"),
  11560. Protocol: tea.String("HTTPS"),
  11561. Pathname: tea.String("/"),
  11562. Method: tea.String("POST"),
  11563. AuthType: tea.String("AK"),
  11564. Style: tea.String("RPC"),
  11565. ReqBodyType: tea.String("formData"),
  11566. BodyType: tea.String("json"),
  11567. }
  11568. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  11569. _result = &DeleteSmsTemplateResponse{}
  11570. _body, _err := client.CallApi(params, req, runtime)
  11571. if _err != nil {
  11572. return _result, _err
  11573. }
  11574. _err = tea.Convert(_body, &_result)
  11575. return _result, _err
  11576. } else {
  11577. _result = &DeleteSmsTemplateResponse{}
  11578. _body, _err := client.Execute(params, req, runtime)
  11579. if _err != nil {
  11580. return _result, _err
  11581. }
  11582. _err = tea.Convert(_body, &_result)
  11583. return _result, _err
  11584. }
  11585. }
  11586. // Summary:
  11587. //
  11588. // Deletes a message template.
  11589. //
  11590. // Description:
  11591. //
  11592. // Message templates pending approval can be withdrawn. You can delete a message template pending approval on the Message Templates tab in the [Alibaba Cloud SMS console](https://dysms.console.aliyun.com/dysms.htm#/overview).
  11593. //
  11594. // - Message templates that have been approved can be deleted, and cannot be modified. You can delete a message template pending approval on the Message Templates tab in the [Alibaba Cloud SMS console](https://dysms.console.aliyun.com/dysms.htm#/overview).
  11595. //
  11596. // - You cannot recover deleted message templates. Proceed with caution.
  11597. //
  11598. // ### QPS limits
  11599. //
  11600. // You can call this operation up to 1,000 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  11601. //
  11602. // @param request - DeleteSmsTemplateRequest
  11603. //
  11604. // @return DeleteSmsTemplateResponse
  11605. func (client *Client) DeleteSmsTemplate(request *DeleteSmsTemplateRequest) (_result *DeleteSmsTemplateResponse, _err error) {
  11606. runtime := &util.RuntimeOptions{}
  11607. _result = &DeleteSmsTemplateResponse{}
  11608. _body, _err := client.DeleteSmsTemplateWithOptions(request, runtime)
  11609. if _err != nil {
  11610. return _result, _err
  11611. }
  11612. _result = _body
  11613. return _result, _err
  11614. }
  11615. // Summary:
  11616. //
  11617. // # Query card sending details
  11618. //
  11619. // @param request - GetCardSmsDetailsRequest
  11620. //
  11621. // @param runtime - runtime options for this request RuntimeOptions
  11622. //
  11623. // @return GetCardSmsDetailsResponse
  11624. func (client *Client) GetCardSmsDetailsWithOptions(request *GetCardSmsDetailsRequest, runtime *util.RuntimeOptions) (_result *GetCardSmsDetailsResponse, _err error) {
  11625. _err = util.ValidateModel(request)
  11626. if _err != nil {
  11627. return _result, _err
  11628. }
  11629. query := map[string]interface{}{}
  11630. if !tea.BoolValue(util.IsUnset(request.BizCardId)) {
  11631. query["BizCardId"] = request.BizCardId
  11632. }
  11633. if !tea.BoolValue(util.IsUnset(request.BizDigitId)) {
  11634. query["BizDigitId"] = request.BizDigitId
  11635. }
  11636. if !tea.BoolValue(util.IsUnset(request.BizSmsId)) {
  11637. query["BizSmsId"] = request.BizSmsId
  11638. }
  11639. if !tea.BoolValue(util.IsUnset(request.CurrentPage)) {
  11640. query["CurrentPage"] = request.CurrentPage
  11641. }
  11642. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  11643. query["OwnerId"] = request.OwnerId
  11644. }
  11645. if !tea.BoolValue(util.IsUnset(request.PageSize)) {
  11646. query["PageSize"] = request.PageSize
  11647. }
  11648. if !tea.BoolValue(util.IsUnset(request.PhoneNumber)) {
  11649. query["PhoneNumber"] = request.PhoneNumber
  11650. }
  11651. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  11652. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  11653. }
  11654. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  11655. query["ResourceOwnerId"] = request.ResourceOwnerId
  11656. }
  11657. if !tea.BoolValue(util.IsUnset(request.SendDate)) {
  11658. query["SendDate"] = request.SendDate
  11659. }
  11660. req := &openapi.OpenApiRequest{
  11661. Query: openapiutil.Query(query),
  11662. }
  11663. params := &openapi.Params{
  11664. Action: tea.String("GetCardSmsDetails"),
  11665. Version: tea.String("2017-05-25"),
  11666. Protocol: tea.String("HTTPS"),
  11667. Pathname: tea.String("/"),
  11668. Method: tea.String("POST"),
  11669. AuthType: tea.String("AK"),
  11670. Style: tea.String("RPC"),
  11671. ReqBodyType: tea.String("formData"),
  11672. BodyType: tea.String("json"),
  11673. }
  11674. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  11675. _result = &GetCardSmsDetailsResponse{}
  11676. _body, _err := client.CallApi(params, req, runtime)
  11677. if _err != nil {
  11678. return _result, _err
  11679. }
  11680. _err = tea.Convert(_body, &_result)
  11681. return _result, _err
  11682. } else {
  11683. _result = &GetCardSmsDetailsResponse{}
  11684. _body, _err := client.Execute(params, req, runtime)
  11685. if _err != nil {
  11686. return _result, _err
  11687. }
  11688. _err = tea.Convert(_body, &_result)
  11689. return _result, _err
  11690. }
  11691. }
  11692. // Summary:
  11693. //
  11694. // # Query card sending details
  11695. //
  11696. // @param request - GetCardSmsDetailsRequest
  11697. //
  11698. // @return GetCardSmsDetailsResponse
  11699. func (client *Client) GetCardSmsDetails(request *GetCardSmsDetailsRequest) (_result *GetCardSmsDetailsResponse, _err error) {
  11700. runtime := &util.RuntimeOptions{}
  11701. _result = &GetCardSmsDetailsResponse{}
  11702. _body, _err := client.GetCardSmsDetailsWithOptions(request, runtime)
  11703. if _err != nil {
  11704. return _result, _err
  11705. }
  11706. _result = _body
  11707. return _result, _err
  11708. }
  11709. // Summary:
  11710. //
  11711. // Queries the short URLs of a card messages template.
  11712. //
  11713. // Description:
  11714. //
  11715. // ### QPS limit
  11716. //
  11717. // You can call this operation up to 1,000 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  11718. //
  11719. // @param request - GetCardSmsLinkRequest
  11720. //
  11721. // @param runtime - runtime options for this request RuntimeOptions
  11722. //
  11723. // @return GetCardSmsLinkResponse
  11724. func (client *Client) GetCardSmsLinkWithOptions(request *GetCardSmsLinkRequest, runtime *util.RuntimeOptions) (_result *GetCardSmsLinkResponse, _err error) {
  11725. _err = util.ValidateModel(request)
  11726. if _err != nil {
  11727. return _result, _err
  11728. }
  11729. query := map[string]interface{}{}
  11730. if !tea.BoolValue(util.IsUnset(request.CardCodeType)) {
  11731. query["CardCodeType"] = request.CardCodeType
  11732. }
  11733. if !tea.BoolValue(util.IsUnset(request.CardLinkType)) {
  11734. query["CardLinkType"] = request.CardLinkType
  11735. }
  11736. if !tea.BoolValue(util.IsUnset(request.CardTemplateCode)) {
  11737. query["CardTemplateCode"] = request.CardTemplateCode
  11738. }
  11739. if !tea.BoolValue(util.IsUnset(request.CardTemplateParamJson)) {
  11740. query["CardTemplateParamJson"] = request.CardTemplateParamJson
  11741. }
  11742. if !tea.BoolValue(util.IsUnset(request.CustomShortCodeJson)) {
  11743. query["CustomShortCodeJson"] = request.CustomShortCodeJson
  11744. }
  11745. if !tea.BoolValue(util.IsUnset(request.Domain)) {
  11746. query["Domain"] = request.Domain
  11747. }
  11748. if !tea.BoolValue(util.IsUnset(request.OutId)) {
  11749. query["OutId"] = request.OutId
  11750. }
  11751. if !tea.BoolValue(util.IsUnset(request.PhoneNumberJson)) {
  11752. query["PhoneNumberJson"] = request.PhoneNumberJson
  11753. }
  11754. if !tea.BoolValue(util.IsUnset(request.SignNameJson)) {
  11755. query["SignNameJson"] = request.SignNameJson
  11756. }
  11757. req := &openapi.OpenApiRequest{
  11758. Query: openapiutil.Query(query),
  11759. }
  11760. params := &openapi.Params{
  11761. Action: tea.String("GetCardSmsLink"),
  11762. Version: tea.String("2017-05-25"),
  11763. Protocol: tea.String("HTTPS"),
  11764. Pathname: tea.String("/"),
  11765. Method: tea.String("POST"),
  11766. AuthType: tea.String("AK"),
  11767. Style: tea.String("RPC"),
  11768. ReqBodyType: tea.String("formData"),
  11769. BodyType: tea.String("json"),
  11770. }
  11771. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  11772. _result = &GetCardSmsLinkResponse{}
  11773. _body, _err := client.CallApi(params, req, runtime)
  11774. if _err != nil {
  11775. return _result, _err
  11776. }
  11777. _err = tea.Convert(_body, &_result)
  11778. return _result, _err
  11779. } else {
  11780. _result = &GetCardSmsLinkResponse{}
  11781. _body, _err := client.Execute(params, req, runtime)
  11782. if _err != nil {
  11783. return _result, _err
  11784. }
  11785. _err = tea.Convert(_body, &_result)
  11786. return _result, _err
  11787. }
  11788. }
  11789. // Summary:
  11790. //
  11791. // Queries the short URLs of a card messages template.
  11792. //
  11793. // Description:
  11794. //
  11795. // ### QPS limit
  11796. //
  11797. // You can call this operation up to 1,000 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  11798. //
  11799. // @param request - GetCardSmsLinkRequest
  11800. //
  11801. // @return GetCardSmsLinkResponse
  11802. func (client *Client) GetCardSmsLink(request *GetCardSmsLinkRequest) (_result *GetCardSmsLinkResponse, _err error) {
  11803. runtime := &util.RuntimeOptions{}
  11804. _result = &GetCardSmsLinkResponse{}
  11805. _body, _err := client.GetCardSmsLinkWithOptions(request, runtime)
  11806. if _err != nil {
  11807. return _result, _err
  11808. }
  11809. _result = _body
  11810. return _result, _err
  11811. }
  11812. // Summary:
  11813. //
  11814. // Converts a resource uploaded to the specified Object Storage Service (OSS) bucket for unified management. Then, a resource ID is returned. You can manage the resource based on the ID.
  11815. //
  11816. // Description:
  11817. //
  11818. // ### QPS limit
  11819. //
  11820. // You can call this operation up to 300 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  11821. //
  11822. // @param request - GetMediaResourceIdRequest
  11823. //
  11824. // @param runtime - runtime options for this request RuntimeOptions
  11825. //
  11826. // @return GetMediaResourceIdResponse
  11827. func (client *Client) GetMediaResourceIdWithOptions(request *GetMediaResourceIdRequest, runtime *util.RuntimeOptions) (_result *GetMediaResourceIdResponse, _err error) {
  11828. _err = util.ValidateModel(request)
  11829. if _err != nil {
  11830. return _result, _err
  11831. }
  11832. query := map[string]interface{}{}
  11833. if !tea.BoolValue(util.IsUnset(request.ExtendInfo)) {
  11834. query["ExtendInfo"] = request.ExtendInfo
  11835. }
  11836. if !tea.BoolValue(util.IsUnset(request.FileSize)) {
  11837. query["FileSize"] = request.FileSize
  11838. }
  11839. if !tea.BoolValue(util.IsUnset(request.Memo)) {
  11840. query["Memo"] = request.Memo
  11841. }
  11842. if !tea.BoolValue(util.IsUnset(request.OssKey)) {
  11843. query["OssKey"] = request.OssKey
  11844. }
  11845. if !tea.BoolValue(util.IsUnset(request.ResourceType)) {
  11846. query["ResourceType"] = request.ResourceType
  11847. }
  11848. req := &openapi.OpenApiRequest{
  11849. Query: openapiutil.Query(query),
  11850. }
  11851. params := &openapi.Params{
  11852. Action: tea.String("GetMediaResourceId"),
  11853. Version: tea.String("2017-05-25"),
  11854. Protocol: tea.String("HTTPS"),
  11855. Pathname: tea.String("/"),
  11856. Method: tea.String("POST"),
  11857. AuthType: tea.String("AK"),
  11858. Style: tea.String("RPC"),
  11859. ReqBodyType: tea.String("formData"),
  11860. BodyType: tea.String("json"),
  11861. }
  11862. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  11863. _result = &GetMediaResourceIdResponse{}
  11864. _body, _err := client.CallApi(params, req, runtime)
  11865. if _err != nil {
  11866. return _result, _err
  11867. }
  11868. _err = tea.Convert(_body, &_result)
  11869. return _result, _err
  11870. } else {
  11871. _result = &GetMediaResourceIdResponse{}
  11872. _body, _err := client.Execute(params, req, runtime)
  11873. if _err != nil {
  11874. return _result, _err
  11875. }
  11876. _err = tea.Convert(_body, &_result)
  11877. return _result, _err
  11878. }
  11879. }
  11880. // Summary:
  11881. //
  11882. // Converts a resource uploaded to the specified Object Storage Service (OSS) bucket for unified management. Then, a resource ID is returned. You can manage the resource based on the ID.
  11883. //
  11884. // Description:
  11885. //
  11886. // ### QPS limit
  11887. //
  11888. // You can call this operation up to 300 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  11889. //
  11890. // @param request - GetMediaResourceIdRequest
  11891. //
  11892. // @return GetMediaResourceIdResponse
  11893. func (client *Client) GetMediaResourceId(request *GetMediaResourceIdRequest) (_result *GetMediaResourceIdResponse, _err error) {
  11894. runtime := &util.RuntimeOptions{}
  11895. _result = &GetMediaResourceIdResponse{}
  11896. _body, _err := client.GetMediaResourceIdWithOptions(request, runtime)
  11897. if _err != nil {
  11898. return _result, _err
  11899. }
  11900. _result = _body
  11901. return _result, _err
  11902. }
  11903. // Summary:
  11904. //
  11905. // Queries the OSS configuration information about card messages.
  11906. //
  11907. // Description:
  11908. //
  11909. // Resources such as images and videos used for card message templates can be uploaded to Object Storage Service (OSS) buckets for storage. For more information, see [Upload files to OSS](https://help.aliyun.com/document_detail/437303.html).
  11910. //
  11911. // ### QPS limit
  11912. //
  11913. // You can call this operation up to 300 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  11914. //
  11915. // @param request - GetOSSInfoForCardTemplateRequest
  11916. //
  11917. // @param runtime - runtime options for this request RuntimeOptions
  11918. //
  11919. // @return GetOSSInfoForCardTemplateResponse
  11920. func (client *Client) GetOSSInfoForCardTemplateWithOptions(runtime *util.RuntimeOptions) (_result *GetOSSInfoForCardTemplateResponse, _err error) {
  11921. req := &openapi.OpenApiRequest{}
  11922. params := &openapi.Params{
  11923. Action: tea.String("GetOSSInfoForCardTemplate"),
  11924. Version: tea.String("2017-05-25"),
  11925. Protocol: tea.String("HTTPS"),
  11926. Pathname: tea.String("/"),
  11927. Method: tea.String("POST"),
  11928. AuthType: tea.String("AK"),
  11929. Style: tea.String("RPC"),
  11930. ReqBodyType: tea.String("formData"),
  11931. BodyType: tea.String("json"),
  11932. }
  11933. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  11934. _result = &GetOSSInfoForCardTemplateResponse{}
  11935. _body, _err := client.CallApi(params, req, runtime)
  11936. if _err != nil {
  11937. return _result, _err
  11938. }
  11939. _err = tea.Convert(_body, &_result)
  11940. return _result, _err
  11941. } else {
  11942. _result = &GetOSSInfoForCardTemplateResponse{}
  11943. _body, _err := client.Execute(params, req, runtime)
  11944. if _err != nil {
  11945. return _result, _err
  11946. }
  11947. _err = tea.Convert(_body, &_result)
  11948. return _result, _err
  11949. }
  11950. }
  11951. // Summary:
  11952. //
  11953. // Queries the OSS configuration information about card messages.
  11954. //
  11955. // Description:
  11956. //
  11957. // Resources such as images and videos used for card message templates can be uploaded to Object Storage Service (OSS) buckets for storage. For more information, see [Upload files to OSS](https://help.aliyun.com/document_detail/437303.html).
  11958. //
  11959. // ### QPS limit
  11960. //
  11961. // You can call this operation up to 300 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  11962. //
  11963. // @return GetOSSInfoForCardTemplateResponse
  11964. func (client *Client) GetOSSInfoForCardTemplate() (_result *GetOSSInfoForCardTemplateResponse, _err error) {
  11965. runtime := &util.RuntimeOptions{}
  11966. _result = &GetOSSInfoForCardTemplateResponse{}
  11967. _body, _err := client.GetOSSInfoForCardTemplateWithOptions(runtime)
  11968. if _err != nil {
  11969. return _result, _err
  11970. }
  11971. _result = _body
  11972. return _result, _err
  11973. }
  11974. // Summary:
  11975. //
  11976. // # SMS File Upload, Get Authorization Info
  11977. //
  11978. // Description:
  11979. //
  11980. // - When creating signatures or templates, you can upload materials such as login pages with links, backend page screenshots, software copyrights, supplementary agreements, etc. This helps the review personnel understand your business details. If there are multiple materials, they can be combined into one file, supporting png, jpg, jpeg, doc, docx, pdf formats.
  11981. //
  11982. // - For additional materials needed when creating signatures or templates, you can upload them to the OSS file system for storage. For file upload operations, refer to [OSS File Upload](https://help.aliyun.com/zh/sms/upload-files-through-oss).
  11983. //
  11984. // @param request - GetOSSInfoForUploadFileRequest
  11985. //
  11986. // @param runtime - runtime options for this request RuntimeOptions
  11987. //
  11988. // @return GetOSSInfoForUploadFileResponse
  11989. func (client *Client) GetOSSInfoForUploadFileWithOptions(request *GetOSSInfoForUploadFileRequest, runtime *util.RuntimeOptions) (_result *GetOSSInfoForUploadFileResponse, _err error) {
  11990. _err = util.ValidateModel(request)
  11991. if _err != nil {
  11992. return _result, _err
  11993. }
  11994. query := map[string]interface{}{}
  11995. if !tea.BoolValue(util.IsUnset(request.BizType)) {
  11996. query["BizType"] = request.BizType
  11997. }
  11998. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  11999. query["OwnerId"] = request.OwnerId
  12000. }
  12001. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  12002. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  12003. }
  12004. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  12005. query["ResourceOwnerId"] = request.ResourceOwnerId
  12006. }
  12007. req := &openapi.OpenApiRequest{
  12008. Query: openapiutil.Query(query),
  12009. }
  12010. params := &openapi.Params{
  12011. Action: tea.String("GetOSSInfoForUploadFile"),
  12012. Version: tea.String("2017-05-25"),
  12013. Protocol: tea.String("HTTPS"),
  12014. Pathname: tea.String("/"),
  12015. Method: tea.String("POST"),
  12016. AuthType: tea.String("AK"),
  12017. Style: tea.String("RPC"),
  12018. ReqBodyType: tea.String("formData"),
  12019. BodyType: tea.String("json"),
  12020. }
  12021. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  12022. _result = &GetOSSInfoForUploadFileResponse{}
  12023. _body, _err := client.CallApi(params, req, runtime)
  12024. if _err != nil {
  12025. return _result, _err
  12026. }
  12027. _err = tea.Convert(_body, &_result)
  12028. return _result, _err
  12029. } else {
  12030. _result = &GetOSSInfoForUploadFileResponse{}
  12031. _body, _err := client.Execute(params, req, runtime)
  12032. if _err != nil {
  12033. return _result, _err
  12034. }
  12035. _err = tea.Convert(_body, &_result)
  12036. return _result, _err
  12037. }
  12038. }
  12039. // Summary:
  12040. //
  12041. // # SMS File Upload, Get Authorization Info
  12042. //
  12043. // Description:
  12044. //
  12045. // - When creating signatures or templates, you can upload materials such as login pages with links, backend page screenshots, software copyrights, supplementary agreements, etc. This helps the review personnel understand your business details. If there are multiple materials, they can be combined into one file, supporting png, jpg, jpeg, doc, docx, pdf formats.
  12046. //
  12047. // - For additional materials needed when creating signatures or templates, you can upload them to the OSS file system for storage. For file upload operations, refer to [OSS File Upload](https://help.aliyun.com/zh/sms/upload-files-through-oss).
  12048. //
  12049. // @param request - GetOSSInfoForUploadFileRequest
  12050. //
  12051. // @return GetOSSInfoForUploadFileResponse
  12052. func (client *Client) GetOSSInfoForUploadFile(request *GetOSSInfoForUploadFileRequest) (_result *GetOSSInfoForUploadFileResponse, _err error) {
  12053. runtime := &util.RuntimeOptions{}
  12054. _result = &GetOSSInfoForUploadFileResponse{}
  12055. _body, _err := client.GetOSSInfoForUploadFileWithOptions(request, runtime)
  12056. if _err != nil {
  12057. return _result, _err
  12058. }
  12059. _result = _body
  12060. return _result, _err
  12061. }
  12062. // Summary:
  12063. //
  12064. // # Query SMS Signature Details
  12065. //
  12066. // Description:
  12067. //
  12068. // - For details about the changes of this new interface and the original one, please refer to [Announcement on the Update of SMS Signature & Template Interfaces](https://help.aliyun.com/zh/sms/product-overview/announcement-on-sms-service-update-signature-template-interface).
  12069. //
  12070. // - Review Time: Generally, after submitting the signature, Alibaba Cloud expects to complete the review within 2 hours (Review Business Hours: Monday to Sunday 9:00~21:00, with legal holidays postponed). It is recommended to submit your application before 18:00.
  12071. //
  12072. // - If the signature fails the review, the reason for the failure will be returned. Please refer to [Handling Suggestions for Failed SMS Reviews](https://help.aliyun.com/zh/sms/user-guide/causes-of-application-failures-and-suggestions?spm), invoke the [UpdateSmsSign](https://help.aliyun.com/zh/sms/developer-reference/api-dysmsapi-2017-05-25-updatesmssign?spm) API, or modify the unapproved SMS signature on the [Signature Management](https://dysms.console.aliyun.com/domestic/text/sign) page.
  12073. //
  12074. // @param request - GetSmsSignRequest
  12075. //
  12076. // @param runtime - runtime options for this request RuntimeOptions
  12077. //
  12078. // @return GetSmsSignResponse
  12079. func (client *Client) GetSmsSignWithOptions(request *GetSmsSignRequest, runtime *util.RuntimeOptions) (_result *GetSmsSignResponse, _err error) {
  12080. _err = util.ValidateModel(request)
  12081. if _err != nil {
  12082. return _result, _err
  12083. }
  12084. query := map[string]interface{}{}
  12085. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  12086. query["OwnerId"] = request.OwnerId
  12087. }
  12088. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  12089. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  12090. }
  12091. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  12092. query["ResourceOwnerId"] = request.ResourceOwnerId
  12093. }
  12094. if !tea.BoolValue(util.IsUnset(request.SignName)) {
  12095. query["SignName"] = request.SignName
  12096. }
  12097. req := &openapi.OpenApiRequest{
  12098. Query: openapiutil.Query(query),
  12099. }
  12100. params := &openapi.Params{
  12101. Action: tea.String("GetSmsSign"),
  12102. Version: tea.String("2017-05-25"),
  12103. Protocol: tea.String("HTTPS"),
  12104. Pathname: tea.String("/"),
  12105. Method: tea.String("POST"),
  12106. AuthType: tea.String("AK"),
  12107. Style: tea.String("RPC"),
  12108. ReqBodyType: tea.String("formData"),
  12109. BodyType: tea.String("json"),
  12110. }
  12111. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  12112. _result = &GetSmsSignResponse{}
  12113. _body, _err := client.CallApi(params, req, runtime)
  12114. if _err != nil {
  12115. return _result, _err
  12116. }
  12117. _err = tea.Convert(_body, &_result)
  12118. return _result, _err
  12119. } else {
  12120. _result = &GetSmsSignResponse{}
  12121. _body, _err := client.Execute(params, req, runtime)
  12122. if _err != nil {
  12123. return _result, _err
  12124. }
  12125. _err = tea.Convert(_body, &_result)
  12126. return _result, _err
  12127. }
  12128. }
  12129. // Summary:
  12130. //
  12131. // # Query SMS Signature Details
  12132. //
  12133. // Description:
  12134. //
  12135. // - For details about the changes of this new interface and the original one, please refer to [Announcement on the Update of SMS Signature & Template Interfaces](https://help.aliyun.com/zh/sms/product-overview/announcement-on-sms-service-update-signature-template-interface).
  12136. //
  12137. // - Review Time: Generally, after submitting the signature, Alibaba Cloud expects to complete the review within 2 hours (Review Business Hours: Monday to Sunday 9:00~21:00, with legal holidays postponed). It is recommended to submit your application before 18:00.
  12138. //
  12139. // - If the signature fails the review, the reason for the failure will be returned. Please refer to [Handling Suggestions for Failed SMS Reviews](https://help.aliyun.com/zh/sms/user-guide/causes-of-application-failures-and-suggestions?spm), invoke the [UpdateSmsSign](https://help.aliyun.com/zh/sms/developer-reference/api-dysmsapi-2017-05-25-updatesmssign?spm) API, or modify the unapproved SMS signature on the [Signature Management](https://dysms.console.aliyun.com/domestic/text/sign) page.
  12140. //
  12141. // @param request - GetSmsSignRequest
  12142. //
  12143. // @return GetSmsSignResponse
  12144. func (client *Client) GetSmsSign(request *GetSmsSignRequest) (_result *GetSmsSignResponse, _err error) {
  12145. runtime := &util.RuntimeOptions{}
  12146. _result = &GetSmsSignResponse{}
  12147. _body, _err := client.GetSmsSignWithOptions(request, runtime)
  12148. if _err != nil {
  12149. return _result, _err
  12150. }
  12151. _result = _body
  12152. return _result, _err
  12153. }
  12154. // Summary:
  12155. //
  12156. // # Query Text SMS Template Details
  12157. //
  12158. // Description:
  12159. //
  12160. // - For details about the announcement of changes to the new and original interfaces, see [Announcement on Updates to SMS Service Signature & Template Interfaces](https://help.aliyun.com/zh/sms/product-overview/announcement-on-sms-service-update-signature-template-interface).
  12161. //
  12162. // - Review Time: Under normal circumstances, Alibaba Cloud expects to complete the review within 2 hours after template submission (review working hours: Monday to Sunday 9:00~21:00, with statutory holidays postponed). It is recommended to submit your application before 18:00.
  12163. //
  12164. // - If the template fails the review, the reason for the failure will be returned. Please refer to [Handling Suggestions for Failed SMS Reviews](https://help.aliyun.com/zh/sms/user-guide/causes-of-application-failures-and-suggestions?spm=a2c4g.11186623.0.0.41fd339f3bPSCQ), invoke the [ModifySmsTemplate](https://help.aliyun.com/zh/sms/developer-reference/api-dysmsapi-2017-05-25-modifysmstemplate?spm=a2c4g.11186623.0.0.5b1f6e8bQloFit) API or modify the SMS template on the [Template Management](https://dysms.console.aliyun.com/domestic/text/template) page.
  12165. //
  12166. // - The current QuerySmsTemplate interface queries the audit details of a single template by template code. The [QuerySmsTemplateList](https://help.aliyun.com/zh/sms/developer-reference/api-dysmsapi-2017-05-25-querysmstemplatelist?spm=a2c4g.11186623.0.0.24086e8bO8cFn4) interface can query the template details of all templates under your current account.
  12167. //
  12168. // @param request - GetSmsTemplateRequest
  12169. //
  12170. // @param runtime - runtime options for this request RuntimeOptions
  12171. //
  12172. // @return GetSmsTemplateResponse
  12173. func (client *Client) GetSmsTemplateWithOptions(request *GetSmsTemplateRequest, runtime *util.RuntimeOptions) (_result *GetSmsTemplateResponse, _err error) {
  12174. _err = util.ValidateModel(request)
  12175. if _err != nil {
  12176. return _result, _err
  12177. }
  12178. query := map[string]interface{}{}
  12179. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  12180. query["OwnerId"] = request.OwnerId
  12181. }
  12182. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  12183. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  12184. }
  12185. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  12186. query["ResourceOwnerId"] = request.ResourceOwnerId
  12187. }
  12188. if !tea.BoolValue(util.IsUnset(request.TemplateCode)) {
  12189. query["TemplateCode"] = request.TemplateCode
  12190. }
  12191. req := &openapi.OpenApiRequest{
  12192. Query: openapiutil.Query(query),
  12193. }
  12194. params := &openapi.Params{
  12195. Action: tea.String("GetSmsTemplate"),
  12196. Version: tea.String("2017-05-25"),
  12197. Protocol: tea.String("HTTPS"),
  12198. Pathname: tea.String("/"),
  12199. Method: tea.String("POST"),
  12200. AuthType: tea.String("AK"),
  12201. Style: tea.String("RPC"),
  12202. ReqBodyType: tea.String("formData"),
  12203. BodyType: tea.String("json"),
  12204. }
  12205. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  12206. _result = &GetSmsTemplateResponse{}
  12207. _body, _err := client.CallApi(params, req, runtime)
  12208. if _err != nil {
  12209. return _result, _err
  12210. }
  12211. _err = tea.Convert(_body, &_result)
  12212. return _result, _err
  12213. } else {
  12214. _result = &GetSmsTemplateResponse{}
  12215. _body, _err := client.Execute(params, req, runtime)
  12216. if _err != nil {
  12217. return _result, _err
  12218. }
  12219. _err = tea.Convert(_body, &_result)
  12220. return _result, _err
  12221. }
  12222. }
  12223. // Summary:
  12224. //
  12225. // # Query Text SMS Template Details
  12226. //
  12227. // Description:
  12228. //
  12229. // - For details about the announcement of changes to the new and original interfaces, see [Announcement on Updates to SMS Service Signature & Template Interfaces](https://help.aliyun.com/zh/sms/product-overview/announcement-on-sms-service-update-signature-template-interface).
  12230. //
  12231. // - Review Time: Under normal circumstances, Alibaba Cloud expects to complete the review within 2 hours after template submission (review working hours: Monday to Sunday 9:00~21:00, with statutory holidays postponed). It is recommended to submit your application before 18:00.
  12232. //
  12233. // - If the template fails the review, the reason for the failure will be returned. Please refer to [Handling Suggestions for Failed SMS Reviews](https://help.aliyun.com/zh/sms/user-guide/causes-of-application-failures-and-suggestions?spm=a2c4g.11186623.0.0.41fd339f3bPSCQ), invoke the [ModifySmsTemplate](https://help.aliyun.com/zh/sms/developer-reference/api-dysmsapi-2017-05-25-modifysmstemplate?spm=a2c4g.11186623.0.0.5b1f6e8bQloFit) API or modify the SMS template on the [Template Management](https://dysms.console.aliyun.com/domestic/text/template) page.
  12234. //
  12235. // - The current QuerySmsTemplate interface queries the audit details of a single template by template code. The [QuerySmsTemplateList](https://help.aliyun.com/zh/sms/developer-reference/api-dysmsapi-2017-05-25-querysmstemplatelist?spm=a2c4g.11186623.0.0.24086e8bO8cFn4) interface can query the template details of all templates under your current account.
  12236. //
  12237. // @param request - GetSmsTemplateRequest
  12238. //
  12239. // @return GetSmsTemplateResponse
  12240. func (client *Client) GetSmsTemplate(request *GetSmsTemplateRequest) (_result *GetSmsTemplateResponse, _err error) {
  12241. runtime := &util.RuntimeOptions{}
  12242. _result = &GetSmsTemplateResponse{}
  12243. _body, _err := client.GetSmsTemplateWithOptions(request, runtime)
  12244. if _err != nil {
  12245. return _result, _err
  12246. }
  12247. _result = _body
  12248. return _result, _err
  12249. }
  12250. // Summary:
  12251. //
  12252. // Queries the tags of a message template.
  12253. //
  12254. // Description:
  12255. //
  12256. // ### QPS limit
  12257. //
  12258. // You can call this operation up to 50 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  12259. //
  12260. // @param request - ListTagResourcesRequest
  12261. //
  12262. // @param runtime - runtime options for this request RuntimeOptions
  12263. //
  12264. // @return ListTagResourcesResponse
  12265. func (client *Client) ListTagResourcesWithOptions(request *ListTagResourcesRequest, runtime *util.RuntimeOptions) (_result *ListTagResourcesResponse, _err error) {
  12266. _err = util.ValidateModel(request)
  12267. if _err != nil {
  12268. return _result, _err
  12269. }
  12270. query := map[string]interface{}{}
  12271. if !tea.BoolValue(util.IsUnset(request.NextToken)) {
  12272. query["NextToken"] = request.NextToken
  12273. }
  12274. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  12275. query["OwnerId"] = request.OwnerId
  12276. }
  12277. if !tea.BoolValue(util.IsUnset(request.PageSize)) {
  12278. query["PageSize"] = request.PageSize
  12279. }
  12280. if !tea.BoolValue(util.IsUnset(request.ProdCode)) {
  12281. query["ProdCode"] = request.ProdCode
  12282. }
  12283. if !tea.BoolValue(util.IsUnset(request.RegionId)) {
  12284. query["RegionId"] = request.RegionId
  12285. }
  12286. if !tea.BoolValue(util.IsUnset(request.ResourceId)) {
  12287. query["ResourceId"] = request.ResourceId
  12288. }
  12289. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  12290. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  12291. }
  12292. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  12293. query["ResourceOwnerId"] = request.ResourceOwnerId
  12294. }
  12295. if !tea.BoolValue(util.IsUnset(request.ResourceType)) {
  12296. query["ResourceType"] = request.ResourceType
  12297. }
  12298. if !tea.BoolValue(util.IsUnset(request.Tag)) {
  12299. query["Tag"] = request.Tag
  12300. }
  12301. req := &openapi.OpenApiRequest{
  12302. Query: openapiutil.Query(query),
  12303. }
  12304. params := &openapi.Params{
  12305. Action: tea.String("ListTagResources"),
  12306. Version: tea.String("2017-05-25"),
  12307. Protocol: tea.String("HTTPS"),
  12308. Pathname: tea.String("/"),
  12309. Method: tea.String("POST"),
  12310. AuthType: tea.String("AK"),
  12311. Style: tea.String("RPC"),
  12312. ReqBodyType: tea.String("formData"),
  12313. BodyType: tea.String("json"),
  12314. }
  12315. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  12316. _result = &ListTagResourcesResponse{}
  12317. _body, _err := client.CallApi(params, req, runtime)
  12318. if _err != nil {
  12319. return _result, _err
  12320. }
  12321. _err = tea.Convert(_body, &_result)
  12322. return _result, _err
  12323. } else {
  12324. _result = &ListTagResourcesResponse{}
  12325. _body, _err := client.Execute(params, req, runtime)
  12326. if _err != nil {
  12327. return _result, _err
  12328. }
  12329. _err = tea.Convert(_body, &_result)
  12330. return _result, _err
  12331. }
  12332. }
  12333. // Summary:
  12334. //
  12335. // Queries the tags of a message template.
  12336. //
  12337. // Description:
  12338. //
  12339. // ### QPS limit
  12340. //
  12341. // You can call this operation up to 50 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  12342. //
  12343. // @param request - ListTagResourcesRequest
  12344. //
  12345. // @return ListTagResourcesResponse
  12346. func (client *Client) ListTagResources(request *ListTagResourcesRequest) (_result *ListTagResourcesResponse, _err error) {
  12347. runtime := &util.RuntimeOptions{}
  12348. _result = &ListTagResourcesResponse{}
  12349. _body, _err := client.ListTagResourcesWithOptions(request, runtime)
  12350. if _err != nil {
  12351. return _result, _err
  12352. }
  12353. _result = _body
  12354. return _result, _err
  12355. }
  12356. // Summary:
  12357. //
  12358. // Modifies a rejected signature and submit it for approval. Signatures that are pending approval or have been approved cannot be modified.
  12359. //
  12360. // Description:
  12361. //
  12362. // You can call the operation or use the [Alibaba Cloud SMS console](https://dysms.console.aliyun.com/dysms.htm#/overview) to modify an existing signature and submit the signature for approval. The signature must comply with the [signature specifications](https://help.aliyun.com/document_detail/108076.html).
  12363. //
  12364. // For more information, see [Usage notes](https://help.aliyun.com/document_detail/55324.html).
  12365. //
  12366. // ### QPS limits
  12367. //
  12368. // You can call this operation up to 1,000 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  12369. //
  12370. // >
  12371. //
  12372. // - Signatures pending approval cannot be modified.
  12373. //
  12374. // - You cannot modify a signature after it is approved. If you no longer need the signature, you can delete it.
  12375. //
  12376. // - If you are an individual user, you cannot apply for a new signature on the same day that your signature is rejected or deleted. We recommend that you modify the rejected signature and submit it again.
  12377. //
  12378. // @param request - ModifySmsSignRequest
  12379. //
  12380. // @param runtime - runtime options for this request RuntimeOptions
  12381. //
  12382. // @return ModifySmsSignResponse
  12383. func (client *Client) ModifySmsSignWithOptions(request *ModifySmsSignRequest, runtime *util.RuntimeOptions) (_result *ModifySmsSignResponse, _err error) {
  12384. _err = util.ValidateModel(request)
  12385. if _err != nil {
  12386. return _result, _err
  12387. }
  12388. query := map[string]interface{}{}
  12389. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  12390. query["OwnerId"] = request.OwnerId
  12391. }
  12392. if !tea.BoolValue(util.IsUnset(request.Remark)) {
  12393. query["Remark"] = request.Remark
  12394. }
  12395. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  12396. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  12397. }
  12398. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  12399. query["ResourceOwnerId"] = request.ResourceOwnerId
  12400. }
  12401. if !tea.BoolValue(util.IsUnset(request.SignName)) {
  12402. query["SignName"] = request.SignName
  12403. }
  12404. if !tea.BoolValue(util.IsUnset(request.SignSource)) {
  12405. query["SignSource"] = request.SignSource
  12406. }
  12407. if !tea.BoolValue(util.IsUnset(request.SignType)) {
  12408. query["SignType"] = request.SignType
  12409. }
  12410. body := map[string]interface{}{}
  12411. if !tea.BoolValue(util.IsUnset(request.SignFileList)) {
  12412. body["SignFileList"] = request.SignFileList
  12413. }
  12414. req := &openapi.OpenApiRequest{
  12415. Query: openapiutil.Query(query),
  12416. Body: openapiutil.ParseToMap(body),
  12417. }
  12418. params := &openapi.Params{
  12419. Action: tea.String("ModifySmsSign"),
  12420. Version: tea.String("2017-05-25"),
  12421. Protocol: tea.String("HTTPS"),
  12422. Pathname: tea.String("/"),
  12423. Method: tea.String("POST"),
  12424. AuthType: tea.String("AK"),
  12425. Style: tea.String("RPC"),
  12426. ReqBodyType: tea.String("formData"),
  12427. BodyType: tea.String("json"),
  12428. }
  12429. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  12430. _result = &ModifySmsSignResponse{}
  12431. _body, _err := client.CallApi(params, req, runtime)
  12432. if _err != nil {
  12433. return _result, _err
  12434. }
  12435. _err = tea.Convert(_body, &_result)
  12436. return _result, _err
  12437. } else {
  12438. _result = &ModifySmsSignResponse{}
  12439. _body, _err := client.Execute(params, req, runtime)
  12440. if _err != nil {
  12441. return _result, _err
  12442. }
  12443. _err = tea.Convert(_body, &_result)
  12444. return _result, _err
  12445. }
  12446. }
  12447. // Summary:
  12448. //
  12449. // Modifies a rejected signature and submit it for approval. Signatures that are pending approval or have been approved cannot be modified.
  12450. //
  12451. // Description:
  12452. //
  12453. // You can call the operation or use the [Alibaba Cloud SMS console](https://dysms.console.aliyun.com/dysms.htm#/overview) to modify an existing signature and submit the signature for approval. The signature must comply with the [signature specifications](https://help.aliyun.com/document_detail/108076.html).
  12454. //
  12455. // For more information, see [Usage notes](https://help.aliyun.com/document_detail/55324.html).
  12456. //
  12457. // ### QPS limits
  12458. //
  12459. // You can call this operation up to 1,000 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  12460. //
  12461. // >
  12462. //
  12463. // - Signatures pending approval cannot be modified.
  12464. //
  12465. // - You cannot modify a signature after it is approved. If you no longer need the signature, you can delete it.
  12466. //
  12467. // - If you are an individual user, you cannot apply for a new signature on the same day that your signature is rejected or deleted. We recommend that you modify the rejected signature and submit it again.
  12468. //
  12469. // @param request - ModifySmsSignRequest
  12470. //
  12471. // @return ModifySmsSignResponse
  12472. func (client *Client) ModifySmsSign(request *ModifySmsSignRequest) (_result *ModifySmsSignResponse, _err error) {
  12473. runtime := &util.RuntimeOptions{}
  12474. _result = &ModifySmsSignResponse{}
  12475. _body, _err := client.ModifySmsSignWithOptions(request, runtime)
  12476. if _err != nil {
  12477. return _result, _err
  12478. }
  12479. _result = _body
  12480. return _result, _err
  12481. }
  12482. // Deprecated: OpenAPI ModifySmsTemplate is deprecated, please use Dysmsapi::2017-05-25::UpdateSmsTemplate instead.
  12483. //
  12484. // Summary:
  12485. //
  12486. // Modifies the information of an unapproved message template and submits it for review again.
  12487. //
  12488. // Description:
  12489. //
  12490. // After you apply for a message template, if the template fails to pass the review, you can call this operation to modify the template and submit the template again. You can call this operation to modify only a template for a specific message type.
  12491. //
  12492. // The template content must comply with the [SMS template specifications](https://help.aliyun.com/document_detail/108253.html).
  12493. //
  12494. // For more information, see [Usage notes](https://help.aliyun.com/document_detail/55324.html).
  12495. //
  12496. // ### QPS limit
  12497. //
  12498. // You can call this operation up to 1,000 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  12499. //
  12500. // @param request - ModifySmsTemplateRequest
  12501. //
  12502. // @param runtime - runtime options for this request RuntimeOptions
  12503. //
  12504. // @return ModifySmsTemplateResponse
  12505. // Deprecated
  12506. func (client *Client) ModifySmsTemplateWithOptions(request *ModifySmsTemplateRequest, runtime *util.RuntimeOptions) (_result *ModifySmsTemplateResponse, _err error) {
  12507. _err = util.ValidateModel(request)
  12508. if _err != nil {
  12509. return _result, _err
  12510. }
  12511. query := map[string]interface{}{}
  12512. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  12513. query["OwnerId"] = request.OwnerId
  12514. }
  12515. if !tea.BoolValue(util.IsUnset(request.Remark)) {
  12516. query["Remark"] = request.Remark
  12517. }
  12518. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  12519. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  12520. }
  12521. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  12522. query["ResourceOwnerId"] = request.ResourceOwnerId
  12523. }
  12524. if !tea.BoolValue(util.IsUnset(request.TemplateCode)) {
  12525. query["TemplateCode"] = request.TemplateCode
  12526. }
  12527. if !tea.BoolValue(util.IsUnset(request.TemplateContent)) {
  12528. query["TemplateContent"] = request.TemplateContent
  12529. }
  12530. if !tea.BoolValue(util.IsUnset(request.TemplateName)) {
  12531. query["TemplateName"] = request.TemplateName
  12532. }
  12533. if !tea.BoolValue(util.IsUnset(request.TemplateType)) {
  12534. query["TemplateType"] = request.TemplateType
  12535. }
  12536. req := &openapi.OpenApiRequest{
  12537. Query: openapiutil.Query(query),
  12538. }
  12539. params := &openapi.Params{
  12540. Action: tea.String("ModifySmsTemplate"),
  12541. Version: tea.String("2017-05-25"),
  12542. Protocol: tea.String("HTTPS"),
  12543. Pathname: tea.String("/"),
  12544. Method: tea.String("POST"),
  12545. AuthType: tea.String("AK"),
  12546. Style: tea.String("RPC"),
  12547. ReqBodyType: tea.String("formData"),
  12548. BodyType: tea.String("json"),
  12549. }
  12550. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  12551. _result = &ModifySmsTemplateResponse{}
  12552. _body, _err := client.CallApi(params, req, runtime)
  12553. if _err != nil {
  12554. return _result, _err
  12555. }
  12556. _err = tea.Convert(_body, &_result)
  12557. return _result, _err
  12558. } else {
  12559. _result = &ModifySmsTemplateResponse{}
  12560. _body, _err := client.Execute(params, req, runtime)
  12561. if _err != nil {
  12562. return _result, _err
  12563. }
  12564. _err = tea.Convert(_body, &_result)
  12565. return _result, _err
  12566. }
  12567. }
  12568. // Deprecated: OpenAPI ModifySmsTemplate is deprecated, please use Dysmsapi::2017-05-25::UpdateSmsTemplate instead.
  12569. //
  12570. // Summary:
  12571. //
  12572. // Modifies the information of an unapproved message template and submits it for review again.
  12573. //
  12574. // Description:
  12575. //
  12576. // After you apply for a message template, if the template fails to pass the review, you can call this operation to modify the template and submit the template again. You can call this operation to modify only a template for a specific message type.
  12577. //
  12578. // The template content must comply with the [SMS template specifications](https://help.aliyun.com/document_detail/108253.html).
  12579. //
  12580. // For more information, see [Usage notes](https://help.aliyun.com/document_detail/55324.html).
  12581. //
  12582. // ### QPS limit
  12583. //
  12584. // You can call this operation up to 1,000 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  12585. //
  12586. // @param request - ModifySmsTemplateRequest
  12587. //
  12588. // @return ModifySmsTemplateResponse
  12589. // Deprecated
  12590. func (client *Client) ModifySmsTemplate(request *ModifySmsTemplateRequest) (_result *ModifySmsTemplateResponse, _err error) {
  12591. runtime := &util.RuntimeOptions{}
  12592. _result = &ModifySmsTemplateResponse{}
  12593. _body, _err := client.ModifySmsTemplateWithOptions(request, runtime)
  12594. if _err != nil {
  12595. return _result, _err
  12596. }
  12597. _result = _body
  12598. return _result, _err
  12599. }
  12600. // Summary:
  12601. //
  12602. // Queries the review status of a message template.
  12603. //
  12604. // Description:
  12605. //
  12606. // ### QPS limit
  12607. //
  12608. // You can call this operation up to 300 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  12609. //
  12610. // @param request - QueryCardSmsTemplateRequest
  12611. //
  12612. // @param runtime - runtime options for this request RuntimeOptions
  12613. //
  12614. // @return QueryCardSmsTemplateResponse
  12615. func (client *Client) QueryCardSmsTemplateWithOptions(request *QueryCardSmsTemplateRequest, runtime *util.RuntimeOptions) (_result *QueryCardSmsTemplateResponse, _err error) {
  12616. _err = util.ValidateModel(request)
  12617. if _err != nil {
  12618. return _result, _err
  12619. }
  12620. query := map[string]interface{}{}
  12621. if !tea.BoolValue(util.IsUnset(request.TemplateCode)) {
  12622. query["TemplateCode"] = request.TemplateCode
  12623. }
  12624. req := &openapi.OpenApiRequest{
  12625. Query: openapiutil.Query(query),
  12626. }
  12627. params := &openapi.Params{
  12628. Action: tea.String("QueryCardSmsTemplate"),
  12629. Version: tea.String("2017-05-25"),
  12630. Protocol: tea.String("HTTPS"),
  12631. Pathname: tea.String("/"),
  12632. Method: tea.String("POST"),
  12633. AuthType: tea.String("AK"),
  12634. Style: tea.String("RPC"),
  12635. ReqBodyType: tea.String("formData"),
  12636. BodyType: tea.String("json"),
  12637. }
  12638. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  12639. _result = &QueryCardSmsTemplateResponse{}
  12640. _body, _err := client.CallApi(params, req, runtime)
  12641. if _err != nil {
  12642. return _result, _err
  12643. }
  12644. _err = tea.Convert(_body, &_result)
  12645. return _result, _err
  12646. } else {
  12647. _result = &QueryCardSmsTemplateResponse{}
  12648. _body, _err := client.Execute(params, req, runtime)
  12649. if _err != nil {
  12650. return _result, _err
  12651. }
  12652. _err = tea.Convert(_body, &_result)
  12653. return _result, _err
  12654. }
  12655. }
  12656. // Summary:
  12657. //
  12658. // Queries the review status of a message template.
  12659. //
  12660. // Description:
  12661. //
  12662. // ### QPS limit
  12663. //
  12664. // You can call this operation up to 300 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  12665. //
  12666. // @param request - QueryCardSmsTemplateRequest
  12667. //
  12668. // @return QueryCardSmsTemplateResponse
  12669. func (client *Client) QueryCardSmsTemplate(request *QueryCardSmsTemplateRequest) (_result *QueryCardSmsTemplateResponse, _err error) {
  12670. runtime := &util.RuntimeOptions{}
  12671. _result = &QueryCardSmsTemplateResponse{}
  12672. _body, _err := client.QueryCardSmsTemplateWithOptions(request, runtime)
  12673. if _err != nil {
  12674. return _result, _err
  12675. }
  12676. _result = _body
  12677. return _result, _err
  12678. }
  12679. // Summary:
  12680. //
  12681. // Queries sent card messages.
  12682. //
  12683. // Description:
  12684. //
  12685. // ### QPS limit
  12686. //
  12687. // You can call this operation up to 300 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  12688. //
  12689. // @param request - QueryCardSmsTemplateReportRequest
  12690. //
  12691. // @param runtime - runtime options for this request RuntimeOptions
  12692. //
  12693. // @return QueryCardSmsTemplateReportResponse
  12694. func (client *Client) QueryCardSmsTemplateReportWithOptions(request *QueryCardSmsTemplateReportRequest, runtime *util.RuntimeOptions) (_result *QueryCardSmsTemplateReportResponse, _err error) {
  12695. _err = util.ValidateModel(request)
  12696. if _err != nil {
  12697. return _result, _err
  12698. }
  12699. query := map[string]interface{}{}
  12700. if !tea.BoolValue(util.IsUnset(request.EndDate)) {
  12701. query["EndDate"] = request.EndDate
  12702. }
  12703. if !tea.BoolValue(util.IsUnset(request.StartDate)) {
  12704. query["StartDate"] = request.StartDate
  12705. }
  12706. if !tea.BoolValue(util.IsUnset(request.TemplateCodes)) {
  12707. query["TemplateCodes"] = request.TemplateCodes
  12708. }
  12709. req := &openapi.OpenApiRequest{
  12710. Query: openapiutil.Query(query),
  12711. }
  12712. params := &openapi.Params{
  12713. Action: tea.String("QueryCardSmsTemplateReport"),
  12714. Version: tea.String("2017-05-25"),
  12715. Protocol: tea.String("HTTPS"),
  12716. Pathname: tea.String("/"),
  12717. Method: tea.String("POST"),
  12718. AuthType: tea.String("AK"),
  12719. Style: tea.String("RPC"),
  12720. ReqBodyType: tea.String("formData"),
  12721. BodyType: tea.String("json"),
  12722. }
  12723. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  12724. _result = &QueryCardSmsTemplateReportResponse{}
  12725. _body, _err := client.CallApi(params, req, runtime)
  12726. if _err != nil {
  12727. return _result, _err
  12728. }
  12729. _err = tea.Convert(_body, &_result)
  12730. return _result, _err
  12731. } else {
  12732. _result = &QueryCardSmsTemplateReportResponse{}
  12733. _body, _err := client.Execute(params, req, runtime)
  12734. if _err != nil {
  12735. return _result, _err
  12736. }
  12737. _err = tea.Convert(_body, &_result)
  12738. return _result, _err
  12739. }
  12740. }
  12741. // Summary:
  12742. //
  12743. // Queries sent card messages.
  12744. //
  12745. // Description:
  12746. //
  12747. // ### QPS limit
  12748. //
  12749. // You can call this operation up to 300 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  12750. //
  12751. // @param request - QueryCardSmsTemplateReportRequest
  12752. //
  12753. // @return QueryCardSmsTemplateReportResponse
  12754. func (client *Client) QueryCardSmsTemplateReport(request *QueryCardSmsTemplateReportRequest) (_result *QueryCardSmsTemplateReportResponse, _err error) {
  12755. runtime := &util.RuntimeOptions{}
  12756. _result = &QueryCardSmsTemplateReportResponse{}
  12757. _body, _err := client.QueryCardSmsTemplateReportWithOptions(request, runtime)
  12758. if _err != nil {
  12759. return _result, _err
  12760. }
  12761. _result = _body
  12762. return _result, _err
  12763. }
  12764. // Summary:
  12765. //
  12766. // 查询验证码签名
  12767. //
  12768. // @param request - QueryExtCodeSignRequest
  12769. //
  12770. // @param runtime - runtime options for this request RuntimeOptions
  12771. //
  12772. // @return QueryExtCodeSignResponse
  12773. func (client *Client) QueryExtCodeSignWithOptions(request *QueryExtCodeSignRequest, runtime *util.RuntimeOptions) (_result *QueryExtCodeSignResponse, _err error) {
  12774. _err = util.ValidateModel(request)
  12775. if _err != nil {
  12776. return _result, _err
  12777. }
  12778. query := map[string]interface{}{}
  12779. if !tea.BoolValue(util.IsUnset(request.ExtCode)) {
  12780. query["ExtCode"] = request.ExtCode
  12781. }
  12782. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  12783. query["OwnerId"] = request.OwnerId
  12784. }
  12785. if !tea.BoolValue(util.IsUnset(request.PageNo)) {
  12786. query["PageNo"] = request.PageNo
  12787. }
  12788. if !tea.BoolValue(util.IsUnset(request.PageSize)) {
  12789. query["PageSize"] = request.PageSize
  12790. }
  12791. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  12792. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  12793. }
  12794. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  12795. query["ResourceOwnerId"] = request.ResourceOwnerId
  12796. }
  12797. if !tea.BoolValue(util.IsUnset(request.SignName)) {
  12798. query["SignName"] = request.SignName
  12799. }
  12800. req := &openapi.OpenApiRequest{
  12801. Query: openapiutil.Query(query),
  12802. }
  12803. params := &openapi.Params{
  12804. Action: tea.String("QueryExtCodeSign"),
  12805. Version: tea.String("2017-05-25"),
  12806. Protocol: tea.String("HTTPS"),
  12807. Pathname: tea.String("/"),
  12808. Method: tea.String("POST"),
  12809. AuthType: tea.String("AK"),
  12810. Style: tea.String("RPC"),
  12811. ReqBodyType: tea.String("formData"),
  12812. BodyType: tea.String("json"),
  12813. }
  12814. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  12815. _result = &QueryExtCodeSignResponse{}
  12816. _body, _err := client.CallApi(params, req, runtime)
  12817. if _err != nil {
  12818. return _result, _err
  12819. }
  12820. _err = tea.Convert(_body, &_result)
  12821. return _result, _err
  12822. } else {
  12823. _result = &QueryExtCodeSignResponse{}
  12824. _body, _err := client.Execute(params, req, runtime)
  12825. if _err != nil {
  12826. return _result, _err
  12827. }
  12828. _err = tea.Convert(_body, &_result)
  12829. return _result, _err
  12830. }
  12831. }
  12832. // Summary:
  12833. //
  12834. // 查询验证码签名
  12835. //
  12836. // @param request - QueryExtCodeSignRequest
  12837. //
  12838. // @return QueryExtCodeSignResponse
  12839. func (client *Client) QueryExtCodeSign(request *QueryExtCodeSignRequest) (_result *QueryExtCodeSignResponse, _err error) {
  12840. runtime := &util.RuntimeOptions{}
  12841. _result = &QueryExtCodeSignResponse{}
  12842. _body, _err := client.QueryExtCodeSignWithOptions(request, runtime)
  12843. if _err != nil {
  12844. return _result, _err
  12845. }
  12846. _result = _body
  12847. return _result, _err
  12848. }
  12849. // Summary:
  12850. //
  12851. // Checks whether a mobile phone number can receive card messages.
  12852. //
  12853. // @param tmpReq - QueryMobilesCardSupportRequest
  12854. //
  12855. // @param runtime - runtime options for this request RuntimeOptions
  12856. //
  12857. // @return QueryMobilesCardSupportResponse
  12858. func (client *Client) QueryMobilesCardSupportWithOptions(tmpReq *QueryMobilesCardSupportRequest, runtime *util.RuntimeOptions) (_result *QueryMobilesCardSupportResponse, _err error) {
  12859. _err = util.ValidateModel(tmpReq)
  12860. if _err != nil {
  12861. return _result, _err
  12862. }
  12863. request := &QueryMobilesCardSupportShrinkRequest{}
  12864. openapiutil.Convert(tmpReq, request)
  12865. if !tea.BoolValue(util.IsUnset(tmpReq.Mobiles)) {
  12866. request.MobilesShrink = openapiutil.ArrayToStringWithSpecifiedStyle(tmpReq.Mobiles, tea.String("Mobiles"), tea.String("json"))
  12867. }
  12868. query := map[string]interface{}{}
  12869. if !tea.BoolValue(util.IsUnset(request.MobilesShrink)) {
  12870. query["Mobiles"] = request.MobilesShrink
  12871. }
  12872. if !tea.BoolValue(util.IsUnset(request.TemplateCode)) {
  12873. query["TemplateCode"] = request.TemplateCode
  12874. }
  12875. req := &openapi.OpenApiRequest{
  12876. Query: openapiutil.Query(query),
  12877. }
  12878. params := &openapi.Params{
  12879. Action: tea.String("QueryMobilesCardSupport"),
  12880. Version: tea.String("2017-05-25"),
  12881. Protocol: tea.String("HTTPS"),
  12882. Pathname: tea.String("/"),
  12883. Method: tea.String("POST"),
  12884. AuthType: tea.String("AK"),
  12885. Style: tea.String("RPC"),
  12886. ReqBodyType: tea.String("formData"),
  12887. BodyType: tea.String("json"),
  12888. }
  12889. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  12890. _result = &QueryMobilesCardSupportResponse{}
  12891. _body, _err := client.CallApi(params, req, runtime)
  12892. if _err != nil {
  12893. return _result, _err
  12894. }
  12895. _err = tea.Convert(_body, &_result)
  12896. return _result, _err
  12897. } else {
  12898. _result = &QueryMobilesCardSupportResponse{}
  12899. _body, _err := client.Execute(params, req, runtime)
  12900. if _err != nil {
  12901. return _result, _err
  12902. }
  12903. _err = tea.Convert(_body, &_result)
  12904. return _result, _err
  12905. }
  12906. }
  12907. // Summary:
  12908. //
  12909. // Checks whether a mobile phone number can receive card messages.
  12910. //
  12911. // @param request - QueryMobilesCardSupportRequest
  12912. //
  12913. // @return QueryMobilesCardSupportResponse
  12914. func (client *Client) QueryMobilesCardSupport(request *QueryMobilesCardSupportRequest) (_result *QueryMobilesCardSupportResponse, _err error) {
  12915. runtime := &util.RuntimeOptions{}
  12916. _result = &QueryMobilesCardSupportResponse{}
  12917. _body, _err := client.QueryMobilesCardSupportWithOptions(request, runtime)
  12918. if _err != nil {
  12919. return _result, _err
  12920. }
  12921. _result = _body
  12922. return _result, _err
  12923. }
  12924. // Summary:
  12925. //
  12926. // 点击明细查询
  12927. //
  12928. // @param request - QueryPageSmartShortUrlLogRequest
  12929. //
  12930. // @param runtime - runtime options for this request RuntimeOptions
  12931. //
  12932. // @return QueryPageSmartShortUrlLogResponse
  12933. func (client *Client) QueryPageSmartShortUrlLogWithOptions(request *QueryPageSmartShortUrlLogRequest, runtime *util.RuntimeOptions) (_result *QueryPageSmartShortUrlLogResponse, _err error) {
  12934. _err = util.ValidateModel(request)
  12935. if _err != nil {
  12936. return _result, _err
  12937. }
  12938. query := map[string]interface{}{}
  12939. if !tea.BoolValue(util.IsUnset(request.CreateDateEnd)) {
  12940. query["CreateDateEnd"] = request.CreateDateEnd
  12941. }
  12942. if !tea.BoolValue(util.IsUnset(request.CreateDateStart)) {
  12943. query["CreateDateStart"] = request.CreateDateStart
  12944. }
  12945. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  12946. query["OwnerId"] = request.OwnerId
  12947. }
  12948. if !tea.BoolValue(util.IsUnset(request.PageNo)) {
  12949. query["PageNo"] = request.PageNo
  12950. }
  12951. if !tea.BoolValue(util.IsUnset(request.PageSize)) {
  12952. query["PageSize"] = request.PageSize
  12953. }
  12954. if !tea.BoolValue(util.IsUnset(request.PhoneNumber)) {
  12955. query["PhoneNumber"] = request.PhoneNumber
  12956. }
  12957. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  12958. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  12959. }
  12960. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  12961. query["ResourceOwnerId"] = request.ResourceOwnerId
  12962. }
  12963. if !tea.BoolValue(util.IsUnset(request.ShortUrl)) {
  12964. query["ShortUrl"] = request.ShortUrl
  12965. }
  12966. req := &openapi.OpenApiRequest{
  12967. Query: openapiutil.Query(query),
  12968. }
  12969. params := &openapi.Params{
  12970. Action: tea.String("QueryPageSmartShortUrlLog"),
  12971. Version: tea.String("2017-05-25"),
  12972. Protocol: tea.String("HTTPS"),
  12973. Pathname: tea.String("/"),
  12974. Method: tea.String("POST"),
  12975. AuthType: tea.String("AK"),
  12976. Style: tea.String("RPC"),
  12977. ReqBodyType: tea.String("formData"),
  12978. BodyType: tea.String("json"),
  12979. }
  12980. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  12981. _result = &QueryPageSmartShortUrlLogResponse{}
  12982. _body, _err := client.CallApi(params, req, runtime)
  12983. if _err != nil {
  12984. return _result, _err
  12985. }
  12986. _err = tea.Convert(_body, &_result)
  12987. return _result, _err
  12988. } else {
  12989. _result = &QueryPageSmartShortUrlLogResponse{}
  12990. _body, _err := client.Execute(params, req, runtime)
  12991. if _err != nil {
  12992. return _result, _err
  12993. }
  12994. _err = tea.Convert(_body, &_result)
  12995. return _result, _err
  12996. }
  12997. }
  12998. // Summary:
  12999. //
  13000. // 点击明细查询
  13001. //
  13002. // @param request - QueryPageSmartShortUrlLogRequest
  13003. //
  13004. // @return QueryPageSmartShortUrlLogResponse
  13005. func (client *Client) QueryPageSmartShortUrlLog(request *QueryPageSmartShortUrlLogRequest) (_result *QueryPageSmartShortUrlLogResponse, _err error) {
  13006. runtime := &util.RuntimeOptions{}
  13007. _result = &QueryPageSmartShortUrlLogResponse{}
  13008. _body, _err := client.QueryPageSmartShortUrlLogWithOptions(request, runtime)
  13009. if _err != nil {
  13010. return _result, _err
  13011. }
  13012. _result = _body
  13013. return _result, _err
  13014. }
  13015. // Summary:
  13016. //
  13017. // Queries the information about a message.
  13018. //
  13019. // @param request - QuerySendDetailsRequest
  13020. //
  13021. // @param runtime - runtime options for this request RuntimeOptions
  13022. //
  13023. // @return QuerySendDetailsResponse
  13024. func (client *Client) QuerySendDetailsWithOptions(request *QuerySendDetailsRequest, runtime *util.RuntimeOptions) (_result *QuerySendDetailsResponse, _err error) {
  13025. _err = util.ValidateModel(request)
  13026. if _err != nil {
  13027. return _result, _err
  13028. }
  13029. query := map[string]interface{}{}
  13030. if !tea.BoolValue(util.IsUnset(request.BizId)) {
  13031. query["BizId"] = request.BizId
  13032. }
  13033. if !tea.BoolValue(util.IsUnset(request.CurrentPage)) {
  13034. query["CurrentPage"] = request.CurrentPage
  13035. }
  13036. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  13037. query["OwnerId"] = request.OwnerId
  13038. }
  13039. if !tea.BoolValue(util.IsUnset(request.PageSize)) {
  13040. query["PageSize"] = request.PageSize
  13041. }
  13042. if !tea.BoolValue(util.IsUnset(request.PhoneNumber)) {
  13043. query["PhoneNumber"] = request.PhoneNumber
  13044. }
  13045. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  13046. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  13047. }
  13048. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  13049. query["ResourceOwnerId"] = request.ResourceOwnerId
  13050. }
  13051. if !tea.BoolValue(util.IsUnset(request.SendDate)) {
  13052. query["SendDate"] = request.SendDate
  13053. }
  13054. req := &openapi.OpenApiRequest{
  13055. Query: openapiutil.Query(query),
  13056. }
  13057. params := &openapi.Params{
  13058. Action: tea.String("QuerySendDetails"),
  13059. Version: tea.String("2017-05-25"),
  13060. Protocol: tea.String("HTTPS"),
  13061. Pathname: tea.String("/"),
  13062. Method: tea.String("POST"),
  13063. AuthType: tea.String("AK"),
  13064. Style: tea.String("RPC"),
  13065. ReqBodyType: tea.String("formData"),
  13066. BodyType: tea.String("json"),
  13067. }
  13068. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  13069. _result = &QuerySendDetailsResponse{}
  13070. _body, _err := client.CallApi(params, req, runtime)
  13071. if _err != nil {
  13072. return _result, _err
  13073. }
  13074. _err = tea.Convert(_body, &_result)
  13075. return _result, _err
  13076. } else {
  13077. _result = &QuerySendDetailsResponse{}
  13078. _body, _err := client.Execute(params, req, runtime)
  13079. if _err != nil {
  13080. return _result, _err
  13081. }
  13082. _err = tea.Convert(_body, &_result)
  13083. return _result, _err
  13084. }
  13085. }
  13086. // Summary:
  13087. //
  13088. // Queries the information about a message.
  13089. //
  13090. // @param request - QuerySendDetailsRequest
  13091. //
  13092. // @return QuerySendDetailsResponse
  13093. func (client *Client) QuerySendDetails(request *QuerySendDetailsRequest) (_result *QuerySendDetailsResponse, _err error) {
  13094. runtime := &util.RuntimeOptions{}
  13095. _result = &QuerySendDetailsResponse{}
  13096. _body, _err := client.QuerySendDetailsWithOptions(request, runtime)
  13097. if _err != nil {
  13098. return _result, _err
  13099. }
  13100. _result = _body
  13101. return _result, _err
  13102. }
  13103. // Summary:
  13104. //
  13105. // Queries message delivery details.
  13106. //
  13107. // Description:
  13108. //
  13109. // You can call the operation to query message delivery details, including the number of delivered messages, the number of messages with delivery receipts, and the time that a message is sent. If a large number of messages are sent on the specified date, you can specify the number of items displayed on each page and the number of pages to view the details by page.
  13110. //
  13111. // ### QPS limits
  13112. //
  13113. // You can call this operation up to 20 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  13114. //
  13115. // @param request - QuerySendStatisticsRequest
  13116. //
  13117. // @param runtime - runtime options for this request RuntimeOptions
  13118. //
  13119. // @return QuerySendStatisticsResponse
  13120. func (client *Client) QuerySendStatisticsWithOptions(request *QuerySendStatisticsRequest, runtime *util.RuntimeOptions) (_result *QuerySendStatisticsResponse, _err error) {
  13121. _err = util.ValidateModel(request)
  13122. if _err != nil {
  13123. return _result, _err
  13124. }
  13125. query := map[string]interface{}{}
  13126. if !tea.BoolValue(util.IsUnset(request.EndDate)) {
  13127. query["EndDate"] = request.EndDate
  13128. }
  13129. if !tea.BoolValue(util.IsUnset(request.IsGlobe)) {
  13130. query["IsGlobe"] = request.IsGlobe
  13131. }
  13132. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  13133. query["OwnerId"] = request.OwnerId
  13134. }
  13135. if !tea.BoolValue(util.IsUnset(request.PageIndex)) {
  13136. query["PageIndex"] = request.PageIndex
  13137. }
  13138. if !tea.BoolValue(util.IsUnset(request.PageSize)) {
  13139. query["PageSize"] = request.PageSize
  13140. }
  13141. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  13142. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  13143. }
  13144. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  13145. query["ResourceOwnerId"] = request.ResourceOwnerId
  13146. }
  13147. if !tea.BoolValue(util.IsUnset(request.SignName)) {
  13148. query["SignName"] = request.SignName
  13149. }
  13150. if !tea.BoolValue(util.IsUnset(request.StartDate)) {
  13151. query["StartDate"] = request.StartDate
  13152. }
  13153. if !tea.BoolValue(util.IsUnset(request.TemplateType)) {
  13154. query["TemplateType"] = request.TemplateType
  13155. }
  13156. req := &openapi.OpenApiRequest{
  13157. Query: openapiutil.Query(query),
  13158. }
  13159. params := &openapi.Params{
  13160. Action: tea.String("QuerySendStatistics"),
  13161. Version: tea.String("2017-05-25"),
  13162. Protocol: tea.String("HTTPS"),
  13163. Pathname: tea.String("/"),
  13164. Method: tea.String("POST"),
  13165. AuthType: tea.String("AK"),
  13166. Style: tea.String("RPC"),
  13167. ReqBodyType: tea.String("formData"),
  13168. BodyType: tea.String("json"),
  13169. }
  13170. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  13171. _result = &QuerySendStatisticsResponse{}
  13172. _body, _err := client.CallApi(params, req, runtime)
  13173. if _err != nil {
  13174. return _result, _err
  13175. }
  13176. _err = tea.Convert(_body, &_result)
  13177. return _result, _err
  13178. } else {
  13179. _result = &QuerySendStatisticsResponse{}
  13180. _body, _err := client.Execute(params, req, runtime)
  13181. if _err != nil {
  13182. return _result, _err
  13183. }
  13184. _err = tea.Convert(_body, &_result)
  13185. return _result, _err
  13186. }
  13187. }
  13188. // Summary:
  13189. //
  13190. // Queries message delivery details.
  13191. //
  13192. // Description:
  13193. //
  13194. // You can call the operation to query message delivery details, including the number of delivered messages, the number of messages with delivery receipts, and the time that a message is sent. If a large number of messages are sent on the specified date, you can specify the number of items displayed on each page and the number of pages to view the details by page.
  13195. //
  13196. // ### QPS limits
  13197. //
  13198. // You can call this operation up to 20 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  13199. //
  13200. // @param request - QuerySendStatisticsRequest
  13201. //
  13202. // @return QuerySendStatisticsResponse
  13203. func (client *Client) QuerySendStatistics(request *QuerySendStatisticsRequest) (_result *QuerySendStatisticsResponse, _err error) {
  13204. runtime := &util.RuntimeOptions{}
  13205. _result = &QuerySendStatisticsResponse{}
  13206. _body, _err := client.QuerySendStatisticsWithOptions(request, runtime)
  13207. if _err != nil {
  13208. return _result, _err
  13209. }
  13210. _result = _body
  13211. return _result, _err
  13212. }
  13213. // Summary:
  13214. //
  13215. // Queries the status of a short URL.
  13216. //
  13217. // Description:
  13218. //
  13219. // ### QPS limits
  13220. //
  13221. // You can call this operation up to 20 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  13222. //
  13223. // @param request - QueryShortUrlRequest
  13224. //
  13225. // @param runtime - runtime options for this request RuntimeOptions
  13226. //
  13227. // @return QueryShortUrlResponse
  13228. func (client *Client) QueryShortUrlWithOptions(request *QueryShortUrlRequest, runtime *util.RuntimeOptions) (_result *QueryShortUrlResponse, _err error) {
  13229. _err = util.ValidateModel(request)
  13230. if _err != nil {
  13231. return _result, _err
  13232. }
  13233. query := map[string]interface{}{}
  13234. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  13235. query["OwnerId"] = request.OwnerId
  13236. }
  13237. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  13238. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  13239. }
  13240. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  13241. query["ResourceOwnerId"] = request.ResourceOwnerId
  13242. }
  13243. body := map[string]interface{}{}
  13244. if !tea.BoolValue(util.IsUnset(request.ShortUrl)) {
  13245. body["ShortUrl"] = request.ShortUrl
  13246. }
  13247. req := &openapi.OpenApiRequest{
  13248. Query: openapiutil.Query(query),
  13249. Body: openapiutil.ParseToMap(body),
  13250. }
  13251. params := &openapi.Params{
  13252. Action: tea.String("QueryShortUrl"),
  13253. Version: tea.String("2017-05-25"),
  13254. Protocol: tea.String("HTTPS"),
  13255. Pathname: tea.String("/"),
  13256. Method: tea.String("POST"),
  13257. AuthType: tea.String("AK"),
  13258. Style: tea.String("RPC"),
  13259. ReqBodyType: tea.String("formData"),
  13260. BodyType: tea.String("json"),
  13261. }
  13262. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  13263. _result = &QueryShortUrlResponse{}
  13264. _body, _err := client.CallApi(params, req, runtime)
  13265. if _err != nil {
  13266. return _result, _err
  13267. }
  13268. _err = tea.Convert(_body, &_result)
  13269. return _result, _err
  13270. } else {
  13271. _result = &QueryShortUrlResponse{}
  13272. _body, _err := client.Execute(params, req, runtime)
  13273. if _err != nil {
  13274. return _result, _err
  13275. }
  13276. _err = tea.Convert(_body, &_result)
  13277. return _result, _err
  13278. }
  13279. }
  13280. // Summary:
  13281. //
  13282. // Queries the status of a short URL.
  13283. //
  13284. // Description:
  13285. //
  13286. // ### QPS limits
  13287. //
  13288. // You can call this operation up to 20 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  13289. //
  13290. // @param request - QueryShortUrlRequest
  13291. //
  13292. // @return QueryShortUrlResponse
  13293. func (client *Client) QueryShortUrl(request *QueryShortUrlRequest) (_result *QueryShortUrlResponse, _err error) {
  13294. runtime := &util.RuntimeOptions{}
  13295. _result = &QueryShortUrlResponse{}
  13296. _body, _err := client.QueryShortUrlWithOptions(request, runtime)
  13297. if _err != nil {
  13298. return _result, _err
  13299. }
  13300. _result = _body
  13301. return _result, _err
  13302. }
  13303. // Summary:
  13304. //
  13305. // Queries the status of a signature.
  13306. //
  13307. // Description:
  13308. //
  13309. // After you apply for an SMS signature, you can query its status by using the [Alibaba Cloud SMS console](https://dysms.console.aliyun.com/dysms.htm) or calling the operation. If the signature is rejected, you can modify the signature based on the reason why it is rejected.
  13310. //
  13311. // ### QPS limits
  13312. //
  13313. // You can call this API operation up to 500 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  13314. //
  13315. // @param request - QuerySmsSignRequest
  13316. //
  13317. // @param runtime - runtime options for this request RuntimeOptions
  13318. //
  13319. // @return QuerySmsSignResponse
  13320. func (client *Client) QuerySmsSignWithOptions(request *QuerySmsSignRequest, runtime *util.RuntimeOptions) (_result *QuerySmsSignResponse, _err error) {
  13321. _err = util.ValidateModel(request)
  13322. if _err != nil {
  13323. return _result, _err
  13324. }
  13325. query := map[string]interface{}{}
  13326. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  13327. query["OwnerId"] = request.OwnerId
  13328. }
  13329. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  13330. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  13331. }
  13332. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  13333. query["ResourceOwnerId"] = request.ResourceOwnerId
  13334. }
  13335. if !tea.BoolValue(util.IsUnset(request.SignName)) {
  13336. query["SignName"] = request.SignName
  13337. }
  13338. req := &openapi.OpenApiRequest{
  13339. Query: openapiutil.Query(query),
  13340. }
  13341. params := &openapi.Params{
  13342. Action: tea.String("QuerySmsSign"),
  13343. Version: tea.String("2017-05-25"),
  13344. Protocol: tea.String("HTTPS"),
  13345. Pathname: tea.String("/"),
  13346. Method: tea.String("POST"),
  13347. AuthType: tea.String("AK"),
  13348. Style: tea.String("RPC"),
  13349. ReqBodyType: tea.String("formData"),
  13350. BodyType: tea.String("json"),
  13351. }
  13352. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  13353. _result = &QuerySmsSignResponse{}
  13354. _body, _err := client.CallApi(params, req, runtime)
  13355. if _err != nil {
  13356. return _result, _err
  13357. }
  13358. _err = tea.Convert(_body, &_result)
  13359. return _result, _err
  13360. } else {
  13361. _result = &QuerySmsSignResponse{}
  13362. _body, _err := client.Execute(params, req, runtime)
  13363. if _err != nil {
  13364. return _result, _err
  13365. }
  13366. _err = tea.Convert(_body, &_result)
  13367. return _result, _err
  13368. }
  13369. }
  13370. // Summary:
  13371. //
  13372. // Queries the status of a signature.
  13373. //
  13374. // Description:
  13375. //
  13376. // After you apply for an SMS signature, you can query its status by using the [Alibaba Cloud SMS console](https://dysms.console.aliyun.com/dysms.htm) or calling the operation. If the signature is rejected, you can modify the signature based on the reason why it is rejected.
  13377. //
  13378. // ### QPS limits
  13379. //
  13380. // You can call this API operation up to 500 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  13381. //
  13382. // @param request - QuerySmsSignRequest
  13383. //
  13384. // @return QuerySmsSignResponse
  13385. func (client *Client) QuerySmsSign(request *QuerySmsSignRequest) (_result *QuerySmsSignResponse, _err error) {
  13386. runtime := &util.RuntimeOptions{}
  13387. _result = &QuerySmsSignResponse{}
  13388. _body, _err := client.QuerySmsSignWithOptions(request, runtime)
  13389. if _err != nil {
  13390. return _result, _err
  13391. }
  13392. _result = _body
  13393. return _result, _err
  13394. }
  13395. // Summary:
  13396. //
  13397. // Queries message signatures by page.
  13398. //
  13399. // Description:
  13400. //
  13401. // You can call this operation to query the details of message signatures, including the name, creation time, and approval status of each signature. If a message template is rejected, the reason is returned. Modify the message signature based on the reason.
  13402. //
  13403. // ### QPS limit
  13404. //
  13405. // You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  13406. //
  13407. // @param request - QuerySmsSignListRequest
  13408. //
  13409. // @param runtime - runtime options for this request RuntimeOptions
  13410. //
  13411. // @return QuerySmsSignListResponse
  13412. func (client *Client) QuerySmsSignListWithOptions(request *QuerySmsSignListRequest, runtime *util.RuntimeOptions) (_result *QuerySmsSignListResponse, _err error) {
  13413. _err = util.ValidateModel(request)
  13414. if _err != nil {
  13415. return _result, _err
  13416. }
  13417. query := map[string]interface{}{}
  13418. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  13419. query["OwnerId"] = request.OwnerId
  13420. }
  13421. if !tea.BoolValue(util.IsUnset(request.PageIndex)) {
  13422. query["PageIndex"] = request.PageIndex
  13423. }
  13424. if !tea.BoolValue(util.IsUnset(request.PageSize)) {
  13425. query["PageSize"] = request.PageSize
  13426. }
  13427. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  13428. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  13429. }
  13430. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  13431. query["ResourceOwnerId"] = request.ResourceOwnerId
  13432. }
  13433. req := &openapi.OpenApiRequest{
  13434. Query: openapiutil.Query(query),
  13435. }
  13436. params := &openapi.Params{
  13437. Action: tea.String("QuerySmsSignList"),
  13438. Version: tea.String("2017-05-25"),
  13439. Protocol: tea.String("HTTPS"),
  13440. Pathname: tea.String("/"),
  13441. Method: tea.String("POST"),
  13442. AuthType: tea.String("AK"),
  13443. Style: tea.String("RPC"),
  13444. ReqBodyType: tea.String("formData"),
  13445. BodyType: tea.String("json"),
  13446. }
  13447. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  13448. _result = &QuerySmsSignListResponse{}
  13449. _body, _err := client.CallApi(params, req, runtime)
  13450. if _err != nil {
  13451. return _result, _err
  13452. }
  13453. _err = tea.Convert(_body, &_result)
  13454. return _result, _err
  13455. } else {
  13456. _result = &QuerySmsSignListResponse{}
  13457. _body, _err := client.Execute(params, req, runtime)
  13458. if _err != nil {
  13459. return _result, _err
  13460. }
  13461. _err = tea.Convert(_body, &_result)
  13462. return _result, _err
  13463. }
  13464. }
  13465. // Summary:
  13466. //
  13467. // Queries message signatures by page.
  13468. //
  13469. // Description:
  13470. //
  13471. // You can call this operation to query the details of message signatures, including the name, creation time, and approval status of each signature. If a message template is rejected, the reason is returned. Modify the message signature based on the reason.
  13472. //
  13473. // ### QPS limit
  13474. //
  13475. // You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  13476. //
  13477. // @param request - QuerySmsSignListRequest
  13478. //
  13479. // @return QuerySmsSignListResponse
  13480. func (client *Client) QuerySmsSignList(request *QuerySmsSignListRequest) (_result *QuerySmsSignListResponse, _err error) {
  13481. runtime := &util.RuntimeOptions{}
  13482. _result = &QuerySmsSignListResponse{}
  13483. _body, _err := client.QuerySmsSignListWithOptions(request, runtime)
  13484. if _err != nil {
  13485. return _result, _err
  13486. }
  13487. _result = _body
  13488. return _result, _err
  13489. }
  13490. // Deprecated: OpenAPI QuerySmsTemplate is deprecated, please use Dysmsapi::2017-05-25::GetSmsTemplate instead.
  13491. //
  13492. // Summary:
  13493. //
  13494. // Queries the approval status of a message template.
  13495. //
  13496. // Description:
  13497. //
  13498. // After you create a message template, you can call this operation to query the approval status of the template. If a message template is rejected, the reason is returned. Modify the message template based on the reason.
  13499. //
  13500. // ### QPS limit
  13501. //
  13502. // You can call this operation up to 5,000 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  13503. //
  13504. // @param request - QuerySmsTemplateRequest
  13505. //
  13506. // @param runtime - runtime options for this request RuntimeOptions
  13507. //
  13508. // @return QuerySmsTemplateResponse
  13509. // Deprecated
  13510. func (client *Client) QuerySmsTemplateWithOptions(request *QuerySmsTemplateRequest, runtime *util.RuntimeOptions) (_result *QuerySmsTemplateResponse, _err error) {
  13511. _err = util.ValidateModel(request)
  13512. if _err != nil {
  13513. return _result, _err
  13514. }
  13515. query := map[string]interface{}{}
  13516. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  13517. query["OwnerId"] = request.OwnerId
  13518. }
  13519. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  13520. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  13521. }
  13522. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  13523. query["ResourceOwnerId"] = request.ResourceOwnerId
  13524. }
  13525. if !tea.BoolValue(util.IsUnset(request.TemplateCode)) {
  13526. query["TemplateCode"] = request.TemplateCode
  13527. }
  13528. req := &openapi.OpenApiRequest{
  13529. Query: openapiutil.Query(query),
  13530. }
  13531. params := &openapi.Params{
  13532. Action: tea.String("QuerySmsTemplate"),
  13533. Version: tea.String("2017-05-25"),
  13534. Protocol: tea.String("HTTPS"),
  13535. Pathname: tea.String("/"),
  13536. Method: tea.String("POST"),
  13537. AuthType: tea.String("AK"),
  13538. Style: tea.String("RPC"),
  13539. ReqBodyType: tea.String("formData"),
  13540. BodyType: tea.String("json"),
  13541. }
  13542. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  13543. _result = &QuerySmsTemplateResponse{}
  13544. _body, _err := client.CallApi(params, req, runtime)
  13545. if _err != nil {
  13546. return _result, _err
  13547. }
  13548. _err = tea.Convert(_body, &_result)
  13549. return _result, _err
  13550. } else {
  13551. _result = &QuerySmsTemplateResponse{}
  13552. _body, _err := client.Execute(params, req, runtime)
  13553. if _err != nil {
  13554. return _result, _err
  13555. }
  13556. _err = tea.Convert(_body, &_result)
  13557. return _result, _err
  13558. }
  13559. }
  13560. // Deprecated: OpenAPI QuerySmsTemplate is deprecated, please use Dysmsapi::2017-05-25::GetSmsTemplate instead.
  13561. //
  13562. // Summary:
  13563. //
  13564. // Queries the approval status of a message template.
  13565. //
  13566. // Description:
  13567. //
  13568. // After you create a message template, you can call this operation to query the approval status of the template. If a message template is rejected, the reason is returned. Modify the message template based on the reason.
  13569. //
  13570. // ### QPS limit
  13571. //
  13572. // You can call this operation up to 5,000 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  13573. //
  13574. // @param request - QuerySmsTemplateRequest
  13575. //
  13576. // @return QuerySmsTemplateResponse
  13577. // Deprecated
  13578. func (client *Client) QuerySmsTemplate(request *QuerySmsTemplateRequest) (_result *QuerySmsTemplateResponse, _err error) {
  13579. runtime := &util.RuntimeOptions{}
  13580. _result = &QuerySmsTemplateResponse{}
  13581. _body, _err := client.QuerySmsTemplateWithOptions(request, runtime)
  13582. if _err != nil {
  13583. return _result, _err
  13584. }
  13585. _result = _body
  13586. return _result, _err
  13587. }
  13588. // Summary:
  13589. //
  13590. // Queries message templates.
  13591. //
  13592. // Description:
  13593. //
  13594. // You can call this operation to query the details of message templates, including the name, creation time, and approval status of each template. If a message template is rejected, the reason is returned. Modify the message template based on the reason.
  13595. //
  13596. // ### QPS limit
  13597. //
  13598. // You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  13599. //
  13600. // @param request - QuerySmsTemplateListRequest
  13601. //
  13602. // @param runtime - runtime options for this request RuntimeOptions
  13603. //
  13604. // @return QuerySmsTemplateListResponse
  13605. func (client *Client) QuerySmsTemplateListWithOptions(request *QuerySmsTemplateListRequest, runtime *util.RuntimeOptions) (_result *QuerySmsTemplateListResponse, _err error) {
  13606. _err = util.ValidateModel(request)
  13607. if _err != nil {
  13608. return _result, _err
  13609. }
  13610. query := map[string]interface{}{}
  13611. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  13612. query["OwnerId"] = request.OwnerId
  13613. }
  13614. if !tea.BoolValue(util.IsUnset(request.PageIndex)) {
  13615. query["PageIndex"] = request.PageIndex
  13616. }
  13617. if !tea.BoolValue(util.IsUnset(request.PageSize)) {
  13618. query["PageSize"] = request.PageSize
  13619. }
  13620. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  13621. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  13622. }
  13623. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  13624. query["ResourceOwnerId"] = request.ResourceOwnerId
  13625. }
  13626. req := &openapi.OpenApiRequest{
  13627. Query: openapiutil.Query(query),
  13628. }
  13629. params := &openapi.Params{
  13630. Action: tea.String("QuerySmsTemplateList"),
  13631. Version: tea.String("2017-05-25"),
  13632. Protocol: tea.String("HTTPS"),
  13633. Pathname: tea.String("/"),
  13634. Method: tea.String("POST"),
  13635. AuthType: tea.String("AK"),
  13636. Style: tea.String("RPC"),
  13637. ReqBodyType: tea.String("formData"),
  13638. BodyType: tea.String("json"),
  13639. }
  13640. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  13641. _result = &QuerySmsTemplateListResponse{}
  13642. _body, _err := client.CallApi(params, req, runtime)
  13643. if _err != nil {
  13644. return _result, _err
  13645. }
  13646. _err = tea.Convert(_body, &_result)
  13647. return _result, _err
  13648. } else {
  13649. _result = &QuerySmsTemplateListResponse{}
  13650. _body, _err := client.Execute(params, req, runtime)
  13651. if _err != nil {
  13652. return _result, _err
  13653. }
  13654. _err = tea.Convert(_body, &_result)
  13655. return _result, _err
  13656. }
  13657. }
  13658. // Summary:
  13659. //
  13660. // Queries message templates.
  13661. //
  13662. // Description:
  13663. //
  13664. // You can call this operation to query the details of message templates, including the name, creation time, and approval status of each template. If a message template is rejected, the reason is returned. Modify the message template based on the reason.
  13665. //
  13666. // ### QPS limit
  13667. //
  13668. // You can call this operation up to 10 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  13669. //
  13670. // @param request - QuerySmsTemplateListRequest
  13671. //
  13672. // @return QuerySmsTemplateListResponse
  13673. func (client *Client) QuerySmsTemplateList(request *QuerySmsTemplateListRequest) (_result *QuerySmsTemplateListResponse, _err error) {
  13674. runtime := &util.RuntimeOptions{}
  13675. _result = &QuerySmsTemplateListResponse{}
  13676. _body, _err := client.QuerySmsTemplateListWithOptions(request, runtime)
  13677. if _err != nil {
  13678. return _result, _err
  13679. }
  13680. _result = _body
  13681. return _result, _err
  13682. }
  13683. // Summary:
  13684. //
  13685. // Sends multiple card messages at a time.
  13686. //
  13687. // Description:
  13688. //
  13689. // You can call the operation to send multiple card messages to a maximum of mobile phone numbers at a time. Different signatures and rollback settings can be specified for the mobile phone numbers.
  13690. //
  13691. // ### QPS limit
  13692. //
  13693. // You can call this operation up to 1,000 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  13694. //
  13695. // @param request - SendBatchCardSmsRequest
  13696. //
  13697. // @param runtime - runtime options for this request RuntimeOptions
  13698. //
  13699. // @return SendBatchCardSmsResponse
  13700. func (client *Client) SendBatchCardSmsWithOptions(request *SendBatchCardSmsRequest, runtime *util.RuntimeOptions) (_result *SendBatchCardSmsResponse, _err error) {
  13701. _err = util.ValidateModel(request)
  13702. if _err != nil {
  13703. return _result, _err
  13704. }
  13705. query := map[string]interface{}{}
  13706. if !tea.BoolValue(util.IsUnset(request.CardTemplateCode)) {
  13707. query["CardTemplateCode"] = request.CardTemplateCode
  13708. }
  13709. if !tea.BoolValue(util.IsUnset(request.CardTemplateParamJson)) {
  13710. query["CardTemplateParamJson"] = request.CardTemplateParamJson
  13711. }
  13712. if !tea.BoolValue(util.IsUnset(request.DigitalTemplateCode)) {
  13713. query["DigitalTemplateCode"] = request.DigitalTemplateCode
  13714. }
  13715. if !tea.BoolValue(util.IsUnset(request.DigitalTemplateParamJson)) {
  13716. query["DigitalTemplateParamJson"] = request.DigitalTemplateParamJson
  13717. }
  13718. if !tea.BoolValue(util.IsUnset(request.FallbackType)) {
  13719. query["FallbackType"] = request.FallbackType
  13720. }
  13721. if !tea.BoolValue(util.IsUnset(request.OutId)) {
  13722. query["OutId"] = request.OutId
  13723. }
  13724. if !tea.BoolValue(util.IsUnset(request.PhoneNumberJson)) {
  13725. query["PhoneNumberJson"] = request.PhoneNumberJson
  13726. }
  13727. if !tea.BoolValue(util.IsUnset(request.SignNameJson)) {
  13728. query["SignNameJson"] = request.SignNameJson
  13729. }
  13730. if !tea.BoolValue(util.IsUnset(request.SmsTemplateCode)) {
  13731. query["SmsTemplateCode"] = request.SmsTemplateCode
  13732. }
  13733. if !tea.BoolValue(util.IsUnset(request.SmsTemplateParamJson)) {
  13734. query["SmsTemplateParamJson"] = request.SmsTemplateParamJson
  13735. }
  13736. if !tea.BoolValue(util.IsUnset(request.SmsUpExtendCodeJson)) {
  13737. query["SmsUpExtendCodeJson"] = request.SmsUpExtendCodeJson
  13738. }
  13739. if !tea.BoolValue(util.IsUnset(request.TemplateCode)) {
  13740. query["TemplateCode"] = request.TemplateCode
  13741. }
  13742. if !tea.BoolValue(util.IsUnset(request.TemplateParamJson)) {
  13743. query["TemplateParamJson"] = request.TemplateParamJson
  13744. }
  13745. req := &openapi.OpenApiRequest{
  13746. Query: openapiutil.Query(query),
  13747. }
  13748. params := &openapi.Params{
  13749. Action: tea.String("SendBatchCardSms"),
  13750. Version: tea.String("2017-05-25"),
  13751. Protocol: tea.String("HTTPS"),
  13752. Pathname: tea.String("/"),
  13753. Method: tea.String("POST"),
  13754. AuthType: tea.String("AK"),
  13755. Style: tea.String("RPC"),
  13756. ReqBodyType: tea.String("formData"),
  13757. BodyType: tea.String("json"),
  13758. }
  13759. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  13760. _result = &SendBatchCardSmsResponse{}
  13761. _body, _err := client.CallApi(params, req, runtime)
  13762. if _err != nil {
  13763. return _result, _err
  13764. }
  13765. _err = tea.Convert(_body, &_result)
  13766. return _result, _err
  13767. } else {
  13768. _result = &SendBatchCardSmsResponse{}
  13769. _body, _err := client.Execute(params, req, runtime)
  13770. if _err != nil {
  13771. return _result, _err
  13772. }
  13773. _err = tea.Convert(_body, &_result)
  13774. return _result, _err
  13775. }
  13776. }
  13777. // Summary:
  13778. //
  13779. // Sends multiple card messages at a time.
  13780. //
  13781. // Description:
  13782. //
  13783. // You can call the operation to send multiple card messages to a maximum of mobile phone numbers at a time. Different signatures and rollback settings can be specified for the mobile phone numbers.
  13784. //
  13785. // ### QPS limit
  13786. //
  13787. // You can call this operation up to 1,000 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  13788. //
  13789. // @param request - SendBatchCardSmsRequest
  13790. //
  13791. // @return SendBatchCardSmsResponse
  13792. func (client *Client) SendBatchCardSms(request *SendBatchCardSmsRequest) (_result *SendBatchCardSmsResponse, _err error) {
  13793. runtime := &util.RuntimeOptions{}
  13794. _result = &SendBatchCardSmsResponse{}
  13795. _body, _err := client.SendBatchCardSmsWithOptions(request, runtime)
  13796. if _err != nil {
  13797. return _result, _err
  13798. }
  13799. _result = _body
  13800. return _result, _err
  13801. }
  13802. // Summary:
  13803. //
  13804. // Uses a single message template and multiple signatures to send messages to multiple recipients.
  13805. //
  13806. // Description:
  13807. //
  13808. // You can call the operation to send messages to a maximum of 100 recipients at a time.
  13809. //
  13810. // @param request - SendBatchSmsRequest
  13811. //
  13812. // @param runtime - runtime options for this request RuntimeOptions
  13813. //
  13814. // @return SendBatchSmsResponse
  13815. func (client *Client) SendBatchSmsWithOptions(request *SendBatchSmsRequest, runtime *util.RuntimeOptions) (_result *SendBatchSmsResponse, _err error) {
  13816. _err = util.ValidateModel(request)
  13817. if _err != nil {
  13818. return _result, _err
  13819. }
  13820. query := map[string]interface{}{}
  13821. if !tea.BoolValue(util.IsUnset(request.OutId)) {
  13822. query["OutId"] = request.OutId
  13823. }
  13824. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  13825. query["OwnerId"] = request.OwnerId
  13826. }
  13827. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  13828. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  13829. }
  13830. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  13831. query["ResourceOwnerId"] = request.ResourceOwnerId
  13832. }
  13833. if !tea.BoolValue(util.IsUnset(request.TemplateCode)) {
  13834. query["TemplateCode"] = request.TemplateCode
  13835. }
  13836. body := map[string]interface{}{}
  13837. if !tea.BoolValue(util.IsUnset(request.PhoneNumberJson)) {
  13838. body["PhoneNumberJson"] = request.PhoneNumberJson
  13839. }
  13840. if !tea.BoolValue(util.IsUnset(request.SignNameJson)) {
  13841. body["SignNameJson"] = request.SignNameJson
  13842. }
  13843. if !tea.BoolValue(util.IsUnset(request.SmsUpExtendCodeJson)) {
  13844. body["SmsUpExtendCodeJson"] = request.SmsUpExtendCodeJson
  13845. }
  13846. if !tea.BoolValue(util.IsUnset(request.TemplateParamJson)) {
  13847. body["TemplateParamJson"] = request.TemplateParamJson
  13848. }
  13849. req := &openapi.OpenApiRequest{
  13850. Query: openapiutil.Query(query),
  13851. Body: openapiutil.ParseToMap(body),
  13852. }
  13853. params := &openapi.Params{
  13854. Action: tea.String("SendBatchSms"),
  13855. Version: tea.String("2017-05-25"),
  13856. Protocol: tea.String("HTTPS"),
  13857. Pathname: tea.String("/"),
  13858. Method: tea.String("POST"),
  13859. AuthType: tea.String("AK"),
  13860. Style: tea.String("RPC"),
  13861. ReqBodyType: tea.String("formData"),
  13862. BodyType: tea.String("json"),
  13863. }
  13864. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  13865. _result = &SendBatchSmsResponse{}
  13866. _body, _err := client.CallApi(params, req, runtime)
  13867. if _err != nil {
  13868. return _result, _err
  13869. }
  13870. _err = tea.Convert(_body, &_result)
  13871. return _result, _err
  13872. } else {
  13873. _result = &SendBatchSmsResponse{}
  13874. _body, _err := client.Execute(params, req, runtime)
  13875. if _err != nil {
  13876. return _result, _err
  13877. }
  13878. _err = tea.Convert(_body, &_result)
  13879. return _result, _err
  13880. }
  13881. }
  13882. // Summary:
  13883. //
  13884. // Uses a single message template and multiple signatures to send messages to multiple recipients.
  13885. //
  13886. // Description:
  13887. //
  13888. // You can call the operation to send messages to a maximum of 100 recipients at a time.
  13889. //
  13890. // @param request - SendBatchSmsRequest
  13891. //
  13892. // @return SendBatchSmsResponse
  13893. func (client *Client) SendBatchSms(request *SendBatchSmsRequest) (_result *SendBatchSmsResponse, _err error) {
  13894. runtime := &util.RuntimeOptions{}
  13895. _result = &SendBatchSmsResponse{}
  13896. _body, _err := client.SendBatchSmsWithOptions(request, runtime)
  13897. if _err != nil {
  13898. return _result, _err
  13899. }
  13900. _result = _body
  13901. return _result, _err
  13902. }
  13903. // Summary:
  13904. //
  13905. // Sends a card message.
  13906. //
  13907. // Description:
  13908. //
  13909. // Make sure that the message template that you want to use has been approved. If the mobile phone number of a recipient does not support card messages, the SendCardSms operation allows the rollback feature to ensure successful delivery.
  13910. //
  13911. // - When you call the SendCardSms operation to send card messages, the operation checks whether the mobile phone numbers of the recipients support card messages. If the mobile phone numbers do not support card messages, you can specify whether to enable rollback. Otherwise, the card message cannot be delivered.
  13912. //
  13913. // ### QPS limit
  13914. //
  13915. // You can call this operation up to 1,000 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  13916. //
  13917. // @param request - SendCardSmsRequest
  13918. //
  13919. // @param runtime - runtime options for this request RuntimeOptions
  13920. //
  13921. // @return SendCardSmsResponse
  13922. func (client *Client) SendCardSmsWithOptions(request *SendCardSmsRequest, runtime *util.RuntimeOptions) (_result *SendCardSmsResponse, _err error) {
  13923. _err = util.ValidateModel(request)
  13924. if _err != nil {
  13925. return _result, _err
  13926. }
  13927. query := map[string]interface{}{}
  13928. if !tea.BoolValue(util.IsUnset(request.CardObjects)) {
  13929. query["CardObjects"] = request.CardObjects
  13930. }
  13931. if !tea.BoolValue(util.IsUnset(request.CardTemplateCode)) {
  13932. query["CardTemplateCode"] = request.CardTemplateCode
  13933. }
  13934. if !tea.BoolValue(util.IsUnset(request.DigitalTemplateCode)) {
  13935. query["DigitalTemplateCode"] = request.DigitalTemplateCode
  13936. }
  13937. if !tea.BoolValue(util.IsUnset(request.DigitalTemplateParam)) {
  13938. query["DigitalTemplateParam"] = request.DigitalTemplateParam
  13939. }
  13940. if !tea.BoolValue(util.IsUnset(request.FallbackType)) {
  13941. query["FallbackType"] = request.FallbackType
  13942. }
  13943. if !tea.BoolValue(util.IsUnset(request.OutId)) {
  13944. query["OutId"] = request.OutId
  13945. }
  13946. if !tea.BoolValue(util.IsUnset(request.SignName)) {
  13947. query["SignName"] = request.SignName
  13948. }
  13949. if !tea.BoolValue(util.IsUnset(request.SmsTemplateCode)) {
  13950. query["SmsTemplateCode"] = request.SmsTemplateCode
  13951. }
  13952. if !tea.BoolValue(util.IsUnset(request.SmsTemplateParam)) {
  13953. query["SmsTemplateParam"] = request.SmsTemplateParam
  13954. }
  13955. if !tea.BoolValue(util.IsUnset(request.SmsUpExtendCode)) {
  13956. query["SmsUpExtendCode"] = request.SmsUpExtendCode
  13957. }
  13958. if !tea.BoolValue(util.IsUnset(request.TemplateCode)) {
  13959. query["TemplateCode"] = request.TemplateCode
  13960. }
  13961. if !tea.BoolValue(util.IsUnset(request.TemplateParam)) {
  13962. query["TemplateParam"] = request.TemplateParam
  13963. }
  13964. req := &openapi.OpenApiRequest{
  13965. Query: openapiutil.Query(query),
  13966. }
  13967. params := &openapi.Params{
  13968. Action: tea.String("SendCardSms"),
  13969. Version: tea.String("2017-05-25"),
  13970. Protocol: tea.String("HTTPS"),
  13971. Pathname: tea.String("/"),
  13972. Method: tea.String("POST"),
  13973. AuthType: tea.String("AK"),
  13974. Style: tea.String("RPC"),
  13975. ReqBodyType: tea.String("formData"),
  13976. BodyType: tea.String("json"),
  13977. }
  13978. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  13979. _result = &SendCardSmsResponse{}
  13980. _body, _err := client.CallApi(params, req, runtime)
  13981. if _err != nil {
  13982. return _result, _err
  13983. }
  13984. _err = tea.Convert(_body, &_result)
  13985. return _result, _err
  13986. } else {
  13987. _result = &SendCardSmsResponse{}
  13988. _body, _err := client.Execute(params, req, runtime)
  13989. if _err != nil {
  13990. return _result, _err
  13991. }
  13992. _err = tea.Convert(_body, &_result)
  13993. return _result, _err
  13994. }
  13995. }
  13996. // Summary:
  13997. //
  13998. // Sends a card message.
  13999. //
  14000. // Description:
  14001. //
  14002. // Make sure that the message template that you want to use has been approved. If the mobile phone number of a recipient does not support card messages, the SendCardSms operation allows the rollback feature to ensure successful delivery.
  14003. //
  14004. // - When you call the SendCardSms operation to send card messages, the operation checks whether the mobile phone numbers of the recipients support card messages. If the mobile phone numbers do not support card messages, you can specify whether to enable rollback. Otherwise, the card message cannot be delivered.
  14005. //
  14006. // ### QPS limit
  14007. //
  14008. // You can call this operation up to 1,000 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  14009. //
  14010. // @param request - SendCardSmsRequest
  14011. //
  14012. // @return SendCardSmsResponse
  14013. func (client *Client) SendCardSms(request *SendCardSmsRequest) (_result *SendCardSmsResponse, _err error) {
  14014. runtime := &util.RuntimeOptions{}
  14015. _result = &SendCardSmsResponse{}
  14016. _body, _err := client.SendCardSmsWithOptions(request, runtime)
  14017. if _err != nil {
  14018. return _result, _err
  14019. }
  14020. _result = _body
  14021. return _result, _err
  14022. }
  14023. // Summary:
  14024. //
  14025. // Sends a message. Before you call this operation, submit a message signature and message template, and make sure that the signature and template are approved.
  14026. //
  14027. // Description:
  14028. //
  14029. // This operation is mainly used to send a single message. In special scenarios, you can send multiple messages with the same content to a maximum of 1,000 mobile numbers. Note that group sending may be delayed.
  14030. //
  14031. // - To send messages with different signatures and template content to multiple mobile numbers in a single request, call the [SendBatchSms](https://help.aliyun.com/document_detail/102364.html) operation.
  14032. //
  14033. // - You are charged for using Alibaba Cloud Short Message Service (SMS) based on the amount of messages sent. For more information, see [Pricing](https://www.aliyun.com/price/product#/sms/detail).
  14034. //
  14035. // - If your verification code signature and general-purpose signature have the same name, the system uses the general-purpose signature to send messages by default.
  14036. //
  14037. // @param request - SendSmsRequest
  14038. //
  14039. // @param runtime - runtime options for this request RuntimeOptions
  14040. //
  14041. // @return SendSmsResponse
  14042. func (client *Client) SendSmsWithOptions(request *SendSmsRequest, runtime *util.RuntimeOptions) (_result *SendSmsResponse, _err error) {
  14043. _err = util.ValidateModel(request)
  14044. if _err != nil {
  14045. return _result, _err
  14046. }
  14047. query := map[string]interface{}{}
  14048. if !tea.BoolValue(util.IsUnset(request.OutId)) {
  14049. query["OutId"] = request.OutId
  14050. }
  14051. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  14052. query["OwnerId"] = request.OwnerId
  14053. }
  14054. if !tea.BoolValue(util.IsUnset(request.PhoneNumbers)) {
  14055. query["PhoneNumbers"] = request.PhoneNumbers
  14056. }
  14057. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  14058. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  14059. }
  14060. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  14061. query["ResourceOwnerId"] = request.ResourceOwnerId
  14062. }
  14063. if !tea.BoolValue(util.IsUnset(request.SignName)) {
  14064. query["SignName"] = request.SignName
  14065. }
  14066. if !tea.BoolValue(util.IsUnset(request.SmsUpExtendCode)) {
  14067. query["SmsUpExtendCode"] = request.SmsUpExtendCode
  14068. }
  14069. if !tea.BoolValue(util.IsUnset(request.TemplateCode)) {
  14070. query["TemplateCode"] = request.TemplateCode
  14071. }
  14072. if !tea.BoolValue(util.IsUnset(request.TemplateParam)) {
  14073. query["TemplateParam"] = request.TemplateParam
  14074. }
  14075. req := &openapi.OpenApiRequest{
  14076. Query: openapiutil.Query(query),
  14077. }
  14078. params := &openapi.Params{
  14079. Action: tea.String("SendSms"),
  14080. Version: tea.String("2017-05-25"),
  14081. Protocol: tea.String("HTTPS"),
  14082. Pathname: tea.String("/"),
  14083. Method: tea.String("POST"),
  14084. AuthType: tea.String("AK"),
  14085. Style: tea.String("RPC"),
  14086. ReqBodyType: tea.String("formData"),
  14087. BodyType: tea.String("json"),
  14088. }
  14089. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  14090. _result = &SendSmsResponse{}
  14091. _body, _err := client.CallApi(params, req, runtime)
  14092. if _err != nil {
  14093. return _result, _err
  14094. }
  14095. _err = tea.Convert(_body, &_result)
  14096. return _result, _err
  14097. } else {
  14098. _result = &SendSmsResponse{}
  14099. _body, _err := client.Execute(params, req, runtime)
  14100. if _err != nil {
  14101. return _result, _err
  14102. }
  14103. _err = tea.Convert(_body, &_result)
  14104. return _result, _err
  14105. }
  14106. }
  14107. // Summary:
  14108. //
  14109. // Sends a message. Before you call this operation, submit a message signature and message template, and make sure that the signature and template are approved.
  14110. //
  14111. // Description:
  14112. //
  14113. // This operation is mainly used to send a single message. In special scenarios, you can send multiple messages with the same content to a maximum of 1,000 mobile numbers. Note that group sending may be delayed.
  14114. //
  14115. // - To send messages with different signatures and template content to multiple mobile numbers in a single request, call the [SendBatchSms](https://help.aliyun.com/document_detail/102364.html) operation.
  14116. //
  14117. // - You are charged for using Alibaba Cloud Short Message Service (SMS) based on the amount of messages sent. For more information, see [Pricing](https://www.aliyun.com/price/product#/sms/detail).
  14118. //
  14119. // - If your verification code signature and general-purpose signature have the same name, the system uses the general-purpose signature to send messages by default.
  14120. //
  14121. // @param request - SendSmsRequest
  14122. //
  14123. // @return SendSmsResponse
  14124. func (client *Client) SendSms(request *SendSmsRequest) (_result *SendSmsResponse, _err error) {
  14125. runtime := &util.RuntimeOptions{}
  14126. _result = &SendSmsResponse{}
  14127. _body, _err := client.SendSmsWithOptions(request, runtime)
  14128. if _err != nil {
  14129. return _result, _err
  14130. }
  14131. _result = _body
  14132. return _result, _err
  14133. }
  14134. // Summary:
  14135. //
  14136. // Reports the status of an OTP message to Alibaba Cloud SMS.
  14137. //
  14138. // Description:
  14139. //
  14140. // Metrics:
  14141. //
  14142. // - Requested OTP messages
  14143. //
  14144. // - Verified OTP messages
  14145. //
  14146. // An OTP conversion rate is calculated based on the following formula: OTP conversion rate = Number of verified OTP messages/Number of requested OTP messages.
  14147. //
  14148. // > If you call the SmsConversion operation to query OTP conversion rates, your business may be affected. We recommend that you perform the following operations: 1. Call the SmsConversion operation in an asynchronous manner by configuring queues or events. 2. Manually degrade your services or use a circuit breaker to automatically degrade services.
  14149. //
  14150. // @param request - SmsConversionIntlRequest
  14151. //
  14152. // @param runtime - runtime options for this request RuntimeOptions
  14153. //
  14154. // @return SmsConversionIntlResponse
  14155. func (client *Client) SmsConversionIntlWithOptions(request *SmsConversionIntlRequest, runtime *util.RuntimeOptions) (_result *SmsConversionIntlResponse, _err error) {
  14156. _err = util.ValidateModel(request)
  14157. if _err != nil {
  14158. return _result, _err
  14159. }
  14160. query := map[string]interface{}{}
  14161. if !tea.BoolValue(util.IsUnset(request.ConversionTime)) {
  14162. query["ConversionTime"] = request.ConversionTime
  14163. }
  14164. if !tea.BoolValue(util.IsUnset(request.Delivered)) {
  14165. query["Delivered"] = request.Delivered
  14166. }
  14167. if !tea.BoolValue(util.IsUnset(request.MessageId)) {
  14168. query["MessageId"] = request.MessageId
  14169. }
  14170. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  14171. query["OwnerId"] = request.OwnerId
  14172. }
  14173. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  14174. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  14175. }
  14176. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  14177. query["ResourceOwnerId"] = request.ResourceOwnerId
  14178. }
  14179. req := &openapi.OpenApiRequest{
  14180. Query: openapiutil.Query(query),
  14181. }
  14182. params := &openapi.Params{
  14183. Action: tea.String("SmsConversionIntl"),
  14184. Version: tea.String("2017-05-25"),
  14185. Protocol: tea.String("HTTPS"),
  14186. Pathname: tea.String("/"),
  14187. Method: tea.String("POST"),
  14188. AuthType: tea.String("AK"),
  14189. Style: tea.String("RPC"),
  14190. ReqBodyType: tea.String("formData"),
  14191. BodyType: tea.String("json"),
  14192. }
  14193. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  14194. _result = &SmsConversionIntlResponse{}
  14195. _body, _err := client.CallApi(params, req, runtime)
  14196. if _err != nil {
  14197. return _result, _err
  14198. }
  14199. _err = tea.Convert(_body, &_result)
  14200. return _result, _err
  14201. } else {
  14202. _result = &SmsConversionIntlResponse{}
  14203. _body, _err := client.Execute(params, req, runtime)
  14204. if _err != nil {
  14205. return _result, _err
  14206. }
  14207. _err = tea.Convert(_body, &_result)
  14208. return _result, _err
  14209. }
  14210. }
  14211. // Summary:
  14212. //
  14213. // Reports the status of an OTP message to Alibaba Cloud SMS.
  14214. //
  14215. // Description:
  14216. //
  14217. // Metrics:
  14218. //
  14219. // - Requested OTP messages
  14220. //
  14221. // - Verified OTP messages
  14222. //
  14223. // An OTP conversion rate is calculated based on the following formula: OTP conversion rate = Number of verified OTP messages/Number of requested OTP messages.
  14224. //
  14225. // > If you call the SmsConversion operation to query OTP conversion rates, your business may be affected. We recommend that you perform the following operations: 1. Call the SmsConversion operation in an asynchronous manner by configuring queues or events. 2. Manually degrade your services or use a circuit breaker to automatically degrade services.
  14226. //
  14227. // @param request - SmsConversionIntlRequest
  14228. //
  14229. // @return SmsConversionIntlResponse
  14230. func (client *Client) SmsConversionIntl(request *SmsConversionIntlRequest) (_result *SmsConversionIntlResponse, _err error) {
  14231. runtime := &util.RuntimeOptions{}
  14232. _result = &SmsConversionIntlResponse{}
  14233. _body, _err := client.SmsConversionIntlWithOptions(request, runtime)
  14234. if _err != nil {
  14235. return _result, _err
  14236. }
  14237. _result = _body
  14238. return _result, _err
  14239. }
  14240. // Summary:
  14241. //
  14242. // Attaches tags to a message template.
  14243. //
  14244. // Description:
  14245. //
  14246. // ### QPS limit
  14247. //
  14248. // You can call this operation up to 50 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  14249. //
  14250. // @param request - TagResourcesRequest
  14251. //
  14252. // @param runtime - runtime options for this request RuntimeOptions
  14253. //
  14254. // @return TagResourcesResponse
  14255. func (client *Client) TagResourcesWithOptions(request *TagResourcesRequest, runtime *util.RuntimeOptions) (_result *TagResourcesResponse, _err error) {
  14256. _err = util.ValidateModel(request)
  14257. if _err != nil {
  14258. return _result, _err
  14259. }
  14260. query := map[string]interface{}{}
  14261. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  14262. query["OwnerId"] = request.OwnerId
  14263. }
  14264. if !tea.BoolValue(util.IsUnset(request.ProdCode)) {
  14265. query["ProdCode"] = request.ProdCode
  14266. }
  14267. if !tea.BoolValue(util.IsUnset(request.RegionId)) {
  14268. query["RegionId"] = request.RegionId
  14269. }
  14270. if !tea.BoolValue(util.IsUnset(request.ResourceId)) {
  14271. query["ResourceId"] = request.ResourceId
  14272. }
  14273. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  14274. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  14275. }
  14276. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  14277. query["ResourceOwnerId"] = request.ResourceOwnerId
  14278. }
  14279. if !tea.BoolValue(util.IsUnset(request.ResourceType)) {
  14280. query["ResourceType"] = request.ResourceType
  14281. }
  14282. if !tea.BoolValue(util.IsUnset(request.Tag)) {
  14283. query["Tag"] = request.Tag
  14284. }
  14285. req := &openapi.OpenApiRequest{
  14286. Query: openapiutil.Query(query),
  14287. }
  14288. params := &openapi.Params{
  14289. Action: tea.String("TagResources"),
  14290. Version: tea.String("2017-05-25"),
  14291. Protocol: tea.String("HTTPS"),
  14292. Pathname: tea.String("/"),
  14293. Method: tea.String("POST"),
  14294. AuthType: tea.String("AK"),
  14295. Style: tea.String("RPC"),
  14296. ReqBodyType: tea.String("formData"),
  14297. BodyType: tea.String("json"),
  14298. }
  14299. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  14300. _result = &TagResourcesResponse{}
  14301. _body, _err := client.CallApi(params, req, runtime)
  14302. if _err != nil {
  14303. return _result, _err
  14304. }
  14305. _err = tea.Convert(_body, &_result)
  14306. return _result, _err
  14307. } else {
  14308. _result = &TagResourcesResponse{}
  14309. _body, _err := client.Execute(params, req, runtime)
  14310. if _err != nil {
  14311. return _result, _err
  14312. }
  14313. _err = tea.Convert(_body, &_result)
  14314. return _result, _err
  14315. }
  14316. }
  14317. // Summary:
  14318. //
  14319. // Attaches tags to a message template.
  14320. //
  14321. // Description:
  14322. //
  14323. // ### QPS limit
  14324. //
  14325. // You can call this operation up to 50 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  14326. //
  14327. // @param request - TagResourcesRequest
  14328. //
  14329. // @return TagResourcesResponse
  14330. func (client *Client) TagResources(request *TagResourcesRequest) (_result *TagResourcesResponse, _err error) {
  14331. runtime := &util.RuntimeOptions{}
  14332. _result = &TagResourcesResponse{}
  14333. _body, _err := client.TagResourcesWithOptions(request, runtime)
  14334. if _err != nil {
  14335. return _result, _err
  14336. }
  14337. _result = _body
  14338. return _result, _err
  14339. }
  14340. // Summary:
  14341. //
  14342. // Deletes tags from a message template.
  14343. //
  14344. // Description:
  14345. //
  14346. // ### QPS limit
  14347. //
  14348. // You can call this operation up to 50 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  14349. //
  14350. // @param request - UntagResourcesRequest
  14351. //
  14352. // @param runtime - runtime options for this request RuntimeOptions
  14353. //
  14354. // @return UntagResourcesResponse
  14355. func (client *Client) UntagResourcesWithOptions(request *UntagResourcesRequest, runtime *util.RuntimeOptions) (_result *UntagResourcesResponse, _err error) {
  14356. _err = util.ValidateModel(request)
  14357. if _err != nil {
  14358. return _result, _err
  14359. }
  14360. query := map[string]interface{}{}
  14361. if !tea.BoolValue(util.IsUnset(request.All)) {
  14362. query["All"] = request.All
  14363. }
  14364. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  14365. query["OwnerId"] = request.OwnerId
  14366. }
  14367. if !tea.BoolValue(util.IsUnset(request.ProdCode)) {
  14368. query["ProdCode"] = request.ProdCode
  14369. }
  14370. if !tea.BoolValue(util.IsUnset(request.RegionId)) {
  14371. query["RegionId"] = request.RegionId
  14372. }
  14373. if !tea.BoolValue(util.IsUnset(request.ResourceId)) {
  14374. query["ResourceId"] = request.ResourceId
  14375. }
  14376. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  14377. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  14378. }
  14379. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  14380. query["ResourceOwnerId"] = request.ResourceOwnerId
  14381. }
  14382. if !tea.BoolValue(util.IsUnset(request.ResourceType)) {
  14383. query["ResourceType"] = request.ResourceType
  14384. }
  14385. if !tea.BoolValue(util.IsUnset(request.TagKey)) {
  14386. query["TagKey"] = request.TagKey
  14387. }
  14388. req := &openapi.OpenApiRequest{
  14389. Query: openapiutil.Query(query),
  14390. }
  14391. params := &openapi.Params{
  14392. Action: tea.String("UntagResources"),
  14393. Version: tea.String("2017-05-25"),
  14394. Protocol: tea.String("HTTPS"),
  14395. Pathname: tea.String("/"),
  14396. Method: tea.String("POST"),
  14397. AuthType: tea.String("AK"),
  14398. Style: tea.String("RPC"),
  14399. ReqBodyType: tea.String("formData"),
  14400. BodyType: tea.String("json"),
  14401. }
  14402. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  14403. _result = &UntagResourcesResponse{}
  14404. _body, _err := client.CallApi(params, req, runtime)
  14405. if _err != nil {
  14406. return _result, _err
  14407. }
  14408. _err = tea.Convert(_body, &_result)
  14409. return _result, _err
  14410. } else {
  14411. _result = &UntagResourcesResponse{}
  14412. _body, _err := client.Execute(params, req, runtime)
  14413. if _err != nil {
  14414. return _result, _err
  14415. }
  14416. _err = tea.Convert(_body, &_result)
  14417. return _result, _err
  14418. }
  14419. }
  14420. // Summary:
  14421. //
  14422. // Deletes tags from a message template.
  14423. //
  14424. // Description:
  14425. //
  14426. // ### QPS limit
  14427. //
  14428. // You can call this operation up to 50 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
  14429. //
  14430. // @param request - UntagResourcesRequest
  14431. //
  14432. // @return UntagResourcesResponse
  14433. func (client *Client) UntagResources(request *UntagResourcesRequest) (_result *UntagResourcesResponse, _err error) {
  14434. runtime := &util.RuntimeOptions{}
  14435. _result = &UntagResourcesResponse{}
  14436. _body, _err := client.UntagResourcesWithOptions(request, runtime)
  14437. if _err != nil {
  14438. return _result, _err
  14439. }
  14440. _result = _body
  14441. return _result, _err
  14442. }
  14443. // Summary:
  14444. //
  14445. // 修改验证码签名
  14446. //
  14447. // @param request - UpdateExtCodeSignRequest
  14448. //
  14449. // @param runtime - runtime options for this request RuntimeOptions
  14450. //
  14451. // @return UpdateExtCodeSignResponse
  14452. func (client *Client) UpdateExtCodeSignWithOptions(request *UpdateExtCodeSignRequest, runtime *util.RuntimeOptions) (_result *UpdateExtCodeSignResponse, _err error) {
  14453. _err = util.ValidateModel(request)
  14454. if _err != nil {
  14455. return _result, _err
  14456. }
  14457. query := map[string]interface{}{}
  14458. if !tea.BoolValue(util.IsUnset(request.ExistExtCode)) {
  14459. query["ExistExtCode"] = request.ExistExtCode
  14460. }
  14461. if !tea.BoolValue(util.IsUnset(request.NewExtCode)) {
  14462. query["NewExtCode"] = request.NewExtCode
  14463. }
  14464. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  14465. query["OwnerId"] = request.OwnerId
  14466. }
  14467. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  14468. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  14469. }
  14470. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  14471. query["ResourceOwnerId"] = request.ResourceOwnerId
  14472. }
  14473. if !tea.BoolValue(util.IsUnset(request.SignName)) {
  14474. query["SignName"] = request.SignName
  14475. }
  14476. req := &openapi.OpenApiRequest{
  14477. Query: openapiutil.Query(query),
  14478. }
  14479. params := &openapi.Params{
  14480. Action: tea.String("UpdateExtCodeSign"),
  14481. Version: tea.String("2017-05-25"),
  14482. Protocol: tea.String("HTTPS"),
  14483. Pathname: tea.String("/"),
  14484. Method: tea.String("POST"),
  14485. AuthType: tea.String("AK"),
  14486. Style: tea.String("RPC"),
  14487. ReqBodyType: tea.String("formData"),
  14488. BodyType: tea.String("json"),
  14489. }
  14490. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  14491. _result = &UpdateExtCodeSignResponse{}
  14492. _body, _err := client.CallApi(params, req, runtime)
  14493. if _err != nil {
  14494. return _result, _err
  14495. }
  14496. _err = tea.Convert(_body, &_result)
  14497. return _result, _err
  14498. } else {
  14499. _result = &UpdateExtCodeSignResponse{}
  14500. _body, _err := client.Execute(params, req, runtime)
  14501. if _err != nil {
  14502. return _result, _err
  14503. }
  14504. _err = tea.Convert(_body, &_result)
  14505. return _result, _err
  14506. }
  14507. }
  14508. // Summary:
  14509. //
  14510. // 修改验证码签名
  14511. //
  14512. // @param request - UpdateExtCodeSignRequest
  14513. //
  14514. // @return UpdateExtCodeSignResponse
  14515. func (client *Client) UpdateExtCodeSign(request *UpdateExtCodeSignRequest) (_result *UpdateExtCodeSignResponse, _err error) {
  14516. runtime := &util.RuntimeOptions{}
  14517. _result = &UpdateExtCodeSignResponse{}
  14518. _body, _err := client.UpdateExtCodeSignWithOptions(request, runtime)
  14519. if _err != nil {
  14520. return _result, _err
  14521. }
  14522. _result = _body
  14523. return _result, _err
  14524. }
  14525. // Summary:
  14526. //
  14527. // # Update Text SMS Signature
  14528. //
  14529. // Description:
  14530. //
  14531. // - For details about the changes of this new interface and the original one, please refer to [Announcement on the Update of SMS Signature & Template Interfaces](https://help.aliyun.com/zh/sms/product-overview/announcement-on-sms-service-update-signature-template-interface).
  14532. //
  14533. // - Only signatures that have not passed the review can be modified. Please refer to [Handling Suggestions for Failed SMS Reviews](https://help.aliyun.com/zh/sms/user-guide/causes-of-application-failures-and-suggestions?spm) and call this interface to modify and resubmit for review after modification.
  14534. //
  14535. // - Signature information applied through the interface will be synchronized in the SMS service console. For operations related to signatures in the console, please see [SMS Signatures](https://help.aliyun.com/zh/sms/user-guide/create-signatures?spm).
  14536. //
  14537. // @param tmpReq - UpdateSmsSignRequest
  14538. //
  14539. // @param runtime - runtime options for this request RuntimeOptions
  14540. //
  14541. // @return UpdateSmsSignResponse
  14542. func (client *Client) UpdateSmsSignWithOptions(tmpReq *UpdateSmsSignRequest, runtime *util.RuntimeOptions) (_result *UpdateSmsSignResponse, _err error) {
  14543. _err = util.ValidateModel(tmpReq)
  14544. if _err != nil {
  14545. return _result, _err
  14546. }
  14547. request := &UpdateSmsSignShrinkRequest{}
  14548. openapiutil.Convert(tmpReq, request)
  14549. if !tea.BoolValue(util.IsUnset(tmpReq.MoreData)) {
  14550. request.MoreDataShrink = openapiutil.ArrayToStringWithSpecifiedStyle(tmpReq.MoreData, tea.String("MoreData"), tea.String("json"))
  14551. }
  14552. query := map[string]interface{}{}
  14553. if !tea.BoolValue(util.IsUnset(request.ApplySceneContent)) {
  14554. query["ApplySceneContent"] = request.ApplySceneContent
  14555. }
  14556. if !tea.BoolValue(util.IsUnset(request.MoreDataShrink)) {
  14557. query["MoreData"] = request.MoreDataShrink
  14558. }
  14559. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  14560. query["OwnerId"] = request.OwnerId
  14561. }
  14562. if !tea.BoolValue(util.IsUnset(request.QualificationId)) {
  14563. query["QualificationId"] = request.QualificationId
  14564. }
  14565. if !tea.BoolValue(util.IsUnset(request.Remark)) {
  14566. query["Remark"] = request.Remark
  14567. }
  14568. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  14569. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  14570. }
  14571. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  14572. query["ResourceOwnerId"] = request.ResourceOwnerId
  14573. }
  14574. if !tea.BoolValue(util.IsUnset(request.SignName)) {
  14575. query["SignName"] = request.SignName
  14576. }
  14577. if !tea.BoolValue(util.IsUnset(request.SignSource)) {
  14578. query["SignSource"] = request.SignSource
  14579. }
  14580. if !tea.BoolValue(util.IsUnset(request.SignType)) {
  14581. query["SignType"] = request.SignType
  14582. }
  14583. if !tea.BoolValue(util.IsUnset(request.ThirdParty)) {
  14584. query["ThirdParty"] = request.ThirdParty
  14585. }
  14586. req := &openapi.OpenApiRequest{
  14587. Query: openapiutil.Query(query),
  14588. }
  14589. params := &openapi.Params{
  14590. Action: tea.String("UpdateSmsSign"),
  14591. Version: tea.String("2017-05-25"),
  14592. Protocol: tea.String("HTTPS"),
  14593. Pathname: tea.String("/"),
  14594. Method: tea.String("POST"),
  14595. AuthType: tea.String("AK"),
  14596. Style: tea.String("RPC"),
  14597. ReqBodyType: tea.String("formData"),
  14598. BodyType: tea.String("json"),
  14599. }
  14600. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  14601. _result = &UpdateSmsSignResponse{}
  14602. _body, _err := client.CallApi(params, req, runtime)
  14603. if _err != nil {
  14604. return _result, _err
  14605. }
  14606. _err = tea.Convert(_body, &_result)
  14607. return _result, _err
  14608. } else {
  14609. _result = &UpdateSmsSignResponse{}
  14610. _body, _err := client.Execute(params, req, runtime)
  14611. if _err != nil {
  14612. return _result, _err
  14613. }
  14614. _err = tea.Convert(_body, &_result)
  14615. return _result, _err
  14616. }
  14617. }
  14618. // Summary:
  14619. //
  14620. // # Update Text SMS Signature
  14621. //
  14622. // Description:
  14623. //
  14624. // - For details about the changes of this new interface and the original one, please refer to [Announcement on the Update of SMS Signature & Template Interfaces](https://help.aliyun.com/zh/sms/product-overview/announcement-on-sms-service-update-signature-template-interface).
  14625. //
  14626. // - Only signatures that have not passed the review can be modified. Please refer to [Handling Suggestions for Failed SMS Reviews](https://help.aliyun.com/zh/sms/user-guide/causes-of-application-failures-and-suggestions?spm) and call this interface to modify and resubmit for review after modification.
  14627. //
  14628. // - Signature information applied through the interface will be synchronized in the SMS service console. For operations related to signatures in the console, please see [SMS Signatures](https://help.aliyun.com/zh/sms/user-guide/create-signatures?spm).
  14629. //
  14630. // @param request - UpdateSmsSignRequest
  14631. //
  14632. // @return UpdateSmsSignResponse
  14633. func (client *Client) UpdateSmsSign(request *UpdateSmsSignRequest) (_result *UpdateSmsSignResponse, _err error) {
  14634. runtime := &util.RuntimeOptions{}
  14635. _result = &UpdateSmsSignResponse{}
  14636. _body, _err := client.UpdateSmsSignWithOptions(request, runtime)
  14637. if _err != nil {
  14638. return _result, _err
  14639. }
  14640. _result = _body
  14641. return _result, _err
  14642. }
  14643. // Summary:
  14644. //
  14645. // # Update Text SMS Template
  14646. //
  14647. // Description:
  14648. //
  14649. // - For details about the changes of this new interface compared to the original one, please refer to [Announcement on SMS Service Update: Signature & Template Interfaces](https://help.aliyun.com/zh/sms/product-overview/announcement-on-sms-service-update-signature-template-interface).
  14650. //
  14651. // - Only templates that have not passed the review can be modified. Please refer to [Handling Suggestions for Failed SMS Template Reviews](https://help.aliyun.com/zh/sms/user-guide/causes-of-application-failures-and-suggestions?spm=a2c4g.11186623.0.0.4bf5561ajcFtMQ) and call this interface to modify and resubmit for review.
  14652. //
  14653. // - Modifications made through the interface will be synchronized in the SMS service console. For related operations on templates in the console, see [SMS Templates](https://help.aliyun.com/zh/sms/user-guide/message-templates/?spm=a2c4g.11186623.0.0.35a947464Itaxp).
  14654. //
  14655. // ### QPS Limit
  14656. //
  14657. // The single-user QPS limit for this interface is 1000 times/second. Exceeding this limit will result in API throttling, which may impact your business. Please make calls reasonably.
  14658. //
  14659. // @param tmpReq - UpdateSmsTemplateRequest
  14660. //
  14661. // @param runtime - runtime options for this request RuntimeOptions
  14662. //
  14663. // @return UpdateSmsTemplateResponse
  14664. func (client *Client) UpdateSmsTemplateWithOptions(tmpReq *UpdateSmsTemplateRequest, runtime *util.RuntimeOptions) (_result *UpdateSmsTemplateResponse, _err error) {
  14665. _err = util.ValidateModel(tmpReq)
  14666. if _err != nil {
  14667. return _result, _err
  14668. }
  14669. request := &UpdateSmsTemplateShrinkRequest{}
  14670. openapiutil.Convert(tmpReq, request)
  14671. if !tea.BoolValue(util.IsUnset(tmpReq.MoreData)) {
  14672. request.MoreDataShrink = openapiutil.ArrayToStringWithSpecifiedStyle(tmpReq.MoreData, tea.String("MoreData"), tea.String("json"))
  14673. }
  14674. query := map[string]interface{}{}
  14675. if !tea.BoolValue(util.IsUnset(request.ApplySceneContent)) {
  14676. query["ApplySceneContent"] = request.ApplySceneContent
  14677. }
  14678. if !tea.BoolValue(util.IsUnset(request.IntlType)) {
  14679. query["IntlType"] = request.IntlType
  14680. }
  14681. if !tea.BoolValue(util.IsUnset(request.MoreDataShrink)) {
  14682. query["MoreData"] = request.MoreDataShrink
  14683. }
  14684. if !tea.BoolValue(util.IsUnset(request.OwnerId)) {
  14685. query["OwnerId"] = request.OwnerId
  14686. }
  14687. if !tea.BoolValue(util.IsUnset(request.RelatedSignName)) {
  14688. query["RelatedSignName"] = request.RelatedSignName
  14689. }
  14690. if !tea.BoolValue(util.IsUnset(request.Remark)) {
  14691. query["Remark"] = request.Remark
  14692. }
  14693. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerAccount)) {
  14694. query["ResourceOwnerAccount"] = request.ResourceOwnerAccount
  14695. }
  14696. if !tea.BoolValue(util.IsUnset(request.ResourceOwnerId)) {
  14697. query["ResourceOwnerId"] = request.ResourceOwnerId
  14698. }
  14699. if !tea.BoolValue(util.IsUnset(request.TemplateCode)) {
  14700. query["TemplateCode"] = request.TemplateCode
  14701. }
  14702. if !tea.BoolValue(util.IsUnset(request.TemplateContent)) {
  14703. query["TemplateContent"] = request.TemplateContent
  14704. }
  14705. if !tea.BoolValue(util.IsUnset(request.TemplateName)) {
  14706. query["TemplateName"] = request.TemplateName
  14707. }
  14708. if !tea.BoolValue(util.IsUnset(request.TemplateRule)) {
  14709. query["TemplateRule"] = request.TemplateRule
  14710. }
  14711. if !tea.BoolValue(util.IsUnset(request.TemplateType)) {
  14712. query["TemplateType"] = request.TemplateType
  14713. }
  14714. req := &openapi.OpenApiRequest{
  14715. Query: openapiutil.Query(query),
  14716. }
  14717. params := &openapi.Params{
  14718. Action: tea.String("UpdateSmsTemplate"),
  14719. Version: tea.String("2017-05-25"),
  14720. Protocol: tea.String("HTTPS"),
  14721. Pathname: tea.String("/"),
  14722. Method: tea.String("POST"),
  14723. AuthType: tea.String("AK"),
  14724. Style: tea.String("RPC"),
  14725. ReqBodyType: tea.String("formData"),
  14726. BodyType: tea.String("json"),
  14727. }
  14728. if tea.BoolValue(util.IsUnset(client.SignatureVersion)) || !tea.BoolValue(util.EqualString(client.SignatureVersion, tea.String("v4"))) {
  14729. _result = &UpdateSmsTemplateResponse{}
  14730. _body, _err := client.CallApi(params, req, runtime)
  14731. if _err != nil {
  14732. return _result, _err
  14733. }
  14734. _err = tea.Convert(_body, &_result)
  14735. return _result, _err
  14736. } else {
  14737. _result = &UpdateSmsTemplateResponse{}
  14738. _body, _err := client.Execute(params, req, runtime)
  14739. if _err != nil {
  14740. return _result, _err
  14741. }
  14742. _err = tea.Convert(_body, &_result)
  14743. return _result, _err
  14744. }
  14745. }
  14746. // Summary:
  14747. //
  14748. // # Update Text SMS Template
  14749. //
  14750. // Description:
  14751. //
  14752. // - For details about the changes of this new interface compared to the original one, please refer to [Announcement on SMS Service Update: Signature & Template Interfaces](https://help.aliyun.com/zh/sms/product-overview/announcement-on-sms-service-update-signature-template-interface).
  14753. //
  14754. // - Only templates that have not passed the review can be modified. Please refer to [Handling Suggestions for Failed SMS Template Reviews](https://help.aliyun.com/zh/sms/user-guide/causes-of-application-failures-and-suggestions?spm=a2c4g.11186623.0.0.4bf5561ajcFtMQ) and call this interface to modify and resubmit for review.
  14755. //
  14756. // - Modifications made through the interface will be synchronized in the SMS service console. For related operations on templates in the console, see [SMS Templates](https://help.aliyun.com/zh/sms/user-guide/message-templates/?spm=a2c4g.11186623.0.0.35a947464Itaxp).
  14757. //
  14758. // ### QPS Limit
  14759. //
  14760. // The single-user QPS limit for this interface is 1000 times/second. Exceeding this limit will result in API throttling, which may impact your business. Please make calls reasonably.
  14761. //
  14762. // @param request - UpdateSmsTemplateRequest
  14763. //
  14764. // @return UpdateSmsTemplateResponse
  14765. func (client *Client) UpdateSmsTemplate(request *UpdateSmsTemplateRequest) (_result *UpdateSmsTemplateResponse, _err error) {
  14766. runtime := &util.RuntimeOptions{}
  14767. _result = &UpdateSmsTemplateResponse{}
  14768. _body, _err := client.UpdateSmsTemplateWithOptions(request, runtime)
  14769. if _err != nil {
  14770. return _result, _err
  14771. }
  14772. _result = _body
  14773. return _result, _err
  14774. }