set_not_nil.go 206 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648
  1. // Code generated by ent, DO NOT EDIT.
  2. package ent
  3. import (
  4. "time"
  5. "wechat-api/ent/custom_types"
  6. )
  7. // set field if value's pointer is not nil.
  8. func (a *AgentUpdate) SetNotNilUpdatedAt(value *time.Time) *AgentUpdate {
  9. if value != nil {
  10. return a.SetUpdatedAt(*value)
  11. }
  12. return a
  13. }
  14. // set field if value's pointer is not nil.
  15. func (a *AgentUpdateOne) SetNotNilUpdatedAt(value *time.Time) *AgentUpdateOne {
  16. if value != nil {
  17. return a.SetUpdatedAt(*value)
  18. }
  19. return a
  20. }
  21. // set field if value's pointer is not nil.
  22. func (a *AgentCreate) SetNotNilUpdatedAt(value *time.Time) *AgentCreate {
  23. if value != nil {
  24. return a.SetUpdatedAt(*value)
  25. }
  26. return a
  27. }
  28. // set field if value's pointer is not nil.
  29. func (a *AgentUpdate) SetNotNilDeletedAt(value *time.Time) *AgentUpdate {
  30. if value != nil {
  31. return a.SetDeletedAt(*value)
  32. }
  33. return a
  34. }
  35. // set field if value's pointer is not nil.
  36. func (a *AgentUpdateOne) SetNotNilDeletedAt(value *time.Time) *AgentUpdateOne {
  37. if value != nil {
  38. return a.SetDeletedAt(*value)
  39. }
  40. return a
  41. }
  42. // set field if value's pointer is not nil.
  43. func (a *AgentCreate) SetNotNilDeletedAt(value *time.Time) *AgentCreate {
  44. if value != nil {
  45. return a.SetDeletedAt(*value)
  46. }
  47. return a
  48. }
  49. // set field if value's pointer is not nil.
  50. func (a *AgentUpdate) SetNotNilName(value *string) *AgentUpdate {
  51. if value != nil {
  52. return a.SetName(*value)
  53. }
  54. return a
  55. }
  56. // set field if value's pointer is not nil.
  57. func (a *AgentUpdateOne) SetNotNilName(value *string) *AgentUpdateOne {
  58. if value != nil {
  59. return a.SetName(*value)
  60. }
  61. return a
  62. }
  63. // set field if value's pointer is not nil.
  64. func (a *AgentCreate) SetNotNilName(value *string) *AgentCreate {
  65. if value != nil {
  66. return a.SetName(*value)
  67. }
  68. return a
  69. }
  70. // set field if value's pointer is not nil.
  71. func (a *AgentUpdate) SetNotNilRole(value *string) *AgentUpdate {
  72. if value != nil {
  73. return a.SetRole(*value)
  74. }
  75. return a
  76. }
  77. // set field if value's pointer is not nil.
  78. func (a *AgentUpdateOne) SetNotNilRole(value *string) *AgentUpdateOne {
  79. if value != nil {
  80. return a.SetRole(*value)
  81. }
  82. return a
  83. }
  84. // set field if value's pointer is not nil.
  85. func (a *AgentCreate) SetNotNilRole(value *string) *AgentCreate {
  86. if value != nil {
  87. return a.SetRole(*value)
  88. }
  89. return a
  90. }
  91. // set field if value's pointer is not nil.
  92. func (a *AgentUpdate) SetNotNilStatus(value *int) *AgentUpdate {
  93. if value != nil {
  94. return a.SetStatus(*value)
  95. }
  96. return a
  97. }
  98. // set field if value's pointer is not nil.
  99. func (a *AgentUpdateOne) SetNotNilStatus(value *int) *AgentUpdateOne {
  100. if value != nil {
  101. return a.SetStatus(*value)
  102. }
  103. return a
  104. }
  105. // set field if value's pointer is not nil.
  106. func (a *AgentCreate) SetNotNilStatus(value *int) *AgentCreate {
  107. if value != nil {
  108. return a.SetStatus(*value)
  109. }
  110. return a
  111. }
  112. // set field if value's pointer is not nil.
  113. func (a *AgentUpdate) SetNotNilBackground(value *string) *AgentUpdate {
  114. if value != nil {
  115. return a.SetBackground(*value)
  116. }
  117. return a
  118. }
  119. // set field if value's pointer is not nil.
  120. func (a *AgentUpdateOne) SetNotNilBackground(value *string) *AgentUpdateOne {
  121. if value != nil {
  122. return a.SetBackground(*value)
  123. }
  124. return a
  125. }
  126. // set field if value's pointer is not nil.
  127. func (a *AgentCreate) SetNotNilBackground(value *string) *AgentCreate {
  128. if value != nil {
  129. return a.SetBackground(*value)
  130. }
  131. return a
  132. }
  133. // set field if value's pointer is not nil.
  134. func (a *AgentUpdate) SetNotNilExamples(value *string) *AgentUpdate {
  135. if value != nil {
  136. return a.SetExamples(*value)
  137. }
  138. return a
  139. }
  140. // set field if value's pointer is not nil.
  141. func (a *AgentUpdateOne) SetNotNilExamples(value *string) *AgentUpdateOne {
  142. if value != nil {
  143. return a.SetExamples(*value)
  144. }
  145. return a
  146. }
  147. // set field if value's pointer is not nil.
  148. func (a *AgentCreate) SetNotNilExamples(value *string) *AgentCreate {
  149. if value != nil {
  150. return a.SetExamples(*value)
  151. }
  152. return a
  153. }
  154. // set field if value's pointer is not nil.
  155. func (a *AgentUpdate) SetNotNilOrganizationID(value *uint64) *AgentUpdate {
  156. if value != nil {
  157. return a.SetOrganizationID(*value)
  158. }
  159. return a
  160. }
  161. // set field if value's pointer is not nil.
  162. func (a *AgentUpdateOne) SetNotNilOrganizationID(value *uint64) *AgentUpdateOne {
  163. if value != nil {
  164. return a.SetOrganizationID(*value)
  165. }
  166. return a
  167. }
  168. // set field if value's pointer is not nil.
  169. func (a *AgentCreate) SetNotNilOrganizationID(value *uint64) *AgentCreate {
  170. if value != nil {
  171. return a.SetOrganizationID(*value)
  172. }
  173. return a
  174. }
  175. // set field if value's pointer is not nil.
  176. func (a *AgentUpdate) SetNotNilDatasetID(value *string) *AgentUpdate {
  177. if value != nil {
  178. return a.SetDatasetID(*value)
  179. }
  180. return a
  181. }
  182. // set field if value's pointer is not nil.
  183. func (a *AgentUpdateOne) SetNotNilDatasetID(value *string) *AgentUpdateOne {
  184. if value != nil {
  185. return a.SetDatasetID(*value)
  186. }
  187. return a
  188. }
  189. // set field if value's pointer is not nil.
  190. func (a *AgentCreate) SetNotNilDatasetID(value *string) *AgentCreate {
  191. if value != nil {
  192. return a.SetDatasetID(*value)
  193. }
  194. return a
  195. }
  196. // set field if value's pointer is not nil.
  197. func (a *AgentUpdate) SetNotNilCollectionID(value *string) *AgentUpdate {
  198. if value != nil {
  199. return a.SetCollectionID(*value)
  200. }
  201. return a
  202. }
  203. // set field if value's pointer is not nil.
  204. func (a *AgentUpdateOne) SetNotNilCollectionID(value *string) *AgentUpdateOne {
  205. if value != nil {
  206. return a.SetCollectionID(*value)
  207. }
  208. return a
  209. }
  210. // set field if value's pointer is not nil.
  211. func (a *AgentCreate) SetNotNilCollectionID(value *string) *AgentCreate {
  212. if value != nil {
  213. return a.SetCollectionID(*value)
  214. }
  215. return a
  216. }
  217. // set field if value's pointer is not nil.
  218. func (ab *AgentBaseUpdate) SetNotNilQ(value *string) *AgentBaseUpdate {
  219. if value != nil {
  220. return ab.SetQ(*value)
  221. }
  222. return ab
  223. }
  224. // set field if value's pointer is not nil.
  225. func (ab *AgentBaseUpdateOne) SetNotNilQ(value *string) *AgentBaseUpdateOne {
  226. if value != nil {
  227. return ab.SetQ(*value)
  228. }
  229. return ab
  230. }
  231. // set field if value's pointer is not nil.
  232. func (ab *AgentBaseCreate) SetNotNilQ(value *string) *AgentBaseCreate {
  233. if value != nil {
  234. return ab.SetQ(*value)
  235. }
  236. return ab
  237. }
  238. // set field if value's pointer is not nil.
  239. func (ab *AgentBaseUpdate) SetNotNilA(value *string) *AgentBaseUpdate {
  240. if value != nil {
  241. return ab.SetA(*value)
  242. }
  243. return ab
  244. }
  245. // set field if value's pointer is not nil.
  246. func (ab *AgentBaseUpdateOne) SetNotNilA(value *string) *AgentBaseUpdateOne {
  247. if value != nil {
  248. return ab.SetA(*value)
  249. }
  250. return ab
  251. }
  252. // set field if value's pointer is not nil.
  253. func (ab *AgentBaseCreate) SetNotNilA(value *string) *AgentBaseCreate {
  254. if value != nil {
  255. return ab.SetA(*value)
  256. }
  257. return ab
  258. }
  259. // set field if value's pointer is not nil.
  260. func (ab *AgentBaseUpdate) SetNotNilChunkIndex(value *uint64) *AgentBaseUpdate {
  261. if value != nil {
  262. return ab.SetChunkIndex(*value)
  263. }
  264. return ab
  265. }
  266. // set field if value's pointer is not nil.
  267. func (ab *AgentBaseUpdateOne) SetNotNilChunkIndex(value *uint64) *AgentBaseUpdateOne {
  268. if value != nil {
  269. return ab.SetChunkIndex(*value)
  270. }
  271. return ab
  272. }
  273. // set field if value's pointer is not nil.
  274. func (ab *AgentBaseCreate) SetNotNilChunkIndex(value *uint64) *AgentBaseCreate {
  275. if value != nil {
  276. return ab.SetChunkIndex(*value)
  277. }
  278. return ab
  279. }
  280. // set field if value's pointer is not nil.
  281. func (ab *AgentBaseUpdate) SetNotNilIndexes(value []string) *AgentBaseUpdate {
  282. if value != nil {
  283. return ab.SetIndexes(value)
  284. }
  285. return ab
  286. }
  287. // set field if value's pointer is not nil.
  288. func (ab *AgentBaseUpdateOne) SetNotNilIndexes(value []string) *AgentBaseUpdateOne {
  289. if value != nil {
  290. return ab.SetIndexes(value)
  291. }
  292. return ab
  293. }
  294. // set field if value's pointer is not nil.
  295. func (ab *AgentBaseCreate) SetNotNilIndexes(value []string) *AgentBaseCreate {
  296. if value != nil {
  297. return ab.SetIndexes(value)
  298. }
  299. return ab
  300. }
  301. // set field if value's pointer is not nil.
  302. func (ab *AgentBaseUpdate) SetNotNilDatasetID(value *string) *AgentBaseUpdate {
  303. if value != nil {
  304. return ab.SetDatasetID(*value)
  305. }
  306. return ab
  307. }
  308. // set field if value's pointer is not nil.
  309. func (ab *AgentBaseUpdateOne) SetNotNilDatasetID(value *string) *AgentBaseUpdateOne {
  310. if value != nil {
  311. return ab.SetDatasetID(*value)
  312. }
  313. return ab
  314. }
  315. // set field if value's pointer is not nil.
  316. func (ab *AgentBaseCreate) SetNotNilDatasetID(value *string) *AgentBaseCreate {
  317. if value != nil {
  318. return ab.SetDatasetID(*value)
  319. }
  320. return ab
  321. }
  322. // set field if value's pointer is not nil.
  323. func (ab *AgentBaseUpdate) SetNotNilCollectionID(value *string) *AgentBaseUpdate {
  324. if value != nil {
  325. return ab.SetCollectionID(*value)
  326. }
  327. return ab
  328. }
  329. // set field if value's pointer is not nil.
  330. func (ab *AgentBaseUpdateOne) SetNotNilCollectionID(value *string) *AgentBaseUpdateOne {
  331. if value != nil {
  332. return ab.SetCollectionID(*value)
  333. }
  334. return ab
  335. }
  336. // set field if value's pointer is not nil.
  337. func (ab *AgentBaseCreate) SetNotNilCollectionID(value *string) *AgentBaseCreate {
  338. if value != nil {
  339. return ab.SetCollectionID(*value)
  340. }
  341. return ab
  342. }
  343. // set field if value's pointer is not nil.
  344. func (ab *AgentBaseUpdate) SetNotNilSourceName(value *string) *AgentBaseUpdate {
  345. if value != nil {
  346. return ab.SetSourceName(*value)
  347. }
  348. return ab
  349. }
  350. // set field if value's pointer is not nil.
  351. func (ab *AgentBaseUpdateOne) SetNotNilSourceName(value *string) *AgentBaseUpdateOne {
  352. if value != nil {
  353. return ab.SetSourceName(*value)
  354. }
  355. return ab
  356. }
  357. // set field if value's pointer is not nil.
  358. func (ab *AgentBaseCreate) SetNotNilSourceName(value *string) *AgentBaseCreate {
  359. if value != nil {
  360. return ab.SetSourceName(*value)
  361. }
  362. return ab
  363. }
  364. // set field if value's pointer is not nil.
  365. func (ab *AgentBaseUpdate) SetNotNilCanWrite(value []bool) *AgentBaseUpdate {
  366. if value != nil {
  367. return ab.SetCanWrite(value)
  368. }
  369. return ab
  370. }
  371. // set field if value's pointer is not nil.
  372. func (ab *AgentBaseUpdateOne) SetNotNilCanWrite(value []bool) *AgentBaseUpdateOne {
  373. if value != nil {
  374. return ab.SetCanWrite(value)
  375. }
  376. return ab
  377. }
  378. // set field if value's pointer is not nil.
  379. func (ab *AgentBaseCreate) SetNotNilCanWrite(value []bool) *AgentBaseCreate {
  380. if value != nil {
  381. return ab.SetCanWrite(value)
  382. }
  383. return ab
  384. }
  385. // set field if value's pointer is not nil.
  386. func (ab *AgentBaseUpdate) SetNotNilIsOwner(value []bool) *AgentBaseUpdate {
  387. if value != nil {
  388. return ab.SetIsOwner(value)
  389. }
  390. return ab
  391. }
  392. // set field if value's pointer is not nil.
  393. func (ab *AgentBaseUpdateOne) SetNotNilIsOwner(value []bool) *AgentBaseUpdateOne {
  394. if value != nil {
  395. return ab.SetIsOwner(value)
  396. }
  397. return ab
  398. }
  399. // set field if value's pointer is not nil.
  400. func (ab *AgentBaseCreate) SetNotNilIsOwner(value []bool) *AgentBaseCreate {
  401. if value != nil {
  402. return ab.SetIsOwner(value)
  403. }
  404. return ab
  405. }
  406. // set field if value's pointer is not nil.
  407. func (aa *AliyunAvatarUpdate) SetNotNilUpdatedAt(value *time.Time) *AliyunAvatarUpdate {
  408. if value != nil {
  409. return aa.SetUpdatedAt(*value)
  410. }
  411. return aa
  412. }
  413. // set field if value's pointer is not nil.
  414. func (aa *AliyunAvatarUpdateOne) SetNotNilUpdatedAt(value *time.Time) *AliyunAvatarUpdateOne {
  415. if value != nil {
  416. return aa.SetUpdatedAt(*value)
  417. }
  418. return aa
  419. }
  420. // set field if value's pointer is not nil.
  421. func (aa *AliyunAvatarCreate) SetNotNilUpdatedAt(value *time.Time) *AliyunAvatarCreate {
  422. if value != nil {
  423. return aa.SetUpdatedAt(*value)
  424. }
  425. return aa
  426. }
  427. // set field if value's pointer is not nil.
  428. func (aa *AliyunAvatarUpdate) SetNotNilDeletedAt(value *time.Time) *AliyunAvatarUpdate {
  429. if value != nil {
  430. return aa.SetDeletedAt(*value)
  431. }
  432. return aa
  433. }
  434. // set field if value's pointer is not nil.
  435. func (aa *AliyunAvatarUpdateOne) SetNotNilDeletedAt(value *time.Time) *AliyunAvatarUpdateOne {
  436. if value != nil {
  437. return aa.SetDeletedAt(*value)
  438. }
  439. return aa
  440. }
  441. // set field if value's pointer is not nil.
  442. func (aa *AliyunAvatarCreate) SetNotNilDeletedAt(value *time.Time) *AliyunAvatarCreate {
  443. if value != nil {
  444. return aa.SetDeletedAt(*value)
  445. }
  446. return aa
  447. }
  448. // set field if value's pointer is not nil.
  449. func (aa *AliyunAvatarUpdate) SetNotNilUserID(value *uint64) *AliyunAvatarUpdate {
  450. if value != nil {
  451. return aa.SetUserID(*value)
  452. }
  453. return aa
  454. }
  455. // set field if value's pointer is not nil.
  456. func (aa *AliyunAvatarUpdateOne) SetNotNilUserID(value *uint64) *AliyunAvatarUpdateOne {
  457. if value != nil {
  458. return aa.SetUserID(*value)
  459. }
  460. return aa
  461. }
  462. // set field if value's pointer is not nil.
  463. func (aa *AliyunAvatarCreate) SetNotNilUserID(value *uint64) *AliyunAvatarCreate {
  464. if value != nil {
  465. return aa.SetUserID(*value)
  466. }
  467. return aa
  468. }
  469. // set field if value's pointer is not nil.
  470. func (aa *AliyunAvatarUpdate) SetNotNilBizID(value *string) *AliyunAvatarUpdate {
  471. if value != nil {
  472. return aa.SetBizID(*value)
  473. }
  474. return aa
  475. }
  476. // set field if value's pointer is not nil.
  477. func (aa *AliyunAvatarUpdateOne) SetNotNilBizID(value *string) *AliyunAvatarUpdateOne {
  478. if value != nil {
  479. return aa.SetBizID(*value)
  480. }
  481. return aa
  482. }
  483. // set field if value's pointer is not nil.
  484. func (aa *AliyunAvatarCreate) SetNotNilBizID(value *string) *AliyunAvatarCreate {
  485. if value != nil {
  486. return aa.SetBizID(*value)
  487. }
  488. return aa
  489. }
  490. // set field if value's pointer is not nil.
  491. func (aa *AliyunAvatarUpdate) SetNotNilAccessKeyID(value *string) *AliyunAvatarUpdate {
  492. if value != nil {
  493. return aa.SetAccessKeyID(*value)
  494. }
  495. return aa
  496. }
  497. // set field if value's pointer is not nil.
  498. func (aa *AliyunAvatarUpdateOne) SetNotNilAccessKeyID(value *string) *AliyunAvatarUpdateOne {
  499. if value != nil {
  500. return aa.SetAccessKeyID(*value)
  501. }
  502. return aa
  503. }
  504. // set field if value's pointer is not nil.
  505. func (aa *AliyunAvatarCreate) SetNotNilAccessKeyID(value *string) *AliyunAvatarCreate {
  506. if value != nil {
  507. return aa.SetAccessKeyID(*value)
  508. }
  509. return aa
  510. }
  511. // set field if value's pointer is not nil.
  512. func (aa *AliyunAvatarUpdate) SetNotNilAccessKeySecret(value *string) *AliyunAvatarUpdate {
  513. if value != nil {
  514. return aa.SetAccessKeySecret(*value)
  515. }
  516. return aa
  517. }
  518. // set field if value's pointer is not nil.
  519. func (aa *AliyunAvatarUpdateOne) SetNotNilAccessKeySecret(value *string) *AliyunAvatarUpdateOne {
  520. if value != nil {
  521. return aa.SetAccessKeySecret(*value)
  522. }
  523. return aa
  524. }
  525. // set field if value's pointer is not nil.
  526. func (aa *AliyunAvatarCreate) SetNotNilAccessKeySecret(value *string) *AliyunAvatarCreate {
  527. if value != nil {
  528. return aa.SetAccessKeySecret(*value)
  529. }
  530. return aa
  531. }
  532. // set field if value's pointer is not nil.
  533. func (aa *AliyunAvatarUpdate) SetNotNilAppID(value *string) *AliyunAvatarUpdate {
  534. if value != nil {
  535. return aa.SetAppID(*value)
  536. }
  537. return aa
  538. }
  539. // set field if value's pointer is not nil.
  540. func (aa *AliyunAvatarUpdateOne) SetNotNilAppID(value *string) *AliyunAvatarUpdateOne {
  541. if value != nil {
  542. return aa.SetAppID(*value)
  543. }
  544. return aa
  545. }
  546. // set field if value's pointer is not nil.
  547. func (aa *AliyunAvatarCreate) SetNotNilAppID(value *string) *AliyunAvatarCreate {
  548. if value != nil {
  549. return aa.SetAppID(*value)
  550. }
  551. return aa
  552. }
  553. // set field if value's pointer is not nil.
  554. func (aa *AliyunAvatarUpdate) SetNotNilTenantID(value *uint64) *AliyunAvatarUpdate {
  555. if value != nil {
  556. return aa.SetTenantID(*value)
  557. }
  558. return aa
  559. }
  560. // set field if value's pointer is not nil.
  561. func (aa *AliyunAvatarUpdateOne) SetNotNilTenantID(value *uint64) *AliyunAvatarUpdateOne {
  562. if value != nil {
  563. return aa.SetTenantID(*value)
  564. }
  565. return aa
  566. }
  567. // set field if value's pointer is not nil.
  568. func (aa *AliyunAvatarCreate) SetNotNilTenantID(value *uint64) *AliyunAvatarCreate {
  569. if value != nil {
  570. return aa.SetTenantID(*value)
  571. }
  572. return aa
  573. }
  574. // set field if value's pointer is not nil.
  575. func (aa *AliyunAvatarUpdate) SetNotNilResponse(value *string) *AliyunAvatarUpdate {
  576. if value != nil {
  577. return aa.SetResponse(*value)
  578. }
  579. return aa
  580. }
  581. // set field if value's pointer is not nil.
  582. func (aa *AliyunAvatarUpdateOne) SetNotNilResponse(value *string) *AliyunAvatarUpdateOne {
  583. if value != nil {
  584. return aa.SetResponse(*value)
  585. }
  586. return aa
  587. }
  588. // set field if value's pointer is not nil.
  589. func (aa *AliyunAvatarCreate) SetNotNilResponse(value *string) *AliyunAvatarCreate {
  590. if value != nil {
  591. return aa.SetResponse(*value)
  592. }
  593. return aa
  594. }
  595. // set field if value's pointer is not nil.
  596. func (aa *AliyunAvatarUpdate) SetNotNilToken(value *string) *AliyunAvatarUpdate {
  597. if value != nil {
  598. return aa.SetToken(*value)
  599. }
  600. return aa
  601. }
  602. // set field if value's pointer is not nil.
  603. func (aa *AliyunAvatarUpdateOne) SetNotNilToken(value *string) *AliyunAvatarUpdateOne {
  604. if value != nil {
  605. return aa.SetToken(*value)
  606. }
  607. return aa
  608. }
  609. // set field if value's pointer is not nil.
  610. func (aa *AliyunAvatarCreate) SetNotNilToken(value *string) *AliyunAvatarCreate {
  611. if value != nil {
  612. return aa.SetToken(*value)
  613. }
  614. return aa
  615. }
  616. // set field if value's pointer is not nil.
  617. func (aa *AliyunAvatarUpdate) SetNotNilSessionID(value *string) *AliyunAvatarUpdate {
  618. if value != nil {
  619. return aa.SetSessionID(*value)
  620. }
  621. return aa
  622. }
  623. // set field if value's pointer is not nil.
  624. func (aa *AliyunAvatarUpdateOne) SetNotNilSessionID(value *string) *AliyunAvatarUpdateOne {
  625. if value != nil {
  626. return aa.SetSessionID(*value)
  627. }
  628. return aa
  629. }
  630. // set field if value's pointer is not nil.
  631. func (aa *AliyunAvatarCreate) SetNotNilSessionID(value *string) *AliyunAvatarCreate {
  632. if value != nil {
  633. return aa.SetSessionID(*value)
  634. }
  635. return aa
  636. }
  637. // set field if value's pointer is not nil.
  638. func (bm *BatchMsgUpdate) SetNotNilUpdatedAt(value *time.Time) *BatchMsgUpdate {
  639. if value != nil {
  640. return bm.SetUpdatedAt(*value)
  641. }
  642. return bm
  643. }
  644. // set field if value's pointer is not nil.
  645. func (bm *BatchMsgUpdateOne) SetNotNilUpdatedAt(value *time.Time) *BatchMsgUpdateOne {
  646. if value != nil {
  647. return bm.SetUpdatedAt(*value)
  648. }
  649. return bm
  650. }
  651. // set field if value's pointer is not nil.
  652. func (bm *BatchMsgCreate) SetNotNilUpdatedAt(value *time.Time) *BatchMsgCreate {
  653. if value != nil {
  654. return bm.SetUpdatedAt(*value)
  655. }
  656. return bm
  657. }
  658. // set field if value's pointer is not nil.
  659. func (bm *BatchMsgUpdate) SetNotNilDeletedAt(value *time.Time) *BatchMsgUpdate {
  660. if value != nil {
  661. return bm.SetDeletedAt(*value)
  662. }
  663. return bm
  664. }
  665. // set field if value's pointer is not nil.
  666. func (bm *BatchMsgUpdateOne) SetNotNilDeletedAt(value *time.Time) *BatchMsgUpdateOne {
  667. if value != nil {
  668. return bm.SetDeletedAt(*value)
  669. }
  670. return bm
  671. }
  672. // set field if value's pointer is not nil.
  673. func (bm *BatchMsgCreate) SetNotNilDeletedAt(value *time.Time) *BatchMsgCreate {
  674. if value != nil {
  675. return bm.SetDeletedAt(*value)
  676. }
  677. return bm
  678. }
  679. // set field if value's pointer is not nil.
  680. func (bm *BatchMsgUpdate) SetNotNilStatus(value *uint8) *BatchMsgUpdate {
  681. if value != nil {
  682. return bm.SetStatus(*value)
  683. }
  684. return bm
  685. }
  686. // set field if value's pointer is not nil.
  687. func (bm *BatchMsgUpdateOne) SetNotNilStatus(value *uint8) *BatchMsgUpdateOne {
  688. if value != nil {
  689. return bm.SetStatus(*value)
  690. }
  691. return bm
  692. }
  693. // set field if value's pointer is not nil.
  694. func (bm *BatchMsgCreate) SetNotNilStatus(value *uint8) *BatchMsgCreate {
  695. if value != nil {
  696. return bm.SetStatus(*value)
  697. }
  698. return bm
  699. }
  700. // set field if value's pointer is not nil.
  701. func (bm *BatchMsgUpdate) SetNotNilBatchNo(value *string) *BatchMsgUpdate {
  702. if value != nil {
  703. return bm.SetBatchNo(*value)
  704. }
  705. return bm
  706. }
  707. // set field if value's pointer is not nil.
  708. func (bm *BatchMsgUpdateOne) SetNotNilBatchNo(value *string) *BatchMsgUpdateOne {
  709. if value != nil {
  710. return bm.SetBatchNo(*value)
  711. }
  712. return bm
  713. }
  714. // set field if value's pointer is not nil.
  715. func (bm *BatchMsgCreate) SetNotNilBatchNo(value *string) *BatchMsgCreate {
  716. if value != nil {
  717. return bm.SetBatchNo(*value)
  718. }
  719. return bm
  720. }
  721. // set field if value's pointer is not nil.
  722. func (bm *BatchMsgUpdate) SetNotNilTaskName(value *string) *BatchMsgUpdate {
  723. if value != nil {
  724. return bm.SetTaskName(*value)
  725. }
  726. return bm
  727. }
  728. // set field if value's pointer is not nil.
  729. func (bm *BatchMsgUpdateOne) SetNotNilTaskName(value *string) *BatchMsgUpdateOne {
  730. if value != nil {
  731. return bm.SetTaskName(*value)
  732. }
  733. return bm
  734. }
  735. // set field if value's pointer is not nil.
  736. func (bm *BatchMsgCreate) SetNotNilTaskName(value *string) *BatchMsgCreate {
  737. if value != nil {
  738. return bm.SetTaskName(*value)
  739. }
  740. return bm
  741. }
  742. // set field if value's pointer is not nil.
  743. func (bm *BatchMsgUpdate) SetNotNilFromwxid(value *string) *BatchMsgUpdate {
  744. if value != nil {
  745. return bm.SetFromwxid(*value)
  746. }
  747. return bm
  748. }
  749. // set field if value's pointer is not nil.
  750. func (bm *BatchMsgUpdateOne) SetNotNilFromwxid(value *string) *BatchMsgUpdateOne {
  751. if value != nil {
  752. return bm.SetFromwxid(*value)
  753. }
  754. return bm
  755. }
  756. // set field if value's pointer is not nil.
  757. func (bm *BatchMsgCreate) SetNotNilFromwxid(value *string) *BatchMsgCreate {
  758. if value != nil {
  759. return bm.SetFromwxid(*value)
  760. }
  761. return bm
  762. }
  763. // set field if value's pointer is not nil.
  764. func (bm *BatchMsgUpdate) SetNotNilMsg(value *string) *BatchMsgUpdate {
  765. if value != nil {
  766. return bm.SetMsg(*value)
  767. }
  768. return bm
  769. }
  770. // set field if value's pointer is not nil.
  771. func (bm *BatchMsgUpdateOne) SetNotNilMsg(value *string) *BatchMsgUpdateOne {
  772. if value != nil {
  773. return bm.SetMsg(*value)
  774. }
  775. return bm
  776. }
  777. // set field if value's pointer is not nil.
  778. func (bm *BatchMsgCreate) SetNotNilMsg(value *string) *BatchMsgCreate {
  779. if value != nil {
  780. return bm.SetMsg(*value)
  781. }
  782. return bm
  783. }
  784. // set field if value's pointer is not nil.
  785. func (bm *BatchMsgUpdate) SetNotNilTag(value *string) *BatchMsgUpdate {
  786. if value != nil {
  787. return bm.SetTag(*value)
  788. }
  789. return bm
  790. }
  791. // set field if value's pointer is not nil.
  792. func (bm *BatchMsgUpdateOne) SetNotNilTag(value *string) *BatchMsgUpdateOne {
  793. if value != nil {
  794. return bm.SetTag(*value)
  795. }
  796. return bm
  797. }
  798. // set field if value's pointer is not nil.
  799. func (bm *BatchMsgCreate) SetNotNilTag(value *string) *BatchMsgCreate {
  800. if value != nil {
  801. return bm.SetTag(*value)
  802. }
  803. return bm
  804. }
  805. // set field if value's pointer is not nil.
  806. func (bm *BatchMsgUpdate) SetNotNilTagids(value *string) *BatchMsgUpdate {
  807. if value != nil {
  808. return bm.SetTagids(*value)
  809. }
  810. return bm
  811. }
  812. // set field if value's pointer is not nil.
  813. func (bm *BatchMsgUpdateOne) SetNotNilTagids(value *string) *BatchMsgUpdateOne {
  814. if value != nil {
  815. return bm.SetTagids(*value)
  816. }
  817. return bm
  818. }
  819. // set field if value's pointer is not nil.
  820. func (bm *BatchMsgCreate) SetNotNilTagids(value *string) *BatchMsgCreate {
  821. if value != nil {
  822. return bm.SetTagids(*value)
  823. }
  824. return bm
  825. }
  826. // set field if value's pointer is not nil.
  827. func (bm *BatchMsgUpdate) SetNotNilTotal(value *int32) *BatchMsgUpdate {
  828. if value != nil {
  829. return bm.SetTotal(*value)
  830. }
  831. return bm
  832. }
  833. // set field if value's pointer is not nil.
  834. func (bm *BatchMsgUpdateOne) SetNotNilTotal(value *int32) *BatchMsgUpdateOne {
  835. if value != nil {
  836. return bm.SetTotal(*value)
  837. }
  838. return bm
  839. }
  840. // set field if value's pointer is not nil.
  841. func (bm *BatchMsgCreate) SetNotNilTotal(value *int32) *BatchMsgCreate {
  842. if value != nil {
  843. return bm.SetTotal(*value)
  844. }
  845. return bm
  846. }
  847. // set field if value's pointer is not nil.
  848. func (bm *BatchMsgUpdate) SetNotNilSuccess(value *int32) *BatchMsgUpdate {
  849. if value != nil {
  850. return bm.SetSuccess(*value)
  851. }
  852. return bm
  853. }
  854. // set field if value's pointer is not nil.
  855. func (bm *BatchMsgUpdateOne) SetNotNilSuccess(value *int32) *BatchMsgUpdateOne {
  856. if value != nil {
  857. return bm.SetSuccess(*value)
  858. }
  859. return bm
  860. }
  861. // set field if value's pointer is not nil.
  862. func (bm *BatchMsgCreate) SetNotNilSuccess(value *int32) *BatchMsgCreate {
  863. if value != nil {
  864. return bm.SetSuccess(*value)
  865. }
  866. return bm
  867. }
  868. // set field if value's pointer is not nil.
  869. func (bm *BatchMsgUpdate) SetNotNilFail(value *int32) *BatchMsgUpdate {
  870. if value != nil {
  871. return bm.SetFail(*value)
  872. }
  873. return bm
  874. }
  875. // set field if value's pointer is not nil.
  876. func (bm *BatchMsgUpdateOne) SetNotNilFail(value *int32) *BatchMsgUpdateOne {
  877. if value != nil {
  878. return bm.SetFail(*value)
  879. }
  880. return bm
  881. }
  882. // set field if value's pointer is not nil.
  883. func (bm *BatchMsgCreate) SetNotNilFail(value *int32) *BatchMsgCreate {
  884. if value != nil {
  885. return bm.SetFail(*value)
  886. }
  887. return bm
  888. }
  889. // set field if value's pointer is not nil.
  890. func (bm *BatchMsgUpdate) SetNotNilStartTime(value *time.Time) *BatchMsgUpdate {
  891. if value != nil {
  892. return bm.SetStartTime(*value)
  893. }
  894. return bm
  895. }
  896. // set field if value's pointer is not nil.
  897. func (bm *BatchMsgUpdateOne) SetNotNilStartTime(value *time.Time) *BatchMsgUpdateOne {
  898. if value != nil {
  899. return bm.SetStartTime(*value)
  900. }
  901. return bm
  902. }
  903. // set field if value's pointer is not nil.
  904. func (bm *BatchMsgCreate) SetNotNilStartTime(value *time.Time) *BatchMsgCreate {
  905. if value != nil {
  906. return bm.SetStartTime(*value)
  907. }
  908. return bm
  909. }
  910. // set field if value's pointer is not nil.
  911. func (bm *BatchMsgUpdate) SetNotNilStopTime(value *time.Time) *BatchMsgUpdate {
  912. if value != nil {
  913. return bm.SetStopTime(*value)
  914. }
  915. return bm
  916. }
  917. // set field if value's pointer is not nil.
  918. func (bm *BatchMsgUpdateOne) SetNotNilStopTime(value *time.Time) *BatchMsgUpdateOne {
  919. if value != nil {
  920. return bm.SetStopTime(*value)
  921. }
  922. return bm
  923. }
  924. // set field if value's pointer is not nil.
  925. func (bm *BatchMsgCreate) SetNotNilStopTime(value *time.Time) *BatchMsgCreate {
  926. if value != nil {
  927. return bm.SetStopTime(*value)
  928. }
  929. return bm
  930. }
  931. // set field if value's pointer is not nil.
  932. func (bm *BatchMsgUpdate) SetNotNilSendTime(value *time.Time) *BatchMsgUpdate {
  933. if value != nil {
  934. return bm.SetSendTime(*value)
  935. }
  936. return bm
  937. }
  938. // set field if value's pointer is not nil.
  939. func (bm *BatchMsgUpdateOne) SetNotNilSendTime(value *time.Time) *BatchMsgUpdateOne {
  940. if value != nil {
  941. return bm.SetSendTime(*value)
  942. }
  943. return bm
  944. }
  945. // set field if value's pointer is not nil.
  946. func (bm *BatchMsgCreate) SetNotNilSendTime(value *time.Time) *BatchMsgCreate {
  947. if value != nil {
  948. return bm.SetSendTime(*value)
  949. }
  950. return bm
  951. }
  952. // set field if value's pointer is not nil.
  953. func (bm *BatchMsgUpdate) SetNotNilType(value *int32) *BatchMsgUpdate {
  954. if value != nil {
  955. return bm.SetType(*value)
  956. }
  957. return bm
  958. }
  959. // set field if value's pointer is not nil.
  960. func (bm *BatchMsgUpdateOne) SetNotNilType(value *int32) *BatchMsgUpdateOne {
  961. if value != nil {
  962. return bm.SetType(*value)
  963. }
  964. return bm
  965. }
  966. // set field if value's pointer is not nil.
  967. func (bm *BatchMsgCreate) SetNotNilType(value *int32) *BatchMsgCreate {
  968. if value != nil {
  969. return bm.SetType(*value)
  970. }
  971. return bm
  972. }
  973. // set field if value's pointer is not nil.
  974. func (bm *BatchMsgUpdate) SetNotNilOrganizationID(value *uint64) *BatchMsgUpdate {
  975. if value != nil {
  976. return bm.SetOrganizationID(*value)
  977. }
  978. return bm
  979. }
  980. // set field if value's pointer is not nil.
  981. func (bm *BatchMsgUpdateOne) SetNotNilOrganizationID(value *uint64) *BatchMsgUpdateOne {
  982. if value != nil {
  983. return bm.SetOrganizationID(*value)
  984. }
  985. return bm
  986. }
  987. // set field if value's pointer is not nil.
  988. func (bm *BatchMsgCreate) SetNotNilOrganizationID(value *uint64) *BatchMsgCreate {
  989. if value != nil {
  990. return bm.SetOrganizationID(*value)
  991. }
  992. return bm
  993. }
  994. // set field if value's pointer is not nil.
  995. func (c *CategoryUpdate) SetNotNilUpdatedAt(value *time.Time) *CategoryUpdate {
  996. if value != nil {
  997. return c.SetUpdatedAt(*value)
  998. }
  999. return c
  1000. }
  1001. // set field if value's pointer is not nil.
  1002. func (c *CategoryUpdateOne) SetNotNilUpdatedAt(value *time.Time) *CategoryUpdateOne {
  1003. if value != nil {
  1004. return c.SetUpdatedAt(*value)
  1005. }
  1006. return c
  1007. }
  1008. // set field if value's pointer is not nil.
  1009. func (c *CategoryCreate) SetNotNilUpdatedAt(value *time.Time) *CategoryCreate {
  1010. if value != nil {
  1011. return c.SetUpdatedAt(*value)
  1012. }
  1013. return c
  1014. }
  1015. // set field if value's pointer is not nil.
  1016. func (c *CategoryUpdate) SetNotNilDeletedAt(value *time.Time) *CategoryUpdate {
  1017. if value != nil {
  1018. return c.SetDeletedAt(*value)
  1019. }
  1020. return c
  1021. }
  1022. // set field if value's pointer is not nil.
  1023. func (c *CategoryUpdateOne) SetNotNilDeletedAt(value *time.Time) *CategoryUpdateOne {
  1024. if value != nil {
  1025. return c.SetDeletedAt(*value)
  1026. }
  1027. return c
  1028. }
  1029. // set field if value's pointer is not nil.
  1030. func (c *CategoryCreate) SetNotNilDeletedAt(value *time.Time) *CategoryCreate {
  1031. if value != nil {
  1032. return c.SetDeletedAt(*value)
  1033. }
  1034. return c
  1035. }
  1036. // set field if value's pointer is not nil.
  1037. func (c *CategoryUpdate) SetNotNilName(value *string) *CategoryUpdate {
  1038. if value != nil {
  1039. return c.SetName(*value)
  1040. }
  1041. return c
  1042. }
  1043. // set field if value's pointer is not nil.
  1044. func (c *CategoryUpdateOne) SetNotNilName(value *string) *CategoryUpdateOne {
  1045. if value != nil {
  1046. return c.SetName(*value)
  1047. }
  1048. return c
  1049. }
  1050. // set field if value's pointer is not nil.
  1051. func (c *CategoryCreate) SetNotNilName(value *string) *CategoryCreate {
  1052. if value != nil {
  1053. return c.SetName(*value)
  1054. }
  1055. return c
  1056. }
  1057. // set field if value's pointer is not nil.
  1058. func (c *CategoryUpdate) SetNotNilOrganizationID(value *uint64) *CategoryUpdate {
  1059. if value != nil {
  1060. return c.SetOrganizationID(*value)
  1061. }
  1062. return c
  1063. }
  1064. // set field if value's pointer is not nil.
  1065. func (c *CategoryUpdateOne) SetNotNilOrganizationID(value *uint64) *CategoryUpdateOne {
  1066. if value != nil {
  1067. return c.SetOrganizationID(*value)
  1068. }
  1069. return c
  1070. }
  1071. // set field if value's pointer is not nil.
  1072. func (c *CategoryCreate) SetNotNilOrganizationID(value *uint64) *CategoryCreate {
  1073. if value != nil {
  1074. return c.SetOrganizationID(*value)
  1075. }
  1076. return c
  1077. }
  1078. // set field if value's pointer is not nil.
  1079. func (cr *ChatRecordsUpdate) SetNotNilUpdatedAt(value *time.Time) *ChatRecordsUpdate {
  1080. if value != nil {
  1081. return cr.SetUpdatedAt(*value)
  1082. }
  1083. return cr
  1084. }
  1085. // set field if value's pointer is not nil.
  1086. func (cr *ChatRecordsUpdateOne) SetNotNilUpdatedAt(value *time.Time) *ChatRecordsUpdateOne {
  1087. if value != nil {
  1088. return cr.SetUpdatedAt(*value)
  1089. }
  1090. return cr
  1091. }
  1092. // set field if value's pointer is not nil.
  1093. func (cr *ChatRecordsCreate) SetNotNilUpdatedAt(value *time.Time) *ChatRecordsCreate {
  1094. if value != nil {
  1095. return cr.SetUpdatedAt(*value)
  1096. }
  1097. return cr
  1098. }
  1099. // set field if value's pointer is not nil.
  1100. func (cr *ChatRecordsUpdate) SetNotNilDeletedAt(value *time.Time) *ChatRecordsUpdate {
  1101. if value != nil {
  1102. return cr.SetDeletedAt(*value)
  1103. }
  1104. return cr
  1105. }
  1106. // set field if value's pointer is not nil.
  1107. func (cr *ChatRecordsUpdateOne) SetNotNilDeletedAt(value *time.Time) *ChatRecordsUpdateOne {
  1108. if value != nil {
  1109. return cr.SetDeletedAt(*value)
  1110. }
  1111. return cr
  1112. }
  1113. // set field if value's pointer is not nil.
  1114. func (cr *ChatRecordsCreate) SetNotNilDeletedAt(value *time.Time) *ChatRecordsCreate {
  1115. if value != nil {
  1116. return cr.SetDeletedAt(*value)
  1117. }
  1118. return cr
  1119. }
  1120. // set field if value's pointer is not nil.
  1121. func (cr *ChatRecordsUpdate) SetNotNilContent(value *string) *ChatRecordsUpdate {
  1122. if value != nil {
  1123. return cr.SetContent(*value)
  1124. }
  1125. return cr
  1126. }
  1127. // set field if value's pointer is not nil.
  1128. func (cr *ChatRecordsUpdateOne) SetNotNilContent(value *string) *ChatRecordsUpdateOne {
  1129. if value != nil {
  1130. return cr.SetContent(*value)
  1131. }
  1132. return cr
  1133. }
  1134. // set field if value's pointer is not nil.
  1135. func (cr *ChatRecordsCreate) SetNotNilContent(value *string) *ChatRecordsCreate {
  1136. if value != nil {
  1137. return cr.SetContent(*value)
  1138. }
  1139. return cr
  1140. }
  1141. // set field if value's pointer is not nil.
  1142. func (cr *ChatRecordsUpdate) SetNotNilContentType(value *uint8) *ChatRecordsUpdate {
  1143. if value != nil {
  1144. return cr.SetContentType(*value)
  1145. }
  1146. return cr
  1147. }
  1148. // set field if value's pointer is not nil.
  1149. func (cr *ChatRecordsUpdateOne) SetNotNilContentType(value *uint8) *ChatRecordsUpdateOne {
  1150. if value != nil {
  1151. return cr.SetContentType(*value)
  1152. }
  1153. return cr
  1154. }
  1155. // set field if value's pointer is not nil.
  1156. func (cr *ChatRecordsCreate) SetNotNilContentType(value *uint8) *ChatRecordsCreate {
  1157. if value != nil {
  1158. return cr.SetContentType(*value)
  1159. }
  1160. return cr
  1161. }
  1162. // set field if value's pointer is not nil.
  1163. func (cr *ChatRecordsUpdate) SetNotNilSessionID(value *uint64) *ChatRecordsUpdate {
  1164. if value != nil {
  1165. return cr.SetSessionID(*value)
  1166. }
  1167. return cr
  1168. }
  1169. // set field if value's pointer is not nil.
  1170. func (cr *ChatRecordsUpdateOne) SetNotNilSessionID(value *uint64) *ChatRecordsUpdateOne {
  1171. if value != nil {
  1172. return cr.SetSessionID(*value)
  1173. }
  1174. return cr
  1175. }
  1176. // set field if value's pointer is not nil.
  1177. func (cr *ChatRecordsCreate) SetNotNilSessionID(value *uint64) *ChatRecordsCreate {
  1178. if value != nil {
  1179. return cr.SetSessionID(*value)
  1180. }
  1181. return cr
  1182. }
  1183. // set field if value's pointer is not nil.
  1184. func (cr *ChatRecordsUpdate) SetNotNilUserID(value *uint64) *ChatRecordsUpdate {
  1185. if value != nil {
  1186. return cr.SetUserID(*value)
  1187. }
  1188. return cr
  1189. }
  1190. // set field if value's pointer is not nil.
  1191. func (cr *ChatRecordsUpdateOne) SetNotNilUserID(value *uint64) *ChatRecordsUpdateOne {
  1192. if value != nil {
  1193. return cr.SetUserID(*value)
  1194. }
  1195. return cr
  1196. }
  1197. // set field if value's pointer is not nil.
  1198. func (cr *ChatRecordsCreate) SetNotNilUserID(value *uint64) *ChatRecordsCreate {
  1199. if value != nil {
  1200. return cr.SetUserID(*value)
  1201. }
  1202. return cr
  1203. }
  1204. // set field if value's pointer is not nil.
  1205. func (cr *ChatRecordsUpdate) SetNotNilBotID(value *uint64) *ChatRecordsUpdate {
  1206. if value != nil {
  1207. return cr.SetBotID(*value)
  1208. }
  1209. return cr
  1210. }
  1211. // set field if value's pointer is not nil.
  1212. func (cr *ChatRecordsUpdateOne) SetNotNilBotID(value *uint64) *ChatRecordsUpdateOne {
  1213. if value != nil {
  1214. return cr.SetBotID(*value)
  1215. }
  1216. return cr
  1217. }
  1218. // set field if value's pointer is not nil.
  1219. func (cr *ChatRecordsCreate) SetNotNilBotID(value *uint64) *ChatRecordsCreate {
  1220. if value != nil {
  1221. return cr.SetBotID(*value)
  1222. }
  1223. return cr
  1224. }
  1225. // set field if value's pointer is not nil.
  1226. func (cr *ChatRecordsUpdate) SetNotNilBotType(value *uint8) *ChatRecordsUpdate {
  1227. if value != nil {
  1228. return cr.SetBotType(*value)
  1229. }
  1230. return cr
  1231. }
  1232. // set field if value's pointer is not nil.
  1233. func (cr *ChatRecordsUpdateOne) SetNotNilBotType(value *uint8) *ChatRecordsUpdateOne {
  1234. if value != nil {
  1235. return cr.SetBotType(*value)
  1236. }
  1237. return cr
  1238. }
  1239. // set field if value's pointer is not nil.
  1240. func (cr *ChatRecordsCreate) SetNotNilBotType(value *uint8) *ChatRecordsCreate {
  1241. if value != nil {
  1242. return cr.SetBotType(*value)
  1243. }
  1244. return cr
  1245. }
  1246. // set field if value's pointer is not nil.
  1247. func (cs *ChatSessionUpdate) SetNotNilUpdatedAt(value *time.Time) *ChatSessionUpdate {
  1248. if value != nil {
  1249. return cs.SetUpdatedAt(*value)
  1250. }
  1251. return cs
  1252. }
  1253. // set field if value's pointer is not nil.
  1254. func (cs *ChatSessionUpdateOne) SetNotNilUpdatedAt(value *time.Time) *ChatSessionUpdateOne {
  1255. if value != nil {
  1256. return cs.SetUpdatedAt(*value)
  1257. }
  1258. return cs
  1259. }
  1260. // set field if value's pointer is not nil.
  1261. func (cs *ChatSessionCreate) SetNotNilUpdatedAt(value *time.Time) *ChatSessionCreate {
  1262. if value != nil {
  1263. return cs.SetUpdatedAt(*value)
  1264. }
  1265. return cs
  1266. }
  1267. // set field if value's pointer is not nil.
  1268. func (cs *ChatSessionUpdate) SetNotNilDeletedAt(value *time.Time) *ChatSessionUpdate {
  1269. if value != nil {
  1270. return cs.SetDeletedAt(*value)
  1271. }
  1272. return cs
  1273. }
  1274. // set field if value's pointer is not nil.
  1275. func (cs *ChatSessionUpdateOne) SetNotNilDeletedAt(value *time.Time) *ChatSessionUpdateOne {
  1276. if value != nil {
  1277. return cs.SetDeletedAt(*value)
  1278. }
  1279. return cs
  1280. }
  1281. // set field if value's pointer is not nil.
  1282. func (cs *ChatSessionCreate) SetNotNilDeletedAt(value *time.Time) *ChatSessionCreate {
  1283. if value != nil {
  1284. return cs.SetDeletedAt(*value)
  1285. }
  1286. return cs
  1287. }
  1288. // set field if value's pointer is not nil.
  1289. func (cs *ChatSessionUpdate) SetNotNilName(value *string) *ChatSessionUpdate {
  1290. if value != nil {
  1291. return cs.SetName(*value)
  1292. }
  1293. return cs
  1294. }
  1295. // set field if value's pointer is not nil.
  1296. func (cs *ChatSessionUpdateOne) SetNotNilName(value *string) *ChatSessionUpdateOne {
  1297. if value != nil {
  1298. return cs.SetName(*value)
  1299. }
  1300. return cs
  1301. }
  1302. // set field if value's pointer is not nil.
  1303. func (cs *ChatSessionCreate) SetNotNilName(value *string) *ChatSessionCreate {
  1304. if value != nil {
  1305. return cs.SetName(*value)
  1306. }
  1307. return cs
  1308. }
  1309. // set field if value's pointer is not nil.
  1310. func (cs *ChatSessionUpdate) SetNotNilUserID(value *uint64) *ChatSessionUpdate {
  1311. if value != nil {
  1312. return cs.SetUserID(*value)
  1313. }
  1314. return cs
  1315. }
  1316. // set field if value's pointer is not nil.
  1317. func (cs *ChatSessionUpdateOne) SetNotNilUserID(value *uint64) *ChatSessionUpdateOne {
  1318. if value != nil {
  1319. return cs.SetUserID(*value)
  1320. }
  1321. return cs
  1322. }
  1323. // set field if value's pointer is not nil.
  1324. func (cs *ChatSessionCreate) SetNotNilUserID(value *uint64) *ChatSessionCreate {
  1325. if value != nil {
  1326. return cs.SetUserID(*value)
  1327. }
  1328. return cs
  1329. }
  1330. // set field if value's pointer is not nil.
  1331. func (cs *ChatSessionUpdate) SetNotNilBotID(value *uint64) *ChatSessionUpdate {
  1332. if value != nil {
  1333. return cs.SetBotID(*value)
  1334. }
  1335. return cs
  1336. }
  1337. // set field if value's pointer is not nil.
  1338. func (cs *ChatSessionUpdateOne) SetNotNilBotID(value *uint64) *ChatSessionUpdateOne {
  1339. if value != nil {
  1340. return cs.SetBotID(*value)
  1341. }
  1342. return cs
  1343. }
  1344. // set field if value's pointer is not nil.
  1345. func (cs *ChatSessionCreate) SetNotNilBotID(value *uint64) *ChatSessionCreate {
  1346. if value != nil {
  1347. return cs.SetBotID(*value)
  1348. }
  1349. return cs
  1350. }
  1351. // set field if value's pointer is not nil.
  1352. func (cs *ChatSessionUpdate) SetNotNilBotType(value *uint8) *ChatSessionUpdate {
  1353. if value != nil {
  1354. return cs.SetBotType(*value)
  1355. }
  1356. return cs
  1357. }
  1358. // set field if value's pointer is not nil.
  1359. func (cs *ChatSessionUpdateOne) SetNotNilBotType(value *uint8) *ChatSessionUpdateOne {
  1360. if value != nil {
  1361. return cs.SetBotType(*value)
  1362. }
  1363. return cs
  1364. }
  1365. // set field if value's pointer is not nil.
  1366. func (cs *ChatSessionCreate) SetNotNilBotType(value *uint8) *ChatSessionCreate {
  1367. if value != nil {
  1368. return cs.SetBotType(*value)
  1369. }
  1370. return cs
  1371. }
  1372. // set field if value's pointer is not nil.
  1373. func (c *ContactUpdate) SetNotNilUpdatedAt(value *time.Time) *ContactUpdate {
  1374. if value != nil {
  1375. return c.SetUpdatedAt(*value)
  1376. }
  1377. return c
  1378. }
  1379. // set field if value's pointer is not nil.
  1380. func (c *ContactUpdateOne) SetNotNilUpdatedAt(value *time.Time) *ContactUpdateOne {
  1381. if value != nil {
  1382. return c.SetUpdatedAt(*value)
  1383. }
  1384. return c
  1385. }
  1386. // set field if value's pointer is not nil.
  1387. func (c *ContactCreate) SetNotNilUpdatedAt(value *time.Time) *ContactCreate {
  1388. if value != nil {
  1389. return c.SetUpdatedAt(*value)
  1390. }
  1391. return c
  1392. }
  1393. // set field if value's pointer is not nil.
  1394. func (c *ContactUpdate) SetNotNilStatus(value *uint8) *ContactUpdate {
  1395. if value != nil {
  1396. return c.SetStatus(*value)
  1397. }
  1398. return c
  1399. }
  1400. // set field if value's pointer is not nil.
  1401. func (c *ContactUpdateOne) SetNotNilStatus(value *uint8) *ContactUpdateOne {
  1402. if value != nil {
  1403. return c.SetStatus(*value)
  1404. }
  1405. return c
  1406. }
  1407. // set field if value's pointer is not nil.
  1408. func (c *ContactCreate) SetNotNilStatus(value *uint8) *ContactCreate {
  1409. if value != nil {
  1410. return c.SetStatus(*value)
  1411. }
  1412. return c
  1413. }
  1414. // set field if value's pointer is not nil.
  1415. func (c *ContactUpdate) SetNotNilDeletedAt(value *time.Time) *ContactUpdate {
  1416. if value != nil {
  1417. return c.SetDeletedAt(*value)
  1418. }
  1419. return c
  1420. }
  1421. // set field if value's pointer is not nil.
  1422. func (c *ContactUpdateOne) SetNotNilDeletedAt(value *time.Time) *ContactUpdateOne {
  1423. if value != nil {
  1424. return c.SetDeletedAt(*value)
  1425. }
  1426. return c
  1427. }
  1428. // set field if value's pointer is not nil.
  1429. func (c *ContactCreate) SetNotNilDeletedAt(value *time.Time) *ContactCreate {
  1430. if value != nil {
  1431. return c.SetDeletedAt(*value)
  1432. }
  1433. return c
  1434. }
  1435. // set field if value's pointer is not nil.
  1436. func (c *ContactUpdate) SetNotNilWxWxid(value *string) *ContactUpdate {
  1437. if value != nil {
  1438. return c.SetWxWxid(*value)
  1439. }
  1440. return c
  1441. }
  1442. // set field if value's pointer is not nil.
  1443. func (c *ContactUpdateOne) SetNotNilWxWxid(value *string) *ContactUpdateOne {
  1444. if value != nil {
  1445. return c.SetWxWxid(*value)
  1446. }
  1447. return c
  1448. }
  1449. // set field if value's pointer is not nil.
  1450. func (c *ContactCreate) SetNotNilWxWxid(value *string) *ContactCreate {
  1451. if value != nil {
  1452. return c.SetWxWxid(*value)
  1453. }
  1454. return c
  1455. }
  1456. // set field if value's pointer is not nil.
  1457. func (c *ContactUpdate) SetNotNilType(value *int) *ContactUpdate {
  1458. if value != nil {
  1459. return c.SetType(*value)
  1460. }
  1461. return c
  1462. }
  1463. // set field if value's pointer is not nil.
  1464. func (c *ContactUpdateOne) SetNotNilType(value *int) *ContactUpdateOne {
  1465. if value != nil {
  1466. return c.SetType(*value)
  1467. }
  1468. return c
  1469. }
  1470. // set field if value's pointer is not nil.
  1471. func (c *ContactCreate) SetNotNilType(value *int) *ContactCreate {
  1472. if value != nil {
  1473. return c.SetType(*value)
  1474. }
  1475. return c
  1476. }
  1477. // set field if value's pointer is not nil.
  1478. func (c *ContactUpdate) SetNotNilWxid(value *string) *ContactUpdate {
  1479. if value != nil {
  1480. return c.SetWxid(*value)
  1481. }
  1482. return c
  1483. }
  1484. // set field if value's pointer is not nil.
  1485. func (c *ContactUpdateOne) SetNotNilWxid(value *string) *ContactUpdateOne {
  1486. if value != nil {
  1487. return c.SetWxid(*value)
  1488. }
  1489. return c
  1490. }
  1491. // set field if value's pointer is not nil.
  1492. func (c *ContactCreate) SetNotNilWxid(value *string) *ContactCreate {
  1493. if value != nil {
  1494. return c.SetWxid(*value)
  1495. }
  1496. return c
  1497. }
  1498. // set field if value's pointer is not nil.
  1499. func (c *ContactUpdate) SetNotNilAccount(value *string) *ContactUpdate {
  1500. if value != nil {
  1501. return c.SetAccount(*value)
  1502. }
  1503. return c
  1504. }
  1505. // set field if value's pointer is not nil.
  1506. func (c *ContactUpdateOne) SetNotNilAccount(value *string) *ContactUpdateOne {
  1507. if value != nil {
  1508. return c.SetAccount(*value)
  1509. }
  1510. return c
  1511. }
  1512. // set field if value's pointer is not nil.
  1513. func (c *ContactCreate) SetNotNilAccount(value *string) *ContactCreate {
  1514. if value != nil {
  1515. return c.SetAccount(*value)
  1516. }
  1517. return c
  1518. }
  1519. // set field if value's pointer is not nil.
  1520. func (c *ContactUpdate) SetNotNilNickname(value *string) *ContactUpdate {
  1521. if value != nil {
  1522. return c.SetNickname(*value)
  1523. }
  1524. return c
  1525. }
  1526. // set field if value's pointer is not nil.
  1527. func (c *ContactUpdateOne) SetNotNilNickname(value *string) *ContactUpdateOne {
  1528. if value != nil {
  1529. return c.SetNickname(*value)
  1530. }
  1531. return c
  1532. }
  1533. // set field if value's pointer is not nil.
  1534. func (c *ContactCreate) SetNotNilNickname(value *string) *ContactCreate {
  1535. if value != nil {
  1536. return c.SetNickname(*value)
  1537. }
  1538. return c
  1539. }
  1540. // set field if value's pointer is not nil.
  1541. func (c *ContactUpdate) SetNotNilMarkname(value *string) *ContactUpdate {
  1542. if value != nil {
  1543. return c.SetMarkname(*value)
  1544. }
  1545. return c
  1546. }
  1547. // set field if value's pointer is not nil.
  1548. func (c *ContactUpdateOne) SetNotNilMarkname(value *string) *ContactUpdateOne {
  1549. if value != nil {
  1550. return c.SetMarkname(*value)
  1551. }
  1552. return c
  1553. }
  1554. // set field if value's pointer is not nil.
  1555. func (c *ContactCreate) SetNotNilMarkname(value *string) *ContactCreate {
  1556. if value != nil {
  1557. return c.SetMarkname(*value)
  1558. }
  1559. return c
  1560. }
  1561. // set field if value's pointer is not nil.
  1562. func (c *ContactUpdate) SetNotNilHeadimg(value *string) *ContactUpdate {
  1563. if value != nil {
  1564. return c.SetHeadimg(*value)
  1565. }
  1566. return c
  1567. }
  1568. // set field if value's pointer is not nil.
  1569. func (c *ContactUpdateOne) SetNotNilHeadimg(value *string) *ContactUpdateOne {
  1570. if value != nil {
  1571. return c.SetHeadimg(*value)
  1572. }
  1573. return c
  1574. }
  1575. // set field if value's pointer is not nil.
  1576. func (c *ContactCreate) SetNotNilHeadimg(value *string) *ContactCreate {
  1577. if value != nil {
  1578. return c.SetHeadimg(*value)
  1579. }
  1580. return c
  1581. }
  1582. // set field if value's pointer is not nil.
  1583. func (c *ContactUpdate) SetNotNilSex(value *int) *ContactUpdate {
  1584. if value != nil {
  1585. return c.SetSex(*value)
  1586. }
  1587. return c
  1588. }
  1589. // set field if value's pointer is not nil.
  1590. func (c *ContactUpdateOne) SetNotNilSex(value *int) *ContactUpdateOne {
  1591. if value != nil {
  1592. return c.SetSex(*value)
  1593. }
  1594. return c
  1595. }
  1596. // set field if value's pointer is not nil.
  1597. func (c *ContactCreate) SetNotNilSex(value *int) *ContactCreate {
  1598. if value != nil {
  1599. return c.SetSex(*value)
  1600. }
  1601. return c
  1602. }
  1603. // set field if value's pointer is not nil.
  1604. func (c *ContactUpdate) SetNotNilStarrole(value *string) *ContactUpdate {
  1605. if value != nil {
  1606. return c.SetStarrole(*value)
  1607. }
  1608. return c
  1609. }
  1610. // set field if value's pointer is not nil.
  1611. func (c *ContactUpdateOne) SetNotNilStarrole(value *string) *ContactUpdateOne {
  1612. if value != nil {
  1613. return c.SetStarrole(*value)
  1614. }
  1615. return c
  1616. }
  1617. // set field if value's pointer is not nil.
  1618. func (c *ContactCreate) SetNotNilStarrole(value *string) *ContactCreate {
  1619. if value != nil {
  1620. return c.SetStarrole(*value)
  1621. }
  1622. return c
  1623. }
  1624. // set field if value's pointer is not nil.
  1625. func (c *ContactUpdate) SetNotNilDontseeit(value *int) *ContactUpdate {
  1626. if value != nil {
  1627. return c.SetDontseeit(*value)
  1628. }
  1629. return c
  1630. }
  1631. // set field if value's pointer is not nil.
  1632. func (c *ContactUpdateOne) SetNotNilDontseeit(value *int) *ContactUpdateOne {
  1633. if value != nil {
  1634. return c.SetDontseeit(*value)
  1635. }
  1636. return c
  1637. }
  1638. // set field if value's pointer is not nil.
  1639. func (c *ContactCreate) SetNotNilDontseeit(value *int) *ContactCreate {
  1640. if value != nil {
  1641. return c.SetDontseeit(*value)
  1642. }
  1643. return c
  1644. }
  1645. // set field if value's pointer is not nil.
  1646. func (c *ContactUpdate) SetNotNilDontseeme(value *int) *ContactUpdate {
  1647. if value != nil {
  1648. return c.SetDontseeme(*value)
  1649. }
  1650. return c
  1651. }
  1652. // set field if value's pointer is not nil.
  1653. func (c *ContactUpdateOne) SetNotNilDontseeme(value *int) *ContactUpdateOne {
  1654. if value != nil {
  1655. return c.SetDontseeme(*value)
  1656. }
  1657. return c
  1658. }
  1659. // set field if value's pointer is not nil.
  1660. func (c *ContactCreate) SetNotNilDontseeme(value *int) *ContactCreate {
  1661. if value != nil {
  1662. return c.SetDontseeme(*value)
  1663. }
  1664. return c
  1665. }
  1666. // set field if value's pointer is not nil.
  1667. func (c *ContactUpdate) SetNotNilLag(value *string) *ContactUpdate {
  1668. if value != nil {
  1669. return c.SetLag(*value)
  1670. }
  1671. return c
  1672. }
  1673. // set field if value's pointer is not nil.
  1674. func (c *ContactUpdateOne) SetNotNilLag(value *string) *ContactUpdateOne {
  1675. if value != nil {
  1676. return c.SetLag(*value)
  1677. }
  1678. return c
  1679. }
  1680. // set field if value's pointer is not nil.
  1681. func (c *ContactCreate) SetNotNilLag(value *string) *ContactCreate {
  1682. if value != nil {
  1683. return c.SetLag(*value)
  1684. }
  1685. return c
  1686. }
  1687. // set field if value's pointer is not nil.
  1688. func (c *ContactUpdate) SetNotNilGid(value *string) *ContactUpdate {
  1689. if value != nil {
  1690. return c.SetGid(*value)
  1691. }
  1692. return c
  1693. }
  1694. // set field if value's pointer is not nil.
  1695. func (c *ContactUpdateOne) SetNotNilGid(value *string) *ContactUpdateOne {
  1696. if value != nil {
  1697. return c.SetGid(*value)
  1698. }
  1699. return c
  1700. }
  1701. // set field if value's pointer is not nil.
  1702. func (c *ContactCreate) SetNotNilGid(value *string) *ContactCreate {
  1703. if value != nil {
  1704. return c.SetGid(*value)
  1705. }
  1706. return c
  1707. }
  1708. // set field if value's pointer is not nil.
  1709. func (c *ContactUpdate) SetNotNilGname(value *string) *ContactUpdate {
  1710. if value != nil {
  1711. return c.SetGname(*value)
  1712. }
  1713. return c
  1714. }
  1715. // set field if value's pointer is not nil.
  1716. func (c *ContactUpdateOne) SetNotNilGname(value *string) *ContactUpdateOne {
  1717. if value != nil {
  1718. return c.SetGname(*value)
  1719. }
  1720. return c
  1721. }
  1722. // set field if value's pointer is not nil.
  1723. func (c *ContactCreate) SetNotNilGname(value *string) *ContactCreate {
  1724. if value != nil {
  1725. return c.SetGname(*value)
  1726. }
  1727. return c
  1728. }
  1729. // set field if value's pointer is not nil.
  1730. func (c *ContactUpdate) SetNotNilV3(value *string) *ContactUpdate {
  1731. if value != nil {
  1732. return c.SetV3(*value)
  1733. }
  1734. return c
  1735. }
  1736. // set field if value's pointer is not nil.
  1737. func (c *ContactUpdateOne) SetNotNilV3(value *string) *ContactUpdateOne {
  1738. if value != nil {
  1739. return c.SetV3(*value)
  1740. }
  1741. return c
  1742. }
  1743. // set field if value's pointer is not nil.
  1744. func (c *ContactCreate) SetNotNilV3(value *string) *ContactCreate {
  1745. if value != nil {
  1746. return c.SetV3(*value)
  1747. }
  1748. return c
  1749. }
  1750. // set field if value's pointer is not nil.
  1751. func (c *ContactUpdate) SetNotNilOrganizationID(value *uint64) *ContactUpdate {
  1752. if value != nil {
  1753. return c.SetOrganizationID(*value)
  1754. }
  1755. return c
  1756. }
  1757. // set field if value's pointer is not nil.
  1758. func (c *ContactUpdateOne) SetNotNilOrganizationID(value *uint64) *ContactUpdateOne {
  1759. if value != nil {
  1760. return c.SetOrganizationID(*value)
  1761. }
  1762. return c
  1763. }
  1764. // set field if value's pointer is not nil.
  1765. func (c *ContactCreate) SetNotNilOrganizationID(value *uint64) *ContactCreate {
  1766. if value != nil {
  1767. return c.SetOrganizationID(*value)
  1768. }
  1769. return c
  1770. }
  1771. // set field if value's pointer is not nil.
  1772. func (e *EmployeeUpdate) SetNotNilUpdatedAt(value *time.Time) *EmployeeUpdate {
  1773. if value != nil {
  1774. return e.SetUpdatedAt(*value)
  1775. }
  1776. return e
  1777. }
  1778. // set field if value's pointer is not nil.
  1779. func (e *EmployeeUpdateOne) SetNotNilUpdatedAt(value *time.Time) *EmployeeUpdateOne {
  1780. if value != nil {
  1781. return e.SetUpdatedAt(*value)
  1782. }
  1783. return e
  1784. }
  1785. // set field if value's pointer is not nil.
  1786. func (e *EmployeeCreate) SetNotNilUpdatedAt(value *time.Time) *EmployeeCreate {
  1787. if value != nil {
  1788. return e.SetUpdatedAt(*value)
  1789. }
  1790. return e
  1791. }
  1792. // set field if value's pointer is not nil.
  1793. func (e *EmployeeUpdate) SetNotNilDeletedAt(value *time.Time) *EmployeeUpdate {
  1794. if value != nil {
  1795. return e.SetDeletedAt(*value)
  1796. }
  1797. return e
  1798. }
  1799. // set field if value's pointer is not nil.
  1800. func (e *EmployeeUpdateOne) SetNotNilDeletedAt(value *time.Time) *EmployeeUpdateOne {
  1801. if value != nil {
  1802. return e.SetDeletedAt(*value)
  1803. }
  1804. return e
  1805. }
  1806. // set field if value's pointer is not nil.
  1807. func (e *EmployeeCreate) SetNotNilDeletedAt(value *time.Time) *EmployeeCreate {
  1808. if value != nil {
  1809. return e.SetDeletedAt(*value)
  1810. }
  1811. return e
  1812. }
  1813. // set field if value's pointer is not nil.
  1814. func (e *EmployeeUpdate) SetNotNilTitle(value *string) *EmployeeUpdate {
  1815. if value != nil {
  1816. return e.SetTitle(*value)
  1817. }
  1818. return e
  1819. }
  1820. // set field if value's pointer is not nil.
  1821. func (e *EmployeeUpdateOne) SetNotNilTitle(value *string) *EmployeeUpdateOne {
  1822. if value != nil {
  1823. return e.SetTitle(*value)
  1824. }
  1825. return e
  1826. }
  1827. // set field if value's pointer is not nil.
  1828. func (e *EmployeeCreate) SetNotNilTitle(value *string) *EmployeeCreate {
  1829. if value != nil {
  1830. return e.SetTitle(*value)
  1831. }
  1832. return e
  1833. }
  1834. // set field if value's pointer is not nil.
  1835. func (e *EmployeeUpdate) SetNotNilAvatar(value *string) *EmployeeUpdate {
  1836. if value != nil {
  1837. return e.SetAvatar(*value)
  1838. }
  1839. return e
  1840. }
  1841. // set field if value's pointer is not nil.
  1842. func (e *EmployeeUpdateOne) SetNotNilAvatar(value *string) *EmployeeUpdateOne {
  1843. if value != nil {
  1844. return e.SetAvatar(*value)
  1845. }
  1846. return e
  1847. }
  1848. // set field if value's pointer is not nil.
  1849. func (e *EmployeeCreate) SetNotNilAvatar(value *string) *EmployeeCreate {
  1850. if value != nil {
  1851. return e.SetAvatar(*value)
  1852. }
  1853. return e
  1854. }
  1855. // set field if value's pointer is not nil.
  1856. func (e *EmployeeUpdate) SetNotNilTags(value *string) *EmployeeUpdate {
  1857. if value != nil {
  1858. return e.SetTags(*value)
  1859. }
  1860. return e
  1861. }
  1862. // set field if value's pointer is not nil.
  1863. func (e *EmployeeUpdateOne) SetNotNilTags(value *string) *EmployeeUpdateOne {
  1864. if value != nil {
  1865. return e.SetTags(*value)
  1866. }
  1867. return e
  1868. }
  1869. // set field if value's pointer is not nil.
  1870. func (e *EmployeeCreate) SetNotNilTags(value *string) *EmployeeCreate {
  1871. if value != nil {
  1872. return e.SetTags(*value)
  1873. }
  1874. return e
  1875. }
  1876. // set field if value's pointer is not nil.
  1877. func (e *EmployeeUpdate) SetNotNilHireCount(value *int) *EmployeeUpdate {
  1878. if value != nil {
  1879. return e.SetHireCount(*value)
  1880. }
  1881. return e
  1882. }
  1883. // set field if value's pointer is not nil.
  1884. func (e *EmployeeUpdateOne) SetNotNilHireCount(value *int) *EmployeeUpdateOne {
  1885. if value != nil {
  1886. return e.SetHireCount(*value)
  1887. }
  1888. return e
  1889. }
  1890. // set field if value's pointer is not nil.
  1891. func (e *EmployeeCreate) SetNotNilHireCount(value *int) *EmployeeCreate {
  1892. if value != nil {
  1893. return e.SetHireCount(*value)
  1894. }
  1895. return e
  1896. }
  1897. // set field if value's pointer is not nil.
  1898. func (e *EmployeeUpdate) SetNotNilServiceCount(value *int) *EmployeeUpdate {
  1899. if value != nil {
  1900. return e.SetServiceCount(*value)
  1901. }
  1902. return e
  1903. }
  1904. // set field if value's pointer is not nil.
  1905. func (e *EmployeeUpdateOne) SetNotNilServiceCount(value *int) *EmployeeUpdateOne {
  1906. if value != nil {
  1907. return e.SetServiceCount(*value)
  1908. }
  1909. return e
  1910. }
  1911. // set field if value's pointer is not nil.
  1912. func (e *EmployeeCreate) SetNotNilServiceCount(value *int) *EmployeeCreate {
  1913. if value != nil {
  1914. return e.SetServiceCount(*value)
  1915. }
  1916. return e
  1917. }
  1918. // set field if value's pointer is not nil.
  1919. func (e *EmployeeUpdate) SetNotNilAchievementCount(value *int) *EmployeeUpdate {
  1920. if value != nil {
  1921. return e.SetAchievementCount(*value)
  1922. }
  1923. return e
  1924. }
  1925. // set field if value's pointer is not nil.
  1926. func (e *EmployeeUpdateOne) SetNotNilAchievementCount(value *int) *EmployeeUpdateOne {
  1927. if value != nil {
  1928. return e.SetAchievementCount(*value)
  1929. }
  1930. return e
  1931. }
  1932. // set field if value's pointer is not nil.
  1933. func (e *EmployeeCreate) SetNotNilAchievementCount(value *int) *EmployeeCreate {
  1934. if value != nil {
  1935. return e.SetAchievementCount(*value)
  1936. }
  1937. return e
  1938. }
  1939. // set field if value's pointer is not nil.
  1940. func (e *EmployeeUpdate) SetNotNilIntro(value *string) *EmployeeUpdate {
  1941. if value != nil {
  1942. return e.SetIntro(*value)
  1943. }
  1944. return e
  1945. }
  1946. // set field if value's pointer is not nil.
  1947. func (e *EmployeeUpdateOne) SetNotNilIntro(value *string) *EmployeeUpdateOne {
  1948. if value != nil {
  1949. return e.SetIntro(*value)
  1950. }
  1951. return e
  1952. }
  1953. // set field if value's pointer is not nil.
  1954. func (e *EmployeeCreate) SetNotNilIntro(value *string) *EmployeeCreate {
  1955. if value != nil {
  1956. return e.SetIntro(*value)
  1957. }
  1958. return e
  1959. }
  1960. // set field if value's pointer is not nil.
  1961. func (e *EmployeeUpdate) SetNotNilEstimate(value *string) *EmployeeUpdate {
  1962. if value != nil {
  1963. return e.SetEstimate(*value)
  1964. }
  1965. return e
  1966. }
  1967. // set field if value's pointer is not nil.
  1968. func (e *EmployeeUpdateOne) SetNotNilEstimate(value *string) *EmployeeUpdateOne {
  1969. if value != nil {
  1970. return e.SetEstimate(*value)
  1971. }
  1972. return e
  1973. }
  1974. // set field if value's pointer is not nil.
  1975. func (e *EmployeeCreate) SetNotNilEstimate(value *string) *EmployeeCreate {
  1976. if value != nil {
  1977. return e.SetEstimate(*value)
  1978. }
  1979. return e
  1980. }
  1981. // set field if value's pointer is not nil.
  1982. func (e *EmployeeUpdate) SetNotNilSkill(value *string) *EmployeeUpdate {
  1983. if value != nil {
  1984. return e.SetSkill(*value)
  1985. }
  1986. return e
  1987. }
  1988. // set field if value's pointer is not nil.
  1989. func (e *EmployeeUpdateOne) SetNotNilSkill(value *string) *EmployeeUpdateOne {
  1990. if value != nil {
  1991. return e.SetSkill(*value)
  1992. }
  1993. return e
  1994. }
  1995. // set field if value's pointer is not nil.
  1996. func (e *EmployeeCreate) SetNotNilSkill(value *string) *EmployeeCreate {
  1997. if value != nil {
  1998. return e.SetSkill(*value)
  1999. }
  2000. return e
  2001. }
  2002. // set field if value's pointer is not nil.
  2003. func (e *EmployeeUpdate) SetNotNilAbilityType(value *string) *EmployeeUpdate {
  2004. if value != nil {
  2005. return e.SetAbilityType(*value)
  2006. }
  2007. return e
  2008. }
  2009. // set field if value's pointer is not nil.
  2010. func (e *EmployeeUpdateOne) SetNotNilAbilityType(value *string) *EmployeeUpdateOne {
  2011. if value != nil {
  2012. return e.SetAbilityType(*value)
  2013. }
  2014. return e
  2015. }
  2016. // set field if value's pointer is not nil.
  2017. func (e *EmployeeCreate) SetNotNilAbilityType(value *string) *EmployeeCreate {
  2018. if value != nil {
  2019. return e.SetAbilityType(*value)
  2020. }
  2021. return e
  2022. }
  2023. // set field if value's pointer is not nil.
  2024. func (e *EmployeeUpdate) SetNotNilScene(value *string) *EmployeeUpdate {
  2025. if value != nil {
  2026. return e.SetScene(*value)
  2027. }
  2028. return e
  2029. }
  2030. // set field if value's pointer is not nil.
  2031. func (e *EmployeeUpdateOne) SetNotNilScene(value *string) *EmployeeUpdateOne {
  2032. if value != nil {
  2033. return e.SetScene(*value)
  2034. }
  2035. return e
  2036. }
  2037. // set field if value's pointer is not nil.
  2038. func (e *EmployeeCreate) SetNotNilScene(value *string) *EmployeeCreate {
  2039. if value != nil {
  2040. return e.SetScene(*value)
  2041. }
  2042. return e
  2043. }
  2044. // set field if value's pointer is not nil.
  2045. func (e *EmployeeUpdate) SetNotNilSwitchIn(value *string) *EmployeeUpdate {
  2046. if value != nil {
  2047. return e.SetSwitchIn(*value)
  2048. }
  2049. return e
  2050. }
  2051. // set field if value's pointer is not nil.
  2052. func (e *EmployeeUpdateOne) SetNotNilSwitchIn(value *string) *EmployeeUpdateOne {
  2053. if value != nil {
  2054. return e.SetSwitchIn(*value)
  2055. }
  2056. return e
  2057. }
  2058. // set field if value's pointer is not nil.
  2059. func (e *EmployeeCreate) SetNotNilSwitchIn(value *string) *EmployeeCreate {
  2060. if value != nil {
  2061. return e.SetSwitchIn(*value)
  2062. }
  2063. return e
  2064. }
  2065. // set field if value's pointer is not nil.
  2066. func (e *EmployeeUpdate) SetNotNilVideoURL(value *string) *EmployeeUpdate {
  2067. if value != nil {
  2068. return e.SetVideoURL(*value)
  2069. }
  2070. return e
  2071. }
  2072. // set field if value's pointer is not nil.
  2073. func (e *EmployeeUpdateOne) SetNotNilVideoURL(value *string) *EmployeeUpdateOne {
  2074. if value != nil {
  2075. return e.SetVideoURL(*value)
  2076. }
  2077. return e
  2078. }
  2079. // set field if value's pointer is not nil.
  2080. func (e *EmployeeCreate) SetNotNilVideoURL(value *string) *EmployeeCreate {
  2081. if value != nil {
  2082. return e.SetVideoURL(*value)
  2083. }
  2084. return e
  2085. }
  2086. // set field if value's pointer is not nil.
  2087. func (e *EmployeeUpdate) SetNotNilOrganizationID(value *uint64) *EmployeeUpdate {
  2088. if value != nil {
  2089. return e.SetOrganizationID(*value)
  2090. }
  2091. return e
  2092. }
  2093. // set field if value's pointer is not nil.
  2094. func (e *EmployeeUpdateOne) SetNotNilOrganizationID(value *uint64) *EmployeeUpdateOne {
  2095. if value != nil {
  2096. return e.SetOrganizationID(*value)
  2097. }
  2098. return e
  2099. }
  2100. // set field if value's pointer is not nil.
  2101. func (e *EmployeeCreate) SetNotNilOrganizationID(value *uint64) *EmployeeCreate {
  2102. if value != nil {
  2103. return e.SetOrganizationID(*value)
  2104. }
  2105. return e
  2106. }
  2107. // set field if value's pointer is not nil.
  2108. func (e *EmployeeUpdate) SetNotNilCategoryID(value *uint64) *EmployeeUpdate {
  2109. if value != nil {
  2110. return e.SetCategoryID(*value)
  2111. }
  2112. return e
  2113. }
  2114. // set field if value's pointer is not nil.
  2115. func (e *EmployeeUpdateOne) SetNotNilCategoryID(value *uint64) *EmployeeUpdateOne {
  2116. if value != nil {
  2117. return e.SetCategoryID(*value)
  2118. }
  2119. return e
  2120. }
  2121. // set field if value's pointer is not nil.
  2122. func (e *EmployeeCreate) SetNotNilCategoryID(value *uint64) *EmployeeCreate {
  2123. if value != nil {
  2124. return e.SetCategoryID(*value)
  2125. }
  2126. return e
  2127. }
  2128. // set field if value's pointer is not nil.
  2129. func (e *EmployeeUpdate) SetNotNilAPIBase(value *string) *EmployeeUpdate {
  2130. if value != nil {
  2131. return e.SetAPIBase(*value)
  2132. }
  2133. return e
  2134. }
  2135. // set field if value's pointer is not nil.
  2136. func (e *EmployeeUpdateOne) SetNotNilAPIBase(value *string) *EmployeeUpdateOne {
  2137. if value != nil {
  2138. return e.SetAPIBase(*value)
  2139. }
  2140. return e
  2141. }
  2142. // set field if value's pointer is not nil.
  2143. func (e *EmployeeCreate) SetNotNilAPIBase(value *string) *EmployeeCreate {
  2144. if value != nil {
  2145. return e.SetAPIBase(*value)
  2146. }
  2147. return e
  2148. }
  2149. // set field if value's pointer is not nil.
  2150. func (e *EmployeeUpdate) SetNotNilAPIKey(value *string) *EmployeeUpdate {
  2151. if value != nil {
  2152. return e.SetAPIKey(*value)
  2153. }
  2154. return e
  2155. }
  2156. // set field if value's pointer is not nil.
  2157. func (e *EmployeeUpdateOne) SetNotNilAPIKey(value *string) *EmployeeUpdateOne {
  2158. if value != nil {
  2159. return e.SetAPIKey(*value)
  2160. }
  2161. return e
  2162. }
  2163. // set field if value's pointer is not nil.
  2164. func (e *EmployeeCreate) SetNotNilAPIKey(value *string) *EmployeeCreate {
  2165. if value != nil {
  2166. return e.SetAPIKey(*value)
  2167. }
  2168. return e
  2169. }
  2170. // set field if value's pointer is not nil.
  2171. func (e *EmployeeUpdate) SetNotNilAiInfo(value *string) *EmployeeUpdate {
  2172. if value != nil {
  2173. return e.SetAiInfo(*value)
  2174. }
  2175. return e
  2176. }
  2177. // set field if value's pointer is not nil.
  2178. func (e *EmployeeUpdateOne) SetNotNilAiInfo(value *string) *EmployeeUpdateOne {
  2179. if value != nil {
  2180. return e.SetAiInfo(*value)
  2181. }
  2182. return e
  2183. }
  2184. // set field if value's pointer is not nil.
  2185. func (e *EmployeeCreate) SetNotNilAiInfo(value *string) *EmployeeCreate {
  2186. if value != nil {
  2187. return e.SetAiInfo(*value)
  2188. }
  2189. return e
  2190. }
  2191. // set field if value's pointer is not nil.
  2192. func (e *EmployeeUpdate) SetNotNilIsVip(value *int) *EmployeeUpdate {
  2193. if value != nil {
  2194. return e.SetIsVip(*value)
  2195. }
  2196. return e
  2197. }
  2198. // set field if value's pointer is not nil.
  2199. func (e *EmployeeUpdateOne) SetNotNilIsVip(value *int) *EmployeeUpdateOne {
  2200. if value != nil {
  2201. return e.SetIsVip(*value)
  2202. }
  2203. return e
  2204. }
  2205. // set field if value's pointer is not nil.
  2206. func (e *EmployeeCreate) SetNotNilIsVip(value *int) *EmployeeCreate {
  2207. if value != nil {
  2208. return e.SetIsVip(*value)
  2209. }
  2210. return e
  2211. }
  2212. // set field if value's pointer is not nil.
  2213. func (e *EmployeeUpdate) SetNotNilChatURL(value *string) *EmployeeUpdate {
  2214. if value != nil {
  2215. return e.SetChatURL(*value)
  2216. }
  2217. return e
  2218. }
  2219. // set field if value's pointer is not nil.
  2220. func (e *EmployeeUpdateOne) SetNotNilChatURL(value *string) *EmployeeUpdateOne {
  2221. if value != nil {
  2222. return e.SetChatURL(*value)
  2223. }
  2224. return e
  2225. }
  2226. // set field if value's pointer is not nil.
  2227. func (e *EmployeeCreate) SetNotNilChatURL(value *string) *EmployeeCreate {
  2228. if value != nil {
  2229. return e.SetChatURL(*value)
  2230. }
  2231. return e
  2232. }
  2233. // set field if value's pointer is not nil.
  2234. func (ec *EmployeeConfigUpdate) SetNotNilUpdatedAt(value *time.Time) *EmployeeConfigUpdate {
  2235. if value != nil {
  2236. return ec.SetUpdatedAt(*value)
  2237. }
  2238. return ec
  2239. }
  2240. // set field if value's pointer is not nil.
  2241. func (ec *EmployeeConfigUpdateOne) SetNotNilUpdatedAt(value *time.Time) *EmployeeConfigUpdateOne {
  2242. if value != nil {
  2243. return ec.SetUpdatedAt(*value)
  2244. }
  2245. return ec
  2246. }
  2247. // set field if value's pointer is not nil.
  2248. func (ec *EmployeeConfigCreate) SetNotNilUpdatedAt(value *time.Time) *EmployeeConfigCreate {
  2249. if value != nil {
  2250. return ec.SetUpdatedAt(*value)
  2251. }
  2252. return ec
  2253. }
  2254. // set field if value's pointer is not nil.
  2255. func (ec *EmployeeConfigUpdate) SetNotNilDeletedAt(value *time.Time) *EmployeeConfigUpdate {
  2256. if value != nil {
  2257. return ec.SetDeletedAt(*value)
  2258. }
  2259. return ec
  2260. }
  2261. // set field if value's pointer is not nil.
  2262. func (ec *EmployeeConfigUpdateOne) SetNotNilDeletedAt(value *time.Time) *EmployeeConfigUpdateOne {
  2263. if value != nil {
  2264. return ec.SetDeletedAt(*value)
  2265. }
  2266. return ec
  2267. }
  2268. // set field if value's pointer is not nil.
  2269. func (ec *EmployeeConfigCreate) SetNotNilDeletedAt(value *time.Time) *EmployeeConfigCreate {
  2270. if value != nil {
  2271. return ec.SetDeletedAt(*value)
  2272. }
  2273. return ec
  2274. }
  2275. // set field if value's pointer is not nil.
  2276. func (ec *EmployeeConfigUpdate) SetNotNilStype(value *string) *EmployeeConfigUpdate {
  2277. if value != nil {
  2278. return ec.SetStype(*value)
  2279. }
  2280. return ec
  2281. }
  2282. // set field if value's pointer is not nil.
  2283. func (ec *EmployeeConfigUpdateOne) SetNotNilStype(value *string) *EmployeeConfigUpdateOne {
  2284. if value != nil {
  2285. return ec.SetStype(*value)
  2286. }
  2287. return ec
  2288. }
  2289. // set field if value's pointer is not nil.
  2290. func (ec *EmployeeConfigCreate) SetNotNilStype(value *string) *EmployeeConfigCreate {
  2291. if value != nil {
  2292. return ec.SetStype(*value)
  2293. }
  2294. return ec
  2295. }
  2296. // set field if value's pointer is not nil.
  2297. func (ec *EmployeeConfigUpdate) SetNotNilTitle(value *string) *EmployeeConfigUpdate {
  2298. if value != nil {
  2299. return ec.SetTitle(*value)
  2300. }
  2301. return ec
  2302. }
  2303. // set field if value's pointer is not nil.
  2304. func (ec *EmployeeConfigUpdateOne) SetNotNilTitle(value *string) *EmployeeConfigUpdateOne {
  2305. if value != nil {
  2306. return ec.SetTitle(*value)
  2307. }
  2308. return ec
  2309. }
  2310. // set field if value's pointer is not nil.
  2311. func (ec *EmployeeConfigCreate) SetNotNilTitle(value *string) *EmployeeConfigCreate {
  2312. if value != nil {
  2313. return ec.SetTitle(*value)
  2314. }
  2315. return ec
  2316. }
  2317. // set field if value's pointer is not nil.
  2318. func (ec *EmployeeConfigUpdate) SetNotNilPhoto(value *string) *EmployeeConfigUpdate {
  2319. if value != nil {
  2320. return ec.SetPhoto(*value)
  2321. }
  2322. return ec
  2323. }
  2324. // set field if value's pointer is not nil.
  2325. func (ec *EmployeeConfigUpdateOne) SetNotNilPhoto(value *string) *EmployeeConfigUpdateOne {
  2326. if value != nil {
  2327. return ec.SetPhoto(*value)
  2328. }
  2329. return ec
  2330. }
  2331. // set field if value's pointer is not nil.
  2332. func (ec *EmployeeConfigCreate) SetNotNilPhoto(value *string) *EmployeeConfigCreate {
  2333. if value != nil {
  2334. return ec.SetPhoto(*value)
  2335. }
  2336. return ec
  2337. }
  2338. // set field if value's pointer is not nil.
  2339. func (ec *EmployeeConfigUpdate) SetNotNilOrganizationID(value *uint64) *EmployeeConfigUpdate {
  2340. if value != nil {
  2341. return ec.SetOrganizationID(*value)
  2342. }
  2343. return ec
  2344. }
  2345. // set field if value's pointer is not nil.
  2346. func (ec *EmployeeConfigUpdateOne) SetNotNilOrganizationID(value *uint64) *EmployeeConfigUpdateOne {
  2347. if value != nil {
  2348. return ec.SetOrganizationID(*value)
  2349. }
  2350. return ec
  2351. }
  2352. // set field if value's pointer is not nil.
  2353. func (ec *EmployeeConfigCreate) SetNotNilOrganizationID(value *uint64) *EmployeeConfigCreate {
  2354. if value != nil {
  2355. return ec.SetOrganizationID(*value)
  2356. }
  2357. return ec
  2358. }
  2359. // set field if value's pointer is not nil.
  2360. func (l *LabelUpdate) SetNotNilUpdatedAt(value *time.Time) *LabelUpdate {
  2361. if value != nil {
  2362. return l.SetUpdatedAt(*value)
  2363. }
  2364. return l
  2365. }
  2366. // set field if value's pointer is not nil.
  2367. func (l *LabelUpdateOne) SetNotNilUpdatedAt(value *time.Time) *LabelUpdateOne {
  2368. if value != nil {
  2369. return l.SetUpdatedAt(*value)
  2370. }
  2371. return l
  2372. }
  2373. // set field if value's pointer is not nil.
  2374. func (l *LabelCreate) SetNotNilUpdatedAt(value *time.Time) *LabelCreate {
  2375. if value != nil {
  2376. return l.SetUpdatedAt(*value)
  2377. }
  2378. return l
  2379. }
  2380. // set field if value's pointer is not nil.
  2381. func (l *LabelUpdate) SetNotNilStatus(value *uint8) *LabelUpdate {
  2382. if value != nil {
  2383. return l.SetStatus(*value)
  2384. }
  2385. return l
  2386. }
  2387. // set field if value's pointer is not nil.
  2388. func (l *LabelUpdateOne) SetNotNilStatus(value *uint8) *LabelUpdateOne {
  2389. if value != nil {
  2390. return l.SetStatus(*value)
  2391. }
  2392. return l
  2393. }
  2394. // set field if value's pointer is not nil.
  2395. func (l *LabelCreate) SetNotNilStatus(value *uint8) *LabelCreate {
  2396. if value != nil {
  2397. return l.SetStatus(*value)
  2398. }
  2399. return l
  2400. }
  2401. // set field if value's pointer is not nil.
  2402. func (l *LabelUpdate) SetNotNilType(value *int) *LabelUpdate {
  2403. if value != nil {
  2404. return l.SetType(*value)
  2405. }
  2406. return l
  2407. }
  2408. // set field if value's pointer is not nil.
  2409. func (l *LabelUpdateOne) SetNotNilType(value *int) *LabelUpdateOne {
  2410. if value != nil {
  2411. return l.SetType(*value)
  2412. }
  2413. return l
  2414. }
  2415. // set field if value's pointer is not nil.
  2416. func (l *LabelCreate) SetNotNilType(value *int) *LabelCreate {
  2417. if value != nil {
  2418. return l.SetType(*value)
  2419. }
  2420. return l
  2421. }
  2422. // set field if value's pointer is not nil.
  2423. func (l *LabelUpdate) SetNotNilName(value *string) *LabelUpdate {
  2424. if value != nil {
  2425. return l.SetName(*value)
  2426. }
  2427. return l
  2428. }
  2429. // set field if value's pointer is not nil.
  2430. func (l *LabelUpdateOne) SetNotNilName(value *string) *LabelUpdateOne {
  2431. if value != nil {
  2432. return l.SetName(*value)
  2433. }
  2434. return l
  2435. }
  2436. // set field if value's pointer is not nil.
  2437. func (l *LabelCreate) SetNotNilName(value *string) *LabelCreate {
  2438. if value != nil {
  2439. return l.SetName(*value)
  2440. }
  2441. return l
  2442. }
  2443. // set field if value's pointer is not nil.
  2444. func (l *LabelUpdate) SetNotNilFrom(value *int) *LabelUpdate {
  2445. if value != nil {
  2446. return l.SetFrom(*value)
  2447. }
  2448. return l
  2449. }
  2450. // set field if value's pointer is not nil.
  2451. func (l *LabelUpdateOne) SetNotNilFrom(value *int) *LabelUpdateOne {
  2452. if value != nil {
  2453. return l.SetFrom(*value)
  2454. }
  2455. return l
  2456. }
  2457. // set field if value's pointer is not nil.
  2458. func (l *LabelCreate) SetNotNilFrom(value *int) *LabelCreate {
  2459. if value != nil {
  2460. return l.SetFrom(*value)
  2461. }
  2462. return l
  2463. }
  2464. // set field if value's pointer is not nil.
  2465. func (l *LabelUpdate) SetNotNilMode(value *int) *LabelUpdate {
  2466. if value != nil {
  2467. return l.SetMode(*value)
  2468. }
  2469. return l
  2470. }
  2471. // set field if value's pointer is not nil.
  2472. func (l *LabelUpdateOne) SetNotNilMode(value *int) *LabelUpdateOne {
  2473. if value != nil {
  2474. return l.SetMode(*value)
  2475. }
  2476. return l
  2477. }
  2478. // set field if value's pointer is not nil.
  2479. func (l *LabelCreate) SetNotNilMode(value *int) *LabelCreate {
  2480. if value != nil {
  2481. return l.SetMode(*value)
  2482. }
  2483. return l
  2484. }
  2485. // set field if value's pointer is not nil.
  2486. func (l *LabelUpdate) SetNotNilConditions(value *string) *LabelUpdate {
  2487. if value != nil {
  2488. return l.SetConditions(*value)
  2489. }
  2490. return l
  2491. }
  2492. // set field if value's pointer is not nil.
  2493. func (l *LabelUpdateOne) SetNotNilConditions(value *string) *LabelUpdateOne {
  2494. if value != nil {
  2495. return l.SetConditions(*value)
  2496. }
  2497. return l
  2498. }
  2499. // set field if value's pointer is not nil.
  2500. func (l *LabelCreate) SetNotNilConditions(value *string) *LabelCreate {
  2501. if value != nil {
  2502. return l.SetConditions(*value)
  2503. }
  2504. return l
  2505. }
  2506. // set field if value's pointer is not nil.
  2507. func (l *LabelUpdate) SetNotNilOrganizationID(value *uint64) *LabelUpdate {
  2508. if value != nil {
  2509. return l.SetOrganizationID(*value)
  2510. }
  2511. return l
  2512. }
  2513. // set field if value's pointer is not nil.
  2514. func (l *LabelUpdateOne) SetNotNilOrganizationID(value *uint64) *LabelUpdateOne {
  2515. if value != nil {
  2516. return l.SetOrganizationID(*value)
  2517. }
  2518. return l
  2519. }
  2520. // set field if value's pointer is not nil.
  2521. func (l *LabelCreate) SetNotNilOrganizationID(value *uint64) *LabelCreate {
  2522. if value != nil {
  2523. return l.SetOrganizationID(*value)
  2524. }
  2525. return l
  2526. }
  2527. // set field if value's pointer is not nil.
  2528. func (lr *LabelRelationshipUpdate) SetNotNilUpdatedAt(value *time.Time) *LabelRelationshipUpdate {
  2529. if value != nil {
  2530. return lr.SetUpdatedAt(*value)
  2531. }
  2532. return lr
  2533. }
  2534. // set field if value's pointer is not nil.
  2535. func (lr *LabelRelationshipUpdateOne) SetNotNilUpdatedAt(value *time.Time) *LabelRelationshipUpdateOne {
  2536. if value != nil {
  2537. return lr.SetUpdatedAt(*value)
  2538. }
  2539. return lr
  2540. }
  2541. // set field if value's pointer is not nil.
  2542. func (lr *LabelRelationshipCreate) SetNotNilUpdatedAt(value *time.Time) *LabelRelationshipCreate {
  2543. if value != nil {
  2544. return lr.SetUpdatedAt(*value)
  2545. }
  2546. return lr
  2547. }
  2548. // set field if value's pointer is not nil.
  2549. func (lr *LabelRelationshipUpdate) SetNotNilStatus(value *uint8) *LabelRelationshipUpdate {
  2550. if value != nil {
  2551. return lr.SetStatus(*value)
  2552. }
  2553. return lr
  2554. }
  2555. // set field if value's pointer is not nil.
  2556. func (lr *LabelRelationshipUpdateOne) SetNotNilStatus(value *uint8) *LabelRelationshipUpdateOne {
  2557. if value != nil {
  2558. return lr.SetStatus(*value)
  2559. }
  2560. return lr
  2561. }
  2562. // set field if value's pointer is not nil.
  2563. func (lr *LabelRelationshipCreate) SetNotNilStatus(value *uint8) *LabelRelationshipCreate {
  2564. if value != nil {
  2565. return lr.SetStatus(*value)
  2566. }
  2567. return lr
  2568. }
  2569. // set field if value's pointer is not nil.
  2570. func (lr *LabelRelationshipUpdate) SetNotNilDeletedAt(value *time.Time) *LabelRelationshipUpdate {
  2571. if value != nil {
  2572. return lr.SetDeletedAt(*value)
  2573. }
  2574. return lr
  2575. }
  2576. // set field if value's pointer is not nil.
  2577. func (lr *LabelRelationshipUpdateOne) SetNotNilDeletedAt(value *time.Time) *LabelRelationshipUpdateOne {
  2578. if value != nil {
  2579. return lr.SetDeletedAt(*value)
  2580. }
  2581. return lr
  2582. }
  2583. // set field if value's pointer is not nil.
  2584. func (lr *LabelRelationshipCreate) SetNotNilDeletedAt(value *time.Time) *LabelRelationshipCreate {
  2585. if value != nil {
  2586. return lr.SetDeletedAt(*value)
  2587. }
  2588. return lr
  2589. }
  2590. // set field if value's pointer is not nil.
  2591. func (lr *LabelRelationshipUpdate) SetNotNilLabelID(value *uint64) *LabelRelationshipUpdate {
  2592. if value != nil {
  2593. return lr.SetLabelID(*value)
  2594. }
  2595. return lr
  2596. }
  2597. // set field if value's pointer is not nil.
  2598. func (lr *LabelRelationshipUpdateOne) SetNotNilLabelID(value *uint64) *LabelRelationshipUpdateOne {
  2599. if value != nil {
  2600. return lr.SetLabelID(*value)
  2601. }
  2602. return lr
  2603. }
  2604. // set field if value's pointer is not nil.
  2605. func (lr *LabelRelationshipCreate) SetNotNilLabelID(value *uint64) *LabelRelationshipCreate {
  2606. if value != nil {
  2607. return lr.SetLabelID(*value)
  2608. }
  2609. return lr
  2610. }
  2611. // set field if value's pointer is not nil.
  2612. func (lr *LabelRelationshipUpdate) SetNotNilContactID(value *uint64) *LabelRelationshipUpdate {
  2613. if value != nil {
  2614. return lr.SetContactID(*value)
  2615. }
  2616. return lr
  2617. }
  2618. // set field if value's pointer is not nil.
  2619. func (lr *LabelRelationshipUpdateOne) SetNotNilContactID(value *uint64) *LabelRelationshipUpdateOne {
  2620. if value != nil {
  2621. return lr.SetContactID(*value)
  2622. }
  2623. return lr
  2624. }
  2625. // set field if value's pointer is not nil.
  2626. func (lr *LabelRelationshipCreate) SetNotNilContactID(value *uint64) *LabelRelationshipCreate {
  2627. if value != nil {
  2628. return lr.SetContactID(*value)
  2629. }
  2630. return lr
  2631. }
  2632. // set field if value's pointer is not nil.
  2633. func (lr *LabelRelationshipUpdate) SetNotNilOrganizationID(value *uint64) *LabelRelationshipUpdate {
  2634. if value != nil {
  2635. return lr.SetOrganizationID(*value)
  2636. }
  2637. return lr
  2638. }
  2639. // set field if value's pointer is not nil.
  2640. func (lr *LabelRelationshipUpdateOne) SetNotNilOrganizationID(value *uint64) *LabelRelationshipUpdateOne {
  2641. if value != nil {
  2642. return lr.SetOrganizationID(*value)
  2643. }
  2644. return lr
  2645. }
  2646. // set field if value's pointer is not nil.
  2647. func (lr *LabelRelationshipCreate) SetNotNilOrganizationID(value *uint64) *LabelRelationshipCreate {
  2648. if value != nil {
  2649. return lr.SetOrganizationID(*value)
  2650. }
  2651. return lr
  2652. }
  2653. // set field if value's pointer is not nil.
  2654. func (m *MessageUpdate) SetNotNilWxWxid(value *string) *MessageUpdate {
  2655. if value != nil {
  2656. return m.SetWxWxid(*value)
  2657. }
  2658. return m
  2659. }
  2660. // set field if value's pointer is not nil.
  2661. func (m *MessageUpdateOne) SetNotNilWxWxid(value *string) *MessageUpdateOne {
  2662. if value != nil {
  2663. return m.SetWxWxid(*value)
  2664. }
  2665. return m
  2666. }
  2667. // set field if value's pointer is not nil.
  2668. func (m *MessageCreate) SetNotNilWxWxid(value *string) *MessageCreate {
  2669. if value != nil {
  2670. return m.SetWxWxid(*value)
  2671. }
  2672. return m
  2673. }
  2674. // set field if value's pointer is not nil.
  2675. func (m *MessageUpdate) SetNotNilWxid(value *string) *MessageUpdate {
  2676. if value != nil {
  2677. return m.SetWxid(*value)
  2678. }
  2679. return m
  2680. }
  2681. // set field if value's pointer is not nil.
  2682. func (m *MessageUpdateOne) SetNotNilWxid(value *string) *MessageUpdateOne {
  2683. if value != nil {
  2684. return m.SetWxid(*value)
  2685. }
  2686. return m
  2687. }
  2688. // set field if value's pointer is not nil.
  2689. func (m *MessageCreate) SetNotNilWxid(value *string) *MessageCreate {
  2690. if value != nil {
  2691. return m.SetWxid(*value)
  2692. }
  2693. return m
  2694. }
  2695. // set field if value's pointer is not nil.
  2696. func (m *MessageUpdate) SetNotNilContent(value *string) *MessageUpdate {
  2697. if value != nil {
  2698. return m.SetContent(*value)
  2699. }
  2700. return m
  2701. }
  2702. // set field if value's pointer is not nil.
  2703. func (m *MessageUpdateOne) SetNotNilContent(value *string) *MessageUpdateOne {
  2704. if value != nil {
  2705. return m.SetContent(*value)
  2706. }
  2707. return m
  2708. }
  2709. // set field if value's pointer is not nil.
  2710. func (m *MessageCreate) SetNotNilContent(value *string) *MessageCreate {
  2711. if value != nil {
  2712. return m.SetContent(*value)
  2713. }
  2714. return m
  2715. }
  2716. // set field if value's pointer is not nil.
  2717. func (mr *MessageRecordsUpdate) SetNotNilUpdatedAt(value *time.Time) *MessageRecordsUpdate {
  2718. if value != nil {
  2719. return mr.SetUpdatedAt(*value)
  2720. }
  2721. return mr
  2722. }
  2723. // set field if value's pointer is not nil.
  2724. func (mr *MessageRecordsUpdateOne) SetNotNilUpdatedAt(value *time.Time) *MessageRecordsUpdateOne {
  2725. if value != nil {
  2726. return mr.SetUpdatedAt(*value)
  2727. }
  2728. return mr
  2729. }
  2730. // set field if value's pointer is not nil.
  2731. func (mr *MessageRecordsCreate) SetNotNilUpdatedAt(value *time.Time) *MessageRecordsCreate {
  2732. if value != nil {
  2733. return mr.SetUpdatedAt(*value)
  2734. }
  2735. return mr
  2736. }
  2737. // set field if value's pointer is not nil.
  2738. func (mr *MessageRecordsUpdate) SetNotNilStatus(value *uint8) *MessageRecordsUpdate {
  2739. if value != nil {
  2740. return mr.SetStatus(*value)
  2741. }
  2742. return mr
  2743. }
  2744. // set field if value's pointer is not nil.
  2745. func (mr *MessageRecordsUpdateOne) SetNotNilStatus(value *uint8) *MessageRecordsUpdateOne {
  2746. if value != nil {
  2747. return mr.SetStatus(*value)
  2748. }
  2749. return mr
  2750. }
  2751. // set field if value's pointer is not nil.
  2752. func (mr *MessageRecordsCreate) SetNotNilStatus(value *uint8) *MessageRecordsCreate {
  2753. if value != nil {
  2754. return mr.SetStatus(*value)
  2755. }
  2756. return mr
  2757. }
  2758. // set field if value's pointer is not nil.
  2759. func (mr *MessageRecordsUpdate) SetNotNilBotWxid(value *string) *MessageRecordsUpdate {
  2760. if value != nil {
  2761. return mr.SetBotWxid(*value)
  2762. }
  2763. return mr
  2764. }
  2765. // set field if value's pointer is not nil.
  2766. func (mr *MessageRecordsUpdateOne) SetNotNilBotWxid(value *string) *MessageRecordsUpdateOne {
  2767. if value != nil {
  2768. return mr.SetBotWxid(*value)
  2769. }
  2770. return mr
  2771. }
  2772. // set field if value's pointer is not nil.
  2773. func (mr *MessageRecordsCreate) SetNotNilBotWxid(value *string) *MessageRecordsCreate {
  2774. if value != nil {
  2775. return mr.SetBotWxid(*value)
  2776. }
  2777. return mr
  2778. }
  2779. // set field if value's pointer is not nil.
  2780. func (mr *MessageRecordsUpdate) SetNotNilContactID(value *uint64) *MessageRecordsUpdate {
  2781. if value != nil {
  2782. return mr.SetContactID(*value)
  2783. }
  2784. return mr
  2785. }
  2786. // set field if value's pointer is not nil.
  2787. func (mr *MessageRecordsUpdateOne) SetNotNilContactID(value *uint64) *MessageRecordsUpdateOne {
  2788. if value != nil {
  2789. return mr.SetContactID(*value)
  2790. }
  2791. return mr
  2792. }
  2793. // set field if value's pointer is not nil.
  2794. func (mr *MessageRecordsCreate) SetNotNilContactID(value *uint64) *MessageRecordsCreate {
  2795. if value != nil {
  2796. return mr.SetContactID(*value)
  2797. }
  2798. return mr
  2799. }
  2800. // set field if value's pointer is not nil.
  2801. func (mr *MessageRecordsUpdate) SetNotNilContactType(value *int) *MessageRecordsUpdate {
  2802. if value != nil {
  2803. return mr.SetContactType(*value)
  2804. }
  2805. return mr
  2806. }
  2807. // set field if value's pointer is not nil.
  2808. func (mr *MessageRecordsUpdateOne) SetNotNilContactType(value *int) *MessageRecordsUpdateOne {
  2809. if value != nil {
  2810. return mr.SetContactType(*value)
  2811. }
  2812. return mr
  2813. }
  2814. // set field if value's pointer is not nil.
  2815. func (mr *MessageRecordsCreate) SetNotNilContactType(value *int) *MessageRecordsCreate {
  2816. if value != nil {
  2817. return mr.SetContactType(*value)
  2818. }
  2819. return mr
  2820. }
  2821. // set field if value's pointer is not nil.
  2822. func (mr *MessageRecordsUpdate) SetNotNilContactWxid(value *string) *MessageRecordsUpdate {
  2823. if value != nil {
  2824. return mr.SetContactWxid(*value)
  2825. }
  2826. return mr
  2827. }
  2828. // set field if value's pointer is not nil.
  2829. func (mr *MessageRecordsUpdateOne) SetNotNilContactWxid(value *string) *MessageRecordsUpdateOne {
  2830. if value != nil {
  2831. return mr.SetContactWxid(*value)
  2832. }
  2833. return mr
  2834. }
  2835. // set field if value's pointer is not nil.
  2836. func (mr *MessageRecordsCreate) SetNotNilContactWxid(value *string) *MessageRecordsCreate {
  2837. if value != nil {
  2838. return mr.SetContactWxid(*value)
  2839. }
  2840. return mr
  2841. }
  2842. // set field if value's pointer is not nil.
  2843. func (mr *MessageRecordsUpdate) SetNotNilContentType(value *int) *MessageRecordsUpdate {
  2844. if value != nil {
  2845. return mr.SetContentType(*value)
  2846. }
  2847. return mr
  2848. }
  2849. // set field if value's pointer is not nil.
  2850. func (mr *MessageRecordsUpdateOne) SetNotNilContentType(value *int) *MessageRecordsUpdateOne {
  2851. if value != nil {
  2852. return mr.SetContentType(*value)
  2853. }
  2854. return mr
  2855. }
  2856. // set field if value's pointer is not nil.
  2857. func (mr *MessageRecordsCreate) SetNotNilContentType(value *int) *MessageRecordsCreate {
  2858. if value != nil {
  2859. return mr.SetContentType(*value)
  2860. }
  2861. return mr
  2862. }
  2863. // set field if value's pointer is not nil.
  2864. func (mr *MessageRecordsUpdate) SetNotNilContent(value *string) *MessageRecordsUpdate {
  2865. if value != nil {
  2866. return mr.SetContent(*value)
  2867. }
  2868. return mr
  2869. }
  2870. // set field if value's pointer is not nil.
  2871. func (mr *MessageRecordsUpdateOne) SetNotNilContent(value *string) *MessageRecordsUpdateOne {
  2872. if value != nil {
  2873. return mr.SetContent(*value)
  2874. }
  2875. return mr
  2876. }
  2877. // set field if value's pointer is not nil.
  2878. func (mr *MessageRecordsCreate) SetNotNilContent(value *string) *MessageRecordsCreate {
  2879. if value != nil {
  2880. return mr.SetContent(*value)
  2881. }
  2882. return mr
  2883. }
  2884. // set field if value's pointer is not nil.
  2885. func (mr *MessageRecordsUpdate) SetNotNilMeta(value *custom_types.Meta) *MessageRecordsUpdate {
  2886. if value != nil {
  2887. return mr.SetMeta(*value)
  2888. }
  2889. return mr
  2890. }
  2891. // set field if value's pointer is not nil.
  2892. func (mr *MessageRecordsUpdateOne) SetNotNilMeta(value *custom_types.Meta) *MessageRecordsUpdateOne {
  2893. if value != nil {
  2894. return mr.SetMeta(*value)
  2895. }
  2896. return mr
  2897. }
  2898. // set field if value's pointer is not nil.
  2899. func (mr *MessageRecordsCreate) SetNotNilMeta(value *custom_types.Meta) *MessageRecordsCreate {
  2900. if value != nil {
  2901. return mr.SetMeta(*value)
  2902. }
  2903. return mr
  2904. }
  2905. // set field if value's pointer is not nil.
  2906. func (mr *MessageRecordsUpdate) SetNotNilErrorDetail(value *string) *MessageRecordsUpdate {
  2907. if value != nil {
  2908. return mr.SetErrorDetail(*value)
  2909. }
  2910. return mr
  2911. }
  2912. // set field if value's pointer is not nil.
  2913. func (mr *MessageRecordsUpdateOne) SetNotNilErrorDetail(value *string) *MessageRecordsUpdateOne {
  2914. if value != nil {
  2915. return mr.SetErrorDetail(*value)
  2916. }
  2917. return mr
  2918. }
  2919. // set field if value's pointer is not nil.
  2920. func (mr *MessageRecordsCreate) SetNotNilErrorDetail(value *string) *MessageRecordsCreate {
  2921. if value != nil {
  2922. return mr.SetErrorDetail(*value)
  2923. }
  2924. return mr
  2925. }
  2926. // set field if value's pointer is not nil.
  2927. func (mr *MessageRecordsUpdate) SetNotNilSendTime(value *time.Time) *MessageRecordsUpdate {
  2928. if value != nil {
  2929. return mr.SetSendTime(*value)
  2930. }
  2931. return mr
  2932. }
  2933. // set field if value's pointer is not nil.
  2934. func (mr *MessageRecordsUpdateOne) SetNotNilSendTime(value *time.Time) *MessageRecordsUpdateOne {
  2935. if value != nil {
  2936. return mr.SetSendTime(*value)
  2937. }
  2938. return mr
  2939. }
  2940. // set field if value's pointer is not nil.
  2941. func (mr *MessageRecordsCreate) SetNotNilSendTime(value *time.Time) *MessageRecordsCreate {
  2942. if value != nil {
  2943. return mr.SetSendTime(*value)
  2944. }
  2945. return mr
  2946. }
  2947. // set field if value's pointer is not nil.
  2948. func (mr *MessageRecordsUpdate) SetNotNilSourceType(value *int) *MessageRecordsUpdate {
  2949. if value != nil {
  2950. return mr.SetSourceType(*value)
  2951. }
  2952. return mr
  2953. }
  2954. // set field if value's pointer is not nil.
  2955. func (mr *MessageRecordsUpdateOne) SetNotNilSourceType(value *int) *MessageRecordsUpdateOne {
  2956. if value != nil {
  2957. return mr.SetSourceType(*value)
  2958. }
  2959. return mr
  2960. }
  2961. // set field if value's pointer is not nil.
  2962. func (mr *MessageRecordsCreate) SetNotNilSourceType(value *int) *MessageRecordsCreate {
  2963. if value != nil {
  2964. return mr.SetSourceType(*value)
  2965. }
  2966. return mr
  2967. }
  2968. // set field if value's pointer is not nil.
  2969. func (mr *MessageRecordsUpdate) SetNotNilSourceID(value *uint64) *MessageRecordsUpdate {
  2970. if value != nil {
  2971. return mr.SetSourceID(*value)
  2972. }
  2973. return mr
  2974. }
  2975. // set field if value's pointer is not nil.
  2976. func (mr *MessageRecordsUpdateOne) SetNotNilSourceID(value *uint64) *MessageRecordsUpdateOne {
  2977. if value != nil {
  2978. return mr.SetSourceID(*value)
  2979. }
  2980. return mr
  2981. }
  2982. // set field if value's pointer is not nil.
  2983. func (mr *MessageRecordsCreate) SetNotNilSourceID(value *uint64) *MessageRecordsCreate {
  2984. if value != nil {
  2985. return mr.SetSourceID(*value)
  2986. }
  2987. return mr
  2988. }
  2989. // set field if value's pointer is not nil.
  2990. func (mr *MessageRecordsUpdate) SetNotNilSubSourceID(value *uint64) *MessageRecordsUpdate {
  2991. if value != nil {
  2992. return mr.SetSubSourceID(*value)
  2993. }
  2994. return mr
  2995. }
  2996. // set field if value's pointer is not nil.
  2997. func (mr *MessageRecordsUpdateOne) SetNotNilSubSourceID(value *uint64) *MessageRecordsUpdateOne {
  2998. if value != nil {
  2999. return mr.SetSubSourceID(*value)
  3000. }
  3001. return mr
  3002. }
  3003. // set field if value's pointer is not nil.
  3004. func (mr *MessageRecordsCreate) SetNotNilSubSourceID(value *uint64) *MessageRecordsCreate {
  3005. if value != nil {
  3006. return mr.SetSubSourceID(*value)
  3007. }
  3008. return mr
  3009. }
  3010. // set field if value's pointer is not nil.
  3011. func (mr *MessageRecordsUpdate) SetNotNilOrganizationID(value *uint64) *MessageRecordsUpdate {
  3012. if value != nil {
  3013. return mr.SetOrganizationID(*value)
  3014. }
  3015. return mr
  3016. }
  3017. // set field if value's pointer is not nil.
  3018. func (mr *MessageRecordsUpdateOne) SetNotNilOrganizationID(value *uint64) *MessageRecordsUpdateOne {
  3019. if value != nil {
  3020. return mr.SetOrganizationID(*value)
  3021. }
  3022. return mr
  3023. }
  3024. // set field if value's pointer is not nil.
  3025. func (mr *MessageRecordsCreate) SetNotNilOrganizationID(value *uint64) *MessageRecordsCreate {
  3026. if value != nil {
  3027. return mr.SetOrganizationID(*value)
  3028. }
  3029. return mr
  3030. }
  3031. // set field if value's pointer is not nil.
  3032. func (m *MsgUpdate) SetNotNilUpdatedAt(value *time.Time) *MsgUpdate {
  3033. if value != nil {
  3034. return m.SetUpdatedAt(*value)
  3035. }
  3036. return m
  3037. }
  3038. // set field if value's pointer is not nil.
  3039. func (m *MsgUpdateOne) SetNotNilUpdatedAt(value *time.Time) *MsgUpdateOne {
  3040. if value != nil {
  3041. return m.SetUpdatedAt(*value)
  3042. }
  3043. return m
  3044. }
  3045. // set field if value's pointer is not nil.
  3046. func (m *MsgCreate) SetNotNilUpdatedAt(value *time.Time) *MsgCreate {
  3047. if value != nil {
  3048. return m.SetUpdatedAt(*value)
  3049. }
  3050. return m
  3051. }
  3052. // set field if value's pointer is not nil.
  3053. func (m *MsgUpdate) SetNotNilDeletedAt(value *time.Time) *MsgUpdate {
  3054. if value != nil {
  3055. return m.SetDeletedAt(*value)
  3056. }
  3057. return m
  3058. }
  3059. // set field if value's pointer is not nil.
  3060. func (m *MsgUpdateOne) SetNotNilDeletedAt(value *time.Time) *MsgUpdateOne {
  3061. if value != nil {
  3062. return m.SetDeletedAt(*value)
  3063. }
  3064. return m
  3065. }
  3066. // set field if value's pointer is not nil.
  3067. func (m *MsgCreate) SetNotNilDeletedAt(value *time.Time) *MsgCreate {
  3068. if value != nil {
  3069. return m.SetDeletedAt(*value)
  3070. }
  3071. return m
  3072. }
  3073. // set field if value's pointer is not nil.
  3074. func (m *MsgUpdate) SetNotNilStatus(value *uint8) *MsgUpdate {
  3075. if value != nil {
  3076. return m.SetStatus(*value)
  3077. }
  3078. return m
  3079. }
  3080. // set field if value's pointer is not nil.
  3081. func (m *MsgUpdateOne) SetNotNilStatus(value *uint8) *MsgUpdateOne {
  3082. if value != nil {
  3083. return m.SetStatus(*value)
  3084. }
  3085. return m
  3086. }
  3087. // set field if value's pointer is not nil.
  3088. func (m *MsgCreate) SetNotNilStatus(value *uint8) *MsgCreate {
  3089. if value != nil {
  3090. return m.SetStatus(*value)
  3091. }
  3092. return m
  3093. }
  3094. // set field if value's pointer is not nil.
  3095. func (m *MsgUpdate) SetNotNilFromwxid(value *string) *MsgUpdate {
  3096. if value != nil {
  3097. return m.SetFromwxid(*value)
  3098. }
  3099. return m
  3100. }
  3101. // set field if value's pointer is not nil.
  3102. func (m *MsgUpdateOne) SetNotNilFromwxid(value *string) *MsgUpdateOne {
  3103. if value != nil {
  3104. return m.SetFromwxid(*value)
  3105. }
  3106. return m
  3107. }
  3108. // set field if value's pointer is not nil.
  3109. func (m *MsgCreate) SetNotNilFromwxid(value *string) *MsgCreate {
  3110. if value != nil {
  3111. return m.SetFromwxid(*value)
  3112. }
  3113. return m
  3114. }
  3115. // set field if value's pointer is not nil.
  3116. func (m *MsgUpdate) SetNotNilToid(value *string) *MsgUpdate {
  3117. if value != nil {
  3118. return m.SetToid(*value)
  3119. }
  3120. return m
  3121. }
  3122. // set field if value's pointer is not nil.
  3123. func (m *MsgUpdateOne) SetNotNilToid(value *string) *MsgUpdateOne {
  3124. if value != nil {
  3125. return m.SetToid(*value)
  3126. }
  3127. return m
  3128. }
  3129. // set field if value's pointer is not nil.
  3130. func (m *MsgCreate) SetNotNilToid(value *string) *MsgCreate {
  3131. if value != nil {
  3132. return m.SetToid(*value)
  3133. }
  3134. return m
  3135. }
  3136. // set field if value's pointer is not nil.
  3137. func (m *MsgUpdate) SetNotNilMsgtype(value *int32) *MsgUpdate {
  3138. if value != nil {
  3139. return m.SetMsgtype(*value)
  3140. }
  3141. return m
  3142. }
  3143. // set field if value's pointer is not nil.
  3144. func (m *MsgUpdateOne) SetNotNilMsgtype(value *int32) *MsgUpdateOne {
  3145. if value != nil {
  3146. return m.SetMsgtype(*value)
  3147. }
  3148. return m
  3149. }
  3150. // set field if value's pointer is not nil.
  3151. func (m *MsgCreate) SetNotNilMsgtype(value *int32) *MsgCreate {
  3152. if value != nil {
  3153. return m.SetMsgtype(*value)
  3154. }
  3155. return m
  3156. }
  3157. // set field if value's pointer is not nil.
  3158. func (m *MsgUpdate) SetNotNilMsg(value *string) *MsgUpdate {
  3159. if value != nil {
  3160. return m.SetMsg(*value)
  3161. }
  3162. return m
  3163. }
  3164. // set field if value's pointer is not nil.
  3165. func (m *MsgUpdateOne) SetNotNilMsg(value *string) *MsgUpdateOne {
  3166. if value != nil {
  3167. return m.SetMsg(*value)
  3168. }
  3169. return m
  3170. }
  3171. // set field if value's pointer is not nil.
  3172. func (m *MsgCreate) SetNotNilMsg(value *string) *MsgCreate {
  3173. if value != nil {
  3174. return m.SetMsg(*value)
  3175. }
  3176. return m
  3177. }
  3178. // set field if value's pointer is not nil.
  3179. func (m *MsgUpdate) SetNotNilBatchNo(value *string) *MsgUpdate {
  3180. if value != nil {
  3181. return m.SetBatchNo(*value)
  3182. }
  3183. return m
  3184. }
  3185. // set field if value's pointer is not nil.
  3186. func (m *MsgUpdateOne) SetNotNilBatchNo(value *string) *MsgUpdateOne {
  3187. if value != nil {
  3188. return m.SetBatchNo(*value)
  3189. }
  3190. return m
  3191. }
  3192. // set field if value's pointer is not nil.
  3193. func (m *MsgCreate) SetNotNilBatchNo(value *string) *MsgCreate {
  3194. if value != nil {
  3195. return m.SetBatchNo(*value)
  3196. }
  3197. return m
  3198. }
  3199. // set field if value's pointer is not nil.
  3200. func (s *ServerUpdate) SetNotNilUpdatedAt(value *time.Time) *ServerUpdate {
  3201. if value != nil {
  3202. return s.SetUpdatedAt(*value)
  3203. }
  3204. return s
  3205. }
  3206. // set field if value's pointer is not nil.
  3207. func (s *ServerUpdateOne) SetNotNilUpdatedAt(value *time.Time) *ServerUpdateOne {
  3208. if value != nil {
  3209. return s.SetUpdatedAt(*value)
  3210. }
  3211. return s
  3212. }
  3213. // set field if value's pointer is not nil.
  3214. func (s *ServerCreate) SetNotNilUpdatedAt(value *time.Time) *ServerCreate {
  3215. if value != nil {
  3216. return s.SetUpdatedAt(*value)
  3217. }
  3218. return s
  3219. }
  3220. // set field if value's pointer is not nil.
  3221. func (s *ServerUpdate) SetNotNilStatus(value *uint8) *ServerUpdate {
  3222. if value != nil {
  3223. return s.SetStatus(*value)
  3224. }
  3225. return s
  3226. }
  3227. // set field if value's pointer is not nil.
  3228. func (s *ServerUpdateOne) SetNotNilStatus(value *uint8) *ServerUpdateOne {
  3229. if value != nil {
  3230. return s.SetStatus(*value)
  3231. }
  3232. return s
  3233. }
  3234. // set field if value's pointer is not nil.
  3235. func (s *ServerCreate) SetNotNilStatus(value *uint8) *ServerCreate {
  3236. if value != nil {
  3237. return s.SetStatus(*value)
  3238. }
  3239. return s
  3240. }
  3241. // set field if value's pointer is not nil.
  3242. func (s *ServerUpdate) SetNotNilDeletedAt(value *time.Time) *ServerUpdate {
  3243. if value != nil {
  3244. return s.SetDeletedAt(*value)
  3245. }
  3246. return s
  3247. }
  3248. // set field if value's pointer is not nil.
  3249. func (s *ServerUpdateOne) SetNotNilDeletedAt(value *time.Time) *ServerUpdateOne {
  3250. if value != nil {
  3251. return s.SetDeletedAt(*value)
  3252. }
  3253. return s
  3254. }
  3255. // set field if value's pointer is not nil.
  3256. func (s *ServerCreate) SetNotNilDeletedAt(value *time.Time) *ServerCreate {
  3257. if value != nil {
  3258. return s.SetDeletedAt(*value)
  3259. }
  3260. return s
  3261. }
  3262. // set field if value's pointer is not nil.
  3263. func (s *ServerUpdate) SetNotNilName(value *string) *ServerUpdate {
  3264. if value != nil {
  3265. return s.SetName(*value)
  3266. }
  3267. return s
  3268. }
  3269. // set field if value's pointer is not nil.
  3270. func (s *ServerUpdateOne) SetNotNilName(value *string) *ServerUpdateOne {
  3271. if value != nil {
  3272. return s.SetName(*value)
  3273. }
  3274. return s
  3275. }
  3276. // set field if value's pointer is not nil.
  3277. func (s *ServerCreate) SetNotNilName(value *string) *ServerCreate {
  3278. if value != nil {
  3279. return s.SetName(*value)
  3280. }
  3281. return s
  3282. }
  3283. // set field if value's pointer is not nil.
  3284. func (s *ServerUpdate) SetNotNilPublicIP(value *string) *ServerUpdate {
  3285. if value != nil {
  3286. return s.SetPublicIP(*value)
  3287. }
  3288. return s
  3289. }
  3290. // set field if value's pointer is not nil.
  3291. func (s *ServerUpdateOne) SetNotNilPublicIP(value *string) *ServerUpdateOne {
  3292. if value != nil {
  3293. return s.SetPublicIP(*value)
  3294. }
  3295. return s
  3296. }
  3297. // set field if value's pointer is not nil.
  3298. func (s *ServerCreate) SetNotNilPublicIP(value *string) *ServerCreate {
  3299. if value != nil {
  3300. return s.SetPublicIP(*value)
  3301. }
  3302. return s
  3303. }
  3304. // set field if value's pointer is not nil.
  3305. func (s *ServerUpdate) SetNotNilPrivateIP(value *string) *ServerUpdate {
  3306. if value != nil {
  3307. return s.SetPrivateIP(*value)
  3308. }
  3309. return s
  3310. }
  3311. // set field if value's pointer is not nil.
  3312. func (s *ServerUpdateOne) SetNotNilPrivateIP(value *string) *ServerUpdateOne {
  3313. if value != nil {
  3314. return s.SetPrivateIP(*value)
  3315. }
  3316. return s
  3317. }
  3318. // set field if value's pointer is not nil.
  3319. func (s *ServerCreate) SetNotNilPrivateIP(value *string) *ServerCreate {
  3320. if value != nil {
  3321. return s.SetPrivateIP(*value)
  3322. }
  3323. return s
  3324. }
  3325. // set field if value's pointer is not nil.
  3326. func (s *ServerUpdate) SetNotNilAdminPort(value *string) *ServerUpdate {
  3327. if value != nil {
  3328. return s.SetAdminPort(*value)
  3329. }
  3330. return s
  3331. }
  3332. // set field if value's pointer is not nil.
  3333. func (s *ServerUpdateOne) SetNotNilAdminPort(value *string) *ServerUpdateOne {
  3334. if value != nil {
  3335. return s.SetAdminPort(*value)
  3336. }
  3337. return s
  3338. }
  3339. // set field if value's pointer is not nil.
  3340. func (s *ServerCreate) SetNotNilAdminPort(value *string) *ServerCreate {
  3341. if value != nil {
  3342. return s.SetAdminPort(*value)
  3343. }
  3344. return s
  3345. }
  3346. // set field if value's pointer is not nil.
  3347. func (sn *SopNodeUpdate) SetNotNilUpdatedAt(value *time.Time) *SopNodeUpdate {
  3348. if value != nil {
  3349. return sn.SetUpdatedAt(*value)
  3350. }
  3351. return sn
  3352. }
  3353. // set field if value's pointer is not nil.
  3354. func (sn *SopNodeUpdateOne) SetNotNilUpdatedAt(value *time.Time) *SopNodeUpdateOne {
  3355. if value != nil {
  3356. return sn.SetUpdatedAt(*value)
  3357. }
  3358. return sn
  3359. }
  3360. // set field if value's pointer is not nil.
  3361. func (sn *SopNodeCreate) SetNotNilUpdatedAt(value *time.Time) *SopNodeCreate {
  3362. if value != nil {
  3363. return sn.SetUpdatedAt(*value)
  3364. }
  3365. return sn
  3366. }
  3367. // set field if value's pointer is not nil.
  3368. func (sn *SopNodeUpdate) SetNotNilStatus(value *uint8) *SopNodeUpdate {
  3369. if value != nil {
  3370. return sn.SetStatus(*value)
  3371. }
  3372. return sn
  3373. }
  3374. // set field if value's pointer is not nil.
  3375. func (sn *SopNodeUpdateOne) SetNotNilStatus(value *uint8) *SopNodeUpdateOne {
  3376. if value != nil {
  3377. return sn.SetStatus(*value)
  3378. }
  3379. return sn
  3380. }
  3381. // set field if value's pointer is not nil.
  3382. func (sn *SopNodeCreate) SetNotNilStatus(value *uint8) *SopNodeCreate {
  3383. if value != nil {
  3384. return sn.SetStatus(*value)
  3385. }
  3386. return sn
  3387. }
  3388. // set field if value's pointer is not nil.
  3389. func (sn *SopNodeUpdate) SetNotNilDeletedAt(value *time.Time) *SopNodeUpdate {
  3390. if value != nil {
  3391. return sn.SetDeletedAt(*value)
  3392. }
  3393. return sn
  3394. }
  3395. // set field if value's pointer is not nil.
  3396. func (sn *SopNodeUpdateOne) SetNotNilDeletedAt(value *time.Time) *SopNodeUpdateOne {
  3397. if value != nil {
  3398. return sn.SetDeletedAt(*value)
  3399. }
  3400. return sn
  3401. }
  3402. // set field if value's pointer is not nil.
  3403. func (sn *SopNodeCreate) SetNotNilDeletedAt(value *time.Time) *SopNodeCreate {
  3404. if value != nil {
  3405. return sn.SetDeletedAt(*value)
  3406. }
  3407. return sn
  3408. }
  3409. // set field if value's pointer is not nil.
  3410. func (sn *SopNodeUpdate) SetNotNilStageID(value *uint64) *SopNodeUpdate {
  3411. if value != nil {
  3412. return sn.SetStageID(*value)
  3413. }
  3414. return sn
  3415. }
  3416. // set field if value's pointer is not nil.
  3417. func (sn *SopNodeUpdateOne) SetNotNilStageID(value *uint64) *SopNodeUpdateOne {
  3418. if value != nil {
  3419. return sn.SetStageID(*value)
  3420. }
  3421. return sn
  3422. }
  3423. // set field if value's pointer is not nil.
  3424. func (sn *SopNodeCreate) SetNotNilStageID(value *uint64) *SopNodeCreate {
  3425. if value != nil {
  3426. return sn.SetStageID(*value)
  3427. }
  3428. return sn
  3429. }
  3430. // set field if value's pointer is not nil.
  3431. func (sn *SopNodeUpdate) SetNotNilParentID(value *uint64) *SopNodeUpdate {
  3432. if value != nil {
  3433. return sn.SetParentID(*value)
  3434. }
  3435. return sn
  3436. }
  3437. // set field if value's pointer is not nil.
  3438. func (sn *SopNodeUpdateOne) SetNotNilParentID(value *uint64) *SopNodeUpdateOne {
  3439. if value != nil {
  3440. return sn.SetParentID(*value)
  3441. }
  3442. return sn
  3443. }
  3444. // set field if value's pointer is not nil.
  3445. func (sn *SopNodeCreate) SetNotNilParentID(value *uint64) *SopNodeCreate {
  3446. if value != nil {
  3447. return sn.SetParentID(*value)
  3448. }
  3449. return sn
  3450. }
  3451. // set field if value's pointer is not nil.
  3452. func (sn *SopNodeUpdate) SetNotNilName(value *string) *SopNodeUpdate {
  3453. if value != nil {
  3454. return sn.SetName(*value)
  3455. }
  3456. return sn
  3457. }
  3458. // set field if value's pointer is not nil.
  3459. func (sn *SopNodeUpdateOne) SetNotNilName(value *string) *SopNodeUpdateOne {
  3460. if value != nil {
  3461. return sn.SetName(*value)
  3462. }
  3463. return sn
  3464. }
  3465. // set field if value's pointer is not nil.
  3466. func (sn *SopNodeCreate) SetNotNilName(value *string) *SopNodeCreate {
  3467. if value != nil {
  3468. return sn.SetName(*value)
  3469. }
  3470. return sn
  3471. }
  3472. // set field if value's pointer is not nil.
  3473. func (sn *SopNodeUpdate) SetNotNilConditionType(value *int) *SopNodeUpdate {
  3474. if value != nil {
  3475. return sn.SetConditionType(*value)
  3476. }
  3477. return sn
  3478. }
  3479. // set field if value's pointer is not nil.
  3480. func (sn *SopNodeUpdateOne) SetNotNilConditionType(value *int) *SopNodeUpdateOne {
  3481. if value != nil {
  3482. return sn.SetConditionType(*value)
  3483. }
  3484. return sn
  3485. }
  3486. // set field if value's pointer is not nil.
  3487. func (sn *SopNodeCreate) SetNotNilConditionType(value *int) *SopNodeCreate {
  3488. if value != nil {
  3489. return sn.SetConditionType(*value)
  3490. }
  3491. return sn
  3492. }
  3493. // set field if value's pointer is not nil.
  3494. func (sn *SopNodeUpdate) SetNotNilConditionList(value []string) *SopNodeUpdate {
  3495. if value != nil {
  3496. return sn.SetConditionList(value)
  3497. }
  3498. return sn
  3499. }
  3500. // set field if value's pointer is not nil.
  3501. func (sn *SopNodeUpdateOne) SetNotNilConditionList(value []string) *SopNodeUpdateOne {
  3502. if value != nil {
  3503. return sn.SetConditionList(value)
  3504. }
  3505. return sn
  3506. }
  3507. // set field if value's pointer is not nil.
  3508. func (sn *SopNodeCreate) SetNotNilConditionList(value []string) *SopNodeCreate {
  3509. if value != nil {
  3510. return sn.SetConditionList(value)
  3511. }
  3512. return sn
  3513. }
  3514. // set field if value's pointer is not nil.
  3515. func (sn *SopNodeUpdate) SetNotNilNoReplyCondition(value *uint64) *SopNodeUpdate {
  3516. if value != nil {
  3517. return sn.SetNoReplyCondition(*value)
  3518. }
  3519. return sn
  3520. }
  3521. // set field if value's pointer is not nil.
  3522. func (sn *SopNodeUpdateOne) SetNotNilNoReplyCondition(value *uint64) *SopNodeUpdateOne {
  3523. if value != nil {
  3524. return sn.SetNoReplyCondition(*value)
  3525. }
  3526. return sn
  3527. }
  3528. // set field if value's pointer is not nil.
  3529. func (sn *SopNodeCreate) SetNotNilNoReplyCondition(value *uint64) *SopNodeCreate {
  3530. if value != nil {
  3531. return sn.SetNoReplyCondition(*value)
  3532. }
  3533. return sn
  3534. }
  3535. // set field if value's pointer is not nil.
  3536. func (sn *SopNodeUpdate) SetNotNilNoReplyUnit(value *string) *SopNodeUpdate {
  3537. if value != nil {
  3538. return sn.SetNoReplyUnit(*value)
  3539. }
  3540. return sn
  3541. }
  3542. // set field if value's pointer is not nil.
  3543. func (sn *SopNodeUpdateOne) SetNotNilNoReplyUnit(value *string) *SopNodeUpdateOne {
  3544. if value != nil {
  3545. return sn.SetNoReplyUnit(*value)
  3546. }
  3547. return sn
  3548. }
  3549. // set field if value's pointer is not nil.
  3550. func (sn *SopNodeCreate) SetNotNilNoReplyUnit(value *string) *SopNodeCreate {
  3551. if value != nil {
  3552. return sn.SetNoReplyUnit(*value)
  3553. }
  3554. return sn
  3555. }
  3556. // set field if value's pointer is not nil.
  3557. func (sn *SopNodeUpdate) SetNotNilActionMessage(value []custom_types.Action) *SopNodeUpdate {
  3558. if value != nil {
  3559. return sn.SetActionMessage(value)
  3560. }
  3561. return sn
  3562. }
  3563. // set field if value's pointer is not nil.
  3564. func (sn *SopNodeUpdateOne) SetNotNilActionMessage(value []custom_types.Action) *SopNodeUpdateOne {
  3565. if value != nil {
  3566. return sn.SetActionMessage(value)
  3567. }
  3568. return sn
  3569. }
  3570. // set field if value's pointer is not nil.
  3571. func (sn *SopNodeCreate) SetNotNilActionMessage(value []custom_types.Action) *SopNodeCreate {
  3572. if value != nil {
  3573. return sn.SetActionMessage(value)
  3574. }
  3575. return sn
  3576. }
  3577. // set field if value's pointer is not nil.
  3578. func (sn *SopNodeUpdate) SetNotNilActionLabelAdd(value []uint64) *SopNodeUpdate {
  3579. if value != nil {
  3580. return sn.SetActionLabelAdd(value)
  3581. }
  3582. return sn
  3583. }
  3584. // set field if value's pointer is not nil.
  3585. func (sn *SopNodeUpdateOne) SetNotNilActionLabelAdd(value []uint64) *SopNodeUpdateOne {
  3586. if value != nil {
  3587. return sn.SetActionLabelAdd(value)
  3588. }
  3589. return sn
  3590. }
  3591. // set field if value's pointer is not nil.
  3592. func (sn *SopNodeCreate) SetNotNilActionLabelAdd(value []uint64) *SopNodeCreate {
  3593. if value != nil {
  3594. return sn.SetActionLabelAdd(value)
  3595. }
  3596. return sn
  3597. }
  3598. // set field if value's pointer is not nil.
  3599. func (sn *SopNodeUpdate) SetNotNilActionLabelDel(value []uint64) *SopNodeUpdate {
  3600. if value != nil {
  3601. return sn.SetActionLabelDel(value)
  3602. }
  3603. return sn
  3604. }
  3605. // set field if value's pointer is not nil.
  3606. func (sn *SopNodeUpdateOne) SetNotNilActionLabelDel(value []uint64) *SopNodeUpdateOne {
  3607. if value != nil {
  3608. return sn.SetActionLabelDel(value)
  3609. }
  3610. return sn
  3611. }
  3612. // set field if value's pointer is not nil.
  3613. func (sn *SopNodeCreate) SetNotNilActionLabelDel(value []uint64) *SopNodeCreate {
  3614. if value != nil {
  3615. return sn.SetActionLabelDel(value)
  3616. }
  3617. return sn
  3618. }
  3619. // set field if value's pointer is not nil.
  3620. func (sn *SopNodeUpdate) SetNotNilActionForward(value **custom_types.ActionForward) *SopNodeUpdate {
  3621. if value != nil {
  3622. return sn.SetActionForward(*value)
  3623. }
  3624. return sn
  3625. }
  3626. // set field if value's pointer is not nil.
  3627. func (sn *SopNodeUpdateOne) SetNotNilActionForward(value **custom_types.ActionForward) *SopNodeUpdateOne {
  3628. if value != nil {
  3629. return sn.SetActionForward(*value)
  3630. }
  3631. return sn
  3632. }
  3633. // set field if value's pointer is not nil.
  3634. func (sn *SopNodeCreate) SetNotNilActionForward(value **custom_types.ActionForward) *SopNodeCreate {
  3635. if value != nil {
  3636. return sn.SetActionForward(*value)
  3637. }
  3638. return sn
  3639. }
  3640. // set field if value's pointer is not nil.
  3641. func (ss *SopStageUpdate) SetNotNilUpdatedAt(value *time.Time) *SopStageUpdate {
  3642. if value != nil {
  3643. return ss.SetUpdatedAt(*value)
  3644. }
  3645. return ss
  3646. }
  3647. // set field if value's pointer is not nil.
  3648. func (ss *SopStageUpdateOne) SetNotNilUpdatedAt(value *time.Time) *SopStageUpdateOne {
  3649. if value != nil {
  3650. return ss.SetUpdatedAt(*value)
  3651. }
  3652. return ss
  3653. }
  3654. // set field if value's pointer is not nil.
  3655. func (ss *SopStageCreate) SetNotNilUpdatedAt(value *time.Time) *SopStageCreate {
  3656. if value != nil {
  3657. return ss.SetUpdatedAt(*value)
  3658. }
  3659. return ss
  3660. }
  3661. // set field if value's pointer is not nil.
  3662. func (ss *SopStageUpdate) SetNotNilStatus(value *uint8) *SopStageUpdate {
  3663. if value != nil {
  3664. return ss.SetStatus(*value)
  3665. }
  3666. return ss
  3667. }
  3668. // set field if value's pointer is not nil.
  3669. func (ss *SopStageUpdateOne) SetNotNilStatus(value *uint8) *SopStageUpdateOne {
  3670. if value != nil {
  3671. return ss.SetStatus(*value)
  3672. }
  3673. return ss
  3674. }
  3675. // set field if value's pointer is not nil.
  3676. func (ss *SopStageCreate) SetNotNilStatus(value *uint8) *SopStageCreate {
  3677. if value != nil {
  3678. return ss.SetStatus(*value)
  3679. }
  3680. return ss
  3681. }
  3682. // set field if value's pointer is not nil.
  3683. func (ss *SopStageUpdate) SetNotNilDeletedAt(value *time.Time) *SopStageUpdate {
  3684. if value != nil {
  3685. return ss.SetDeletedAt(*value)
  3686. }
  3687. return ss
  3688. }
  3689. // set field if value's pointer is not nil.
  3690. func (ss *SopStageUpdateOne) SetNotNilDeletedAt(value *time.Time) *SopStageUpdateOne {
  3691. if value != nil {
  3692. return ss.SetDeletedAt(*value)
  3693. }
  3694. return ss
  3695. }
  3696. // set field if value's pointer is not nil.
  3697. func (ss *SopStageCreate) SetNotNilDeletedAt(value *time.Time) *SopStageCreate {
  3698. if value != nil {
  3699. return ss.SetDeletedAt(*value)
  3700. }
  3701. return ss
  3702. }
  3703. // set field if value's pointer is not nil.
  3704. func (ss *SopStageUpdate) SetNotNilTaskID(value *uint64) *SopStageUpdate {
  3705. if value != nil {
  3706. return ss.SetTaskID(*value)
  3707. }
  3708. return ss
  3709. }
  3710. // set field if value's pointer is not nil.
  3711. func (ss *SopStageUpdateOne) SetNotNilTaskID(value *uint64) *SopStageUpdateOne {
  3712. if value != nil {
  3713. return ss.SetTaskID(*value)
  3714. }
  3715. return ss
  3716. }
  3717. // set field if value's pointer is not nil.
  3718. func (ss *SopStageCreate) SetNotNilTaskID(value *uint64) *SopStageCreate {
  3719. if value != nil {
  3720. return ss.SetTaskID(*value)
  3721. }
  3722. return ss
  3723. }
  3724. // set field if value's pointer is not nil.
  3725. func (ss *SopStageUpdate) SetNotNilName(value *string) *SopStageUpdate {
  3726. if value != nil {
  3727. return ss.SetName(*value)
  3728. }
  3729. return ss
  3730. }
  3731. // set field if value's pointer is not nil.
  3732. func (ss *SopStageUpdateOne) SetNotNilName(value *string) *SopStageUpdateOne {
  3733. if value != nil {
  3734. return ss.SetName(*value)
  3735. }
  3736. return ss
  3737. }
  3738. // set field if value's pointer is not nil.
  3739. func (ss *SopStageCreate) SetNotNilName(value *string) *SopStageCreate {
  3740. if value != nil {
  3741. return ss.SetName(*value)
  3742. }
  3743. return ss
  3744. }
  3745. // set field if value's pointer is not nil.
  3746. func (ss *SopStageUpdate) SetNotNilConditionType(value *int) *SopStageUpdate {
  3747. if value != nil {
  3748. return ss.SetConditionType(*value)
  3749. }
  3750. return ss
  3751. }
  3752. // set field if value's pointer is not nil.
  3753. func (ss *SopStageUpdateOne) SetNotNilConditionType(value *int) *SopStageUpdateOne {
  3754. if value != nil {
  3755. return ss.SetConditionType(*value)
  3756. }
  3757. return ss
  3758. }
  3759. // set field if value's pointer is not nil.
  3760. func (ss *SopStageCreate) SetNotNilConditionType(value *int) *SopStageCreate {
  3761. if value != nil {
  3762. return ss.SetConditionType(*value)
  3763. }
  3764. return ss
  3765. }
  3766. // set field if value's pointer is not nil.
  3767. func (ss *SopStageUpdate) SetNotNilConditionOperator(value *int) *SopStageUpdate {
  3768. if value != nil {
  3769. return ss.SetConditionOperator(*value)
  3770. }
  3771. return ss
  3772. }
  3773. // set field if value's pointer is not nil.
  3774. func (ss *SopStageUpdateOne) SetNotNilConditionOperator(value *int) *SopStageUpdateOne {
  3775. if value != nil {
  3776. return ss.SetConditionOperator(*value)
  3777. }
  3778. return ss
  3779. }
  3780. // set field if value's pointer is not nil.
  3781. func (ss *SopStageCreate) SetNotNilConditionOperator(value *int) *SopStageCreate {
  3782. if value != nil {
  3783. return ss.SetConditionOperator(*value)
  3784. }
  3785. return ss
  3786. }
  3787. // set field if value's pointer is not nil.
  3788. func (ss *SopStageUpdate) SetNotNilConditionList(value []custom_types.Condition) *SopStageUpdate {
  3789. if value != nil {
  3790. return ss.SetConditionList(value)
  3791. }
  3792. return ss
  3793. }
  3794. // set field if value's pointer is not nil.
  3795. func (ss *SopStageUpdateOne) SetNotNilConditionList(value []custom_types.Condition) *SopStageUpdateOne {
  3796. if value != nil {
  3797. return ss.SetConditionList(value)
  3798. }
  3799. return ss
  3800. }
  3801. // set field if value's pointer is not nil.
  3802. func (ss *SopStageCreate) SetNotNilConditionList(value []custom_types.Condition) *SopStageCreate {
  3803. if value != nil {
  3804. return ss.SetConditionList(value)
  3805. }
  3806. return ss
  3807. }
  3808. // set field if value's pointer is not nil.
  3809. func (ss *SopStageUpdate) SetNotNilActionMessage(value []custom_types.Action) *SopStageUpdate {
  3810. if value != nil {
  3811. return ss.SetActionMessage(value)
  3812. }
  3813. return ss
  3814. }
  3815. // set field if value's pointer is not nil.
  3816. func (ss *SopStageUpdateOne) SetNotNilActionMessage(value []custom_types.Action) *SopStageUpdateOne {
  3817. if value != nil {
  3818. return ss.SetActionMessage(value)
  3819. }
  3820. return ss
  3821. }
  3822. // set field if value's pointer is not nil.
  3823. func (ss *SopStageCreate) SetNotNilActionMessage(value []custom_types.Action) *SopStageCreate {
  3824. if value != nil {
  3825. return ss.SetActionMessage(value)
  3826. }
  3827. return ss
  3828. }
  3829. // set field if value's pointer is not nil.
  3830. func (ss *SopStageUpdate) SetNotNilActionLabelAdd(value []uint64) *SopStageUpdate {
  3831. if value != nil {
  3832. return ss.SetActionLabelAdd(value)
  3833. }
  3834. return ss
  3835. }
  3836. // set field if value's pointer is not nil.
  3837. func (ss *SopStageUpdateOne) SetNotNilActionLabelAdd(value []uint64) *SopStageUpdateOne {
  3838. if value != nil {
  3839. return ss.SetActionLabelAdd(value)
  3840. }
  3841. return ss
  3842. }
  3843. // set field if value's pointer is not nil.
  3844. func (ss *SopStageCreate) SetNotNilActionLabelAdd(value []uint64) *SopStageCreate {
  3845. if value != nil {
  3846. return ss.SetActionLabelAdd(value)
  3847. }
  3848. return ss
  3849. }
  3850. // set field if value's pointer is not nil.
  3851. func (ss *SopStageUpdate) SetNotNilActionLabelDel(value []uint64) *SopStageUpdate {
  3852. if value != nil {
  3853. return ss.SetActionLabelDel(value)
  3854. }
  3855. return ss
  3856. }
  3857. // set field if value's pointer is not nil.
  3858. func (ss *SopStageUpdateOne) SetNotNilActionLabelDel(value []uint64) *SopStageUpdateOne {
  3859. if value != nil {
  3860. return ss.SetActionLabelDel(value)
  3861. }
  3862. return ss
  3863. }
  3864. // set field if value's pointer is not nil.
  3865. func (ss *SopStageCreate) SetNotNilActionLabelDel(value []uint64) *SopStageCreate {
  3866. if value != nil {
  3867. return ss.SetActionLabelDel(value)
  3868. }
  3869. return ss
  3870. }
  3871. // set field if value's pointer is not nil.
  3872. func (ss *SopStageUpdate) SetNotNilActionForward(value **custom_types.ActionForward) *SopStageUpdate {
  3873. if value != nil {
  3874. return ss.SetActionForward(*value)
  3875. }
  3876. return ss
  3877. }
  3878. // set field if value's pointer is not nil.
  3879. func (ss *SopStageUpdateOne) SetNotNilActionForward(value **custom_types.ActionForward) *SopStageUpdateOne {
  3880. if value != nil {
  3881. return ss.SetActionForward(*value)
  3882. }
  3883. return ss
  3884. }
  3885. // set field if value's pointer is not nil.
  3886. func (ss *SopStageCreate) SetNotNilActionForward(value **custom_types.ActionForward) *SopStageCreate {
  3887. if value != nil {
  3888. return ss.SetActionForward(*value)
  3889. }
  3890. return ss
  3891. }
  3892. // set field if value's pointer is not nil.
  3893. func (ss *SopStageUpdate) SetNotNilIndexSort(value *int) *SopStageUpdate {
  3894. if value != nil {
  3895. return ss.SetIndexSort(*value)
  3896. }
  3897. return ss
  3898. }
  3899. // set field if value's pointer is not nil.
  3900. func (ss *SopStageUpdateOne) SetNotNilIndexSort(value *int) *SopStageUpdateOne {
  3901. if value != nil {
  3902. return ss.SetIndexSort(*value)
  3903. }
  3904. return ss
  3905. }
  3906. // set field if value's pointer is not nil.
  3907. func (ss *SopStageCreate) SetNotNilIndexSort(value *int) *SopStageCreate {
  3908. if value != nil {
  3909. return ss.SetIndexSort(*value)
  3910. }
  3911. return ss
  3912. }
  3913. // set field if value's pointer is not nil.
  3914. func (st *SopTaskUpdate) SetNotNilUpdatedAt(value *time.Time) *SopTaskUpdate {
  3915. if value != nil {
  3916. return st.SetUpdatedAt(*value)
  3917. }
  3918. return st
  3919. }
  3920. // set field if value's pointer is not nil.
  3921. func (st *SopTaskUpdateOne) SetNotNilUpdatedAt(value *time.Time) *SopTaskUpdateOne {
  3922. if value != nil {
  3923. return st.SetUpdatedAt(*value)
  3924. }
  3925. return st
  3926. }
  3927. // set field if value's pointer is not nil.
  3928. func (st *SopTaskCreate) SetNotNilUpdatedAt(value *time.Time) *SopTaskCreate {
  3929. if value != nil {
  3930. return st.SetUpdatedAt(*value)
  3931. }
  3932. return st
  3933. }
  3934. // set field if value's pointer is not nil.
  3935. func (st *SopTaskUpdate) SetNotNilStatus(value *uint8) *SopTaskUpdate {
  3936. if value != nil {
  3937. return st.SetStatus(*value)
  3938. }
  3939. return st
  3940. }
  3941. // set field if value's pointer is not nil.
  3942. func (st *SopTaskUpdateOne) SetNotNilStatus(value *uint8) *SopTaskUpdateOne {
  3943. if value != nil {
  3944. return st.SetStatus(*value)
  3945. }
  3946. return st
  3947. }
  3948. // set field if value's pointer is not nil.
  3949. func (st *SopTaskCreate) SetNotNilStatus(value *uint8) *SopTaskCreate {
  3950. if value != nil {
  3951. return st.SetStatus(*value)
  3952. }
  3953. return st
  3954. }
  3955. // set field if value's pointer is not nil.
  3956. func (st *SopTaskUpdate) SetNotNilDeletedAt(value *time.Time) *SopTaskUpdate {
  3957. if value != nil {
  3958. return st.SetDeletedAt(*value)
  3959. }
  3960. return st
  3961. }
  3962. // set field if value's pointer is not nil.
  3963. func (st *SopTaskUpdateOne) SetNotNilDeletedAt(value *time.Time) *SopTaskUpdateOne {
  3964. if value != nil {
  3965. return st.SetDeletedAt(*value)
  3966. }
  3967. return st
  3968. }
  3969. // set field if value's pointer is not nil.
  3970. func (st *SopTaskCreate) SetNotNilDeletedAt(value *time.Time) *SopTaskCreate {
  3971. if value != nil {
  3972. return st.SetDeletedAt(*value)
  3973. }
  3974. return st
  3975. }
  3976. // set field if value's pointer is not nil.
  3977. func (st *SopTaskUpdate) SetNotNilName(value *string) *SopTaskUpdate {
  3978. if value != nil {
  3979. return st.SetName(*value)
  3980. }
  3981. return st
  3982. }
  3983. // set field if value's pointer is not nil.
  3984. func (st *SopTaskUpdateOne) SetNotNilName(value *string) *SopTaskUpdateOne {
  3985. if value != nil {
  3986. return st.SetName(*value)
  3987. }
  3988. return st
  3989. }
  3990. // set field if value's pointer is not nil.
  3991. func (st *SopTaskCreate) SetNotNilName(value *string) *SopTaskCreate {
  3992. if value != nil {
  3993. return st.SetName(*value)
  3994. }
  3995. return st
  3996. }
  3997. // set field if value's pointer is not nil.
  3998. func (st *SopTaskUpdate) SetNotNilBotWxidList(value []string) *SopTaskUpdate {
  3999. if value != nil {
  4000. return st.SetBotWxidList(value)
  4001. }
  4002. return st
  4003. }
  4004. // set field if value's pointer is not nil.
  4005. func (st *SopTaskUpdateOne) SetNotNilBotWxidList(value []string) *SopTaskUpdateOne {
  4006. if value != nil {
  4007. return st.SetBotWxidList(value)
  4008. }
  4009. return st
  4010. }
  4011. // set field if value's pointer is not nil.
  4012. func (st *SopTaskCreate) SetNotNilBotWxidList(value []string) *SopTaskCreate {
  4013. if value != nil {
  4014. return st.SetBotWxidList(value)
  4015. }
  4016. return st
  4017. }
  4018. // set field if value's pointer is not nil.
  4019. func (st *SopTaskUpdate) SetNotNilType(value *int) *SopTaskUpdate {
  4020. if value != nil {
  4021. return st.SetType(*value)
  4022. }
  4023. return st
  4024. }
  4025. // set field if value's pointer is not nil.
  4026. func (st *SopTaskUpdateOne) SetNotNilType(value *int) *SopTaskUpdateOne {
  4027. if value != nil {
  4028. return st.SetType(*value)
  4029. }
  4030. return st
  4031. }
  4032. // set field if value's pointer is not nil.
  4033. func (st *SopTaskCreate) SetNotNilType(value *int) *SopTaskCreate {
  4034. if value != nil {
  4035. return st.SetType(*value)
  4036. }
  4037. return st
  4038. }
  4039. // set field if value's pointer is not nil.
  4040. func (st *SopTaskUpdate) SetNotNilPlanStartTime(value *time.Time) *SopTaskUpdate {
  4041. if value != nil {
  4042. return st.SetPlanStartTime(*value)
  4043. }
  4044. return st
  4045. }
  4046. // set field if value's pointer is not nil.
  4047. func (st *SopTaskUpdateOne) SetNotNilPlanStartTime(value *time.Time) *SopTaskUpdateOne {
  4048. if value != nil {
  4049. return st.SetPlanStartTime(*value)
  4050. }
  4051. return st
  4052. }
  4053. // set field if value's pointer is not nil.
  4054. func (st *SopTaskCreate) SetNotNilPlanStartTime(value *time.Time) *SopTaskCreate {
  4055. if value != nil {
  4056. return st.SetPlanStartTime(*value)
  4057. }
  4058. return st
  4059. }
  4060. // set field if value's pointer is not nil.
  4061. func (st *SopTaskUpdate) SetNotNilPlanEndTime(value *time.Time) *SopTaskUpdate {
  4062. if value != nil {
  4063. return st.SetPlanEndTime(*value)
  4064. }
  4065. return st
  4066. }
  4067. // set field if value's pointer is not nil.
  4068. func (st *SopTaskUpdateOne) SetNotNilPlanEndTime(value *time.Time) *SopTaskUpdateOne {
  4069. if value != nil {
  4070. return st.SetPlanEndTime(*value)
  4071. }
  4072. return st
  4073. }
  4074. // set field if value's pointer is not nil.
  4075. func (st *SopTaskCreate) SetNotNilPlanEndTime(value *time.Time) *SopTaskCreate {
  4076. if value != nil {
  4077. return st.SetPlanEndTime(*value)
  4078. }
  4079. return st
  4080. }
  4081. // set field if value's pointer is not nil.
  4082. func (st *SopTaskUpdate) SetNotNilCreatorID(value *string) *SopTaskUpdate {
  4083. if value != nil {
  4084. return st.SetCreatorID(*value)
  4085. }
  4086. return st
  4087. }
  4088. // set field if value's pointer is not nil.
  4089. func (st *SopTaskUpdateOne) SetNotNilCreatorID(value *string) *SopTaskUpdateOne {
  4090. if value != nil {
  4091. return st.SetCreatorID(*value)
  4092. }
  4093. return st
  4094. }
  4095. // set field if value's pointer is not nil.
  4096. func (st *SopTaskCreate) SetNotNilCreatorID(value *string) *SopTaskCreate {
  4097. if value != nil {
  4098. return st.SetCreatorID(*value)
  4099. }
  4100. return st
  4101. }
  4102. // set field if value's pointer is not nil.
  4103. func (st *SopTaskUpdate) SetNotNilOrganizationID(value *uint64) *SopTaskUpdate {
  4104. if value != nil {
  4105. return st.SetOrganizationID(*value)
  4106. }
  4107. return st
  4108. }
  4109. // set field if value's pointer is not nil.
  4110. func (st *SopTaskUpdateOne) SetNotNilOrganizationID(value *uint64) *SopTaskUpdateOne {
  4111. if value != nil {
  4112. return st.SetOrganizationID(*value)
  4113. }
  4114. return st
  4115. }
  4116. // set field if value's pointer is not nil.
  4117. func (st *SopTaskCreate) SetNotNilOrganizationID(value *uint64) *SopTaskCreate {
  4118. if value != nil {
  4119. return st.SetOrganizationID(*value)
  4120. }
  4121. return st
  4122. }
  4123. // set field if value's pointer is not nil.
  4124. func (st *SopTaskUpdate) SetNotNilToken(value []string) *SopTaskUpdate {
  4125. if value != nil {
  4126. return st.SetToken(value)
  4127. }
  4128. return st
  4129. }
  4130. // set field if value's pointer is not nil.
  4131. func (st *SopTaskUpdateOne) SetNotNilToken(value []string) *SopTaskUpdateOne {
  4132. if value != nil {
  4133. return st.SetToken(value)
  4134. }
  4135. return st
  4136. }
  4137. // set field if value's pointer is not nil.
  4138. func (st *SopTaskCreate) SetNotNilToken(value []string) *SopTaskCreate {
  4139. if value != nil {
  4140. return st.SetToken(value)
  4141. }
  4142. return st
  4143. }
  4144. // set field if value's pointer is not nil.
  4145. func (t *TokenUpdate) SetNotNilUpdatedAt(value *time.Time) *TokenUpdate {
  4146. if value != nil {
  4147. return t.SetUpdatedAt(*value)
  4148. }
  4149. return t
  4150. }
  4151. // set field if value's pointer is not nil.
  4152. func (t *TokenUpdateOne) SetNotNilUpdatedAt(value *time.Time) *TokenUpdateOne {
  4153. if value != nil {
  4154. return t.SetUpdatedAt(*value)
  4155. }
  4156. return t
  4157. }
  4158. // set field if value's pointer is not nil.
  4159. func (t *TokenCreate) SetNotNilUpdatedAt(value *time.Time) *TokenCreate {
  4160. if value != nil {
  4161. return t.SetUpdatedAt(*value)
  4162. }
  4163. return t
  4164. }
  4165. // set field if value's pointer is not nil.
  4166. func (t *TokenUpdate) SetNotNilDeletedAt(value *time.Time) *TokenUpdate {
  4167. if value != nil {
  4168. return t.SetDeletedAt(*value)
  4169. }
  4170. return t
  4171. }
  4172. // set field if value's pointer is not nil.
  4173. func (t *TokenUpdateOne) SetNotNilDeletedAt(value *time.Time) *TokenUpdateOne {
  4174. if value != nil {
  4175. return t.SetDeletedAt(*value)
  4176. }
  4177. return t
  4178. }
  4179. // set field if value's pointer is not nil.
  4180. func (t *TokenCreate) SetNotNilDeletedAt(value *time.Time) *TokenCreate {
  4181. if value != nil {
  4182. return t.SetDeletedAt(*value)
  4183. }
  4184. return t
  4185. }
  4186. // set field if value's pointer is not nil.
  4187. func (t *TokenUpdate) SetNotNilExpireAt(value *time.Time) *TokenUpdate {
  4188. if value != nil {
  4189. return t.SetExpireAt(*value)
  4190. }
  4191. return t
  4192. }
  4193. // set field if value's pointer is not nil.
  4194. func (t *TokenUpdateOne) SetNotNilExpireAt(value *time.Time) *TokenUpdateOne {
  4195. if value != nil {
  4196. return t.SetExpireAt(*value)
  4197. }
  4198. return t
  4199. }
  4200. // set field if value's pointer is not nil.
  4201. func (t *TokenCreate) SetNotNilExpireAt(value *time.Time) *TokenCreate {
  4202. if value != nil {
  4203. return t.SetExpireAt(*value)
  4204. }
  4205. return t
  4206. }
  4207. // set field if value's pointer is not nil.
  4208. func (t *TokenUpdate) SetNotNilToken(value *string) *TokenUpdate {
  4209. if value != nil {
  4210. return t.SetToken(*value)
  4211. }
  4212. return t
  4213. }
  4214. // set field if value's pointer is not nil.
  4215. func (t *TokenUpdateOne) SetNotNilToken(value *string) *TokenUpdateOne {
  4216. if value != nil {
  4217. return t.SetToken(*value)
  4218. }
  4219. return t
  4220. }
  4221. // set field if value's pointer is not nil.
  4222. func (t *TokenCreate) SetNotNilToken(value *string) *TokenCreate {
  4223. if value != nil {
  4224. return t.SetToken(*value)
  4225. }
  4226. return t
  4227. }
  4228. // set field if value's pointer is not nil.
  4229. func (t *TokenUpdate) SetNotNilMAC(value *string) *TokenUpdate {
  4230. if value != nil {
  4231. return t.SetMAC(*value)
  4232. }
  4233. return t
  4234. }
  4235. // set field if value's pointer is not nil.
  4236. func (t *TokenUpdateOne) SetNotNilMAC(value *string) *TokenUpdateOne {
  4237. if value != nil {
  4238. return t.SetMAC(*value)
  4239. }
  4240. return t
  4241. }
  4242. // set field if value's pointer is not nil.
  4243. func (t *TokenCreate) SetNotNilMAC(value *string) *TokenCreate {
  4244. if value != nil {
  4245. return t.SetMAC(*value)
  4246. }
  4247. return t
  4248. }
  4249. // set field if value's pointer is not nil.
  4250. func (t *TokenUpdate) SetNotNilOrganizationID(value *uint64) *TokenUpdate {
  4251. if value != nil {
  4252. return t.SetOrganizationID(*value)
  4253. }
  4254. return t
  4255. }
  4256. // set field if value's pointer is not nil.
  4257. func (t *TokenUpdateOne) SetNotNilOrganizationID(value *uint64) *TokenUpdateOne {
  4258. if value != nil {
  4259. return t.SetOrganizationID(*value)
  4260. }
  4261. return t
  4262. }
  4263. // set field if value's pointer is not nil.
  4264. func (t *TokenCreate) SetNotNilOrganizationID(value *uint64) *TokenCreate {
  4265. if value != nil {
  4266. return t.SetOrganizationID(*value)
  4267. }
  4268. return t
  4269. }
  4270. // set field if value's pointer is not nil.
  4271. func (t *TokenUpdate) SetNotNilAgentID(value *uint64) *TokenUpdate {
  4272. if value != nil {
  4273. return t.SetAgentID(*value)
  4274. }
  4275. return t
  4276. }
  4277. // set field if value's pointer is not nil.
  4278. func (t *TokenUpdateOne) SetNotNilAgentID(value *uint64) *TokenUpdateOne {
  4279. if value != nil {
  4280. return t.SetAgentID(*value)
  4281. }
  4282. return t
  4283. }
  4284. // set field if value's pointer is not nil.
  4285. func (t *TokenCreate) SetNotNilAgentID(value *uint64) *TokenCreate {
  4286. if value != nil {
  4287. return t.SetAgentID(*value)
  4288. }
  4289. return t
  4290. }
  4291. // set field if value's pointer is not nil.
  4292. func (t *TokenUpdate) SetNotNilCustomAgentBase(value *string) *TokenUpdate {
  4293. if value != nil {
  4294. return t.SetCustomAgentBase(*value)
  4295. }
  4296. return t
  4297. }
  4298. // set field if value's pointer is not nil.
  4299. func (t *TokenUpdateOne) SetNotNilCustomAgentBase(value *string) *TokenUpdateOne {
  4300. if value != nil {
  4301. return t.SetCustomAgentBase(*value)
  4302. }
  4303. return t
  4304. }
  4305. // set field if value's pointer is not nil.
  4306. func (t *TokenCreate) SetNotNilCustomAgentBase(value *string) *TokenCreate {
  4307. if value != nil {
  4308. return t.SetCustomAgentBase(*value)
  4309. }
  4310. return t
  4311. }
  4312. // set field if value's pointer is not nil.
  4313. func (t *TokenUpdate) SetNotNilCustomAgentKey(value *string) *TokenUpdate {
  4314. if value != nil {
  4315. return t.SetCustomAgentKey(*value)
  4316. }
  4317. return t
  4318. }
  4319. // set field if value's pointer is not nil.
  4320. func (t *TokenUpdateOne) SetNotNilCustomAgentKey(value *string) *TokenUpdateOne {
  4321. if value != nil {
  4322. return t.SetCustomAgentKey(*value)
  4323. }
  4324. return t
  4325. }
  4326. // set field if value's pointer is not nil.
  4327. func (t *TokenCreate) SetNotNilCustomAgentKey(value *string) *TokenCreate {
  4328. if value != nil {
  4329. return t.SetCustomAgentKey(*value)
  4330. }
  4331. return t
  4332. }
  4333. // set field if value's pointer is not nil.
  4334. func (t *TokenUpdate) SetNotNilOpenaiBase(value *string) *TokenUpdate {
  4335. if value != nil {
  4336. return t.SetOpenaiBase(*value)
  4337. }
  4338. return t
  4339. }
  4340. // set field if value's pointer is not nil.
  4341. func (t *TokenUpdateOne) SetNotNilOpenaiBase(value *string) *TokenUpdateOne {
  4342. if value != nil {
  4343. return t.SetOpenaiBase(*value)
  4344. }
  4345. return t
  4346. }
  4347. // set field if value's pointer is not nil.
  4348. func (t *TokenCreate) SetNotNilOpenaiBase(value *string) *TokenCreate {
  4349. if value != nil {
  4350. return t.SetOpenaiBase(*value)
  4351. }
  4352. return t
  4353. }
  4354. // set field if value's pointer is not nil.
  4355. func (t *TokenUpdate) SetNotNilOpenaiKey(value *string) *TokenUpdate {
  4356. if value != nil {
  4357. return t.SetOpenaiKey(*value)
  4358. }
  4359. return t
  4360. }
  4361. // set field if value's pointer is not nil.
  4362. func (t *TokenUpdateOne) SetNotNilOpenaiKey(value *string) *TokenUpdateOne {
  4363. if value != nil {
  4364. return t.SetOpenaiKey(*value)
  4365. }
  4366. return t
  4367. }
  4368. // set field if value's pointer is not nil.
  4369. func (t *TokenCreate) SetNotNilOpenaiKey(value *string) *TokenCreate {
  4370. if value != nil {
  4371. return t.SetOpenaiKey(*value)
  4372. }
  4373. return t
  4374. }
  4375. // set field if value's pointer is not nil.
  4376. func (t *TutorialUpdate) SetNotNilUpdatedAt(value *time.Time) *TutorialUpdate {
  4377. if value != nil {
  4378. return t.SetUpdatedAt(*value)
  4379. }
  4380. return t
  4381. }
  4382. // set field if value's pointer is not nil.
  4383. func (t *TutorialUpdateOne) SetNotNilUpdatedAt(value *time.Time) *TutorialUpdateOne {
  4384. if value != nil {
  4385. return t.SetUpdatedAt(*value)
  4386. }
  4387. return t
  4388. }
  4389. // set field if value's pointer is not nil.
  4390. func (t *TutorialCreate) SetNotNilUpdatedAt(value *time.Time) *TutorialCreate {
  4391. if value != nil {
  4392. return t.SetUpdatedAt(*value)
  4393. }
  4394. return t
  4395. }
  4396. // set field if value's pointer is not nil.
  4397. func (t *TutorialUpdate) SetNotNilDeletedAt(value *time.Time) *TutorialUpdate {
  4398. if value != nil {
  4399. return t.SetDeletedAt(*value)
  4400. }
  4401. return t
  4402. }
  4403. // set field if value's pointer is not nil.
  4404. func (t *TutorialUpdateOne) SetNotNilDeletedAt(value *time.Time) *TutorialUpdateOne {
  4405. if value != nil {
  4406. return t.SetDeletedAt(*value)
  4407. }
  4408. return t
  4409. }
  4410. // set field if value's pointer is not nil.
  4411. func (t *TutorialCreate) SetNotNilDeletedAt(value *time.Time) *TutorialCreate {
  4412. if value != nil {
  4413. return t.SetDeletedAt(*value)
  4414. }
  4415. return t
  4416. }
  4417. // set field if value's pointer is not nil.
  4418. func (t *TutorialUpdate) SetNotNilEmployeeID(value *uint64) *TutorialUpdate {
  4419. if value != nil {
  4420. return t.SetEmployeeID(*value)
  4421. }
  4422. return t
  4423. }
  4424. // set field if value's pointer is not nil.
  4425. func (t *TutorialUpdateOne) SetNotNilEmployeeID(value *uint64) *TutorialUpdateOne {
  4426. if value != nil {
  4427. return t.SetEmployeeID(*value)
  4428. }
  4429. return t
  4430. }
  4431. // set field if value's pointer is not nil.
  4432. func (t *TutorialCreate) SetNotNilEmployeeID(value *uint64) *TutorialCreate {
  4433. if value != nil {
  4434. return t.SetEmployeeID(*value)
  4435. }
  4436. return t
  4437. }
  4438. // set field if value's pointer is not nil.
  4439. func (t *TutorialUpdate) SetNotNilIndex(value *int) *TutorialUpdate {
  4440. if value != nil {
  4441. return t.SetIndex(*value)
  4442. }
  4443. return t
  4444. }
  4445. // set field if value's pointer is not nil.
  4446. func (t *TutorialUpdateOne) SetNotNilIndex(value *int) *TutorialUpdateOne {
  4447. if value != nil {
  4448. return t.SetIndex(*value)
  4449. }
  4450. return t
  4451. }
  4452. // set field if value's pointer is not nil.
  4453. func (t *TutorialCreate) SetNotNilIndex(value *int) *TutorialCreate {
  4454. if value != nil {
  4455. return t.SetIndex(*value)
  4456. }
  4457. return t
  4458. }
  4459. // set field if value's pointer is not nil.
  4460. func (t *TutorialUpdate) SetNotNilTitle(value *string) *TutorialUpdate {
  4461. if value != nil {
  4462. return t.SetTitle(*value)
  4463. }
  4464. return t
  4465. }
  4466. // set field if value's pointer is not nil.
  4467. func (t *TutorialUpdateOne) SetNotNilTitle(value *string) *TutorialUpdateOne {
  4468. if value != nil {
  4469. return t.SetTitle(*value)
  4470. }
  4471. return t
  4472. }
  4473. // set field if value's pointer is not nil.
  4474. func (t *TutorialCreate) SetNotNilTitle(value *string) *TutorialCreate {
  4475. if value != nil {
  4476. return t.SetTitle(*value)
  4477. }
  4478. return t
  4479. }
  4480. // set field if value's pointer is not nil.
  4481. func (t *TutorialUpdate) SetNotNilContent(value *string) *TutorialUpdate {
  4482. if value != nil {
  4483. return t.SetContent(*value)
  4484. }
  4485. return t
  4486. }
  4487. // set field if value's pointer is not nil.
  4488. func (t *TutorialUpdateOne) SetNotNilContent(value *string) *TutorialUpdateOne {
  4489. if value != nil {
  4490. return t.SetContent(*value)
  4491. }
  4492. return t
  4493. }
  4494. // set field if value's pointer is not nil.
  4495. func (t *TutorialCreate) SetNotNilContent(value *string) *TutorialCreate {
  4496. if value != nil {
  4497. return t.SetContent(*value)
  4498. }
  4499. return t
  4500. }
  4501. // set field if value's pointer is not nil.
  4502. func (t *TutorialUpdate) SetNotNilOrganizationID(value *uint64) *TutorialUpdate {
  4503. if value != nil {
  4504. return t.SetOrganizationID(*value)
  4505. }
  4506. return t
  4507. }
  4508. // set field if value's pointer is not nil.
  4509. func (t *TutorialUpdateOne) SetNotNilOrganizationID(value *uint64) *TutorialUpdateOne {
  4510. if value != nil {
  4511. return t.SetOrganizationID(*value)
  4512. }
  4513. return t
  4514. }
  4515. // set field if value's pointer is not nil.
  4516. func (t *TutorialCreate) SetNotNilOrganizationID(value *uint64) *TutorialCreate {
  4517. if value != nil {
  4518. return t.SetOrganizationID(*value)
  4519. }
  4520. return t
  4521. }
  4522. // set field if value's pointer is not nil.
  4523. func (ud *UsageDetailUpdate) SetNotNilUpdatedAt(value *time.Time) *UsageDetailUpdate {
  4524. if value != nil {
  4525. return ud.SetUpdatedAt(*value)
  4526. }
  4527. return ud
  4528. }
  4529. // set field if value's pointer is not nil.
  4530. func (ud *UsageDetailUpdateOne) SetNotNilUpdatedAt(value *time.Time) *UsageDetailUpdateOne {
  4531. if value != nil {
  4532. return ud.SetUpdatedAt(*value)
  4533. }
  4534. return ud
  4535. }
  4536. // set field if value's pointer is not nil.
  4537. func (ud *UsageDetailCreate) SetNotNilUpdatedAt(value *time.Time) *UsageDetailCreate {
  4538. if value != nil {
  4539. return ud.SetUpdatedAt(*value)
  4540. }
  4541. return ud
  4542. }
  4543. // set field if value's pointer is not nil.
  4544. func (ud *UsageDetailUpdate) SetNotNilStatus(value *uint8) *UsageDetailUpdate {
  4545. if value != nil {
  4546. return ud.SetStatus(*value)
  4547. }
  4548. return ud
  4549. }
  4550. // set field if value's pointer is not nil.
  4551. func (ud *UsageDetailUpdateOne) SetNotNilStatus(value *uint8) *UsageDetailUpdateOne {
  4552. if value != nil {
  4553. return ud.SetStatus(*value)
  4554. }
  4555. return ud
  4556. }
  4557. // set field if value's pointer is not nil.
  4558. func (ud *UsageDetailCreate) SetNotNilStatus(value *uint8) *UsageDetailCreate {
  4559. if value != nil {
  4560. return ud.SetStatus(*value)
  4561. }
  4562. return ud
  4563. }
  4564. // set field if value's pointer is not nil.
  4565. func (ud *UsageDetailUpdate) SetNotNilType(value *int) *UsageDetailUpdate {
  4566. if value != nil {
  4567. return ud.SetType(*value)
  4568. }
  4569. return ud
  4570. }
  4571. // set field if value's pointer is not nil.
  4572. func (ud *UsageDetailUpdateOne) SetNotNilType(value *int) *UsageDetailUpdateOne {
  4573. if value != nil {
  4574. return ud.SetType(*value)
  4575. }
  4576. return ud
  4577. }
  4578. // set field if value's pointer is not nil.
  4579. func (ud *UsageDetailCreate) SetNotNilType(value *int) *UsageDetailCreate {
  4580. if value != nil {
  4581. return ud.SetType(*value)
  4582. }
  4583. return ud
  4584. }
  4585. // set field if value's pointer is not nil.
  4586. func (ud *UsageDetailUpdate) SetNotNilBotID(value *string) *UsageDetailUpdate {
  4587. if value != nil {
  4588. return ud.SetBotID(*value)
  4589. }
  4590. return ud
  4591. }
  4592. // set field if value's pointer is not nil.
  4593. func (ud *UsageDetailUpdateOne) SetNotNilBotID(value *string) *UsageDetailUpdateOne {
  4594. if value != nil {
  4595. return ud.SetBotID(*value)
  4596. }
  4597. return ud
  4598. }
  4599. // set field if value's pointer is not nil.
  4600. func (ud *UsageDetailCreate) SetNotNilBotID(value *string) *UsageDetailCreate {
  4601. if value != nil {
  4602. return ud.SetBotID(*value)
  4603. }
  4604. return ud
  4605. }
  4606. // set field if value's pointer is not nil.
  4607. func (ud *UsageDetailUpdate) SetNotNilReceiverID(value *string) *UsageDetailUpdate {
  4608. if value != nil {
  4609. return ud.SetReceiverID(*value)
  4610. }
  4611. return ud
  4612. }
  4613. // set field if value's pointer is not nil.
  4614. func (ud *UsageDetailUpdateOne) SetNotNilReceiverID(value *string) *UsageDetailUpdateOne {
  4615. if value != nil {
  4616. return ud.SetReceiverID(*value)
  4617. }
  4618. return ud
  4619. }
  4620. // set field if value's pointer is not nil.
  4621. func (ud *UsageDetailCreate) SetNotNilReceiverID(value *string) *UsageDetailCreate {
  4622. if value != nil {
  4623. return ud.SetReceiverID(*value)
  4624. }
  4625. return ud
  4626. }
  4627. // set field if value's pointer is not nil.
  4628. func (ud *UsageDetailUpdate) SetNotNilApp(value *int) *UsageDetailUpdate {
  4629. if value != nil {
  4630. return ud.SetApp(*value)
  4631. }
  4632. return ud
  4633. }
  4634. // set field if value's pointer is not nil.
  4635. func (ud *UsageDetailUpdateOne) SetNotNilApp(value *int) *UsageDetailUpdateOne {
  4636. if value != nil {
  4637. return ud.SetApp(*value)
  4638. }
  4639. return ud
  4640. }
  4641. // set field if value's pointer is not nil.
  4642. func (ud *UsageDetailCreate) SetNotNilApp(value *int) *UsageDetailCreate {
  4643. if value != nil {
  4644. return ud.SetApp(*value)
  4645. }
  4646. return ud
  4647. }
  4648. // set field if value's pointer is not nil.
  4649. func (ud *UsageDetailUpdate) SetNotNilSessionID(value *uint64) *UsageDetailUpdate {
  4650. if value != nil {
  4651. return ud.SetSessionID(*value)
  4652. }
  4653. return ud
  4654. }
  4655. // set field if value's pointer is not nil.
  4656. func (ud *UsageDetailUpdateOne) SetNotNilSessionID(value *uint64) *UsageDetailUpdateOne {
  4657. if value != nil {
  4658. return ud.SetSessionID(*value)
  4659. }
  4660. return ud
  4661. }
  4662. // set field if value's pointer is not nil.
  4663. func (ud *UsageDetailCreate) SetNotNilSessionID(value *uint64) *UsageDetailCreate {
  4664. if value != nil {
  4665. return ud.SetSessionID(*value)
  4666. }
  4667. return ud
  4668. }
  4669. // set field if value's pointer is not nil.
  4670. func (ud *UsageDetailUpdate) SetNotNilRequest(value *string) *UsageDetailUpdate {
  4671. if value != nil {
  4672. return ud.SetRequest(*value)
  4673. }
  4674. return ud
  4675. }
  4676. // set field if value's pointer is not nil.
  4677. func (ud *UsageDetailUpdateOne) SetNotNilRequest(value *string) *UsageDetailUpdateOne {
  4678. if value != nil {
  4679. return ud.SetRequest(*value)
  4680. }
  4681. return ud
  4682. }
  4683. // set field if value's pointer is not nil.
  4684. func (ud *UsageDetailCreate) SetNotNilRequest(value *string) *UsageDetailCreate {
  4685. if value != nil {
  4686. return ud.SetRequest(*value)
  4687. }
  4688. return ud
  4689. }
  4690. // set field if value's pointer is not nil.
  4691. func (ud *UsageDetailUpdate) SetNotNilResponse(value *string) *UsageDetailUpdate {
  4692. if value != nil {
  4693. return ud.SetResponse(*value)
  4694. }
  4695. return ud
  4696. }
  4697. // set field if value's pointer is not nil.
  4698. func (ud *UsageDetailUpdateOne) SetNotNilResponse(value *string) *UsageDetailUpdateOne {
  4699. if value != nil {
  4700. return ud.SetResponse(*value)
  4701. }
  4702. return ud
  4703. }
  4704. // set field if value's pointer is not nil.
  4705. func (ud *UsageDetailCreate) SetNotNilResponse(value *string) *UsageDetailCreate {
  4706. if value != nil {
  4707. return ud.SetResponse(*value)
  4708. }
  4709. return ud
  4710. }
  4711. // set field if value's pointer is not nil.
  4712. func (ud *UsageDetailUpdate) SetNotNilTotalTokens(value *uint64) *UsageDetailUpdate {
  4713. if value != nil {
  4714. return ud.SetTotalTokens(*value)
  4715. }
  4716. return ud
  4717. }
  4718. // set field if value's pointer is not nil.
  4719. func (ud *UsageDetailUpdateOne) SetNotNilTotalTokens(value *uint64) *UsageDetailUpdateOne {
  4720. if value != nil {
  4721. return ud.SetTotalTokens(*value)
  4722. }
  4723. return ud
  4724. }
  4725. // set field if value's pointer is not nil.
  4726. func (ud *UsageDetailCreate) SetNotNilTotalTokens(value *uint64) *UsageDetailCreate {
  4727. if value != nil {
  4728. return ud.SetTotalTokens(*value)
  4729. }
  4730. return ud
  4731. }
  4732. // set field if value's pointer is not nil.
  4733. func (ud *UsageDetailUpdate) SetNotNilPromptTokens(value *uint64) *UsageDetailUpdate {
  4734. if value != nil {
  4735. return ud.SetPromptTokens(*value)
  4736. }
  4737. return ud
  4738. }
  4739. // set field if value's pointer is not nil.
  4740. func (ud *UsageDetailUpdateOne) SetNotNilPromptTokens(value *uint64) *UsageDetailUpdateOne {
  4741. if value != nil {
  4742. return ud.SetPromptTokens(*value)
  4743. }
  4744. return ud
  4745. }
  4746. // set field if value's pointer is not nil.
  4747. func (ud *UsageDetailCreate) SetNotNilPromptTokens(value *uint64) *UsageDetailCreate {
  4748. if value != nil {
  4749. return ud.SetPromptTokens(*value)
  4750. }
  4751. return ud
  4752. }
  4753. // set field if value's pointer is not nil.
  4754. func (ud *UsageDetailUpdate) SetNotNilCompletionTokens(value *uint64) *UsageDetailUpdate {
  4755. if value != nil {
  4756. return ud.SetCompletionTokens(*value)
  4757. }
  4758. return ud
  4759. }
  4760. // set field if value's pointer is not nil.
  4761. func (ud *UsageDetailUpdateOne) SetNotNilCompletionTokens(value *uint64) *UsageDetailUpdateOne {
  4762. if value != nil {
  4763. return ud.SetCompletionTokens(*value)
  4764. }
  4765. return ud
  4766. }
  4767. // set field if value's pointer is not nil.
  4768. func (ud *UsageDetailCreate) SetNotNilCompletionTokens(value *uint64) *UsageDetailCreate {
  4769. if value != nil {
  4770. return ud.SetCompletionTokens(*value)
  4771. }
  4772. return ud
  4773. }
  4774. // set field if value's pointer is not nil.
  4775. func (ud *UsageDetailUpdate) SetNotNilOrganizationID(value *uint64) *UsageDetailUpdate {
  4776. if value != nil {
  4777. return ud.SetOrganizationID(*value)
  4778. }
  4779. return ud
  4780. }
  4781. // set field if value's pointer is not nil.
  4782. func (ud *UsageDetailUpdateOne) SetNotNilOrganizationID(value *uint64) *UsageDetailUpdateOne {
  4783. if value != nil {
  4784. return ud.SetOrganizationID(*value)
  4785. }
  4786. return ud
  4787. }
  4788. // set field if value's pointer is not nil.
  4789. func (ud *UsageDetailCreate) SetNotNilOrganizationID(value *uint64) *UsageDetailCreate {
  4790. if value != nil {
  4791. return ud.SetOrganizationID(*value)
  4792. }
  4793. return ud
  4794. }
  4795. // set field if value's pointer is not nil.
  4796. func (usd *UsageStatisticDayUpdate) SetNotNilUpdatedAt(value *time.Time) *UsageStatisticDayUpdate {
  4797. if value != nil {
  4798. return usd.SetUpdatedAt(*value)
  4799. }
  4800. return usd
  4801. }
  4802. // set field if value's pointer is not nil.
  4803. func (usd *UsageStatisticDayUpdateOne) SetNotNilUpdatedAt(value *time.Time) *UsageStatisticDayUpdateOne {
  4804. if value != nil {
  4805. return usd.SetUpdatedAt(*value)
  4806. }
  4807. return usd
  4808. }
  4809. // set field if value's pointer is not nil.
  4810. func (usd *UsageStatisticDayCreate) SetNotNilUpdatedAt(value *time.Time) *UsageStatisticDayCreate {
  4811. if value != nil {
  4812. return usd.SetUpdatedAt(*value)
  4813. }
  4814. return usd
  4815. }
  4816. // set field if value's pointer is not nil.
  4817. func (usd *UsageStatisticDayUpdate) SetNotNilStatus(value *uint8) *UsageStatisticDayUpdate {
  4818. if value != nil {
  4819. return usd.SetStatus(*value)
  4820. }
  4821. return usd
  4822. }
  4823. // set field if value's pointer is not nil.
  4824. func (usd *UsageStatisticDayUpdateOne) SetNotNilStatus(value *uint8) *UsageStatisticDayUpdateOne {
  4825. if value != nil {
  4826. return usd.SetStatus(*value)
  4827. }
  4828. return usd
  4829. }
  4830. // set field if value's pointer is not nil.
  4831. func (usd *UsageStatisticDayCreate) SetNotNilStatus(value *uint8) *UsageStatisticDayCreate {
  4832. if value != nil {
  4833. return usd.SetStatus(*value)
  4834. }
  4835. return usd
  4836. }
  4837. // set field if value's pointer is not nil.
  4838. func (usd *UsageStatisticDayUpdate) SetNotNilDeletedAt(value *time.Time) *UsageStatisticDayUpdate {
  4839. if value != nil {
  4840. return usd.SetDeletedAt(*value)
  4841. }
  4842. return usd
  4843. }
  4844. // set field if value's pointer is not nil.
  4845. func (usd *UsageStatisticDayUpdateOne) SetNotNilDeletedAt(value *time.Time) *UsageStatisticDayUpdateOne {
  4846. if value != nil {
  4847. return usd.SetDeletedAt(*value)
  4848. }
  4849. return usd
  4850. }
  4851. // set field if value's pointer is not nil.
  4852. func (usd *UsageStatisticDayCreate) SetNotNilDeletedAt(value *time.Time) *UsageStatisticDayCreate {
  4853. if value != nil {
  4854. return usd.SetDeletedAt(*value)
  4855. }
  4856. return usd
  4857. }
  4858. // set field if value's pointer is not nil.
  4859. func (usd *UsageStatisticDayUpdate) SetNotNilAddtime(value *uint64) *UsageStatisticDayUpdate {
  4860. if value != nil {
  4861. return usd.SetAddtime(*value)
  4862. }
  4863. return usd
  4864. }
  4865. // set field if value's pointer is not nil.
  4866. func (usd *UsageStatisticDayUpdateOne) SetNotNilAddtime(value *uint64) *UsageStatisticDayUpdateOne {
  4867. if value != nil {
  4868. return usd.SetAddtime(*value)
  4869. }
  4870. return usd
  4871. }
  4872. // set field if value's pointer is not nil.
  4873. func (usd *UsageStatisticDayCreate) SetNotNilAddtime(value *uint64) *UsageStatisticDayCreate {
  4874. if value != nil {
  4875. return usd.SetAddtime(*value)
  4876. }
  4877. return usd
  4878. }
  4879. // set field if value's pointer is not nil.
  4880. func (usd *UsageStatisticDayUpdate) SetNotNilType(value *int) *UsageStatisticDayUpdate {
  4881. if value != nil {
  4882. return usd.SetType(*value)
  4883. }
  4884. return usd
  4885. }
  4886. // set field if value's pointer is not nil.
  4887. func (usd *UsageStatisticDayUpdateOne) SetNotNilType(value *int) *UsageStatisticDayUpdateOne {
  4888. if value != nil {
  4889. return usd.SetType(*value)
  4890. }
  4891. return usd
  4892. }
  4893. // set field if value's pointer is not nil.
  4894. func (usd *UsageStatisticDayCreate) SetNotNilType(value *int) *UsageStatisticDayCreate {
  4895. if value != nil {
  4896. return usd.SetType(*value)
  4897. }
  4898. return usd
  4899. }
  4900. // set field if value's pointer is not nil.
  4901. func (usd *UsageStatisticDayUpdate) SetNotNilBotID(value *string) *UsageStatisticDayUpdate {
  4902. if value != nil {
  4903. return usd.SetBotID(*value)
  4904. }
  4905. return usd
  4906. }
  4907. // set field if value's pointer is not nil.
  4908. func (usd *UsageStatisticDayUpdateOne) SetNotNilBotID(value *string) *UsageStatisticDayUpdateOne {
  4909. if value != nil {
  4910. return usd.SetBotID(*value)
  4911. }
  4912. return usd
  4913. }
  4914. // set field if value's pointer is not nil.
  4915. func (usd *UsageStatisticDayCreate) SetNotNilBotID(value *string) *UsageStatisticDayCreate {
  4916. if value != nil {
  4917. return usd.SetBotID(*value)
  4918. }
  4919. return usd
  4920. }
  4921. // set field if value's pointer is not nil.
  4922. func (usd *UsageStatisticDayUpdate) SetNotNilOrganizationID(value *uint64) *UsageStatisticDayUpdate {
  4923. if value != nil {
  4924. return usd.SetOrganizationID(*value)
  4925. }
  4926. return usd
  4927. }
  4928. // set field if value's pointer is not nil.
  4929. func (usd *UsageStatisticDayUpdateOne) SetNotNilOrganizationID(value *uint64) *UsageStatisticDayUpdateOne {
  4930. if value != nil {
  4931. return usd.SetOrganizationID(*value)
  4932. }
  4933. return usd
  4934. }
  4935. // set field if value's pointer is not nil.
  4936. func (usd *UsageStatisticDayCreate) SetNotNilOrganizationID(value *uint64) *UsageStatisticDayCreate {
  4937. if value != nil {
  4938. return usd.SetOrganizationID(*value)
  4939. }
  4940. return usd
  4941. }
  4942. // set field if value's pointer is not nil.
  4943. func (usd *UsageStatisticDayUpdate) SetNotNilAiResponse(value *uint64) *UsageStatisticDayUpdate {
  4944. if value != nil {
  4945. return usd.SetAiResponse(*value)
  4946. }
  4947. return usd
  4948. }
  4949. // set field if value's pointer is not nil.
  4950. func (usd *UsageStatisticDayUpdateOne) SetNotNilAiResponse(value *uint64) *UsageStatisticDayUpdateOne {
  4951. if value != nil {
  4952. return usd.SetAiResponse(*value)
  4953. }
  4954. return usd
  4955. }
  4956. // set field if value's pointer is not nil.
  4957. func (usd *UsageStatisticDayCreate) SetNotNilAiResponse(value *uint64) *UsageStatisticDayCreate {
  4958. if value != nil {
  4959. return usd.SetAiResponse(*value)
  4960. }
  4961. return usd
  4962. }
  4963. // set field if value's pointer is not nil.
  4964. func (usd *UsageStatisticDayUpdate) SetNotNilSopRun(value *uint64) *UsageStatisticDayUpdate {
  4965. if value != nil {
  4966. return usd.SetSopRun(*value)
  4967. }
  4968. return usd
  4969. }
  4970. // set field if value's pointer is not nil.
  4971. func (usd *UsageStatisticDayUpdateOne) SetNotNilSopRun(value *uint64) *UsageStatisticDayUpdateOne {
  4972. if value != nil {
  4973. return usd.SetSopRun(*value)
  4974. }
  4975. return usd
  4976. }
  4977. // set field if value's pointer is not nil.
  4978. func (usd *UsageStatisticDayCreate) SetNotNilSopRun(value *uint64) *UsageStatisticDayCreate {
  4979. if value != nil {
  4980. return usd.SetSopRun(*value)
  4981. }
  4982. return usd
  4983. }
  4984. // set field if value's pointer is not nil.
  4985. func (usd *UsageStatisticDayUpdate) SetNotNilTotalFriend(value *uint64) *UsageStatisticDayUpdate {
  4986. if value != nil {
  4987. return usd.SetTotalFriend(*value)
  4988. }
  4989. return usd
  4990. }
  4991. // set field if value's pointer is not nil.
  4992. func (usd *UsageStatisticDayUpdateOne) SetNotNilTotalFriend(value *uint64) *UsageStatisticDayUpdateOne {
  4993. if value != nil {
  4994. return usd.SetTotalFriend(*value)
  4995. }
  4996. return usd
  4997. }
  4998. // set field if value's pointer is not nil.
  4999. func (usd *UsageStatisticDayCreate) SetNotNilTotalFriend(value *uint64) *UsageStatisticDayCreate {
  5000. if value != nil {
  5001. return usd.SetTotalFriend(*value)
  5002. }
  5003. return usd
  5004. }
  5005. // set field if value's pointer is not nil.
  5006. func (usd *UsageStatisticDayUpdate) SetNotNilTotalGroup(value *uint64) *UsageStatisticDayUpdate {
  5007. if value != nil {
  5008. return usd.SetTotalGroup(*value)
  5009. }
  5010. return usd
  5011. }
  5012. // set field if value's pointer is not nil.
  5013. func (usd *UsageStatisticDayUpdateOne) SetNotNilTotalGroup(value *uint64) *UsageStatisticDayUpdateOne {
  5014. if value != nil {
  5015. return usd.SetTotalGroup(*value)
  5016. }
  5017. return usd
  5018. }
  5019. // set field if value's pointer is not nil.
  5020. func (usd *UsageStatisticDayCreate) SetNotNilTotalGroup(value *uint64) *UsageStatisticDayCreate {
  5021. if value != nil {
  5022. return usd.SetTotalGroup(*value)
  5023. }
  5024. return usd
  5025. }
  5026. // set field if value's pointer is not nil.
  5027. func (usd *UsageStatisticDayUpdate) SetNotNilAccountBalance(value *uint64) *UsageStatisticDayUpdate {
  5028. if value != nil {
  5029. return usd.SetAccountBalance(*value)
  5030. }
  5031. return usd
  5032. }
  5033. // set field if value's pointer is not nil.
  5034. func (usd *UsageStatisticDayUpdateOne) SetNotNilAccountBalance(value *uint64) *UsageStatisticDayUpdateOne {
  5035. if value != nil {
  5036. return usd.SetAccountBalance(*value)
  5037. }
  5038. return usd
  5039. }
  5040. // set field if value's pointer is not nil.
  5041. func (usd *UsageStatisticDayCreate) SetNotNilAccountBalance(value *uint64) *UsageStatisticDayCreate {
  5042. if value != nil {
  5043. return usd.SetAccountBalance(*value)
  5044. }
  5045. return usd
  5046. }
  5047. // set field if value's pointer is not nil.
  5048. func (usd *UsageStatisticDayUpdate) SetNotNilConsumeToken(value *uint64) *UsageStatisticDayUpdate {
  5049. if value != nil {
  5050. return usd.SetConsumeToken(*value)
  5051. }
  5052. return usd
  5053. }
  5054. // set field if value's pointer is not nil.
  5055. func (usd *UsageStatisticDayUpdateOne) SetNotNilConsumeToken(value *uint64) *UsageStatisticDayUpdateOne {
  5056. if value != nil {
  5057. return usd.SetConsumeToken(*value)
  5058. }
  5059. return usd
  5060. }
  5061. // set field if value's pointer is not nil.
  5062. func (usd *UsageStatisticDayCreate) SetNotNilConsumeToken(value *uint64) *UsageStatisticDayCreate {
  5063. if value != nil {
  5064. return usd.SetConsumeToken(*value)
  5065. }
  5066. return usd
  5067. }
  5068. // set field if value's pointer is not nil.
  5069. func (usd *UsageStatisticDayUpdate) SetNotNilActiveUser(value *uint64) *UsageStatisticDayUpdate {
  5070. if value != nil {
  5071. return usd.SetActiveUser(*value)
  5072. }
  5073. return usd
  5074. }
  5075. // set field if value's pointer is not nil.
  5076. func (usd *UsageStatisticDayUpdateOne) SetNotNilActiveUser(value *uint64) *UsageStatisticDayUpdateOne {
  5077. if value != nil {
  5078. return usd.SetActiveUser(*value)
  5079. }
  5080. return usd
  5081. }
  5082. // set field if value's pointer is not nil.
  5083. func (usd *UsageStatisticDayCreate) SetNotNilActiveUser(value *uint64) *UsageStatisticDayCreate {
  5084. if value != nil {
  5085. return usd.SetActiveUser(*value)
  5086. }
  5087. return usd
  5088. }
  5089. // set field if value's pointer is not nil.
  5090. func (usd *UsageStatisticDayUpdate) SetNotNilNewUser(value *int64) *UsageStatisticDayUpdate {
  5091. if value != nil {
  5092. return usd.SetNewUser(*value)
  5093. }
  5094. return usd
  5095. }
  5096. // set field if value's pointer is not nil.
  5097. func (usd *UsageStatisticDayUpdateOne) SetNotNilNewUser(value *int64) *UsageStatisticDayUpdateOne {
  5098. if value != nil {
  5099. return usd.SetNewUser(*value)
  5100. }
  5101. return usd
  5102. }
  5103. // set field if value's pointer is not nil.
  5104. func (usd *UsageStatisticDayCreate) SetNotNilNewUser(value *int64) *UsageStatisticDayCreate {
  5105. if value != nil {
  5106. return usd.SetNewUser(*value)
  5107. }
  5108. return usd
  5109. }
  5110. // set field if value's pointer is not nil.
  5111. func (usd *UsageStatisticDayUpdate) SetNotNilLabelDist(value []custom_types.LabelDist) *UsageStatisticDayUpdate {
  5112. if value != nil {
  5113. return usd.SetLabelDist(value)
  5114. }
  5115. return usd
  5116. }
  5117. // set field if value's pointer is not nil.
  5118. func (usd *UsageStatisticDayUpdateOne) SetNotNilLabelDist(value []custom_types.LabelDist) *UsageStatisticDayUpdateOne {
  5119. if value != nil {
  5120. return usd.SetLabelDist(value)
  5121. }
  5122. return usd
  5123. }
  5124. // set field if value's pointer is not nil.
  5125. func (usd *UsageStatisticDayCreate) SetNotNilLabelDist(value []custom_types.LabelDist) *UsageStatisticDayCreate {
  5126. if value != nil {
  5127. return usd.SetLabelDist(value)
  5128. }
  5129. return usd
  5130. }
  5131. // set field if value's pointer is not nil.
  5132. func (ush *UsageStatisticHourUpdate) SetNotNilUpdatedAt(value *time.Time) *UsageStatisticHourUpdate {
  5133. if value != nil {
  5134. return ush.SetUpdatedAt(*value)
  5135. }
  5136. return ush
  5137. }
  5138. // set field if value's pointer is not nil.
  5139. func (ush *UsageStatisticHourUpdateOne) SetNotNilUpdatedAt(value *time.Time) *UsageStatisticHourUpdateOne {
  5140. if value != nil {
  5141. return ush.SetUpdatedAt(*value)
  5142. }
  5143. return ush
  5144. }
  5145. // set field if value's pointer is not nil.
  5146. func (ush *UsageStatisticHourCreate) SetNotNilUpdatedAt(value *time.Time) *UsageStatisticHourCreate {
  5147. if value != nil {
  5148. return ush.SetUpdatedAt(*value)
  5149. }
  5150. return ush
  5151. }
  5152. // set field if value's pointer is not nil.
  5153. func (ush *UsageStatisticHourUpdate) SetNotNilStatus(value *uint8) *UsageStatisticHourUpdate {
  5154. if value != nil {
  5155. return ush.SetStatus(*value)
  5156. }
  5157. return ush
  5158. }
  5159. // set field if value's pointer is not nil.
  5160. func (ush *UsageStatisticHourUpdateOne) SetNotNilStatus(value *uint8) *UsageStatisticHourUpdateOne {
  5161. if value != nil {
  5162. return ush.SetStatus(*value)
  5163. }
  5164. return ush
  5165. }
  5166. // set field if value's pointer is not nil.
  5167. func (ush *UsageStatisticHourCreate) SetNotNilStatus(value *uint8) *UsageStatisticHourCreate {
  5168. if value != nil {
  5169. return ush.SetStatus(*value)
  5170. }
  5171. return ush
  5172. }
  5173. // set field if value's pointer is not nil.
  5174. func (ush *UsageStatisticHourUpdate) SetNotNilDeletedAt(value *time.Time) *UsageStatisticHourUpdate {
  5175. if value != nil {
  5176. return ush.SetDeletedAt(*value)
  5177. }
  5178. return ush
  5179. }
  5180. // set field if value's pointer is not nil.
  5181. func (ush *UsageStatisticHourUpdateOne) SetNotNilDeletedAt(value *time.Time) *UsageStatisticHourUpdateOne {
  5182. if value != nil {
  5183. return ush.SetDeletedAt(*value)
  5184. }
  5185. return ush
  5186. }
  5187. // set field if value's pointer is not nil.
  5188. func (ush *UsageStatisticHourCreate) SetNotNilDeletedAt(value *time.Time) *UsageStatisticHourCreate {
  5189. if value != nil {
  5190. return ush.SetDeletedAt(*value)
  5191. }
  5192. return ush
  5193. }
  5194. // set field if value's pointer is not nil.
  5195. func (ush *UsageStatisticHourUpdate) SetNotNilAddtime(value *uint64) *UsageStatisticHourUpdate {
  5196. if value != nil {
  5197. return ush.SetAddtime(*value)
  5198. }
  5199. return ush
  5200. }
  5201. // set field if value's pointer is not nil.
  5202. func (ush *UsageStatisticHourUpdateOne) SetNotNilAddtime(value *uint64) *UsageStatisticHourUpdateOne {
  5203. if value != nil {
  5204. return ush.SetAddtime(*value)
  5205. }
  5206. return ush
  5207. }
  5208. // set field if value's pointer is not nil.
  5209. func (ush *UsageStatisticHourCreate) SetNotNilAddtime(value *uint64) *UsageStatisticHourCreate {
  5210. if value != nil {
  5211. return ush.SetAddtime(*value)
  5212. }
  5213. return ush
  5214. }
  5215. // set field if value's pointer is not nil.
  5216. func (ush *UsageStatisticHourUpdate) SetNotNilType(value *int) *UsageStatisticHourUpdate {
  5217. if value != nil {
  5218. return ush.SetType(*value)
  5219. }
  5220. return ush
  5221. }
  5222. // set field if value's pointer is not nil.
  5223. func (ush *UsageStatisticHourUpdateOne) SetNotNilType(value *int) *UsageStatisticHourUpdateOne {
  5224. if value != nil {
  5225. return ush.SetType(*value)
  5226. }
  5227. return ush
  5228. }
  5229. // set field if value's pointer is not nil.
  5230. func (ush *UsageStatisticHourCreate) SetNotNilType(value *int) *UsageStatisticHourCreate {
  5231. if value != nil {
  5232. return ush.SetType(*value)
  5233. }
  5234. return ush
  5235. }
  5236. // set field if value's pointer is not nil.
  5237. func (ush *UsageStatisticHourUpdate) SetNotNilBotID(value *string) *UsageStatisticHourUpdate {
  5238. if value != nil {
  5239. return ush.SetBotID(*value)
  5240. }
  5241. return ush
  5242. }
  5243. // set field if value's pointer is not nil.
  5244. func (ush *UsageStatisticHourUpdateOne) SetNotNilBotID(value *string) *UsageStatisticHourUpdateOne {
  5245. if value != nil {
  5246. return ush.SetBotID(*value)
  5247. }
  5248. return ush
  5249. }
  5250. // set field if value's pointer is not nil.
  5251. func (ush *UsageStatisticHourCreate) SetNotNilBotID(value *string) *UsageStatisticHourCreate {
  5252. if value != nil {
  5253. return ush.SetBotID(*value)
  5254. }
  5255. return ush
  5256. }
  5257. // set field if value's pointer is not nil.
  5258. func (ush *UsageStatisticHourUpdate) SetNotNilOrganizationID(value *uint64) *UsageStatisticHourUpdate {
  5259. if value != nil {
  5260. return ush.SetOrganizationID(*value)
  5261. }
  5262. return ush
  5263. }
  5264. // set field if value's pointer is not nil.
  5265. func (ush *UsageStatisticHourUpdateOne) SetNotNilOrganizationID(value *uint64) *UsageStatisticHourUpdateOne {
  5266. if value != nil {
  5267. return ush.SetOrganizationID(*value)
  5268. }
  5269. return ush
  5270. }
  5271. // set field if value's pointer is not nil.
  5272. func (ush *UsageStatisticHourCreate) SetNotNilOrganizationID(value *uint64) *UsageStatisticHourCreate {
  5273. if value != nil {
  5274. return ush.SetOrganizationID(*value)
  5275. }
  5276. return ush
  5277. }
  5278. // set field if value's pointer is not nil.
  5279. func (ush *UsageStatisticHourUpdate) SetNotNilAiResponse(value *uint64) *UsageStatisticHourUpdate {
  5280. if value != nil {
  5281. return ush.SetAiResponse(*value)
  5282. }
  5283. return ush
  5284. }
  5285. // set field if value's pointer is not nil.
  5286. func (ush *UsageStatisticHourUpdateOne) SetNotNilAiResponse(value *uint64) *UsageStatisticHourUpdateOne {
  5287. if value != nil {
  5288. return ush.SetAiResponse(*value)
  5289. }
  5290. return ush
  5291. }
  5292. // set field if value's pointer is not nil.
  5293. func (ush *UsageStatisticHourCreate) SetNotNilAiResponse(value *uint64) *UsageStatisticHourCreate {
  5294. if value != nil {
  5295. return ush.SetAiResponse(*value)
  5296. }
  5297. return ush
  5298. }
  5299. // set field if value's pointer is not nil.
  5300. func (ush *UsageStatisticHourUpdate) SetNotNilSopRun(value *uint64) *UsageStatisticHourUpdate {
  5301. if value != nil {
  5302. return ush.SetSopRun(*value)
  5303. }
  5304. return ush
  5305. }
  5306. // set field if value's pointer is not nil.
  5307. func (ush *UsageStatisticHourUpdateOne) SetNotNilSopRun(value *uint64) *UsageStatisticHourUpdateOne {
  5308. if value != nil {
  5309. return ush.SetSopRun(*value)
  5310. }
  5311. return ush
  5312. }
  5313. // set field if value's pointer is not nil.
  5314. func (ush *UsageStatisticHourCreate) SetNotNilSopRun(value *uint64) *UsageStatisticHourCreate {
  5315. if value != nil {
  5316. return ush.SetSopRun(*value)
  5317. }
  5318. return ush
  5319. }
  5320. // set field if value's pointer is not nil.
  5321. func (ush *UsageStatisticHourUpdate) SetNotNilTotalFriend(value *uint64) *UsageStatisticHourUpdate {
  5322. if value != nil {
  5323. return ush.SetTotalFriend(*value)
  5324. }
  5325. return ush
  5326. }
  5327. // set field if value's pointer is not nil.
  5328. func (ush *UsageStatisticHourUpdateOne) SetNotNilTotalFriend(value *uint64) *UsageStatisticHourUpdateOne {
  5329. if value != nil {
  5330. return ush.SetTotalFriend(*value)
  5331. }
  5332. return ush
  5333. }
  5334. // set field if value's pointer is not nil.
  5335. func (ush *UsageStatisticHourCreate) SetNotNilTotalFriend(value *uint64) *UsageStatisticHourCreate {
  5336. if value != nil {
  5337. return ush.SetTotalFriend(*value)
  5338. }
  5339. return ush
  5340. }
  5341. // set field if value's pointer is not nil.
  5342. func (ush *UsageStatisticHourUpdate) SetNotNilTotalGroup(value *uint64) *UsageStatisticHourUpdate {
  5343. if value != nil {
  5344. return ush.SetTotalGroup(*value)
  5345. }
  5346. return ush
  5347. }
  5348. // set field if value's pointer is not nil.
  5349. func (ush *UsageStatisticHourUpdateOne) SetNotNilTotalGroup(value *uint64) *UsageStatisticHourUpdateOne {
  5350. if value != nil {
  5351. return ush.SetTotalGroup(*value)
  5352. }
  5353. return ush
  5354. }
  5355. // set field if value's pointer is not nil.
  5356. func (ush *UsageStatisticHourCreate) SetNotNilTotalGroup(value *uint64) *UsageStatisticHourCreate {
  5357. if value != nil {
  5358. return ush.SetTotalGroup(*value)
  5359. }
  5360. return ush
  5361. }
  5362. // set field if value's pointer is not nil.
  5363. func (ush *UsageStatisticHourUpdate) SetNotNilAccountBalance(value *uint64) *UsageStatisticHourUpdate {
  5364. if value != nil {
  5365. return ush.SetAccountBalance(*value)
  5366. }
  5367. return ush
  5368. }
  5369. // set field if value's pointer is not nil.
  5370. func (ush *UsageStatisticHourUpdateOne) SetNotNilAccountBalance(value *uint64) *UsageStatisticHourUpdateOne {
  5371. if value != nil {
  5372. return ush.SetAccountBalance(*value)
  5373. }
  5374. return ush
  5375. }
  5376. // set field if value's pointer is not nil.
  5377. func (ush *UsageStatisticHourCreate) SetNotNilAccountBalance(value *uint64) *UsageStatisticHourCreate {
  5378. if value != nil {
  5379. return ush.SetAccountBalance(*value)
  5380. }
  5381. return ush
  5382. }
  5383. // set field if value's pointer is not nil.
  5384. func (ush *UsageStatisticHourUpdate) SetNotNilConsumeToken(value *uint64) *UsageStatisticHourUpdate {
  5385. if value != nil {
  5386. return ush.SetConsumeToken(*value)
  5387. }
  5388. return ush
  5389. }
  5390. // set field if value's pointer is not nil.
  5391. func (ush *UsageStatisticHourUpdateOne) SetNotNilConsumeToken(value *uint64) *UsageStatisticHourUpdateOne {
  5392. if value != nil {
  5393. return ush.SetConsumeToken(*value)
  5394. }
  5395. return ush
  5396. }
  5397. // set field if value's pointer is not nil.
  5398. func (ush *UsageStatisticHourCreate) SetNotNilConsumeToken(value *uint64) *UsageStatisticHourCreate {
  5399. if value != nil {
  5400. return ush.SetConsumeToken(*value)
  5401. }
  5402. return ush
  5403. }
  5404. // set field if value's pointer is not nil.
  5405. func (ush *UsageStatisticHourUpdate) SetNotNilActiveUser(value *uint64) *UsageStatisticHourUpdate {
  5406. if value != nil {
  5407. return ush.SetActiveUser(*value)
  5408. }
  5409. return ush
  5410. }
  5411. // set field if value's pointer is not nil.
  5412. func (ush *UsageStatisticHourUpdateOne) SetNotNilActiveUser(value *uint64) *UsageStatisticHourUpdateOne {
  5413. if value != nil {
  5414. return ush.SetActiveUser(*value)
  5415. }
  5416. return ush
  5417. }
  5418. // set field if value's pointer is not nil.
  5419. func (ush *UsageStatisticHourCreate) SetNotNilActiveUser(value *uint64) *UsageStatisticHourCreate {
  5420. if value != nil {
  5421. return ush.SetActiveUser(*value)
  5422. }
  5423. return ush
  5424. }
  5425. // set field if value's pointer is not nil.
  5426. func (ush *UsageStatisticHourUpdate) SetNotNilNewUser(value *int64) *UsageStatisticHourUpdate {
  5427. if value != nil {
  5428. return ush.SetNewUser(*value)
  5429. }
  5430. return ush
  5431. }
  5432. // set field if value's pointer is not nil.
  5433. func (ush *UsageStatisticHourUpdateOne) SetNotNilNewUser(value *int64) *UsageStatisticHourUpdateOne {
  5434. if value != nil {
  5435. return ush.SetNewUser(*value)
  5436. }
  5437. return ush
  5438. }
  5439. // set field if value's pointer is not nil.
  5440. func (ush *UsageStatisticHourCreate) SetNotNilNewUser(value *int64) *UsageStatisticHourCreate {
  5441. if value != nil {
  5442. return ush.SetNewUser(*value)
  5443. }
  5444. return ush
  5445. }
  5446. // set field if value's pointer is not nil.
  5447. func (ush *UsageStatisticHourUpdate) SetNotNilLabelDist(value []custom_types.LabelDist) *UsageStatisticHourUpdate {
  5448. if value != nil {
  5449. return ush.SetLabelDist(value)
  5450. }
  5451. return ush
  5452. }
  5453. // set field if value's pointer is not nil.
  5454. func (ush *UsageStatisticHourUpdateOne) SetNotNilLabelDist(value []custom_types.LabelDist) *UsageStatisticHourUpdateOne {
  5455. if value != nil {
  5456. return ush.SetLabelDist(value)
  5457. }
  5458. return ush
  5459. }
  5460. // set field if value's pointer is not nil.
  5461. func (ush *UsageStatisticHourCreate) SetNotNilLabelDist(value []custom_types.LabelDist) *UsageStatisticHourCreate {
  5462. if value != nil {
  5463. return ush.SetLabelDist(value)
  5464. }
  5465. return ush
  5466. }
  5467. // set field if value's pointer is not nil.
  5468. func (usm *UsageStatisticMonthUpdate) SetNotNilUpdatedAt(value *time.Time) *UsageStatisticMonthUpdate {
  5469. if value != nil {
  5470. return usm.SetUpdatedAt(*value)
  5471. }
  5472. return usm
  5473. }
  5474. // set field if value's pointer is not nil.
  5475. func (usm *UsageStatisticMonthUpdateOne) SetNotNilUpdatedAt(value *time.Time) *UsageStatisticMonthUpdateOne {
  5476. if value != nil {
  5477. return usm.SetUpdatedAt(*value)
  5478. }
  5479. return usm
  5480. }
  5481. // set field if value's pointer is not nil.
  5482. func (usm *UsageStatisticMonthCreate) SetNotNilUpdatedAt(value *time.Time) *UsageStatisticMonthCreate {
  5483. if value != nil {
  5484. return usm.SetUpdatedAt(*value)
  5485. }
  5486. return usm
  5487. }
  5488. // set field if value's pointer is not nil.
  5489. func (usm *UsageStatisticMonthUpdate) SetNotNilStatus(value *uint8) *UsageStatisticMonthUpdate {
  5490. if value != nil {
  5491. return usm.SetStatus(*value)
  5492. }
  5493. return usm
  5494. }
  5495. // set field if value's pointer is not nil.
  5496. func (usm *UsageStatisticMonthUpdateOne) SetNotNilStatus(value *uint8) *UsageStatisticMonthUpdateOne {
  5497. if value != nil {
  5498. return usm.SetStatus(*value)
  5499. }
  5500. return usm
  5501. }
  5502. // set field if value's pointer is not nil.
  5503. func (usm *UsageStatisticMonthCreate) SetNotNilStatus(value *uint8) *UsageStatisticMonthCreate {
  5504. if value != nil {
  5505. return usm.SetStatus(*value)
  5506. }
  5507. return usm
  5508. }
  5509. // set field if value's pointer is not nil.
  5510. func (usm *UsageStatisticMonthUpdate) SetNotNilDeletedAt(value *time.Time) *UsageStatisticMonthUpdate {
  5511. if value != nil {
  5512. return usm.SetDeletedAt(*value)
  5513. }
  5514. return usm
  5515. }
  5516. // set field if value's pointer is not nil.
  5517. func (usm *UsageStatisticMonthUpdateOne) SetNotNilDeletedAt(value *time.Time) *UsageStatisticMonthUpdateOne {
  5518. if value != nil {
  5519. return usm.SetDeletedAt(*value)
  5520. }
  5521. return usm
  5522. }
  5523. // set field if value's pointer is not nil.
  5524. func (usm *UsageStatisticMonthCreate) SetNotNilDeletedAt(value *time.Time) *UsageStatisticMonthCreate {
  5525. if value != nil {
  5526. return usm.SetDeletedAt(*value)
  5527. }
  5528. return usm
  5529. }
  5530. // set field if value's pointer is not nil.
  5531. func (usm *UsageStatisticMonthUpdate) SetNotNilAddtime(value *uint64) *UsageStatisticMonthUpdate {
  5532. if value != nil {
  5533. return usm.SetAddtime(*value)
  5534. }
  5535. return usm
  5536. }
  5537. // set field if value's pointer is not nil.
  5538. func (usm *UsageStatisticMonthUpdateOne) SetNotNilAddtime(value *uint64) *UsageStatisticMonthUpdateOne {
  5539. if value != nil {
  5540. return usm.SetAddtime(*value)
  5541. }
  5542. return usm
  5543. }
  5544. // set field if value's pointer is not nil.
  5545. func (usm *UsageStatisticMonthCreate) SetNotNilAddtime(value *uint64) *UsageStatisticMonthCreate {
  5546. if value != nil {
  5547. return usm.SetAddtime(*value)
  5548. }
  5549. return usm
  5550. }
  5551. // set field if value's pointer is not nil.
  5552. func (usm *UsageStatisticMonthUpdate) SetNotNilType(value *int) *UsageStatisticMonthUpdate {
  5553. if value != nil {
  5554. return usm.SetType(*value)
  5555. }
  5556. return usm
  5557. }
  5558. // set field if value's pointer is not nil.
  5559. func (usm *UsageStatisticMonthUpdateOne) SetNotNilType(value *int) *UsageStatisticMonthUpdateOne {
  5560. if value != nil {
  5561. return usm.SetType(*value)
  5562. }
  5563. return usm
  5564. }
  5565. // set field if value's pointer is not nil.
  5566. func (usm *UsageStatisticMonthCreate) SetNotNilType(value *int) *UsageStatisticMonthCreate {
  5567. if value != nil {
  5568. return usm.SetType(*value)
  5569. }
  5570. return usm
  5571. }
  5572. // set field if value's pointer is not nil.
  5573. func (usm *UsageStatisticMonthUpdate) SetNotNilBotID(value *string) *UsageStatisticMonthUpdate {
  5574. if value != nil {
  5575. return usm.SetBotID(*value)
  5576. }
  5577. return usm
  5578. }
  5579. // set field if value's pointer is not nil.
  5580. func (usm *UsageStatisticMonthUpdateOne) SetNotNilBotID(value *string) *UsageStatisticMonthUpdateOne {
  5581. if value != nil {
  5582. return usm.SetBotID(*value)
  5583. }
  5584. return usm
  5585. }
  5586. // set field if value's pointer is not nil.
  5587. func (usm *UsageStatisticMonthCreate) SetNotNilBotID(value *string) *UsageStatisticMonthCreate {
  5588. if value != nil {
  5589. return usm.SetBotID(*value)
  5590. }
  5591. return usm
  5592. }
  5593. // set field if value's pointer is not nil.
  5594. func (usm *UsageStatisticMonthUpdate) SetNotNilOrganizationID(value *uint64) *UsageStatisticMonthUpdate {
  5595. if value != nil {
  5596. return usm.SetOrganizationID(*value)
  5597. }
  5598. return usm
  5599. }
  5600. // set field if value's pointer is not nil.
  5601. func (usm *UsageStatisticMonthUpdateOne) SetNotNilOrganizationID(value *uint64) *UsageStatisticMonthUpdateOne {
  5602. if value != nil {
  5603. return usm.SetOrganizationID(*value)
  5604. }
  5605. return usm
  5606. }
  5607. // set field if value's pointer is not nil.
  5608. func (usm *UsageStatisticMonthCreate) SetNotNilOrganizationID(value *uint64) *UsageStatisticMonthCreate {
  5609. if value != nil {
  5610. return usm.SetOrganizationID(*value)
  5611. }
  5612. return usm
  5613. }
  5614. // set field if value's pointer is not nil.
  5615. func (usm *UsageStatisticMonthUpdate) SetNotNilAiResponse(value *uint64) *UsageStatisticMonthUpdate {
  5616. if value != nil {
  5617. return usm.SetAiResponse(*value)
  5618. }
  5619. return usm
  5620. }
  5621. // set field if value's pointer is not nil.
  5622. func (usm *UsageStatisticMonthUpdateOne) SetNotNilAiResponse(value *uint64) *UsageStatisticMonthUpdateOne {
  5623. if value != nil {
  5624. return usm.SetAiResponse(*value)
  5625. }
  5626. return usm
  5627. }
  5628. // set field if value's pointer is not nil.
  5629. func (usm *UsageStatisticMonthCreate) SetNotNilAiResponse(value *uint64) *UsageStatisticMonthCreate {
  5630. if value != nil {
  5631. return usm.SetAiResponse(*value)
  5632. }
  5633. return usm
  5634. }
  5635. // set field if value's pointer is not nil.
  5636. func (usm *UsageStatisticMonthUpdate) SetNotNilSopRun(value *uint64) *UsageStatisticMonthUpdate {
  5637. if value != nil {
  5638. return usm.SetSopRun(*value)
  5639. }
  5640. return usm
  5641. }
  5642. // set field if value's pointer is not nil.
  5643. func (usm *UsageStatisticMonthUpdateOne) SetNotNilSopRun(value *uint64) *UsageStatisticMonthUpdateOne {
  5644. if value != nil {
  5645. return usm.SetSopRun(*value)
  5646. }
  5647. return usm
  5648. }
  5649. // set field if value's pointer is not nil.
  5650. func (usm *UsageStatisticMonthCreate) SetNotNilSopRun(value *uint64) *UsageStatisticMonthCreate {
  5651. if value != nil {
  5652. return usm.SetSopRun(*value)
  5653. }
  5654. return usm
  5655. }
  5656. // set field if value's pointer is not nil.
  5657. func (usm *UsageStatisticMonthUpdate) SetNotNilTotalFriend(value *uint64) *UsageStatisticMonthUpdate {
  5658. if value != nil {
  5659. return usm.SetTotalFriend(*value)
  5660. }
  5661. return usm
  5662. }
  5663. // set field if value's pointer is not nil.
  5664. func (usm *UsageStatisticMonthUpdateOne) SetNotNilTotalFriend(value *uint64) *UsageStatisticMonthUpdateOne {
  5665. if value != nil {
  5666. return usm.SetTotalFriend(*value)
  5667. }
  5668. return usm
  5669. }
  5670. // set field if value's pointer is not nil.
  5671. func (usm *UsageStatisticMonthCreate) SetNotNilTotalFriend(value *uint64) *UsageStatisticMonthCreate {
  5672. if value != nil {
  5673. return usm.SetTotalFriend(*value)
  5674. }
  5675. return usm
  5676. }
  5677. // set field if value's pointer is not nil.
  5678. func (usm *UsageStatisticMonthUpdate) SetNotNilTotalGroup(value *uint64) *UsageStatisticMonthUpdate {
  5679. if value != nil {
  5680. return usm.SetTotalGroup(*value)
  5681. }
  5682. return usm
  5683. }
  5684. // set field if value's pointer is not nil.
  5685. func (usm *UsageStatisticMonthUpdateOne) SetNotNilTotalGroup(value *uint64) *UsageStatisticMonthUpdateOne {
  5686. if value != nil {
  5687. return usm.SetTotalGroup(*value)
  5688. }
  5689. return usm
  5690. }
  5691. // set field if value's pointer is not nil.
  5692. func (usm *UsageStatisticMonthCreate) SetNotNilTotalGroup(value *uint64) *UsageStatisticMonthCreate {
  5693. if value != nil {
  5694. return usm.SetTotalGroup(*value)
  5695. }
  5696. return usm
  5697. }
  5698. // set field if value's pointer is not nil.
  5699. func (usm *UsageStatisticMonthUpdate) SetNotNilAccountBalance(value *uint64) *UsageStatisticMonthUpdate {
  5700. if value != nil {
  5701. return usm.SetAccountBalance(*value)
  5702. }
  5703. return usm
  5704. }
  5705. // set field if value's pointer is not nil.
  5706. func (usm *UsageStatisticMonthUpdateOne) SetNotNilAccountBalance(value *uint64) *UsageStatisticMonthUpdateOne {
  5707. if value != nil {
  5708. return usm.SetAccountBalance(*value)
  5709. }
  5710. return usm
  5711. }
  5712. // set field if value's pointer is not nil.
  5713. func (usm *UsageStatisticMonthCreate) SetNotNilAccountBalance(value *uint64) *UsageStatisticMonthCreate {
  5714. if value != nil {
  5715. return usm.SetAccountBalance(*value)
  5716. }
  5717. return usm
  5718. }
  5719. // set field if value's pointer is not nil.
  5720. func (usm *UsageStatisticMonthUpdate) SetNotNilConsumeToken(value *uint64) *UsageStatisticMonthUpdate {
  5721. if value != nil {
  5722. return usm.SetConsumeToken(*value)
  5723. }
  5724. return usm
  5725. }
  5726. // set field if value's pointer is not nil.
  5727. func (usm *UsageStatisticMonthUpdateOne) SetNotNilConsumeToken(value *uint64) *UsageStatisticMonthUpdateOne {
  5728. if value != nil {
  5729. return usm.SetConsumeToken(*value)
  5730. }
  5731. return usm
  5732. }
  5733. // set field if value's pointer is not nil.
  5734. func (usm *UsageStatisticMonthCreate) SetNotNilConsumeToken(value *uint64) *UsageStatisticMonthCreate {
  5735. if value != nil {
  5736. return usm.SetConsumeToken(*value)
  5737. }
  5738. return usm
  5739. }
  5740. // set field if value's pointer is not nil.
  5741. func (usm *UsageStatisticMonthUpdate) SetNotNilActiveUser(value *uint64) *UsageStatisticMonthUpdate {
  5742. if value != nil {
  5743. return usm.SetActiveUser(*value)
  5744. }
  5745. return usm
  5746. }
  5747. // set field if value's pointer is not nil.
  5748. func (usm *UsageStatisticMonthUpdateOne) SetNotNilActiveUser(value *uint64) *UsageStatisticMonthUpdateOne {
  5749. if value != nil {
  5750. return usm.SetActiveUser(*value)
  5751. }
  5752. return usm
  5753. }
  5754. // set field if value's pointer is not nil.
  5755. func (usm *UsageStatisticMonthCreate) SetNotNilActiveUser(value *uint64) *UsageStatisticMonthCreate {
  5756. if value != nil {
  5757. return usm.SetActiveUser(*value)
  5758. }
  5759. return usm
  5760. }
  5761. // set field if value's pointer is not nil.
  5762. func (usm *UsageStatisticMonthUpdate) SetNotNilNewUser(value *int64) *UsageStatisticMonthUpdate {
  5763. if value != nil {
  5764. return usm.SetNewUser(*value)
  5765. }
  5766. return usm
  5767. }
  5768. // set field if value's pointer is not nil.
  5769. func (usm *UsageStatisticMonthUpdateOne) SetNotNilNewUser(value *int64) *UsageStatisticMonthUpdateOne {
  5770. if value != nil {
  5771. return usm.SetNewUser(*value)
  5772. }
  5773. return usm
  5774. }
  5775. // set field if value's pointer is not nil.
  5776. func (usm *UsageStatisticMonthCreate) SetNotNilNewUser(value *int64) *UsageStatisticMonthCreate {
  5777. if value != nil {
  5778. return usm.SetNewUser(*value)
  5779. }
  5780. return usm
  5781. }
  5782. // set field if value's pointer is not nil.
  5783. func (usm *UsageStatisticMonthUpdate) SetNotNilLabelDist(value []custom_types.LabelDist) *UsageStatisticMonthUpdate {
  5784. if value != nil {
  5785. return usm.SetLabelDist(value)
  5786. }
  5787. return usm
  5788. }
  5789. // set field if value's pointer is not nil.
  5790. func (usm *UsageStatisticMonthUpdateOne) SetNotNilLabelDist(value []custom_types.LabelDist) *UsageStatisticMonthUpdateOne {
  5791. if value != nil {
  5792. return usm.SetLabelDist(value)
  5793. }
  5794. return usm
  5795. }
  5796. // set field if value's pointer is not nil.
  5797. func (usm *UsageStatisticMonthCreate) SetNotNilLabelDist(value []custom_types.LabelDist) *UsageStatisticMonthCreate {
  5798. if value != nil {
  5799. return usm.SetLabelDist(value)
  5800. }
  5801. return usm
  5802. }
  5803. // set field if value's pointer is not nil.
  5804. func (ut *UsageTotalUpdate) SetNotNilUpdatedAt(value *time.Time) *UsageTotalUpdate {
  5805. if value != nil {
  5806. return ut.SetUpdatedAt(*value)
  5807. }
  5808. return ut
  5809. }
  5810. // set field if value's pointer is not nil.
  5811. func (ut *UsageTotalUpdateOne) SetNotNilUpdatedAt(value *time.Time) *UsageTotalUpdateOne {
  5812. if value != nil {
  5813. return ut.SetUpdatedAt(*value)
  5814. }
  5815. return ut
  5816. }
  5817. // set field if value's pointer is not nil.
  5818. func (ut *UsageTotalCreate) SetNotNilUpdatedAt(value *time.Time) *UsageTotalCreate {
  5819. if value != nil {
  5820. return ut.SetUpdatedAt(*value)
  5821. }
  5822. return ut
  5823. }
  5824. // set field if value's pointer is not nil.
  5825. func (ut *UsageTotalUpdate) SetNotNilStatus(value *uint8) *UsageTotalUpdate {
  5826. if value != nil {
  5827. return ut.SetStatus(*value)
  5828. }
  5829. return ut
  5830. }
  5831. // set field if value's pointer is not nil.
  5832. func (ut *UsageTotalUpdateOne) SetNotNilStatus(value *uint8) *UsageTotalUpdateOne {
  5833. if value != nil {
  5834. return ut.SetStatus(*value)
  5835. }
  5836. return ut
  5837. }
  5838. // set field if value's pointer is not nil.
  5839. func (ut *UsageTotalCreate) SetNotNilStatus(value *uint8) *UsageTotalCreate {
  5840. if value != nil {
  5841. return ut.SetStatus(*value)
  5842. }
  5843. return ut
  5844. }
  5845. // set field if value's pointer is not nil.
  5846. func (ut *UsageTotalUpdate) SetNotNilType(value *int) *UsageTotalUpdate {
  5847. if value != nil {
  5848. return ut.SetType(*value)
  5849. }
  5850. return ut
  5851. }
  5852. // set field if value's pointer is not nil.
  5853. func (ut *UsageTotalUpdateOne) SetNotNilType(value *int) *UsageTotalUpdateOne {
  5854. if value != nil {
  5855. return ut.SetType(*value)
  5856. }
  5857. return ut
  5858. }
  5859. // set field if value's pointer is not nil.
  5860. func (ut *UsageTotalCreate) SetNotNilType(value *int) *UsageTotalCreate {
  5861. if value != nil {
  5862. return ut.SetType(*value)
  5863. }
  5864. return ut
  5865. }
  5866. // set field if value's pointer is not nil.
  5867. func (ut *UsageTotalUpdate) SetNotNilBotID(value *string) *UsageTotalUpdate {
  5868. if value != nil {
  5869. return ut.SetBotID(*value)
  5870. }
  5871. return ut
  5872. }
  5873. // set field if value's pointer is not nil.
  5874. func (ut *UsageTotalUpdateOne) SetNotNilBotID(value *string) *UsageTotalUpdateOne {
  5875. if value != nil {
  5876. return ut.SetBotID(*value)
  5877. }
  5878. return ut
  5879. }
  5880. // set field if value's pointer is not nil.
  5881. func (ut *UsageTotalCreate) SetNotNilBotID(value *string) *UsageTotalCreate {
  5882. if value != nil {
  5883. return ut.SetBotID(*value)
  5884. }
  5885. return ut
  5886. }
  5887. // set field if value's pointer is not nil.
  5888. func (ut *UsageTotalUpdate) SetNotNilTotalTokens(value *uint64) *UsageTotalUpdate {
  5889. if value != nil {
  5890. return ut.SetTotalTokens(*value)
  5891. }
  5892. return ut
  5893. }
  5894. // set field if value's pointer is not nil.
  5895. func (ut *UsageTotalUpdateOne) SetNotNilTotalTokens(value *uint64) *UsageTotalUpdateOne {
  5896. if value != nil {
  5897. return ut.SetTotalTokens(*value)
  5898. }
  5899. return ut
  5900. }
  5901. // set field if value's pointer is not nil.
  5902. func (ut *UsageTotalCreate) SetNotNilTotalTokens(value *uint64) *UsageTotalCreate {
  5903. if value != nil {
  5904. return ut.SetTotalTokens(*value)
  5905. }
  5906. return ut
  5907. }
  5908. // set field if value's pointer is not nil.
  5909. func (ut *UsageTotalUpdate) SetNotNilStartIndex(value *uint64) *UsageTotalUpdate {
  5910. if value != nil {
  5911. return ut.SetStartIndex(*value)
  5912. }
  5913. return ut
  5914. }
  5915. // set field if value's pointer is not nil.
  5916. func (ut *UsageTotalUpdateOne) SetNotNilStartIndex(value *uint64) *UsageTotalUpdateOne {
  5917. if value != nil {
  5918. return ut.SetStartIndex(*value)
  5919. }
  5920. return ut
  5921. }
  5922. // set field if value's pointer is not nil.
  5923. func (ut *UsageTotalCreate) SetNotNilStartIndex(value *uint64) *UsageTotalCreate {
  5924. if value != nil {
  5925. return ut.SetStartIndex(*value)
  5926. }
  5927. return ut
  5928. }
  5929. // set field if value's pointer is not nil.
  5930. func (ut *UsageTotalUpdate) SetNotNilEndIndex(value *uint64) *UsageTotalUpdate {
  5931. if value != nil {
  5932. return ut.SetEndIndex(*value)
  5933. }
  5934. return ut
  5935. }
  5936. // set field if value's pointer is not nil.
  5937. func (ut *UsageTotalUpdateOne) SetNotNilEndIndex(value *uint64) *UsageTotalUpdateOne {
  5938. if value != nil {
  5939. return ut.SetEndIndex(*value)
  5940. }
  5941. return ut
  5942. }
  5943. // set field if value's pointer is not nil.
  5944. func (ut *UsageTotalCreate) SetNotNilEndIndex(value *uint64) *UsageTotalCreate {
  5945. if value != nil {
  5946. return ut.SetEndIndex(*value)
  5947. }
  5948. return ut
  5949. }
  5950. // set field if value's pointer is not nil.
  5951. func (ut *UsageTotalUpdate) SetNotNilOrganizationID(value *uint64) *UsageTotalUpdate {
  5952. if value != nil {
  5953. return ut.SetOrganizationID(*value)
  5954. }
  5955. return ut
  5956. }
  5957. // set field if value's pointer is not nil.
  5958. func (ut *UsageTotalUpdateOne) SetNotNilOrganizationID(value *uint64) *UsageTotalUpdateOne {
  5959. if value != nil {
  5960. return ut.SetOrganizationID(*value)
  5961. }
  5962. return ut
  5963. }
  5964. // set field if value's pointer is not nil.
  5965. func (ut *UsageTotalCreate) SetNotNilOrganizationID(value *uint64) *UsageTotalCreate {
  5966. if value != nil {
  5967. return ut.SetOrganizationID(*value)
  5968. }
  5969. return ut
  5970. }
  5971. // set field if value's pointer is not nil.
  5972. func (we *WorkExperienceUpdate) SetNotNilUpdatedAt(value *time.Time) *WorkExperienceUpdate {
  5973. if value != nil {
  5974. return we.SetUpdatedAt(*value)
  5975. }
  5976. return we
  5977. }
  5978. // set field if value's pointer is not nil.
  5979. func (we *WorkExperienceUpdateOne) SetNotNilUpdatedAt(value *time.Time) *WorkExperienceUpdateOne {
  5980. if value != nil {
  5981. return we.SetUpdatedAt(*value)
  5982. }
  5983. return we
  5984. }
  5985. // set field if value's pointer is not nil.
  5986. func (we *WorkExperienceCreate) SetNotNilUpdatedAt(value *time.Time) *WorkExperienceCreate {
  5987. if value != nil {
  5988. return we.SetUpdatedAt(*value)
  5989. }
  5990. return we
  5991. }
  5992. // set field if value's pointer is not nil.
  5993. func (we *WorkExperienceUpdate) SetNotNilDeletedAt(value *time.Time) *WorkExperienceUpdate {
  5994. if value != nil {
  5995. return we.SetDeletedAt(*value)
  5996. }
  5997. return we
  5998. }
  5999. // set field if value's pointer is not nil.
  6000. func (we *WorkExperienceUpdateOne) SetNotNilDeletedAt(value *time.Time) *WorkExperienceUpdateOne {
  6001. if value != nil {
  6002. return we.SetDeletedAt(*value)
  6003. }
  6004. return we
  6005. }
  6006. // set field if value's pointer is not nil.
  6007. func (we *WorkExperienceCreate) SetNotNilDeletedAt(value *time.Time) *WorkExperienceCreate {
  6008. if value != nil {
  6009. return we.SetDeletedAt(*value)
  6010. }
  6011. return we
  6012. }
  6013. // set field if value's pointer is not nil.
  6014. func (we *WorkExperienceUpdate) SetNotNilEmployeeID(value *uint64) *WorkExperienceUpdate {
  6015. if value != nil {
  6016. return we.SetEmployeeID(*value)
  6017. }
  6018. return we
  6019. }
  6020. // set field if value's pointer is not nil.
  6021. func (we *WorkExperienceUpdateOne) SetNotNilEmployeeID(value *uint64) *WorkExperienceUpdateOne {
  6022. if value != nil {
  6023. return we.SetEmployeeID(*value)
  6024. }
  6025. return we
  6026. }
  6027. // set field if value's pointer is not nil.
  6028. func (we *WorkExperienceCreate) SetNotNilEmployeeID(value *uint64) *WorkExperienceCreate {
  6029. if value != nil {
  6030. return we.SetEmployeeID(*value)
  6031. }
  6032. return we
  6033. }
  6034. // set field if value's pointer is not nil.
  6035. func (we *WorkExperienceUpdate) SetNotNilStartDate(value *time.Time) *WorkExperienceUpdate {
  6036. if value != nil {
  6037. return we.SetStartDate(*value)
  6038. }
  6039. return we
  6040. }
  6041. // set field if value's pointer is not nil.
  6042. func (we *WorkExperienceUpdateOne) SetNotNilStartDate(value *time.Time) *WorkExperienceUpdateOne {
  6043. if value != nil {
  6044. return we.SetStartDate(*value)
  6045. }
  6046. return we
  6047. }
  6048. // set field if value's pointer is not nil.
  6049. func (we *WorkExperienceCreate) SetNotNilStartDate(value *time.Time) *WorkExperienceCreate {
  6050. if value != nil {
  6051. return we.SetStartDate(*value)
  6052. }
  6053. return we
  6054. }
  6055. // set field if value's pointer is not nil.
  6056. func (we *WorkExperienceUpdate) SetNotNilEndDate(value *time.Time) *WorkExperienceUpdate {
  6057. if value != nil {
  6058. return we.SetEndDate(*value)
  6059. }
  6060. return we
  6061. }
  6062. // set field if value's pointer is not nil.
  6063. func (we *WorkExperienceUpdateOne) SetNotNilEndDate(value *time.Time) *WorkExperienceUpdateOne {
  6064. if value != nil {
  6065. return we.SetEndDate(*value)
  6066. }
  6067. return we
  6068. }
  6069. // set field if value's pointer is not nil.
  6070. func (we *WorkExperienceCreate) SetNotNilEndDate(value *time.Time) *WorkExperienceCreate {
  6071. if value != nil {
  6072. return we.SetEndDate(*value)
  6073. }
  6074. return we
  6075. }
  6076. // set field if value's pointer is not nil.
  6077. func (we *WorkExperienceUpdate) SetNotNilCompany(value *string) *WorkExperienceUpdate {
  6078. if value != nil {
  6079. return we.SetCompany(*value)
  6080. }
  6081. return we
  6082. }
  6083. // set field if value's pointer is not nil.
  6084. func (we *WorkExperienceUpdateOne) SetNotNilCompany(value *string) *WorkExperienceUpdateOne {
  6085. if value != nil {
  6086. return we.SetCompany(*value)
  6087. }
  6088. return we
  6089. }
  6090. // set field if value's pointer is not nil.
  6091. func (we *WorkExperienceCreate) SetNotNilCompany(value *string) *WorkExperienceCreate {
  6092. if value != nil {
  6093. return we.SetCompany(*value)
  6094. }
  6095. return we
  6096. }
  6097. // set field if value's pointer is not nil.
  6098. func (we *WorkExperienceUpdate) SetNotNilExperience(value *string) *WorkExperienceUpdate {
  6099. if value != nil {
  6100. return we.SetExperience(*value)
  6101. }
  6102. return we
  6103. }
  6104. // set field if value's pointer is not nil.
  6105. func (we *WorkExperienceUpdateOne) SetNotNilExperience(value *string) *WorkExperienceUpdateOne {
  6106. if value != nil {
  6107. return we.SetExperience(*value)
  6108. }
  6109. return we
  6110. }
  6111. // set field if value's pointer is not nil.
  6112. func (we *WorkExperienceCreate) SetNotNilExperience(value *string) *WorkExperienceCreate {
  6113. if value != nil {
  6114. return we.SetExperience(*value)
  6115. }
  6116. return we
  6117. }
  6118. // set field if value's pointer is not nil.
  6119. func (we *WorkExperienceUpdate) SetNotNilOrganizationID(value *uint64) *WorkExperienceUpdate {
  6120. if value != nil {
  6121. return we.SetOrganizationID(*value)
  6122. }
  6123. return we
  6124. }
  6125. // set field if value's pointer is not nil.
  6126. func (we *WorkExperienceUpdateOne) SetNotNilOrganizationID(value *uint64) *WorkExperienceUpdateOne {
  6127. if value != nil {
  6128. return we.SetOrganizationID(*value)
  6129. }
  6130. return we
  6131. }
  6132. // set field if value's pointer is not nil.
  6133. func (we *WorkExperienceCreate) SetNotNilOrganizationID(value *uint64) *WorkExperienceCreate {
  6134. if value != nil {
  6135. return we.SetOrganizationID(*value)
  6136. }
  6137. return we
  6138. }
  6139. // set field if value's pointer is not nil.
  6140. func (wc *WpChatroomUpdate) SetNotNilUpdatedAt(value *time.Time) *WpChatroomUpdate {
  6141. if value != nil {
  6142. return wc.SetUpdatedAt(*value)
  6143. }
  6144. return wc
  6145. }
  6146. // set field if value's pointer is not nil.
  6147. func (wc *WpChatroomUpdateOne) SetNotNilUpdatedAt(value *time.Time) *WpChatroomUpdateOne {
  6148. if value != nil {
  6149. return wc.SetUpdatedAt(*value)
  6150. }
  6151. return wc
  6152. }
  6153. // set field if value's pointer is not nil.
  6154. func (wc *WpChatroomCreate) SetNotNilUpdatedAt(value *time.Time) *WpChatroomCreate {
  6155. if value != nil {
  6156. return wc.SetUpdatedAt(*value)
  6157. }
  6158. return wc
  6159. }
  6160. // set field if value's pointer is not nil.
  6161. func (wc *WpChatroomUpdate) SetNotNilStatus(value *uint8) *WpChatroomUpdate {
  6162. if value != nil {
  6163. return wc.SetStatus(*value)
  6164. }
  6165. return wc
  6166. }
  6167. // set field if value's pointer is not nil.
  6168. func (wc *WpChatroomUpdateOne) SetNotNilStatus(value *uint8) *WpChatroomUpdateOne {
  6169. if value != nil {
  6170. return wc.SetStatus(*value)
  6171. }
  6172. return wc
  6173. }
  6174. // set field if value's pointer is not nil.
  6175. func (wc *WpChatroomCreate) SetNotNilStatus(value *uint8) *WpChatroomCreate {
  6176. if value != nil {
  6177. return wc.SetStatus(*value)
  6178. }
  6179. return wc
  6180. }
  6181. // set field if value's pointer is not nil.
  6182. func (wc *WpChatroomUpdate) SetNotNilWxWxid(value *string) *WpChatroomUpdate {
  6183. if value != nil {
  6184. return wc.SetWxWxid(*value)
  6185. }
  6186. return wc
  6187. }
  6188. // set field if value's pointer is not nil.
  6189. func (wc *WpChatroomUpdateOne) SetNotNilWxWxid(value *string) *WpChatroomUpdateOne {
  6190. if value != nil {
  6191. return wc.SetWxWxid(*value)
  6192. }
  6193. return wc
  6194. }
  6195. // set field if value's pointer is not nil.
  6196. func (wc *WpChatroomCreate) SetNotNilWxWxid(value *string) *WpChatroomCreate {
  6197. if value != nil {
  6198. return wc.SetWxWxid(*value)
  6199. }
  6200. return wc
  6201. }
  6202. // set field if value's pointer is not nil.
  6203. func (wc *WpChatroomUpdate) SetNotNilChatroomID(value *string) *WpChatroomUpdate {
  6204. if value != nil {
  6205. return wc.SetChatroomID(*value)
  6206. }
  6207. return wc
  6208. }
  6209. // set field if value's pointer is not nil.
  6210. func (wc *WpChatroomUpdateOne) SetNotNilChatroomID(value *string) *WpChatroomUpdateOne {
  6211. if value != nil {
  6212. return wc.SetChatroomID(*value)
  6213. }
  6214. return wc
  6215. }
  6216. // set field if value's pointer is not nil.
  6217. func (wc *WpChatroomCreate) SetNotNilChatroomID(value *string) *WpChatroomCreate {
  6218. if value != nil {
  6219. return wc.SetChatroomID(*value)
  6220. }
  6221. return wc
  6222. }
  6223. // set field if value's pointer is not nil.
  6224. func (wc *WpChatroomUpdate) SetNotNilNickname(value *string) *WpChatroomUpdate {
  6225. if value != nil {
  6226. return wc.SetNickname(*value)
  6227. }
  6228. return wc
  6229. }
  6230. // set field if value's pointer is not nil.
  6231. func (wc *WpChatroomUpdateOne) SetNotNilNickname(value *string) *WpChatroomUpdateOne {
  6232. if value != nil {
  6233. return wc.SetNickname(*value)
  6234. }
  6235. return wc
  6236. }
  6237. // set field if value's pointer is not nil.
  6238. func (wc *WpChatroomCreate) SetNotNilNickname(value *string) *WpChatroomCreate {
  6239. if value != nil {
  6240. return wc.SetNickname(*value)
  6241. }
  6242. return wc
  6243. }
  6244. // set field if value's pointer is not nil.
  6245. func (wc *WpChatroomUpdate) SetNotNilOwner(value *string) *WpChatroomUpdate {
  6246. if value != nil {
  6247. return wc.SetOwner(*value)
  6248. }
  6249. return wc
  6250. }
  6251. // set field if value's pointer is not nil.
  6252. func (wc *WpChatroomUpdateOne) SetNotNilOwner(value *string) *WpChatroomUpdateOne {
  6253. if value != nil {
  6254. return wc.SetOwner(*value)
  6255. }
  6256. return wc
  6257. }
  6258. // set field if value's pointer is not nil.
  6259. func (wc *WpChatroomCreate) SetNotNilOwner(value *string) *WpChatroomCreate {
  6260. if value != nil {
  6261. return wc.SetOwner(*value)
  6262. }
  6263. return wc
  6264. }
  6265. // set field if value's pointer is not nil.
  6266. func (wc *WpChatroomUpdate) SetNotNilAvatar(value *string) *WpChatroomUpdate {
  6267. if value != nil {
  6268. return wc.SetAvatar(*value)
  6269. }
  6270. return wc
  6271. }
  6272. // set field if value's pointer is not nil.
  6273. func (wc *WpChatroomUpdateOne) SetNotNilAvatar(value *string) *WpChatroomUpdateOne {
  6274. if value != nil {
  6275. return wc.SetAvatar(*value)
  6276. }
  6277. return wc
  6278. }
  6279. // set field if value's pointer is not nil.
  6280. func (wc *WpChatroomCreate) SetNotNilAvatar(value *string) *WpChatroomCreate {
  6281. if value != nil {
  6282. return wc.SetAvatar(*value)
  6283. }
  6284. return wc
  6285. }
  6286. // set field if value's pointer is not nil.
  6287. func (wc *WpChatroomUpdate) SetNotNilMemberList(value []string) *WpChatroomUpdate {
  6288. if value != nil {
  6289. return wc.SetMemberList(value)
  6290. }
  6291. return wc
  6292. }
  6293. // set field if value's pointer is not nil.
  6294. func (wc *WpChatroomUpdateOne) SetNotNilMemberList(value []string) *WpChatroomUpdateOne {
  6295. if value != nil {
  6296. return wc.SetMemberList(value)
  6297. }
  6298. return wc
  6299. }
  6300. // set field if value's pointer is not nil.
  6301. func (wc *WpChatroomCreate) SetNotNilMemberList(value []string) *WpChatroomCreate {
  6302. if value != nil {
  6303. return wc.SetMemberList(value)
  6304. }
  6305. return wc
  6306. }
  6307. // set field if value's pointer is not nil.
  6308. func (wcm *WpChatroomMemberUpdate) SetNotNilUpdatedAt(value *time.Time) *WpChatroomMemberUpdate {
  6309. if value != nil {
  6310. return wcm.SetUpdatedAt(*value)
  6311. }
  6312. return wcm
  6313. }
  6314. // set field if value's pointer is not nil.
  6315. func (wcm *WpChatroomMemberUpdateOne) SetNotNilUpdatedAt(value *time.Time) *WpChatroomMemberUpdateOne {
  6316. if value != nil {
  6317. return wcm.SetUpdatedAt(*value)
  6318. }
  6319. return wcm
  6320. }
  6321. // set field if value's pointer is not nil.
  6322. func (wcm *WpChatroomMemberCreate) SetNotNilUpdatedAt(value *time.Time) *WpChatroomMemberCreate {
  6323. if value != nil {
  6324. return wcm.SetUpdatedAt(*value)
  6325. }
  6326. return wcm
  6327. }
  6328. // set field if value's pointer is not nil.
  6329. func (wcm *WpChatroomMemberUpdate) SetNotNilStatus(value *uint8) *WpChatroomMemberUpdate {
  6330. if value != nil {
  6331. return wcm.SetStatus(*value)
  6332. }
  6333. return wcm
  6334. }
  6335. // set field if value's pointer is not nil.
  6336. func (wcm *WpChatroomMemberUpdateOne) SetNotNilStatus(value *uint8) *WpChatroomMemberUpdateOne {
  6337. if value != nil {
  6338. return wcm.SetStatus(*value)
  6339. }
  6340. return wcm
  6341. }
  6342. // set field if value's pointer is not nil.
  6343. func (wcm *WpChatroomMemberCreate) SetNotNilStatus(value *uint8) *WpChatroomMemberCreate {
  6344. if value != nil {
  6345. return wcm.SetStatus(*value)
  6346. }
  6347. return wcm
  6348. }
  6349. // set field if value's pointer is not nil.
  6350. func (wcm *WpChatroomMemberUpdate) SetNotNilWxWxid(value *string) *WpChatroomMemberUpdate {
  6351. if value != nil {
  6352. return wcm.SetWxWxid(*value)
  6353. }
  6354. return wcm
  6355. }
  6356. // set field if value's pointer is not nil.
  6357. func (wcm *WpChatroomMemberUpdateOne) SetNotNilWxWxid(value *string) *WpChatroomMemberUpdateOne {
  6358. if value != nil {
  6359. return wcm.SetWxWxid(*value)
  6360. }
  6361. return wcm
  6362. }
  6363. // set field if value's pointer is not nil.
  6364. func (wcm *WpChatroomMemberCreate) SetNotNilWxWxid(value *string) *WpChatroomMemberCreate {
  6365. if value != nil {
  6366. return wcm.SetWxWxid(*value)
  6367. }
  6368. return wcm
  6369. }
  6370. // set field if value's pointer is not nil.
  6371. func (wcm *WpChatroomMemberUpdate) SetNotNilWxid(value *string) *WpChatroomMemberUpdate {
  6372. if value != nil {
  6373. return wcm.SetWxid(*value)
  6374. }
  6375. return wcm
  6376. }
  6377. // set field if value's pointer is not nil.
  6378. func (wcm *WpChatroomMemberUpdateOne) SetNotNilWxid(value *string) *WpChatroomMemberUpdateOne {
  6379. if value != nil {
  6380. return wcm.SetWxid(*value)
  6381. }
  6382. return wcm
  6383. }
  6384. // set field if value's pointer is not nil.
  6385. func (wcm *WpChatroomMemberCreate) SetNotNilWxid(value *string) *WpChatroomMemberCreate {
  6386. if value != nil {
  6387. return wcm.SetWxid(*value)
  6388. }
  6389. return wcm
  6390. }
  6391. // set field if value's pointer is not nil.
  6392. func (wcm *WpChatroomMemberUpdate) SetNotNilNickname(value *string) *WpChatroomMemberUpdate {
  6393. if value != nil {
  6394. return wcm.SetNickname(*value)
  6395. }
  6396. return wcm
  6397. }
  6398. // set field if value's pointer is not nil.
  6399. func (wcm *WpChatroomMemberUpdateOne) SetNotNilNickname(value *string) *WpChatroomMemberUpdateOne {
  6400. if value != nil {
  6401. return wcm.SetNickname(*value)
  6402. }
  6403. return wcm
  6404. }
  6405. // set field if value's pointer is not nil.
  6406. func (wcm *WpChatroomMemberCreate) SetNotNilNickname(value *string) *WpChatroomMemberCreate {
  6407. if value != nil {
  6408. return wcm.SetNickname(*value)
  6409. }
  6410. return wcm
  6411. }
  6412. // set field if value's pointer is not nil.
  6413. func (wcm *WpChatroomMemberUpdate) SetNotNilAvatar(value *string) *WpChatroomMemberUpdate {
  6414. if value != nil {
  6415. return wcm.SetAvatar(*value)
  6416. }
  6417. return wcm
  6418. }
  6419. // set field if value's pointer is not nil.
  6420. func (wcm *WpChatroomMemberUpdateOne) SetNotNilAvatar(value *string) *WpChatroomMemberUpdateOne {
  6421. if value != nil {
  6422. return wcm.SetAvatar(*value)
  6423. }
  6424. return wcm
  6425. }
  6426. // set field if value's pointer is not nil.
  6427. func (wcm *WpChatroomMemberCreate) SetNotNilAvatar(value *string) *WpChatroomMemberCreate {
  6428. if value != nil {
  6429. return wcm.SetAvatar(*value)
  6430. }
  6431. return wcm
  6432. }
  6433. // set field if value's pointer is not nil.
  6434. func (w *WxUpdate) SetNotNilUpdatedAt(value *time.Time) *WxUpdate {
  6435. if value != nil {
  6436. return w.SetUpdatedAt(*value)
  6437. }
  6438. return w
  6439. }
  6440. // set field if value's pointer is not nil.
  6441. func (w *WxUpdateOne) SetNotNilUpdatedAt(value *time.Time) *WxUpdateOne {
  6442. if value != nil {
  6443. return w.SetUpdatedAt(*value)
  6444. }
  6445. return w
  6446. }
  6447. // set field if value's pointer is not nil.
  6448. func (w *WxCreate) SetNotNilUpdatedAt(value *time.Time) *WxCreate {
  6449. if value != nil {
  6450. return w.SetUpdatedAt(*value)
  6451. }
  6452. return w
  6453. }
  6454. // set field if value's pointer is not nil.
  6455. func (w *WxUpdate) SetNotNilStatus(value *uint8) *WxUpdate {
  6456. if value != nil {
  6457. return w.SetStatus(*value)
  6458. }
  6459. return w
  6460. }
  6461. // set field if value's pointer is not nil.
  6462. func (w *WxUpdateOne) SetNotNilStatus(value *uint8) *WxUpdateOne {
  6463. if value != nil {
  6464. return w.SetStatus(*value)
  6465. }
  6466. return w
  6467. }
  6468. // set field if value's pointer is not nil.
  6469. func (w *WxCreate) SetNotNilStatus(value *uint8) *WxCreate {
  6470. if value != nil {
  6471. return w.SetStatus(*value)
  6472. }
  6473. return w
  6474. }
  6475. // set field if value's pointer is not nil.
  6476. func (w *WxUpdate) SetNotNilDeletedAt(value *time.Time) *WxUpdate {
  6477. if value != nil {
  6478. return w.SetDeletedAt(*value)
  6479. }
  6480. return w
  6481. }
  6482. // set field if value's pointer is not nil.
  6483. func (w *WxUpdateOne) SetNotNilDeletedAt(value *time.Time) *WxUpdateOne {
  6484. if value != nil {
  6485. return w.SetDeletedAt(*value)
  6486. }
  6487. return w
  6488. }
  6489. // set field if value's pointer is not nil.
  6490. func (w *WxCreate) SetNotNilDeletedAt(value *time.Time) *WxCreate {
  6491. if value != nil {
  6492. return w.SetDeletedAt(*value)
  6493. }
  6494. return w
  6495. }
  6496. // set field if value's pointer is not nil.
  6497. func (w *WxUpdate) SetNotNilServerID(value *uint64) *WxUpdate {
  6498. if value != nil {
  6499. return w.SetServerID(*value)
  6500. }
  6501. return w
  6502. }
  6503. // set field if value's pointer is not nil.
  6504. func (w *WxUpdateOne) SetNotNilServerID(value *uint64) *WxUpdateOne {
  6505. if value != nil {
  6506. return w.SetServerID(*value)
  6507. }
  6508. return w
  6509. }
  6510. // set field if value's pointer is not nil.
  6511. func (w *WxCreate) SetNotNilServerID(value *uint64) *WxCreate {
  6512. if value != nil {
  6513. return w.SetServerID(*value)
  6514. }
  6515. return w
  6516. }
  6517. // set field if value's pointer is not nil.
  6518. func (w *WxUpdate) SetNotNilPort(value *string) *WxUpdate {
  6519. if value != nil {
  6520. return w.SetPort(*value)
  6521. }
  6522. return w
  6523. }
  6524. // set field if value's pointer is not nil.
  6525. func (w *WxUpdateOne) SetNotNilPort(value *string) *WxUpdateOne {
  6526. if value != nil {
  6527. return w.SetPort(*value)
  6528. }
  6529. return w
  6530. }
  6531. // set field if value's pointer is not nil.
  6532. func (w *WxCreate) SetNotNilPort(value *string) *WxCreate {
  6533. if value != nil {
  6534. return w.SetPort(*value)
  6535. }
  6536. return w
  6537. }
  6538. // set field if value's pointer is not nil.
  6539. func (w *WxUpdate) SetNotNilProcessID(value *string) *WxUpdate {
  6540. if value != nil {
  6541. return w.SetProcessID(*value)
  6542. }
  6543. return w
  6544. }
  6545. // set field if value's pointer is not nil.
  6546. func (w *WxUpdateOne) SetNotNilProcessID(value *string) *WxUpdateOne {
  6547. if value != nil {
  6548. return w.SetProcessID(*value)
  6549. }
  6550. return w
  6551. }
  6552. // set field if value's pointer is not nil.
  6553. func (w *WxCreate) SetNotNilProcessID(value *string) *WxCreate {
  6554. if value != nil {
  6555. return w.SetProcessID(*value)
  6556. }
  6557. return w
  6558. }
  6559. // set field if value's pointer is not nil.
  6560. func (w *WxUpdate) SetNotNilCallback(value *string) *WxUpdate {
  6561. if value != nil {
  6562. return w.SetCallback(*value)
  6563. }
  6564. return w
  6565. }
  6566. // set field if value's pointer is not nil.
  6567. func (w *WxUpdateOne) SetNotNilCallback(value *string) *WxUpdateOne {
  6568. if value != nil {
  6569. return w.SetCallback(*value)
  6570. }
  6571. return w
  6572. }
  6573. // set field if value's pointer is not nil.
  6574. func (w *WxCreate) SetNotNilCallback(value *string) *WxCreate {
  6575. if value != nil {
  6576. return w.SetCallback(*value)
  6577. }
  6578. return w
  6579. }
  6580. // set field if value's pointer is not nil.
  6581. func (w *WxUpdate) SetNotNilWxid(value *string) *WxUpdate {
  6582. if value != nil {
  6583. return w.SetWxid(*value)
  6584. }
  6585. return w
  6586. }
  6587. // set field if value's pointer is not nil.
  6588. func (w *WxUpdateOne) SetNotNilWxid(value *string) *WxUpdateOne {
  6589. if value != nil {
  6590. return w.SetWxid(*value)
  6591. }
  6592. return w
  6593. }
  6594. // set field if value's pointer is not nil.
  6595. func (w *WxCreate) SetNotNilWxid(value *string) *WxCreate {
  6596. if value != nil {
  6597. return w.SetWxid(*value)
  6598. }
  6599. return w
  6600. }
  6601. // set field if value's pointer is not nil.
  6602. func (w *WxUpdate) SetNotNilAccount(value *string) *WxUpdate {
  6603. if value != nil {
  6604. return w.SetAccount(*value)
  6605. }
  6606. return w
  6607. }
  6608. // set field if value's pointer is not nil.
  6609. func (w *WxUpdateOne) SetNotNilAccount(value *string) *WxUpdateOne {
  6610. if value != nil {
  6611. return w.SetAccount(*value)
  6612. }
  6613. return w
  6614. }
  6615. // set field if value's pointer is not nil.
  6616. func (w *WxCreate) SetNotNilAccount(value *string) *WxCreate {
  6617. if value != nil {
  6618. return w.SetAccount(*value)
  6619. }
  6620. return w
  6621. }
  6622. // set field if value's pointer is not nil.
  6623. func (w *WxUpdate) SetNotNilNickname(value *string) *WxUpdate {
  6624. if value != nil {
  6625. return w.SetNickname(*value)
  6626. }
  6627. return w
  6628. }
  6629. // set field if value's pointer is not nil.
  6630. func (w *WxUpdateOne) SetNotNilNickname(value *string) *WxUpdateOne {
  6631. if value != nil {
  6632. return w.SetNickname(*value)
  6633. }
  6634. return w
  6635. }
  6636. // set field if value's pointer is not nil.
  6637. func (w *WxCreate) SetNotNilNickname(value *string) *WxCreate {
  6638. if value != nil {
  6639. return w.SetNickname(*value)
  6640. }
  6641. return w
  6642. }
  6643. // set field if value's pointer is not nil.
  6644. func (w *WxUpdate) SetNotNilTel(value *string) *WxUpdate {
  6645. if value != nil {
  6646. return w.SetTel(*value)
  6647. }
  6648. return w
  6649. }
  6650. // set field if value's pointer is not nil.
  6651. func (w *WxUpdateOne) SetNotNilTel(value *string) *WxUpdateOne {
  6652. if value != nil {
  6653. return w.SetTel(*value)
  6654. }
  6655. return w
  6656. }
  6657. // set field if value's pointer is not nil.
  6658. func (w *WxCreate) SetNotNilTel(value *string) *WxCreate {
  6659. if value != nil {
  6660. return w.SetTel(*value)
  6661. }
  6662. return w
  6663. }
  6664. // set field if value's pointer is not nil.
  6665. func (w *WxUpdate) SetNotNilHeadBig(value *string) *WxUpdate {
  6666. if value != nil {
  6667. return w.SetHeadBig(*value)
  6668. }
  6669. return w
  6670. }
  6671. // set field if value's pointer is not nil.
  6672. func (w *WxUpdateOne) SetNotNilHeadBig(value *string) *WxUpdateOne {
  6673. if value != nil {
  6674. return w.SetHeadBig(*value)
  6675. }
  6676. return w
  6677. }
  6678. // set field if value's pointer is not nil.
  6679. func (w *WxCreate) SetNotNilHeadBig(value *string) *WxCreate {
  6680. if value != nil {
  6681. return w.SetHeadBig(*value)
  6682. }
  6683. return w
  6684. }
  6685. // set field if value's pointer is not nil.
  6686. func (w *WxUpdate) SetNotNilOrganizationID(value *uint64) *WxUpdate {
  6687. if value != nil {
  6688. return w.SetOrganizationID(*value)
  6689. }
  6690. return w
  6691. }
  6692. // set field if value's pointer is not nil.
  6693. func (w *WxUpdateOne) SetNotNilOrganizationID(value *uint64) *WxUpdateOne {
  6694. if value != nil {
  6695. return w.SetOrganizationID(*value)
  6696. }
  6697. return w
  6698. }
  6699. // set field if value's pointer is not nil.
  6700. func (w *WxCreate) SetNotNilOrganizationID(value *uint64) *WxCreate {
  6701. if value != nil {
  6702. return w.SetOrganizationID(*value)
  6703. }
  6704. return w
  6705. }
  6706. // set field if value's pointer is not nil.
  6707. func (w *WxUpdate) SetNotNilAgentID(value *uint64) *WxUpdate {
  6708. if value != nil {
  6709. return w.SetAgentID(*value)
  6710. }
  6711. return w
  6712. }
  6713. // set field if value's pointer is not nil.
  6714. func (w *WxUpdateOne) SetNotNilAgentID(value *uint64) *WxUpdateOne {
  6715. if value != nil {
  6716. return w.SetAgentID(*value)
  6717. }
  6718. return w
  6719. }
  6720. // set field if value's pointer is not nil.
  6721. func (w *WxCreate) SetNotNilAgentID(value *uint64) *WxCreate {
  6722. if value != nil {
  6723. return w.SetAgentID(*value)
  6724. }
  6725. return w
  6726. }
  6727. // set field if value's pointer is not nil.
  6728. func (w *WxUpdate) SetNotNilAPIBase(value *string) *WxUpdate {
  6729. if value != nil {
  6730. return w.SetAPIBase(*value)
  6731. }
  6732. return w
  6733. }
  6734. // set field if value's pointer is not nil.
  6735. func (w *WxUpdateOne) SetNotNilAPIBase(value *string) *WxUpdateOne {
  6736. if value != nil {
  6737. return w.SetAPIBase(*value)
  6738. }
  6739. return w
  6740. }
  6741. // set field if value's pointer is not nil.
  6742. func (w *WxCreate) SetNotNilAPIBase(value *string) *WxCreate {
  6743. if value != nil {
  6744. return w.SetAPIBase(*value)
  6745. }
  6746. return w
  6747. }
  6748. // set field if value's pointer is not nil.
  6749. func (w *WxUpdate) SetNotNilAPIKey(value *string) *WxUpdate {
  6750. if value != nil {
  6751. return w.SetAPIKey(*value)
  6752. }
  6753. return w
  6754. }
  6755. // set field if value's pointer is not nil.
  6756. func (w *WxUpdateOne) SetNotNilAPIKey(value *string) *WxUpdateOne {
  6757. if value != nil {
  6758. return w.SetAPIKey(*value)
  6759. }
  6760. return w
  6761. }
  6762. // set field if value's pointer is not nil.
  6763. func (w *WxCreate) SetNotNilAPIKey(value *string) *WxCreate {
  6764. if value != nil {
  6765. return w.SetAPIKey(*value)
  6766. }
  6767. return w
  6768. }
  6769. // set field if value's pointer is not nil.
  6770. func (w *WxUpdate) SetNotNilAllowList(value []string) *WxUpdate {
  6771. if value != nil {
  6772. return w.SetAllowList(value)
  6773. }
  6774. return w
  6775. }
  6776. // set field if value's pointer is not nil.
  6777. func (w *WxUpdateOne) SetNotNilAllowList(value []string) *WxUpdateOne {
  6778. if value != nil {
  6779. return w.SetAllowList(value)
  6780. }
  6781. return w
  6782. }
  6783. // set field if value's pointer is not nil.
  6784. func (w *WxCreate) SetNotNilAllowList(value []string) *WxCreate {
  6785. if value != nil {
  6786. return w.SetAllowList(value)
  6787. }
  6788. return w
  6789. }
  6790. // set field if value's pointer is not nil.
  6791. func (w *WxUpdate) SetNotNilGroupAllowList(value []string) *WxUpdate {
  6792. if value != nil {
  6793. return w.SetGroupAllowList(value)
  6794. }
  6795. return w
  6796. }
  6797. // set field if value's pointer is not nil.
  6798. func (w *WxUpdateOne) SetNotNilGroupAllowList(value []string) *WxUpdateOne {
  6799. if value != nil {
  6800. return w.SetGroupAllowList(value)
  6801. }
  6802. return w
  6803. }
  6804. // set field if value's pointer is not nil.
  6805. func (w *WxCreate) SetNotNilGroupAllowList(value []string) *WxCreate {
  6806. if value != nil {
  6807. return w.SetGroupAllowList(value)
  6808. }
  6809. return w
  6810. }
  6811. // set field if value's pointer is not nil.
  6812. func (w *WxUpdate) SetNotNilBlockList(value []string) *WxUpdate {
  6813. if value != nil {
  6814. return w.SetBlockList(value)
  6815. }
  6816. return w
  6817. }
  6818. // set field if value's pointer is not nil.
  6819. func (w *WxUpdateOne) SetNotNilBlockList(value []string) *WxUpdateOne {
  6820. if value != nil {
  6821. return w.SetBlockList(value)
  6822. }
  6823. return w
  6824. }
  6825. // set field if value's pointer is not nil.
  6826. func (w *WxCreate) SetNotNilBlockList(value []string) *WxCreate {
  6827. if value != nil {
  6828. return w.SetBlockList(value)
  6829. }
  6830. return w
  6831. }
  6832. // set field if value's pointer is not nil.
  6833. func (w *WxUpdate) SetNotNilGroupBlockList(value []string) *WxUpdate {
  6834. if value != nil {
  6835. return w.SetGroupBlockList(value)
  6836. }
  6837. return w
  6838. }
  6839. // set field if value's pointer is not nil.
  6840. func (w *WxUpdateOne) SetNotNilGroupBlockList(value []string) *WxUpdateOne {
  6841. if value != nil {
  6842. return w.SetGroupBlockList(value)
  6843. }
  6844. return w
  6845. }
  6846. // set field if value's pointer is not nil.
  6847. func (w *WxCreate) SetNotNilGroupBlockList(value []string) *WxCreate {
  6848. if value != nil {
  6849. return w.SetGroupBlockList(value)
  6850. }
  6851. return w
  6852. }
  6853. // set field if value's pointer is not nil.
  6854. func (wc *WxCardUpdate) SetNotNilUpdatedAt(value *time.Time) *WxCardUpdate {
  6855. if value != nil {
  6856. return wc.SetUpdatedAt(*value)
  6857. }
  6858. return wc
  6859. }
  6860. // set field if value's pointer is not nil.
  6861. func (wc *WxCardUpdateOne) SetNotNilUpdatedAt(value *time.Time) *WxCardUpdateOne {
  6862. if value != nil {
  6863. return wc.SetUpdatedAt(*value)
  6864. }
  6865. return wc
  6866. }
  6867. // set field if value's pointer is not nil.
  6868. func (wc *WxCardCreate) SetNotNilUpdatedAt(value *time.Time) *WxCardCreate {
  6869. if value != nil {
  6870. return wc.SetUpdatedAt(*value)
  6871. }
  6872. return wc
  6873. }
  6874. // set field if value's pointer is not nil.
  6875. func (wc *WxCardUpdate) SetNotNilDeletedAt(value *time.Time) *WxCardUpdate {
  6876. if value != nil {
  6877. return wc.SetDeletedAt(*value)
  6878. }
  6879. return wc
  6880. }
  6881. // set field if value's pointer is not nil.
  6882. func (wc *WxCardUpdateOne) SetNotNilDeletedAt(value *time.Time) *WxCardUpdateOne {
  6883. if value != nil {
  6884. return wc.SetDeletedAt(*value)
  6885. }
  6886. return wc
  6887. }
  6888. // set field if value's pointer is not nil.
  6889. func (wc *WxCardCreate) SetNotNilDeletedAt(value *time.Time) *WxCardCreate {
  6890. if value != nil {
  6891. return wc.SetDeletedAt(*value)
  6892. }
  6893. return wc
  6894. }
  6895. // set field if value's pointer is not nil.
  6896. func (wc *WxCardUpdate) SetNotNilUserID(value *uint64) *WxCardUpdate {
  6897. if value != nil {
  6898. return wc.SetUserID(*value)
  6899. }
  6900. return wc
  6901. }
  6902. // set field if value's pointer is not nil.
  6903. func (wc *WxCardUpdateOne) SetNotNilUserID(value *uint64) *WxCardUpdateOne {
  6904. if value != nil {
  6905. return wc.SetUserID(*value)
  6906. }
  6907. return wc
  6908. }
  6909. // set field if value's pointer is not nil.
  6910. func (wc *WxCardCreate) SetNotNilUserID(value *uint64) *WxCardCreate {
  6911. if value != nil {
  6912. return wc.SetUserID(*value)
  6913. }
  6914. return wc
  6915. }
  6916. // set field if value's pointer is not nil.
  6917. func (wc *WxCardUpdate) SetNotNilWxUserID(value *uint64) *WxCardUpdate {
  6918. if value != nil {
  6919. return wc.SetWxUserID(*value)
  6920. }
  6921. return wc
  6922. }
  6923. // set field if value's pointer is not nil.
  6924. func (wc *WxCardUpdateOne) SetNotNilWxUserID(value *uint64) *WxCardUpdateOne {
  6925. if value != nil {
  6926. return wc.SetWxUserID(*value)
  6927. }
  6928. return wc
  6929. }
  6930. // set field if value's pointer is not nil.
  6931. func (wc *WxCardCreate) SetNotNilWxUserID(value *uint64) *WxCardCreate {
  6932. if value != nil {
  6933. return wc.SetWxUserID(*value)
  6934. }
  6935. return wc
  6936. }
  6937. // set field if value's pointer is not nil.
  6938. func (wc *WxCardUpdate) SetNotNilAvatar(value *string) *WxCardUpdate {
  6939. if value != nil {
  6940. return wc.SetAvatar(*value)
  6941. }
  6942. return wc
  6943. }
  6944. // set field if value's pointer is not nil.
  6945. func (wc *WxCardUpdateOne) SetNotNilAvatar(value *string) *WxCardUpdateOne {
  6946. if value != nil {
  6947. return wc.SetAvatar(*value)
  6948. }
  6949. return wc
  6950. }
  6951. // set field if value's pointer is not nil.
  6952. func (wc *WxCardCreate) SetNotNilAvatar(value *string) *WxCardCreate {
  6953. if value != nil {
  6954. return wc.SetAvatar(*value)
  6955. }
  6956. return wc
  6957. }
  6958. // set field if value's pointer is not nil.
  6959. func (wc *WxCardUpdate) SetNotNilLogo(value *string) *WxCardUpdate {
  6960. if value != nil {
  6961. return wc.SetLogo(*value)
  6962. }
  6963. return wc
  6964. }
  6965. // set field if value's pointer is not nil.
  6966. func (wc *WxCardUpdateOne) SetNotNilLogo(value *string) *WxCardUpdateOne {
  6967. if value != nil {
  6968. return wc.SetLogo(*value)
  6969. }
  6970. return wc
  6971. }
  6972. // set field if value's pointer is not nil.
  6973. func (wc *WxCardCreate) SetNotNilLogo(value *string) *WxCardCreate {
  6974. if value != nil {
  6975. return wc.SetLogo(*value)
  6976. }
  6977. return wc
  6978. }
  6979. // set field if value's pointer is not nil.
  6980. func (wc *WxCardUpdate) SetNotNilName(value *string) *WxCardUpdate {
  6981. if value != nil {
  6982. return wc.SetName(*value)
  6983. }
  6984. return wc
  6985. }
  6986. // set field if value's pointer is not nil.
  6987. func (wc *WxCardUpdateOne) SetNotNilName(value *string) *WxCardUpdateOne {
  6988. if value != nil {
  6989. return wc.SetName(*value)
  6990. }
  6991. return wc
  6992. }
  6993. // set field if value's pointer is not nil.
  6994. func (wc *WxCardCreate) SetNotNilName(value *string) *WxCardCreate {
  6995. if value != nil {
  6996. return wc.SetName(*value)
  6997. }
  6998. return wc
  6999. }
  7000. // set field if value's pointer is not nil.
  7001. func (wc *WxCardUpdate) SetNotNilCompany(value *string) *WxCardUpdate {
  7002. if value != nil {
  7003. return wc.SetCompany(*value)
  7004. }
  7005. return wc
  7006. }
  7007. // set field if value's pointer is not nil.
  7008. func (wc *WxCardUpdateOne) SetNotNilCompany(value *string) *WxCardUpdateOne {
  7009. if value != nil {
  7010. return wc.SetCompany(*value)
  7011. }
  7012. return wc
  7013. }
  7014. // set field if value's pointer is not nil.
  7015. func (wc *WxCardCreate) SetNotNilCompany(value *string) *WxCardCreate {
  7016. if value != nil {
  7017. return wc.SetCompany(*value)
  7018. }
  7019. return wc
  7020. }
  7021. // set field if value's pointer is not nil.
  7022. func (wc *WxCardUpdate) SetNotNilAddress(value *string) *WxCardUpdate {
  7023. if value != nil {
  7024. return wc.SetAddress(*value)
  7025. }
  7026. return wc
  7027. }
  7028. // set field if value's pointer is not nil.
  7029. func (wc *WxCardUpdateOne) SetNotNilAddress(value *string) *WxCardUpdateOne {
  7030. if value != nil {
  7031. return wc.SetAddress(*value)
  7032. }
  7033. return wc
  7034. }
  7035. // set field if value's pointer is not nil.
  7036. func (wc *WxCardCreate) SetNotNilAddress(value *string) *WxCardCreate {
  7037. if value != nil {
  7038. return wc.SetAddress(*value)
  7039. }
  7040. return wc
  7041. }
  7042. // set field if value's pointer is not nil.
  7043. func (wc *WxCardUpdate) SetNotNilPhone(value *string) *WxCardUpdate {
  7044. if value != nil {
  7045. return wc.SetPhone(*value)
  7046. }
  7047. return wc
  7048. }
  7049. // set field if value's pointer is not nil.
  7050. func (wc *WxCardUpdateOne) SetNotNilPhone(value *string) *WxCardUpdateOne {
  7051. if value != nil {
  7052. return wc.SetPhone(*value)
  7053. }
  7054. return wc
  7055. }
  7056. // set field if value's pointer is not nil.
  7057. func (wc *WxCardCreate) SetNotNilPhone(value *string) *WxCardCreate {
  7058. if value != nil {
  7059. return wc.SetPhone(*value)
  7060. }
  7061. return wc
  7062. }
  7063. // set field if value's pointer is not nil.
  7064. func (wc *WxCardUpdate) SetNotNilOfficialAccount(value *string) *WxCardUpdate {
  7065. if value != nil {
  7066. return wc.SetOfficialAccount(*value)
  7067. }
  7068. return wc
  7069. }
  7070. // set field if value's pointer is not nil.
  7071. func (wc *WxCardUpdateOne) SetNotNilOfficialAccount(value *string) *WxCardUpdateOne {
  7072. if value != nil {
  7073. return wc.SetOfficialAccount(*value)
  7074. }
  7075. return wc
  7076. }
  7077. // set field if value's pointer is not nil.
  7078. func (wc *WxCardCreate) SetNotNilOfficialAccount(value *string) *WxCardCreate {
  7079. if value != nil {
  7080. return wc.SetOfficialAccount(*value)
  7081. }
  7082. return wc
  7083. }
  7084. // set field if value's pointer is not nil.
  7085. func (wc *WxCardUpdate) SetNotNilWechatAccount(value *string) *WxCardUpdate {
  7086. if value != nil {
  7087. return wc.SetWechatAccount(*value)
  7088. }
  7089. return wc
  7090. }
  7091. // set field if value's pointer is not nil.
  7092. func (wc *WxCardUpdateOne) SetNotNilWechatAccount(value *string) *WxCardUpdateOne {
  7093. if value != nil {
  7094. return wc.SetWechatAccount(*value)
  7095. }
  7096. return wc
  7097. }
  7098. // set field if value's pointer is not nil.
  7099. func (wc *WxCardCreate) SetNotNilWechatAccount(value *string) *WxCardCreate {
  7100. if value != nil {
  7101. return wc.SetWechatAccount(*value)
  7102. }
  7103. return wc
  7104. }
  7105. // set field if value's pointer is not nil.
  7106. func (wc *WxCardUpdate) SetNotNilEmail(value *string) *WxCardUpdate {
  7107. if value != nil {
  7108. return wc.SetEmail(*value)
  7109. }
  7110. return wc
  7111. }
  7112. // set field if value's pointer is not nil.
  7113. func (wc *WxCardUpdateOne) SetNotNilEmail(value *string) *WxCardUpdateOne {
  7114. if value != nil {
  7115. return wc.SetEmail(*value)
  7116. }
  7117. return wc
  7118. }
  7119. // set field if value's pointer is not nil.
  7120. func (wc *WxCardCreate) SetNotNilEmail(value *string) *WxCardCreate {
  7121. if value != nil {
  7122. return wc.SetEmail(*value)
  7123. }
  7124. return wc
  7125. }
  7126. // set field if value's pointer is not nil.
  7127. func (wc *WxCardUpdate) SetNotNilAPIBase(value *string) *WxCardUpdate {
  7128. if value != nil {
  7129. return wc.SetAPIBase(*value)
  7130. }
  7131. return wc
  7132. }
  7133. // set field if value's pointer is not nil.
  7134. func (wc *WxCardUpdateOne) SetNotNilAPIBase(value *string) *WxCardUpdateOne {
  7135. if value != nil {
  7136. return wc.SetAPIBase(*value)
  7137. }
  7138. return wc
  7139. }
  7140. // set field if value's pointer is not nil.
  7141. func (wc *WxCardCreate) SetNotNilAPIBase(value *string) *WxCardCreate {
  7142. if value != nil {
  7143. return wc.SetAPIBase(*value)
  7144. }
  7145. return wc
  7146. }
  7147. // set field if value's pointer is not nil.
  7148. func (wc *WxCardUpdate) SetNotNilAPIKey(value *string) *WxCardUpdate {
  7149. if value != nil {
  7150. return wc.SetAPIKey(*value)
  7151. }
  7152. return wc
  7153. }
  7154. // set field if value's pointer is not nil.
  7155. func (wc *WxCardUpdateOne) SetNotNilAPIKey(value *string) *WxCardUpdateOne {
  7156. if value != nil {
  7157. return wc.SetAPIKey(*value)
  7158. }
  7159. return wc
  7160. }
  7161. // set field if value's pointer is not nil.
  7162. func (wc *WxCardCreate) SetNotNilAPIKey(value *string) *WxCardCreate {
  7163. if value != nil {
  7164. return wc.SetAPIKey(*value)
  7165. }
  7166. return wc
  7167. }
  7168. // set field if value's pointer is not nil.
  7169. func (wc *WxCardUpdate) SetNotNilAiInfo(value *string) *WxCardUpdate {
  7170. if value != nil {
  7171. return wc.SetAiInfo(*value)
  7172. }
  7173. return wc
  7174. }
  7175. // set field if value's pointer is not nil.
  7176. func (wc *WxCardUpdateOne) SetNotNilAiInfo(value *string) *WxCardUpdateOne {
  7177. if value != nil {
  7178. return wc.SetAiInfo(*value)
  7179. }
  7180. return wc
  7181. }
  7182. // set field if value's pointer is not nil.
  7183. func (wc *WxCardCreate) SetNotNilAiInfo(value *string) *WxCardCreate {
  7184. if value != nil {
  7185. return wc.SetAiInfo(*value)
  7186. }
  7187. return wc
  7188. }
  7189. // set field if value's pointer is not nil.
  7190. func (wc *WxCardUpdate) SetNotNilIntro(value *string) *WxCardUpdate {
  7191. if value != nil {
  7192. return wc.SetIntro(*value)
  7193. }
  7194. return wc
  7195. }
  7196. // set field if value's pointer is not nil.
  7197. func (wc *WxCardUpdateOne) SetNotNilIntro(value *string) *WxCardUpdateOne {
  7198. if value != nil {
  7199. return wc.SetIntro(*value)
  7200. }
  7201. return wc
  7202. }
  7203. // set field if value's pointer is not nil.
  7204. func (wc *WxCardCreate) SetNotNilIntro(value *string) *WxCardCreate {
  7205. if value != nil {
  7206. return wc.SetIntro(*value)
  7207. }
  7208. return wc
  7209. }
  7210. // set field if value's pointer is not nil.
  7211. func (wcu *WxCardUserUpdate) SetNotNilUpdatedAt(value *time.Time) *WxCardUserUpdate {
  7212. if value != nil {
  7213. return wcu.SetUpdatedAt(*value)
  7214. }
  7215. return wcu
  7216. }
  7217. // set field if value's pointer is not nil.
  7218. func (wcu *WxCardUserUpdateOne) SetNotNilUpdatedAt(value *time.Time) *WxCardUserUpdateOne {
  7219. if value != nil {
  7220. return wcu.SetUpdatedAt(*value)
  7221. }
  7222. return wcu
  7223. }
  7224. // set field if value's pointer is not nil.
  7225. func (wcu *WxCardUserCreate) SetNotNilUpdatedAt(value *time.Time) *WxCardUserCreate {
  7226. if value != nil {
  7227. return wcu.SetUpdatedAt(*value)
  7228. }
  7229. return wcu
  7230. }
  7231. // set field if value's pointer is not nil.
  7232. func (wcu *WxCardUserUpdate) SetNotNilDeletedAt(value *time.Time) *WxCardUserUpdate {
  7233. if value != nil {
  7234. return wcu.SetDeletedAt(*value)
  7235. }
  7236. return wcu
  7237. }
  7238. // set field if value's pointer is not nil.
  7239. func (wcu *WxCardUserUpdateOne) SetNotNilDeletedAt(value *time.Time) *WxCardUserUpdateOne {
  7240. if value != nil {
  7241. return wcu.SetDeletedAt(*value)
  7242. }
  7243. return wcu
  7244. }
  7245. // set field if value's pointer is not nil.
  7246. func (wcu *WxCardUserCreate) SetNotNilDeletedAt(value *time.Time) *WxCardUserCreate {
  7247. if value != nil {
  7248. return wcu.SetDeletedAt(*value)
  7249. }
  7250. return wcu
  7251. }
  7252. // set field if value's pointer is not nil.
  7253. func (wcu *WxCardUserUpdate) SetNotNilWxid(value *string) *WxCardUserUpdate {
  7254. if value != nil {
  7255. return wcu.SetWxid(*value)
  7256. }
  7257. return wcu
  7258. }
  7259. // set field if value's pointer is not nil.
  7260. func (wcu *WxCardUserUpdateOne) SetNotNilWxid(value *string) *WxCardUserUpdateOne {
  7261. if value != nil {
  7262. return wcu.SetWxid(*value)
  7263. }
  7264. return wcu
  7265. }
  7266. // set field if value's pointer is not nil.
  7267. func (wcu *WxCardUserCreate) SetNotNilWxid(value *string) *WxCardUserCreate {
  7268. if value != nil {
  7269. return wcu.SetWxid(*value)
  7270. }
  7271. return wcu
  7272. }
  7273. // set field if value's pointer is not nil.
  7274. func (wcu *WxCardUserUpdate) SetNotNilAccount(value *string) *WxCardUserUpdate {
  7275. if value != nil {
  7276. return wcu.SetAccount(*value)
  7277. }
  7278. return wcu
  7279. }
  7280. // set field if value's pointer is not nil.
  7281. func (wcu *WxCardUserUpdateOne) SetNotNilAccount(value *string) *WxCardUserUpdateOne {
  7282. if value != nil {
  7283. return wcu.SetAccount(*value)
  7284. }
  7285. return wcu
  7286. }
  7287. // set field if value's pointer is not nil.
  7288. func (wcu *WxCardUserCreate) SetNotNilAccount(value *string) *WxCardUserCreate {
  7289. if value != nil {
  7290. return wcu.SetAccount(*value)
  7291. }
  7292. return wcu
  7293. }
  7294. // set field if value's pointer is not nil.
  7295. func (wcu *WxCardUserUpdate) SetNotNilAvatar(value *string) *WxCardUserUpdate {
  7296. if value != nil {
  7297. return wcu.SetAvatar(*value)
  7298. }
  7299. return wcu
  7300. }
  7301. // set field if value's pointer is not nil.
  7302. func (wcu *WxCardUserUpdateOne) SetNotNilAvatar(value *string) *WxCardUserUpdateOne {
  7303. if value != nil {
  7304. return wcu.SetAvatar(*value)
  7305. }
  7306. return wcu
  7307. }
  7308. // set field if value's pointer is not nil.
  7309. func (wcu *WxCardUserCreate) SetNotNilAvatar(value *string) *WxCardUserCreate {
  7310. if value != nil {
  7311. return wcu.SetAvatar(*value)
  7312. }
  7313. return wcu
  7314. }
  7315. // set field if value's pointer is not nil.
  7316. func (wcu *WxCardUserUpdate) SetNotNilNickname(value *string) *WxCardUserUpdate {
  7317. if value != nil {
  7318. return wcu.SetNickname(*value)
  7319. }
  7320. return wcu
  7321. }
  7322. // set field if value's pointer is not nil.
  7323. func (wcu *WxCardUserUpdateOne) SetNotNilNickname(value *string) *WxCardUserUpdateOne {
  7324. if value != nil {
  7325. return wcu.SetNickname(*value)
  7326. }
  7327. return wcu
  7328. }
  7329. // set field if value's pointer is not nil.
  7330. func (wcu *WxCardUserCreate) SetNotNilNickname(value *string) *WxCardUserCreate {
  7331. if value != nil {
  7332. return wcu.SetNickname(*value)
  7333. }
  7334. return wcu
  7335. }
  7336. // set field if value's pointer is not nil.
  7337. func (wcu *WxCardUserUpdate) SetNotNilRemark(value *string) *WxCardUserUpdate {
  7338. if value != nil {
  7339. return wcu.SetRemark(*value)
  7340. }
  7341. return wcu
  7342. }
  7343. // set field if value's pointer is not nil.
  7344. func (wcu *WxCardUserUpdateOne) SetNotNilRemark(value *string) *WxCardUserUpdateOne {
  7345. if value != nil {
  7346. return wcu.SetRemark(*value)
  7347. }
  7348. return wcu
  7349. }
  7350. // set field if value's pointer is not nil.
  7351. func (wcu *WxCardUserCreate) SetNotNilRemark(value *string) *WxCardUserCreate {
  7352. if value != nil {
  7353. return wcu.SetRemark(*value)
  7354. }
  7355. return wcu
  7356. }
  7357. // set field if value's pointer is not nil.
  7358. func (wcu *WxCardUserUpdate) SetNotNilPhone(value *string) *WxCardUserUpdate {
  7359. if value != nil {
  7360. return wcu.SetPhone(*value)
  7361. }
  7362. return wcu
  7363. }
  7364. // set field if value's pointer is not nil.
  7365. func (wcu *WxCardUserUpdateOne) SetNotNilPhone(value *string) *WxCardUserUpdateOne {
  7366. if value != nil {
  7367. return wcu.SetPhone(*value)
  7368. }
  7369. return wcu
  7370. }
  7371. // set field if value's pointer is not nil.
  7372. func (wcu *WxCardUserCreate) SetNotNilPhone(value *string) *WxCardUserCreate {
  7373. if value != nil {
  7374. return wcu.SetPhone(*value)
  7375. }
  7376. return wcu
  7377. }
  7378. // set field if value's pointer is not nil.
  7379. func (wcu *WxCardUserUpdate) SetNotNilOpenID(value *string) *WxCardUserUpdate {
  7380. if value != nil {
  7381. return wcu.SetOpenID(*value)
  7382. }
  7383. return wcu
  7384. }
  7385. // set field if value's pointer is not nil.
  7386. func (wcu *WxCardUserUpdateOne) SetNotNilOpenID(value *string) *WxCardUserUpdateOne {
  7387. if value != nil {
  7388. return wcu.SetOpenID(*value)
  7389. }
  7390. return wcu
  7391. }
  7392. // set field if value's pointer is not nil.
  7393. func (wcu *WxCardUserCreate) SetNotNilOpenID(value *string) *WxCardUserCreate {
  7394. if value != nil {
  7395. return wcu.SetOpenID(*value)
  7396. }
  7397. return wcu
  7398. }
  7399. // set field if value's pointer is not nil.
  7400. func (wcu *WxCardUserUpdate) SetNotNilUnionID(value *string) *WxCardUserUpdate {
  7401. if value != nil {
  7402. return wcu.SetUnionID(*value)
  7403. }
  7404. return wcu
  7405. }
  7406. // set field if value's pointer is not nil.
  7407. func (wcu *WxCardUserUpdateOne) SetNotNilUnionID(value *string) *WxCardUserUpdateOne {
  7408. if value != nil {
  7409. return wcu.SetUnionID(*value)
  7410. }
  7411. return wcu
  7412. }
  7413. // set field if value's pointer is not nil.
  7414. func (wcu *WxCardUserCreate) SetNotNilUnionID(value *string) *WxCardUserCreate {
  7415. if value != nil {
  7416. return wcu.SetUnionID(*value)
  7417. }
  7418. return wcu
  7419. }
  7420. // set field if value's pointer is not nil.
  7421. func (wcu *WxCardUserUpdate) SetNotNilSessionKey(value *string) *WxCardUserUpdate {
  7422. if value != nil {
  7423. return wcu.SetSessionKey(*value)
  7424. }
  7425. return wcu
  7426. }
  7427. // set field if value's pointer is not nil.
  7428. func (wcu *WxCardUserUpdateOne) SetNotNilSessionKey(value *string) *WxCardUserUpdateOne {
  7429. if value != nil {
  7430. return wcu.SetSessionKey(*value)
  7431. }
  7432. return wcu
  7433. }
  7434. // set field if value's pointer is not nil.
  7435. func (wcu *WxCardUserCreate) SetNotNilSessionKey(value *string) *WxCardUserCreate {
  7436. if value != nil {
  7437. return wcu.SetSessionKey(*value)
  7438. }
  7439. return wcu
  7440. }
  7441. // set field if value's pointer is not nil.
  7442. func (wcu *WxCardUserUpdate) SetNotNilIsVip(value *int) *WxCardUserUpdate {
  7443. if value != nil {
  7444. return wcu.SetIsVip(*value)
  7445. }
  7446. return wcu
  7447. }
  7448. // set field if value's pointer is not nil.
  7449. func (wcu *WxCardUserUpdateOne) SetNotNilIsVip(value *int) *WxCardUserUpdateOne {
  7450. if value != nil {
  7451. return wcu.SetIsVip(*value)
  7452. }
  7453. return wcu
  7454. }
  7455. // set field if value's pointer is not nil.
  7456. func (wcu *WxCardUserCreate) SetNotNilIsVip(value *int) *WxCardUserCreate {
  7457. if value != nil {
  7458. return wcu.SetIsVip(*value)
  7459. }
  7460. return wcu
  7461. }
  7462. // set field if value's pointer is not nil.
  7463. func (wcv *WxCardVisitUpdate) SetNotNilUpdatedAt(value *time.Time) *WxCardVisitUpdate {
  7464. if value != nil {
  7465. return wcv.SetUpdatedAt(*value)
  7466. }
  7467. return wcv
  7468. }
  7469. // set field if value's pointer is not nil.
  7470. func (wcv *WxCardVisitUpdateOne) SetNotNilUpdatedAt(value *time.Time) *WxCardVisitUpdateOne {
  7471. if value != nil {
  7472. return wcv.SetUpdatedAt(*value)
  7473. }
  7474. return wcv
  7475. }
  7476. // set field if value's pointer is not nil.
  7477. func (wcv *WxCardVisitCreate) SetNotNilUpdatedAt(value *time.Time) *WxCardVisitCreate {
  7478. if value != nil {
  7479. return wcv.SetUpdatedAt(*value)
  7480. }
  7481. return wcv
  7482. }
  7483. // set field if value's pointer is not nil.
  7484. func (wcv *WxCardVisitUpdate) SetNotNilDeletedAt(value *time.Time) *WxCardVisitUpdate {
  7485. if value != nil {
  7486. return wcv.SetDeletedAt(*value)
  7487. }
  7488. return wcv
  7489. }
  7490. // set field if value's pointer is not nil.
  7491. func (wcv *WxCardVisitUpdateOne) SetNotNilDeletedAt(value *time.Time) *WxCardVisitUpdateOne {
  7492. if value != nil {
  7493. return wcv.SetDeletedAt(*value)
  7494. }
  7495. return wcv
  7496. }
  7497. // set field if value's pointer is not nil.
  7498. func (wcv *WxCardVisitCreate) SetNotNilDeletedAt(value *time.Time) *WxCardVisitCreate {
  7499. if value != nil {
  7500. return wcv.SetDeletedAt(*value)
  7501. }
  7502. return wcv
  7503. }
  7504. // set field if value's pointer is not nil.
  7505. func (wcv *WxCardVisitUpdate) SetNotNilUserID(value *uint64) *WxCardVisitUpdate {
  7506. if value != nil {
  7507. return wcv.SetUserID(*value)
  7508. }
  7509. return wcv
  7510. }
  7511. // set field if value's pointer is not nil.
  7512. func (wcv *WxCardVisitUpdateOne) SetNotNilUserID(value *uint64) *WxCardVisitUpdateOne {
  7513. if value != nil {
  7514. return wcv.SetUserID(*value)
  7515. }
  7516. return wcv
  7517. }
  7518. // set field if value's pointer is not nil.
  7519. func (wcv *WxCardVisitCreate) SetNotNilUserID(value *uint64) *WxCardVisitCreate {
  7520. if value != nil {
  7521. return wcv.SetUserID(*value)
  7522. }
  7523. return wcv
  7524. }
  7525. // set field if value's pointer is not nil.
  7526. func (wcv *WxCardVisitUpdate) SetNotNilBotID(value *uint64) *WxCardVisitUpdate {
  7527. if value != nil {
  7528. return wcv.SetBotID(*value)
  7529. }
  7530. return wcv
  7531. }
  7532. // set field if value's pointer is not nil.
  7533. func (wcv *WxCardVisitUpdateOne) SetNotNilBotID(value *uint64) *WxCardVisitUpdateOne {
  7534. if value != nil {
  7535. return wcv.SetBotID(*value)
  7536. }
  7537. return wcv
  7538. }
  7539. // set field if value's pointer is not nil.
  7540. func (wcv *WxCardVisitCreate) SetNotNilBotID(value *uint64) *WxCardVisitCreate {
  7541. if value != nil {
  7542. return wcv.SetBotID(*value)
  7543. }
  7544. return wcv
  7545. }
  7546. // set field if value's pointer is not nil.
  7547. func (wcv *WxCardVisitUpdate) SetNotNilBotType(value *uint8) *WxCardVisitUpdate {
  7548. if value != nil {
  7549. return wcv.SetBotType(*value)
  7550. }
  7551. return wcv
  7552. }
  7553. // set field if value's pointer is not nil.
  7554. func (wcv *WxCardVisitUpdateOne) SetNotNilBotType(value *uint8) *WxCardVisitUpdateOne {
  7555. if value != nil {
  7556. return wcv.SetBotType(*value)
  7557. }
  7558. return wcv
  7559. }
  7560. // set field if value's pointer is not nil.
  7561. func (wcv *WxCardVisitCreate) SetNotNilBotType(value *uint8) *WxCardVisitCreate {
  7562. if value != nil {
  7563. return wcv.SetBotType(*value)
  7564. }
  7565. return wcv
  7566. }