set_not_nil.go 144 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200
  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 (bm *BatchMsgUpdate) SetNotNilUpdatedAt(value *time.Time) *BatchMsgUpdate {
  408. if value != nil {
  409. return bm.SetUpdatedAt(*value)
  410. }
  411. return bm
  412. }
  413. // set field if value's pointer is not nil.
  414. func (bm *BatchMsgUpdateOne) SetNotNilUpdatedAt(value *time.Time) *BatchMsgUpdateOne {
  415. if value != nil {
  416. return bm.SetUpdatedAt(*value)
  417. }
  418. return bm
  419. }
  420. // set field if value's pointer is not nil.
  421. func (bm *BatchMsgCreate) SetNotNilUpdatedAt(value *time.Time) *BatchMsgCreate {
  422. if value != nil {
  423. return bm.SetUpdatedAt(*value)
  424. }
  425. return bm
  426. }
  427. // set field if value's pointer is not nil.
  428. func (bm *BatchMsgUpdate) SetNotNilDeletedAt(value *time.Time) *BatchMsgUpdate {
  429. if value != nil {
  430. return bm.SetDeletedAt(*value)
  431. }
  432. return bm
  433. }
  434. // set field if value's pointer is not nil.
  435. func (bm *BatchMsgUpdateOne) SetNotNilDeletedAt(value *time.Time) *BatchMsgUpdateOne {
  436. if value != nil {
  437. return bm.SetDeletedAt(*value)
  438. }
  439. return bm
  440. }
  441. // set field if value's pointer is not nil.
  442. func (bm *BatchMsgCreate) SetNotNilDeletedAt(value *time.Time) *BatchMsgCreate {
  443. if value != nil {
  444. return bm.SetDeletedAt(*value)
  445. }
  446. return bm
  447. }
  448. // set field if value's pointer is not nil.
  449. func (bm *BatchMsgUpdate) SetNotNilStatus(value *uint8) *BatchMsgUpdate {
  450. if value != nil {
  451. return bm.SetStatus(*value)
  452. }
  453. return bm
  454. }
  455. // set field if value's pointer is not nil.
  456. func (bm *BatchMsgUpdateOne) SetNotNilStatus(value *uint8) *BatchMsgUpdateOne {
  457. if value != nil {
  458. return bm.SetStatus(*value)
  459. }
  460. return bm
  461. }
  462. // set field if value's pointer is not nil.
  463. func (bm *BatchMsgCreate) SetNotNilStatus(value *uint8) *BatchMsgCreate {
  464. if value != nil {
  465. return bm.SetStatus(*value)
  466. }
  467. return bm
  468. }
  469. // set field if value's pointer is not nil.
  470. func (bm *BatchMsgUpdate) SetNotNilBatchNo(value *string) *BatchMsgUpdate {
  471. if value != nil {
  472. return bm.SetBatchNo(*value)
  473. }
  474. return bm
  475. }
  476. // set field if value's pointer is not nil.
  477. func (bm *BatchMsgUpdateOne) SetNotNilBatchNo(value *string) *BatchMsgUpdateOne {
  478. if value != nil {
  479. return bm.SetBatchNo(*value)
  480. }
  481. return bm
  482. }
  483. // set field if value's pointer is not nil.
  484. func (bm *BatchMsgCreate) SetNotNilBatchNo(value *string) *BatchMsgCreate {
  485. if value != nil {
  486. return bm.SetBatchNo(*value)
  487. }
  488. return bm
  489. }
  490. // set field if value's pointer is not nil.
  491. func (bm *BatchMsgUpdate) SetNotNilTaskName(value *string) *BatchMsgUpdate {
  492. if value != nil {
  493. return bm.SetTaskName(*value)
  494. }
  495. return bm
  496. }
  497. // set field if value's pointer is not nil.
  498. func (bm *BatchMsgUpdateOne) SetNotNilTaskName(value *string) *BatchMsgUpdateOne {
  499. if value != nil {
  500. return bm.SetTaskName(*value)
  501. }
  502. return bm
  503. }
  504. // set field if value's pointer is not nil.
  505. func (bm *BatchMsgCreate) SetNotNilTaskName(value *string) *BatchMsgCreate {
  506. if value != nil {
  507. return bm.SetTaskName(*value)
  508. }
  509. return bm
  510. }
  511. // set field if value's pointer is not nil.
  512. func (bm *BatchMsgUpdate) SetNotNilFromwxid(value *string) *BatchMsgUpdate {
  513. if value != nil {
  514. return bm.SetFromwxid(*value)
  515. }
  516. return bm
  517. }
  518. // set field if value's pointer is not nil.
  519. func (bm *BatchMsgUpdateOne) SetNotNilFromwxid(value *string) *BatchMsgUpdateOne {
  520. if value != nil {
  521. return bm.SetFromwxid(*value)
  522. }
  523. return bm
  524. }
  525. // set field if value's pointer is not nil.
  526. func (bm *BatchMsgCreate) SetNotNilFromwxid(value *string) *BatchMsgCreate {
  527. if value != nil {
  528. return bm.SetFromwxid(*value)
  529. }
  530. return bm
  531. }
  532. // set field if value's pointer is not nil.
  533. func (bm *BatchMsgUpdate) SetNotNilMsg(value *string) *BatchMsgUpdate {
  534. if value != nil {
  535. return bm.SetMsg(*value)
  536. }
  537. return bm
  538. }
  539. // set field if value's pointer is not nil.
  540. func (bm *BatchMsgUpdateOne) SetNotNilMsg(value *string) *BatchMsgUpdateOne {
  541. if value != nil {
  542. return bm.SetMsg(*value)
  543. }
  544. return bm
  545. }
  546. // set field if value's pointer is not nil.
  547. func (bm *BatchMsgCreate) SetNotNilMsg(value *string) *BatchMsgCreate {
  548. if value != nil {
  549. return bm.SetMsg(*value)
  550. }
  551. return bm
  552. }
  553. // set field if value's pointer is not nil.
  554. func (bm *BatchMsgUpdate) SetNotNilTag(value *string) *BatchMsgUpdate {
  555. if value != nil {
  556. return bm.SetTag(*value)
  557. }
  558. return bm
  559. }
  560. // set field if value's pointer is not nil.
  561. func (bm *BatchMsgUpdateOne) SetNotNilTag(value *string) *BatchMsgUpdateOne {
  562. if value != nil {
  563. return bm.SetTag(*value)
  564. }
  565. return bm
  566. }
  567. // set field if value's pointer is not nil.
  568. func (bm *BatchMsgCreate) SetNotNilTag(value *string) *BatchMsgCreate {
  569. if value != nil {
  570. return bm.SetTag(*value)
  571. }
  572. return bm
  573. }
  574. // set field if value's pointer is not nil.
  575. func (bm *BatchMsgUpdate) SetNotNilTagids(value *string) *BatchMsgUpdate {
  576. if value != nil {
  577. return bm.SetTagids(*value)
  578. }
  579. return bm
  580. }
  581. // set field if value's pointer is not nil.
  582. func (bm *BatchMsgUpdateOne) SetNotNilTagids(value *string) *BatchMsgUpdateOne {
  583. if value != nil {
  584. return bm.SetTagids(*value)
  585. }
  586. return bm
  587. }
  588. // set field if value's pointer is not nil.
  589. func (bm *BatchMsgCreate) SetNotNilTagids(value *string) *BatchMsgCreate {
  590. if value != nil {
  591. return bm.SetTagids(*value)
  592. }
  593. return bm
  594. }
  595. // set field if value's pointer is not nil.
  596. func (bm *BatchMsgUpdate) SetNotNilTotal(value *int32) *BatchMsgUpdate {
  597. if value != nil {
  598. return bm.SetTotal(*value)
  599. }
  600. return bm
  601. }
  602. // set field if value's pointer is not nil.
  603. func (bm *BatchMsgUpdateOne) SetNotNilTotal(value *int32) *BatchMsgUpdateOne {
  604. if value != nil {
  605. return bm.SetTotal(*value)
  606. }
  607. return bm
  608. }
  609. // set field if value's pointer is not nil.
  610. func (bm *BatchMsgCreate) SetNotNilTotal(value *int32) *BatchMsgCreate {
  611. if value != nil {
  612. return bm.SetTotal(*value)
  613. }
  614. return bm
  615. }
  616. // set field if value's pointer is not nil.
  617. func (bm *BatchMsgUpdate) SetNotNilSuccess(value *int32) *BatchMsgUpdate {
  618. if value != nil {
  619. return bm.SetSuccess(*value)
  620. }
  621. return bm
  622. }
  623. // set field if value's pointer is not nil.
  624. func (bm *BatchMsgUpdateOne) SetNotNilSuccess(value *int32) *BatchMsgUpdateOne {
  625. if value != nil {
  626. return bm.SetSuccess(*value)
  627. }
  628. return bm
  629. }
  630. // set field if value's pointer is not nil.
  631. func (bm *BatchMsgCreate) SetNotNilSuccess(value *int32) *BatchMsgCreate {
  632. if value != nil {
  633. return bm.SetSuccess(*value)
  634. }
  635. return bm
  636. }
  637. // set field if value's pointer is not nil.
  638. func (bm *BatchMsgUpdate) SetNotNilFail(value *int32) *BatchMsgUpdate {
  639. if value != nil {
  640. return bm.SetFail(*value)
  641. }
  642. return bm
  643. }
  644. // set field if value's pointer is not nil.
  645. func (bm *BatchMsgUpdateOne) SetNotNilFail(value *int32) *BatchMsgUpdateOne {
  646. if value != nil {
  647. return bm.SetFail(*value)
  648. }
  649. return bm
  650. }
  651. // set field if value's pointer is not nil.
  652. func (bm *BatchMsgCreate) SetNotNilFail(value *int32) *BatchMsgCreate {
  653. if value != nil {
  654. return bm.SetFail(*value)
  655. }
  656. return bm
  657. }
  658. // set field if value's pointer is not nil.
  659. func (bm *BatchMsgUpdate) SetNotNilStartTime(value *time.Time) *BatchMsgUpdate {
  660. if value != nil {
  661. return bm.SetStartTime(*value)
  662. }
  663. return bm
  664. }
  665. // set field if value's pointer is not nil.
  666. func (bm *BatchMsgUpdateOne) SetNotNilStartTime(value *time.Time) *BatchMsgUpdateOne {
  667. if value != nil {
  668. return bm.SetStartTime(*value)
  669. }
  670. return bm
  671. }
  672. // set field if value's pointer is not nil.
  673. func (bm *BatchMsgCreate) SetNotNilStartTime(value *time.Time) *BatchMsgCreate {
  674. if value != nil {
  675. return bm.SetStartTime(*value)
  676. }
  677. return bm
  678. }
  679. // set field if value's pointer is not nil.
  680. func (bm *BatchMsgUpdate) SetNotNilStopTime(value *time.Time) *BatchMsgUpdate {
  681. if value != nil {
  682. return bm.SetStopTime(*value)
  683. }
  684. return bm
  685. }
  686. // set field if value's pointer is not nil.
  687. func (bm *BatchMsgUpdateOne) SetNotNilStopTime(value *time.Time) *BatchMsgUpdateOne {
  688. if value != nil {
  689. return bm.SetStopTime(*value)
  690. }
  691. return bm
  692. }
  693. // set field if value's pointer is not nil.
  694. func (bm *BatchMsgCreate) SetNotNilStopTime(value *time.Time) *BatchMsgCreate {
  695. if value != nil {
  696. return bm.SetStopTime(*value)
  697. }
  698. return bm
  699. }
  700. // set field if value's pointer is not nil.
  701. func (bm *BatchMsgUpdate) SetNotNilSendTime(value *time.Time) *BatchMsgUpdate {
  702. if value != nil {
  703. return bm.SetSendTime(*value)
  704. }
  705. return bm
  706. }
  707. // set field if value's pointer is not nil.
  708. func (bm *BatchMsgUpdateOne) SetNotNilSendTime(value *time.Time) *BatchMsgUpdateOne {
  709. if value != nil {
  710. return bm.SetSendTime(*value)
  711. }
  712. return bm
  713. }
  714. // set field if value's pointer is not nil.
  715. func (bm *BatchMsgCreate) SetNotNilSendTime(value *time.Time) *BatchMsgCreate {
  716. if value != nil {
  717. return bm.SetSendTime(*value)
  718. }
  719. return bm
  720. }
  721. // set field if value's pointer is not nil.
  722. func (bm *BatchMsgUpdate) SetNotNilType(value *int32) *BatchMsgUpdate {
  723. if value != nil {
  724. return bm.SetType(*value)
  725. }
  726. return bm
  727. }
  728. // set field if value's pointer is not nil.
  729. func (bm *BatchMsgUpdateOne) SetNotNilType(value *int32) *BatchMsgUpdateOne {
  730. if value != nil {
  731. return bm.SetType(*value)
  732. }
  733. return bm
  734. }
  735. // set field if value's pointer is not nil.
  736. func (bm *BatchMsgCreate) SetNotNilType(value *int32) *BatchMsgCreate {
  737. if value != nil {
  738. return bm.SetType(*value)
  739. }
  740. return bm
  741. }
  742. // set field if value's pointer is not nil.
  743. func (bm *BatchMsgUpdate) SetNotNilOrganizationID(value *uint64) *BatchMsgUpdate {
  744. if value != nil {
  745. return bm.SetOrganizationID(*value)
  746. }
  747. return bm
  748. }
  749. // set field if value's pointer is not nil.
  750. func (bm *BatchMsgUpdateOne) SetNotNilOrganizationID(value *uint64) *BatchMsgUpdateOne {
  751. if value != nil {
  752. return bm.SetOrganizationID(*value)
  753. }
  754. return bm
  755. }
  756. // set field if value's pointer is not nil.
  757. func (bm *BatchMsgCreate) SetNotNilOrganizationID(value *uint64) *BatchMsgCreate {
  758. if value != nil {
  759. return bm.SetOrganizationID(*value)
  760. }
  761. return bm
  762. }
  763. // set field if value's pointer is not nil.
  764. func (c *CategoryUpdate) SetNotNilUpdatedAt(value *time.Time) *CategoryUpdate {
  765. if value != nil {
  766. return c.SetUpdatedAt(*value)
  767. }
  768. return c
  769. }
  770. // set field if value's pointer is not nil.
  771. func (c *CategoryUpdateOne) SetNotNilUpdatedAt(value *time.Time) *CategoryUpdateOne {
  772. if value != nil {
  773. return c.SetUpdatedAt(*value)
  774. }
  775. return c
  776. }
  777. // set field if value's pointer is not nil.
  778. func (c *CategoryCreate) SetNotNilUpdatedAt(value *time.Time) *CategoryCreate {
  779. if value != nil {
  780. return c.SetUpdatedAt(*value)
  781. }
  782. return c
  783. }
  784. // set field if value's pointer is not nil.
  785. func (c *CategoryUpdate) SetNotNilDeletedAt(value *time.Time) *CategoryUpdate {
  786. if value != nil {
  787. return c.SetDeletedAt(*value)
  788. }
  789. return c
  790. }
  791. // set field if value's pointer is not nil.
  792. func (c *CategoryUpdateOne) SetNotNilDeletedAt(value *time.Time) *CategoryUpdateOne {
  793. if value != nil {
  794. return c.SetDeletedAt(*value)
  795. }
  796. return c
  797. }
  798. // set field if value's pointer is not nil.
  799. func (c *CategoryCreate) SetNotNilDeletedAt(value *time.Time) *CategoryCreate {
  800. if value != nil {
  801. return c.SetDeletedAt(*value)
  802. }
  803. return c
  804. }
  805. // set field if value's pointer is not nil.
  806. func (c *CategoryUpdate) SetNotNilName(value *string) *CategoryUpdate {
  807. if value != nil {
  808. return c.SetName(*value)
  809. }
  810. return c
  811. }
  812. // set field if value's pointer is not nil.
  813. func (c *CategoryUpdateOne) SetNotNilName(value *string) *CategoryUpdateOne {
  814. if value != nil {
  815. return c.SetName(*value)
  816. }
  817. return c
  818. }
  819. // set field if value's pointer is not nil.
  820. func (c *CategoryCreate) SetNotNilName(value *string) *CategoryCreate {
  821. if value != nil {
  822. return c.SetName(*value)
  823. }
  824. return c
  825. }
  826. // set field if value's pointer is not nil.
  827. func (c *CategoryUpdate) SetNotNilOrganizationID(value *uint64) *CategoryUpdate {
  828. if value != nil {
  829. return c.SetOrganizationID(*value)
  830. }
  831. return c
  832. }
  833. // set field if value's pointer is not nil.
  834. func (c *CategoryUpdateOne) SetNotNilOrganizationID(value *uint64) *CategoryUpdateOne {
  835. if value != nil {
  836. return c.SetOrganizationID(*value)
  837. }
  838. return c
  839. }
  840. // set field if value's pointer is not nil.
  841. func (c *CategoryCreate) SetNotNilOrganizationID(value *uint64) *CategoryCreate {
  842. if value != nil {
  843. return c.SetOrganizationID(*value)
  844. }
  845. return c
  846. }
  847. // set field if value's pointer is not nil.
  848. func (cr *ChatRecordsUpdate) SetNotNilUpdatedAt(value *time.Time) *ChatRecordsUpdate {
  849. if value != nil {
  850. return cr.SetUpdatedAt(*value)
  851. }
  852. return cr
  853. }
  854. // set field if value's pointer is not nil.
  855. func (cr *ChatRecordsUpdateOne) SetNotNilUpdatedAt(value *time.Time) *ChatRecordsUpdateOne {
  856. if value != nil {
  857. return cr.SetUpdatedAt(*value)
  858. }
  859. return cr
  860. }
  861. // set field if value's pointer is not nil.
  862. func (cr *ChatRecordsCreate) SetNotNilUpdatedAt(value *time.Time) *ChatRecordsCreate {
  863. if value != nil {
  864. return cr.SetUpdatedAt(*value)
  865. }
  866. return cr
  867. }
  868. // set field if value's pointer is not nil.
  869. func (cr *ChatRecordsUpdate) SetNotNilDeletedAt(value *time.Time) *ChatRecordsUpdate {
  870. if value != nil {
  871. return cr.SetDeletedAt(*value)
  872. }
  873. return cr
  874. }
  875. // set field if value's pointer is not nil.
  876. func (cr *ChatRecordsUpdateOne) SetNotNilDeletedAt(value *time.Time) *ChatRecordsUpdateOne {
  877. if value != nil {
  878. return cr.SetDeletedAt(*value)
  879. }
  880. return cr
  881. }
  882. // set field if value's pointer is not nil.
  883. func (cr *ChatRecordsCreate) SetNotNilDeletedAt(value *time.Time) *ChatRecordsCreate {
  884. if value != nil {
  885. return cr.SetDeletedAt(*value)
  886. }
  887. return cr
  888. }
  889. // set field if value's pointer is not nil.
  890. func (cr *ChatRecordsUpdate) SetNotNilContent(value *string) *ChatRecordsUpdate {
  891. if value != nil {
  892. return cr.SetContent(*value)
  893. }
  894. return cr
  895. }
  896. // set field if value's pointer is not nil.
  897. func (cr *ChatRecordsUpdateOne) SetNotNilContent(value *string) *ChatRecordsUpdateOne {
  898. if value != nil {
  899. return cr.SetContent(*value)
  900. }
  901. return cr
  902. }
  903. // set field if value's pointer is not nil.
  904. func (cr *ChatRecordsCreate) SetNotNilContent(value *string) *ChatRecordsCreate {
  905. if value != nil {
  906. return cr.SetContent(*value)
  907. }
  908. return cr
  909. }
  910. // set field if value's pointer is not nil.
  911. func (cr *ChatRecordsUpdate) SetNotNilContentType(value *uint8) *ChatRecordsUpdate {
  912. if value != nil {
  913. return cr.SetContentType(*value)
  914. }
  915. return cr
  916. }
  917. // set field if value's pointer is not nil.
  918. func (cr *ChatRecordsUpdateOne) SetNotNilContentType(value *uint8) *ChatRecordsUpdateOne {
  919. if value != nil {
  920. return cr.SetContentType(*value)
  921. }
  922. return cr
  923. }
  924. // set field if value's pointer is not nil.
  925. func (cr *ChatRecordsCreate) SetNotNilContentType(value *uint8) *ChatRecordsCreate {
  926. if value != nil {
  927. return cr.SetContentType(*value)
  928. }
  929. return cr
  930. }
  931. // set field if value's pointer is not nil.
  932. func (cr *ChatRecordsUpdate) SetNotNilSessionID(value *uint64) *ChatRecordsUpdate {
  933. if value != nil {
  934. return cr.SetSessionID(*value)
  935. }
  936. return cr
  937. }
  938. // set field if value's pointer is not nil.
  939. func (cr *ChatRecordsUpdateOne) SetNotNilSessionID(value *uint64) *ChatRecordsUpdateOne {
  940. if value != nil {
  941. return cr.SetSessionID(*value)
  942. }
  943. return cr
  944. }
  945. // set field if value's pointer is not nil.
  946. func (cr *ChatRecordsCreate) SetNotNilSessionID(value *uint64) *ChatRecordsCreate {
  947. if value != nil {
  948. return cr.SetSessionID(*value)
  949. }
  950. return cr
  951. }
  952. // set field if value's pointer is not nil.
  953. func (cr *ChatRecordsUpdate) SetNotNilUserID(value *uint64) *ChatRecordsUpdate {
  954. if value != nil {
  955. return cr.SetUserID(*value)
  956. }
  957. return cr
  958. }
  959. // set field if value's pointer is not nil.
  960. func (cr *ChatRecordsUpdateOne) SetNotNilUserID(value *uint64) *ChatRecordsUpdateOne {
  961. if value != nil {
  962. return cr.SetUserID(*value)
  963. }
  964. return cr
  965. }
  966. // set field if value's pointer is not nil.
  967. func (cr *ChatRecordsCreate) SetNotNilUserID(value *uint64) *ChatRecordsCreate {
  968. if value != nil {
  969. return cr.SetUserID(*value)
  970. }
  971. return cr
  972. }
  973. // set field if value's pointer is not nil.
  974. func (cr *ChatRecordsUpdate) SetNotNilBotID(value *uint64) *ChatRecordsUpdate {
  975. if value != nil {
  976. return cr.SetBotID(*value)
  977. }
  978. return cr
  979. }
  980. // set field if value's pointer is not nil.
  981. func (cr *ChatRecordsUpdateOne) SetNotNilBotID(value *uint64) *ChatRecordsUpdateOne {
  982. if value != nil {
  983. return cr.SetBotID(*value)
  984. }
  985. return cr
  986. }
  987. // set field if value's pointer is not nil.
  988. func (cr *ChatRecordsCreate) SetNotNilBotID(value *uint64) *ChatRecordsCreate {
  989. if value != nil {
  990. return cr.SetBotID(*value)
  991. }
  992. return cr
  993. }
  994. // set field if value's pointer is not nil.
  995. func (cr *ChatRecordsUpdate) SetNotNilBotType(value *uint8) *ChatRecordsUpdate {
  996. if value != nil {
  997. return cr.SetBotType(*value)
  998. }
  999. return cr
  1000. }
  1001. // set field if value's pointer is not nil.
  1002. func (cr *ChatRecordsUpdateOne) SetNotNilBotType(value *uint8) *ChatRecordsUpdateOne {
  1003. if value != nil {
  1004. return cr.SetBotType(*value)
  1005. }
  1006. return cr
  1007. }
  1008. // set field if value's pointer is not nil.
  1009. func (cr *ChatRecordsCreate) SetNotNilBotType(value *uint8) *ChatRecordsCreate {
  1010. if value != nil {
  1011. return cr.SetBotType(*value)
  1012. }
  1013. return cr
  1014. }
  1015. // set field if value's pointer is not nil.
  1016. func (cs *ChatSessionUpdate) SetNotNilUpdatedAt(value *time.Time) *ChatSessionUpdate {
  1017. if value != nil {
  1018. return cs.SetUpdatedAt(*value)
  1019. }
  1020. return cs
  1021. }
  1022. // set field if value's pointer is not nil.
  1023. func (cs *ChatSessionUpdateOne) SetNotNilUpdatedAt(value *time.Time) *ChatSessionUpdateOne {
  1024. if value != nil {
  1025. return cs.SetUpdatedAt(*value)
  1026. }
  1027. return cs
  1028. }
  1029. // set field if value's pointer is not nil.
  1030. func (cs *ChatSessionCreate) SetNotNilUpdatedAt(value *time.Time) *ChatSessionCreate {
  1031. if value != nil {
  1032. return cs.SetUpdatedAt(*value)
  1033. }
  1034. return cs
  1035. }
  1036. // set field if value's pointer is not nil.
  1037. func (cs *ChatSessionUpdate) SetNotNilDeletedAt(value *time.Time) *ChatSessionUpdate {
  1038. if value != nil {
  1039. return cs.SetDeletedAt(*value)
  1040. }
  1041. return cs
  1042. }
  1043. // set field if value's pointer is not nil.
  1044. func (cs *ChatSessionUpdateOne) SetNotNilDeletedAt(value *time.Time) *ChatSessionUpdateOne {
  1045. if value != nil {
  1046. return cs.SetDeletedAt(*value)
  1047. }
  1048. return cs
  1049. }
  1050. // set field if value's pointer is not nil.
  1051. func (cs *ChatSessionCreate) SetNotNilDeletedAt(value *time.Time) *ChatSessionCreate {
  1052. if value != nil {
  1053. return cs.SetDeletedAt(*value)
  1054. }
  1055. return cs
  1056. }
  1057. // set field if value's pointer is not nil.
  1058. func (cs *ChatSessionUpdate) SetNotNilName(value *string) *ChatSessionUpdate {
  1059. if value != nil {
  1060. return cs.SetName(*value)
  1061. }
  1062. return cs
  1063. }
  1064. // set field if value's pointer is not nil.
  1065. func (cs *ChatSessionUpdateOne) SetNotNilName(value *string) *ChatSessionUpdateOne {
  1066. if value != nil {
  1067. return cs.SetName(*value)
  1068. }
  1069. return cs
  1070. }
  1071. // set field if value's pointer is not nil.
  1072. func (cs *ChatSessionCreate) SetNotNilName(value *string) *ChatSessionCreate {
  1073. if value != nil {
  1074. return cs.SetName(*value)
  1075. }
  1076. return cs
  1077. }
  1078. // set field if value's pointer is not nil.
  1079. func (cs *ChatSessionUpdate) SetNotNilUserID(value *uint64) *ChatSessionUpdate {
  1080. if value != nil {
  1081. return cs.SetUserID(*value)
  1082. }
  1083. return cs
  1084. }
  1085. // set field if value's pointer is not nil.
  1086. func (cs *ChatSessionUpdateOne) SetNotNilUserID(value *uint64) *ChatSessionUpdateOne {
  1087. if value != nil {
  1088. return cs.SetUserID(*value)
  1089. }
  1090. return cs
  1091. }
  1092. // set field if value's pointer is not nil.
  1093. func (cs *ChatSessionCreate) SetNotNilUserID(value *uint64) *ChatSessionCreate {
  1094. if value != nil {
  1095. return cs.SetUserID(*value)
  1096. }
  1097. return cs
  1098. }
  1099. // set field if value's pointer is not nil.
  1100. func (cs *ChatSessionUpdate) SetNotNilBotID(value *uint64) *ChatSessionUpdate {
  1101. if value != nil {
  1102. return cs.SetBotID(*value)
  1103. }
  1104. return cs
  1105. }
  1106. // set field if value's pointer is not nil.
  1107. func (cs *ChatSessionUpdateOne) SetNotNilBotID(value *uint64) *ChatSessionUpdateOne {
  1108. if value != nil {
  1109. return cs.SetBotID(*value)
  1110. }
  1111. return cs
  1112. }
  1113. // set field if value's pointer is not nil.
  1114. func (cs *ChatSessionCreate) SetNotNilBotID(value *uint64) *ChatSessionCreate {
  1115. if value != nil {
  1116. return cs.SetBotID(*value)
  1117. }
  1118. return cs
  1119. }
  1120. // set field if value's pointer is not nil.
  1121. func (cs *ChatSessionUpdate) SetNotNilBotType(value *uint8) *ChatSessionUpdate {
  1122. if value != nil {
  1123. return cs.SetBotType(*value)
  1124. }
  1125. return cs
  1126. }
  1127. // set field if value's pointer is not nil.
  1128. func (cs *ChatSessionUpdateOne) SetNotNilBotType(value *uint8) *ChatSessionUpdateOne {
  1129. if value != nil {
  1130. return cs.SetBotType(*value)
  1131. }
  1132. return cs
  1133. }
  1134. // set field if value's pointer is not nil.
  1135. func (cs *ChatSessionCreate) SetNotNilBotType(value *uint8) *ChatSessionCreate {
  1136. if value != nil {
  1137. return cs.SetBotType(*value)
  1138. }
  1139. return cs
  1140. }
  1141. // set field if value's pointer is not nil.
  1142. func (c *ContactUpdate) SetNotNilUpdatedAt(value *time.Time) *ContactUpdate {
  1143. if value != nil {
  1144. return c.SetUpdatedAt(*value)
  1145. }
  1146. return c
  1147. }
  1148. // set field if value's pointer is not nil.
  1149. func (c *ContactUpdateOne) SetNotNilUpdatedAt(value *time.Time) *ContactUpdateOne {
  1150. if value != nil {
  1151. return c.SetUpdatedAt(*value)
  1152. }
  1153. return c
  1154. }
  1155. // set field if value's pointer is not nil.
  1156. func (c *ContactCreate) SetNotNilUpdatedAt(value *time.Time) *ContactCreate {
  1157. if value != nil {
  1158. return c.SetUpdatedAt(*value)
  1159. }
  1160. return c
  1161. }
  1162. // set field if value's pointer is not nil.
  1163. func (c *ContactUpdate) SetNotNilStatus(value *uint8) *ContactUpdate {
  1164. if value != nil {
  1165. return c.SetStatus(*value)
  1166. }
  1167. return c
  1168. }
  1169. // set field if value's pointer is not nil.
  1170. func (c *ContactUpdateOne) SetNotNilStatus(value *uint8) *ContactUpdateOne {
  1171. if value != nil {
  1172. return c.SetStatus(*value)
  1173. }
  1174. return c
  1175. }
  1176. // set field if value's pointer is not nil.
  1177. func (c *ContactCreate) SetNotNilStatus(value *uint8) *ContactCreate {
  1178. if value != nil {
  1179. return c.SetStatus(*value)
  1180. }
  1181. return c
  1182. }
  1183. // set field if value's pointer is not nil.
  1184. func (c *ContactUpdate) SetNotNilDeletedAt(value *time.Time) *ContactUpdate {
  1185. if value != nil {
  1186. return c.SetDeletedAt(*value)
  1187. }
  1188. return c
  1189. }
  1190. // set field if value's pointer is not nil.
  1191. func (c *ContactUpdateOne) SetNotNilDeletedAt(value *time.Time) *ContactUpdateOne {
  1192. if value != nil {
  1193. return c.SetDeletedAt(*value)
  1194. }
  1195. return c
  1196. }
  1197. // set field if value's pointer is not nil.
  1198. func (c *ContactCreate) SetNotNilDeletedAt(value *time.Time) *ContactCreate {
  1199. if value != nil {
  1200. return c.SetDeletedAt(*value)
  1201. }
  1202. return c
  1203. }
  1204. // set field if value's pointer is not nil.
  1205. func (c *ContactUpdate) SetNotNilWxWxid(value *string) *ContactUpdate {
  1206. if value != nil {
  1207. return c.SetWxWxid(*value)
  1208. }
  1209. return c
  1210. }
  1211. // set field if value's pointer is not nil.
  1212. func (c *ContactUpdateOne) SetNotNilWxWxid(value *string) *ContactUpdateOne {
  1213. if value != nil {
  1214. return c.SetWxWxid(*value)
  1215. }
  1216. return c
  1217. }
  1218. // set field if value's pointer is not nil.
  1219. func (c *ContactCreate) SetNotNilWxWxid(value *string) *ContactCreate {
  1220. if value != nil {
  1221. return c.SetWxWxid(*value)
  1222. }
  1223. return c
  1224. }
  1225. // set field if value's pointer is not nil.
  1226. func (c *ContactUpdate) SetNotNilType(value *int) *ContactUpdate {
  1227. if value != nil {
  1228. return c.SetType(*value)
  1229. }
  1230. return c
  1231. }
  1232. // set field if value's pointer is not nil.
  1233. func (c *ContactUpdateOne) SetNotNilType(value *int) *ContactUpdateOne {
  1234. if value != nil {
  1235. return c.SetType(*value)
  1236. }
  1237. return c
  1238. }
  1239. // set field if value's pointer is not nil.
  1240. func (c *ContactCreate) SetNotNilType(value *int) *ContactCreate {
  1241. if value != nil {
  1242. return c.SetType(*value)
  1243. }
  1244. return c
  1245. }
  1246. // set field if value's pointer is not nil.
  1247. func (c *ContactUpdate) SetNotNilWxid(value *string) *ContactUpdate {
  1248. if value != nil {
  1249. return c.SetWxid(*value)
  1250. }
  1251. return c
  1252. }
  1253. // set field if value's pointer is not nil.
  1254. func (c *ContactUpdateOne) SetNotNilWxid(value *string) *ContactUpdateOne {
  1255. if value != nil {
  1256. return c.SetWxid(*value)
  1257. }
  1258. return c
  1259. }
  1260. // set field if value's pointer is not nil.
  1261. func (c *ContactCreate) SetNotNilWxid(value *string) *ContactCreate {
  1262. if value != nil {
  1263. return c.SetWxid(*value)
  1264. }
  1265. return c
  1266. }
  1267. // set field if value's pointer is not nil.
  1268. func (c *ContactUpdate) SetNotNilAccount(value *string) *ContactUpdate {
  1269. if value != nil {
  1270. return c.SetAccount(*value)
  1271. }
  1272. return c
  1273. }
  1274. // set field if value's pointer is not nil.
  1275. func (c *ContactUpdateOne) SetNotNilAccount(value *string) *ContactUpdateOne {
  1276. if value != nil {
  1277. return c.SetAccount(*value)
  1278. }
  1279. return c
  1280. }
  1281. // set field if value's pointer is not nil.
  1282. func (c *ContactCreate) SetNotNilAccount(value *string) *ContactCreate {
  1283. if value != nil {
  1284. return c.SetAccount(*value)
  1285. }
  1286. return c
  1287. }
  1288. // set field if value's pointer is not nil.
  1289. func (c *ContactUpdate) SetNotNilNickname(value *string) *ContactUpdate {
  1290. if value != nil {
  1291. return c.SetNickname(*value)
  1292. }
  1293. return c
  1294. }
  1295. // set field if value's pointer is not nil.
  1296. func (c *ContactUpdateOne) SetNotNilNickname(value *string) *ContactUpdateOne {
  1297. if value != nil {
  1298. return c.SetNickname(*value)
  1299. }
  1300. return c
  1301. }
  1302. // set field if value's pointer is not nil.
  1303. func (c *ContactCreate) SetNotNilNickname(value *string) *ContactCreate {
  1304. if value != nil {
  1305. return c.SetNickname(*value)
  1306. }
  1307. return c
  1308. }
  1309. // set field if value's pointer is not nil.
  1310. func (c *ContactUpdate) SetNotNilMarkname(value *string) *ContactUpdate {
  1311. if value != nil {
  1312. return c.SetMarkname(*value)
  1313. }
  1314. return c
  1315. }
  1316. // set field if value's pointer is not nil.
  1317. func (c *ContactUpdateOne) SetNotNilMarkname(value *string) *ContactUpdateOne {
  1318. if value != nil {
  1319. return c.SetMarkname(*value)
  1320. }
  1321. return c
  1322. }
  1323. // set field if value's pointer is not nil.
  1324. func (c *ContactCreate) SetNotNilMarkname(value *string) *ContactCreate {
  1325. if value != nil {
  1326. return c.SetMarkname(*value)
  1327. }
  1328. return c
  1329. }
  1330. // set field if value's pointer is not nil.
  1331. func (c *ContactUpdate) SetNotNilHeadimg(value *string) *ContactUpdate {
  1332. if value != nil {
  1333. return c.SetHeadimg(*value)
  1334. }
  1335. return c
  1336. }
  1337. // set field if value's pointer is not nil.
  1338. func (c *ContactUpdateOne) SetNotNilHeadimg(value *string) *ContactUpdateOne {
  1339. if value != nil {
  1340. return c.SetHeadimg(*value)
  1341. }
  1342. return c
  1343. }
  1344. // set field if value's pointer is not nil.
  1345. func (c *ContactCreate) SetNotNilHeadimg(value *string) *ContactCreate {
  1346. if value != nil {
  1347. return c.SetHeadimg(*value)
  1348. }
  1349. return c
  1350. }
  1351. // set field if value's pointer is not nil.
  1352. func (c *ContactUpdate) SetNotNilSex(value *int) *ContactUpdate {
  1353. if value != nil {
  1354. return c.SetSex(*value)
  1355. }
  1356. return c
  1357. }
  1358. // set field if value's pointer is not nil.
  1359. func (c *ContactUpdateOne) SetNotNilSex(value *int) *ContactUpdateOne {
  1360. if value != nil {
  1361. return c.SetSex(*value)
  1362. }
  1363. return c
  1364. }
  1365. // set field if value's pointer is not nil.
  1366. func (c *ContactCreate) SetNotNilSex(value *int) *ContactCreate {
  1367. if value != nil {
  1368. return c.SetSex(*value)
  1369. }
  1370. return c
  1371. }
  1372. // set field if value's pointer is not nil.
  1373. func (c *ContactUpdate) SetNotNilStarrole(value *string) *ContactUpdate {
  1374. if value != nil {
  1375. return c.SetStarrole(*value)
  1376. }
  1377. return c
  1378. }
  1379. // set field if value's pointer is not nil.
  1380. func (c *ContactUpdateOne) SetNotNilStarrole(value *string) *ContactUpdateOne {
  1381. if value != nil {
  1382. return c.SetStarrole(*value)
  1383. }
  1384. return c
  1385. }
  1386. // set field if value's pointer is not nil.
  1387. func (c *ContactCreate) SetNotNilStarrole(value *string) *ContactCreate {
  1388. if value != nil {
  1389. return c.SetStarrole(*value)
  1390. }
  1391. return c
  1392. }
  1393. // set field if value's pointer is not nil.
  1394. func (c *ContactUpdate) SetNotNilDontseeit(value *int) *ContactUpdate {
  1395. if value != nil {
  1396. return c.SetDontseeit(*value)
  1397. }
  1398. return c
  1399. }
  1400. // set field if value's pointer is not nil.
  1401. func (c *ContactUpdateOne) SetNotNilDontseeit(value *int) *ContactUpdateOne {
  1402. if value != nil {
  1403. return c.SetDontseeit(*value)
  1404. }
  1405. return c
  1406. }
  1407. // set field if value's pointer is not nil.
  1408. func (c *ContactCreate) SetNotNilDontseeit(value *int) *ContactCreate {
  1409. if value != nil {
  1410. return c.SetDontseeit(*value)
  1411. }
  1412. return c
  1413. }
  1414. // set field if value's pointer is not nil.
  1415. func (c *ContactUpdate) SetNotNilDontseeme(value *int) *ContactUpdate {
  1416. if value != nil {
  1417. return c.SetDontseeme(*value)
  1418. }
  1419. return c
  1420. }
  1421. // set field if value's pointer is not nil.
  1422. func (c *ContactUpdateOne) SetNotNilDontseeme(value *int) *ContactUpdateOne {
  1423. if value != nil {
  1424. return c.SetDontseeme(*value)
  1425. }
  1426. return c
  1427. }
  1428. // set field if value's pointer is not nil.
  1429. func (c *ContactCreate) SetNotNilDontseeme(value *int) *ContactCreate {
  1430. if value != nil {
  1431. return c.SetDontseeme(*value)
  1432. }
  1433. return c
  1434. }
  1435. // set field if value's pointer is not nil.
  1436. func (c *ContactUpdate) SetNotNilLag(value *string) *ContactUpdate {
  1437. if value != nil {
  1438. return c.SetLag(*value)
  1439. }
  1440. return c
  1441. }
  1442. // set field if value's pointer is not nil.
  1443. func (c *ContactUpdateOne) SetNotNilLag(value *string) *ContactUpdateOne {
  1444. if value != nil {
  1445. return c.SetLag(*value)
  1446. }
  1447. return c
  1448. }
  1449. // set field if value's pointer is not nil.
  1450. func (c *ContactCreate) SetNotNilLag(value *string) *ContactCreate {
  1451. if value != nil {
  1452. return c.SetLag(*value)
  1453. }
  1454. return c
  1455. }
  1456. // set field if value's pointer is not nil.
  1457. func (c *ContactUpdate) SetNotNilGid(value *string) *ContactUpdate {
  1458. if value != nil {
  1459. return c.SetGid(*value)
  1460. }
  1461. return c
  1462. }
  1463. // set field if value's pointer is not nil.
  1464. func (c *ContactUpdateOne) SetNotNilGid(value *string) *ContactUpdateOne {
  1465. if value != nil {
  1466. return c.SetGid(*value)
  1467. }
  1468. return c
  1469. }
  1470. // set field if value's pointer is not nil.
  1471. func (c *ContactCreate) SetNotNilGid(value *string) *ContactCreate {
  1472. if value != nil {
  1473. return c.SetGid(*value)
  1474. }
  1475. return c
  1476. }
  1477. // set field if value's pointer is not nil.
  1478. func (c *ContactUpdate) SetNotNilGname(value *string) *ContactUpdate {
  1479. if value != nil {
  1480. return c.SetGname(*value)
  1481. }
  1482. return c
  1483. }
  1484. // set field if value's pointer is not nil.
  1485. func (c *ContactUpdateOne) SetNotNilGname(value *string) *ContactUpdateOne {
  1486. if value != nil {
  1487. return c.SetGname(*value)
  1488. }
  1489. return c
  1490. }
  1491. // set field if value's pointer is not nil.
  1492. func (c *ContactCreate) SetNotNilGname(value *string) *ContactCreate {
  1493. if value != nil {
  1494. return c.SetGname(*value)
  1495. }
  1496. return c
  1497. }
  1498. // set field if value's pointer is not nil.
  1499. func (c *ContactUpdate) SetNotNilV3(value *string) *ContactUpdate {
  1500. if value != nil {
  1501. return c.SetV3(*value)
  1502. }
  1503. return c
  1504. }
  1505. // set field if value's pointer is not nil.
  1506. func (c *ContactUpdateOne) SetNotNilV3(value *string) *ContactUpdateOne {
  1507. if value != nil {
  1508. return c.SetV3(*value)
  1509. }
  1510. return c
  1511. }
  1512. // set field if value's pointer is not nil.
  1513. func (c *ContactCreate) SetNotNilV3(value *string) *ContactCreate {
  1514. if value != nil {
  1515. return c.SetV3(*value)
  1516. }
  1517. return c
  1518. }
  1519. // set field if value's pointer is not nil.
  1520. func (c *ContactUpdate) SetNotNilOrganizationID(value *uint64) *ContactUpdate {
  1521. if value != nil {
  1522. return c.SetOrganizationID(*value)
  1523. }
  1524. return c
  1525. }
  1526. // set field if value's pointer is not nil.
  1527. func (c *ContactUpdateOne) SetNotNilOrganizationID(value *uint64) *ContactUpdateOne {
  1528. if value != nil {
  1529. return c.SetOrganizationID(*value)
  1530. }
  1531. return c
  1532. }
  1533. // set field if value's pointer is not nil.
  1534. func (c *ContactCreate) SetNotNilOrganizationID(value *uint64) *ContactCreate {
  1535. if value != nil {
  1536. return c.SetOrganizationID(*value)
  1537. }
  1538. return c
  1539. }
  1540. // set field if value's pointer is not nil.
  1541. func (e *EmployeeUpdate) SetNotNilUpdatedAt(value *time.Time) *EmployeeUpdate {
  1542. if value != nil {
  1543. return e.SetUpdatedAt(*value)
  1544. }
  1545. return e
  1546. }
  1547. // set field if value's pointer is not nil.
  1548. func (e *EmployeeUpdateOne) SetNotNilUpdatedAt(value *time.Time) *EmployeeUpdateOne {
  1549. if value != nil {
  1550. return e.SetUpdatedAt(*value)
  1551. }
  1552. return e
  1553. }
  1554. // set field if value's pointer is not nil.
  1555. func (e *EmployeeCreate) SetNotNilUpdatedAt(value *time.Time) *EmployeeCreate {
  1556. if value != nil {
  1557. return e.SetUpdatedAt(*value)
  1558. }
  1559. return e
  1560. }
  1561. // set field if value's pointer is not nil.
  1562. func (e *EmployeeUpdate) SetNotNilDeletedAt(value *time.Time) *EmployeeUpdate {
  1563. if value != nil {
  1564. return e.SetDeletedAt(*value)
  1565. }
  1566. return e
  1567. }
  1568. // set field if value's pointer is not nil.
  1569. func (e *EmployeeUpdateOne) SetNotNilDeletedAt(value *time.Time) *EmployeeUpdateOne {
  1570. if value != nil {
  1571. return e.SetDeletedAt(*value)
  1572. }
  1573. return e
  1574. }
  1575. // set field if value's pointer is not nil.
  1576. func (e *EmployeeCreate) SetNotNilDeletedAt(value *time.Time) *EmployeeCreate {
  1577. if value != nil {
  1578. return e.SetDeletedAt(*value)
  1579. }
  1580. return e
  1581. }
  1582. // set field if value's pointer is not nil.
  1583. func (e *EmployeeUpdate) SetNotNilTitle(value *string) *EmployeeUpdate {
  1584. if value != nil {
  1585. return e.SetTitle(*value)
  1586. }
  1587. return e
  1588. }
  1589. // set field if value's pointer is not nil.
  1590. func (e *EmployeeUpdateOne) SetNotNilTitle(value *string) *EmployeeUpdateOne {
  1591. if value != nil {
  1592. return e.SetTitle(*value)
  1593. }
  1594. return e
  1595. }
  1596. // set field if value's pointer is not nil.
  1597. func (e *EmployeeCreate) SetNotNilTitle(value *string) *EmployeeCreate {
  1598. if value != nil {
  1599. return e.SetTitle(*value)
  1600. }
  1601. return e
  1602. }
  1603. // set field if value's pointer is not nil.
  1604. func (e *EmployeeUpdate) SetNotNilAvatar(value *string) *EmployeeUpdate {
  1605. if value != nil {
  1606. return e.SetAvatar(*value)
  1607. }
  1608. return e
  1609. }
  1610. // set field if value's pointer is not nil.
  1611. func (e *EmployeeUpdateOne) SetNotNilAvatar(value *string) *EmployeeUpdateOne {
  1612. if value != nil {
  1613. return e.SetAvatar(*value)
  1614. }
  1615. return e
  1616. }
  1617. // set field if value's pointer is not nil.
  1618. func (e *EmployeeCreate) SetNotNilAvatar(value *string) *EmployeeCreate {
  1619. if value != nil {
  1620. return e.SetAvatar(*value)
  1621. }
  1622. return e
  1623. }
  1624. // set field if value's pointer is not nil.
  1625. func (e *EmployeeUpdate) SetNotNilTags(value *string) *EmployeeUpdate {
  1626. if value != nil {
  1627. return e.SetTags(*value)
  1628. }
  1629. return e
  1630. }
  1631. // set field if value's pointer is not nil.
  1632. func (e *EmployeeUpdateOne) SetNotNilTags(value *string) *EmployeeUpdateOne {
  1633. if value != nil {
  1634. return e.SetTags(*value)
  1635. }
  1636. return e
  1637. }
  1638. // set field if value's pointer is not nil.
  1639. func (e *EmployeeCreate) SetNotNilTags(value *string) *EmployeeCreate {
  1640. if value != nil {
  1641. return e.SetTags(*value)
  1642. }
  1643. return e
  1644. }
  1645. // set field if value's pointer is not nil.
  1646. func (e *EmployeeUpdate) SetNotNilHireCount(value *int) *EmployeeUpdate {
  1647. if value != nil {
  1648. return e.SetHireCount(*value)
  1649. }
  1650. return e
  1651. }
  1652. // set field if value's pointer is not nil.
  1653. func (e *EmployeeUpdateOne) SetNotNilHireCount(value *int) *EmployeeUpdateOne {
  1654. if value != nil {
  1655. return e.SetHireCount(*value)
  1656. }
  1657. return e
  1658. }
  1659. // set field if value's pointer is not nil.
  1660. func (e *EmployeeCreate) SetNotNilHireCount(value *int) *EmployeeCreate {
  1661. if value != nil {
  1662. return e.SetHireCount(*value)
  1663. }
  1664. return e
  1665. }
  1666. // set field if value's pointer is not nil.
  1667. func (e *EmployeeUpdate) SetNotNilServiceCount(value *int) *EmployeeUpdate {
  1668. if value != nil {
  1669. return e.SetServiceCount(*value)
  1670. }
  1671. return e
  1672. }
  1673. // set field if value's pointer is not nil.
  1674. func (e *EmployeeUpdateOne) SetNotNilServiceCount(value *int) *EmployeeUpdateOne {
  1675. if value != nil {
  1676. return e.SetServiceCount(*value)
  1677. }
  1678. return e
  1679. }
  1680. // set field if value's pointer is not nil.
  1681. func (e *EmployeeCreate) SetNotNilServiceCount(value *int) *EmployeeCreate {
  1682. if value != nil {
  1683. return e.SetServiceCount(*value)
  1684. }
  1685. return e
  1686. }
  1687. // set field if value's pointer is not nil.
  1688. func (e *EmployeeUpdate) SetNotNilAchievementCount(value *int) *EmployeeUpdate {
  1689. if value != nil {
  1690. return e.SetAchievementCount(*value)
  1691. }
  1692. return e
  1693. }
  1694. // set field if value's pointer is not nil.
  1695. func (e *EmployeeUpdateOne) SetNotNilAchievementCount(value *int) *EmployeeUpdateOne {
  1696. if value != nil {
  1697. return e.SetAchievementCount(*value)
  1698. }
  1699. return e
  1700. }
  1701. // set field if value's pointer is not nil.
  1702. func (e *EmployeeCreate) SetNotNilAchievementCount(value *int) *EmployeeCreate {
  1703. if value != nil {
  1704. return e.SetAchievementCount(*value)
  1705. }
  1706. return e
  1707. }
  1708. // set field if value's pointer is not nil.
  1709. func (e *EmployeeUpdate) SetNotNilIntro(value *string) *EmployeeUpdate {
  1710. if value != nil {
  1711. return e.SetIntro(*value)
  1712. }
  1713. return e
  1714. }
  1715. // set field if value's pointer is not nil.
  1716. func (e *EmployeeUpdateOne) SetNotNilIntro(value *string) *EmployeeUpdateOne {
  1717. if value != nil {
  1718. return e.SetIntro(*value)
  1719. }
  1720. return e
  1721. }
  1722. // set field if value's pointer is not nil.
  1723. func (e *EmployeeCreate) SetNotNilIntro(value *string) *EmployeeCreate {
  1724. if value != nil {
  1725. return e.SetIntro(*value)
  1726. }
  1727. return e
  1728. }
  1729. // set field if value's pointer is not nil.
  1730. func (e *EmployeeUpdate) SetNotNilEstimate(value *string) *EmployeeUpdate {
  1731. if value != nil {
  1732. return e.SetEstimate(*value)
  1733. }
  1734. return e
  1735. }
  1736. // set field if value's pointer is not nil.
  1737. func (e *EmployeeUpdateOne) SetNotNilEstimate(value *string) *EmployeeUpdateOne {
  1738. if value != nil {
  1739. return e.SetEstimate(*value)
  1740. }
  1741. return e
  1742. }
  1743. // set field if value's pointer is not nil.
  1744. func (e *EmployeeCreate) SetNotNilEstimate(value *string) *EmployeeCreate {
  1745. if value != nil {
  1746. return e.SetEstimate(*value)
  1747. }
  1748. return e
  1749. }
  1750. // set field if value's pointer is not nil.
  1751. func (e *EmployeeUpdate) SetNotNilSkill(value *string) *EmployeeUpdate {
  1752. if value != nil {
  1753. return e.SetSkill(*value)
  1754. }
  1755. return e
  1756. }
  1757. // set field if value's pointer is not nil.
  1758. func (e *EmployeeUpdateOne) SetNotNilSkill(value *string) *EmployeeUpdateOne {
  1759. if value != nil {
  1760. return e.SetSkill(*value)
  1761. }
  1762. return e
  1763. }
  1764. // set field if value's pointer is not nil.
  1765. func (e *EmployeeCreate) SetNotNilSkill(value *string) *EmployeeCreate {
  1766. if value != nil {
  1767. return e.SetSkill(*value)
  1768. }
  1769. return e
  1770. }
  1771. // set field if value's pointer is not nil.
  1772. func (e *EmployeeUpdate) SetNotNilAbilityType(value *string) *EmployeeUpdate {
  1773. if value != nil {
  1774. return e.SetAbilityType(*value)
  1775. }
  1776. return e
  1777. }
  1778. // set field if value's pointer is not nil.
  1779. func (e *EmployeeUpdateOne) SetNotNilAbilityType(value *string) *EmployeeUpdateOne {
  1780. if value != nil {
  1781. return e.SetAbilityType(*value)
  1782. }
  1783. return e
  1784. }
  1785. // set field if value's pointer is not nil.
  1786. func (e *EmployeeCreate) SetNotNilAbilityType(value *string) *EmployeeCreate {
  1787. if value != nil {
  1788. return e.SetAbilityType(*value)
  1789. }
  1790. return e
  1791. }
  1792. // set field if value's pointer is not nil.
  1793. func (e *EmployeeUpdate) SetNotNilScene(value *string) *EmployeeUpdate {
  1794. if value != nil {
  1795. return e.SetScene(*value)
  1796. }
  1797. return e
  1798. }
  1799. // set field if value's pointer is not nil.
  1800. func (e *EmployeeUpdateOne) SetNotNilScene(value *string) *EmployeeUpdateOne {
  1801. if value != nil {
  1802. return e.SetScene(*value)
  1803. }
  1804. return e
  1805. }
  1806. // set field if value's pointer is not nil.
  1807. func (e *EmployeeCreate) SetNotNilScene(value *string) *EmployeeCreate {
  1808. if value != nil {
  1809. return e.SetScene(*value)
  1810. }
  1811. return e
  1812. }
  1813. // set field if value's pointer is not nil.
  1814. func (e *EmployeeUpdate) SetNotNilSwitchIn(value *string) *EmployeeUpdate {
  1815. if value != nil {
  1816. return e.SetSwitchIn(*value)
  1817. }
  1818. return e
  1819. }
  1820. // set field if value's pointer is not nil.
  1821. func (e *EmployeeUpdateOne) SetNotNilSwitchIn(value *string) *EmployeeUpdateOne {
  1822. if value != nil {
  1823. return e.SetSwitchIn(*value)
  1824. }
  1825. return e
  1826. }
  1827. // set field if value's pointer is not nil.
  1828. func (e *EmployeeCreate) SetNotNilSwitchIn(value *string) *EmployeeCreate {
  1829. if value != nil {
  1830. return e.SetSwitchIn(*value)
  1831. }
  1832. return e
  1833. }
  1834. // set field if value's pointer is not nil.
  1835. func (e *EmployeeUpdate) SetNotNilVideoURL(value *string) *EmployeeUpdate {
  1836. if value != nil {
  1837. return e.SetVideoURL(*value)
  1838. }
  1839. return e
  1840. }
  1841. // set field if value's pointer is not nil.
  1842. func (e *EmployeeUpdateOne) SetNotNilVideoURL(value *string) *EmployeeUpdateOne {
  1843. if value != nil {
  1844. return e.SetVideoURL(*value)
  1845. }
  1846. return e
  1847. }
  1848. // set field if value's pointer is not nil.
  1849. func (e *EmployeeCreate) SetNotNilVideoURL(value *string) *EmployeeCreate {
  1850. if value != nil {
  1851. return e.SetVideoURL(*value)
  1852. }
  1853. return e
  1854. }
  1855. // set field if value's pointer is not nil.
  1856. func (e *EmployeeUpdate) SetNotNilOrganizationID(value *uint64) *EmployeeUpdate {
  1857. if value != nil {
  1858. return e.SetOrganizationID(*value)
  1859. }
  1860. return e
  1861. }
  1862. // set field if value's pointer is not nil.
  1863. func (e *EmployeeUpdateOne) SetNotNilOrganizationID(value *uint64) *EmployeeUpdateOne {
  1864. if value != nil {
  1865. return e.SetOrganizationID(*value)
  1866. }
  1867. return e
  1868. }
  1869. // set field if value's pointer is not nil.
  1870. func (e *EmployeeCreate) SetNotNilOrganizationID(value *uint64) *EmployeeCreate {
  1871. if value != nil {
  1872. return e.SetOrganizationID(*value)
  1873. }
  1874. return e
  1875. }
  1876. // set field if value's pointer is not nil.
  1877. func (e *EmployeeUpdate) SetNotNilCategoryID(value *uint64) *EmployeeUpdate {
  1878. if value != nil {
  1879. return e.SetCategoryID(*value)
  1880. }
  1881. return e
  1882. }
  1883. // set field if value's pointer is not nil.
  1884. func (e *EmployeeUpdateOne) SetNotNilCategoryID(value *uint64) *EmployeeUpdateOne {
  1885. if value != nil {
  1886. return e.SetCategoryID(*value)
  1887. }
  1888. return e
  1889. }
  1890. // set field if value's pointer is not nil.
  1891. func (e *EmployeeCreate) SetNotNilCategoryID(value *uint64) *EmployeeCreate {
  1892. if value != nil {
  1893. return e.SetCategoryID(*value)
  1894. }
  1895. return e
  1896. }
  1897. // set field if value's pointer is not nil.
  1898. func (e *EmployeeUpdate) SetNotNilAPIBase(value *string) *EmployeeUpdate {
  1899. if value != nil {
  1900. return e.SetAPIBase(*value)
  1901. }
  1902. return e
  1903. }
  1904. // set field if value's pointer is not nil.
  1905. func (e *EmployeeUpdateOne) SetNotNilAPIBase(value *string) *EmployeeUpdateOne {
  1906. if value != nil {
  1907. return e.SetAPIBase(*value)
  1908. }
  1909. return e
  1910. }
  1911. // set field if value's pointer is not nil.
  1912. func (e *EmployeeCreate) SetNotNilAPIBase(value *string) *EmployeeCreate {
  1913. if value != nil {
  1914. return e.SetAPIBase(*value)
  1915. }
  1916. return e
  1917. }
  1918. // set field if value's pointer is not nil.
  1919. func (e *EmployeeUpdate) SetNotNilAPIKey(value *string) *EmployeeUpdate {
  1920. if value != nil {
  1921. return e.SetAPIKey(*value)
  1922. }
  1923. return e
  1924. }
  1925. // set field if value's pointer is not nil.
  1926. func (e *EmployeeUpdateOne) SetNotNilAPIKey(value *string) *EmployeeUpdateOne {
  1927. if value != nil {
  1928. return e.SetAPIKey(*value)
  1929. }
  1930. return e
  1931. }
  1932. // set field if value's pointer is not nil.
  1933. func (e *EmployeeCreate) SetNotNilAPIKey(value *string) *EmployeeCreate {
  1934. if value != nil {
  1935. return e.SetAPIKey(*value)
  1936. }
  1937. return e
  1938. }
  1939. // set field if value's pointer is not nil.
  1940. func (e *EmployeeUpdate) SetNotNilAiInfo(value *string) *EmployeeUpdate {
  1941. if value != nil {
  1942. return e.SetAiInfo(*value)
  1943. }
  1944. return e
  1945. }
  1946. // set field if value's pointer is not nil.
  1947. func (e *EmployeeUpdateOne) SetNotNilAiInfo(value *string) *EmployeeUpdateOne {
  1948. if value != nil {
  1949. return e.SetAiInfo(*value)
  1950. }
  1951. return e
  1952. }
  1953. // set field if value's pointer is not nil.
  1954. func (e *EmployeeCreate) SetNotNilAiInfo(value *string) *EmployeeCreate {
  1955. if value != nil {
  1956. return e.SetAiInfo(*value)
  1957. }
  1958. return e
  1959. }
  1960. // set field if value's pointer is not nil.
  1961. func (e *EmployeeUpdate) SetNotNilIsVip(value *int) *EmployeeUpdate {
  1962. if value != nil {
  1963. return e.SetIsVip(*value)
  1964. }
  1965. return e
  1966. }
  1967. // set field if value's pointer is not nil.
  1968. func (e *EmployeeUpdateOne) SetNotNilIsVip(value *int) *EmployeeUpdateOne {
  1969. if value != nil {
  1970. return e.SetIsVip(*value)
  1971. }
  1972. return e
  1973. }
  1974. // set field if value's pointer is not nil.
  1975. func (e *EmployeeCreate) SetNotNilIsVip(value *int) *EmployeeCreate {
  1976. if value != nil {
  1977. return e.SetIsVip(*value)
  1978. }
  1979. return e
  1980. }
  1981. // set field if value's pointer is not nil.
  1982. func (ec *EmployeeConfigUpdate) SetNotNilUpdatedAt(value *time.Time) *EmployeeConfigUpdate {
  1983. if value != nil {
  1984. return ec.SetUpdatedAt(*value)
  1985. }
  1986. return ec
  1987. }
  1988. // set field if value's pointer is not nil.
  1989. func (ec *EmployeeConfigUpdateOne) SetNotNilUpdatedAt(value *time.Time) *EmployeeConfigUpdateOne {
  1990. if value != nil {
  1991. return ec.SetUpdatedAt(*value)
  1992. }
  1993. return ec
  1994. }
  1995. // set field if value's pointer is not nil.
  1996. func (ec *EmployeeConfigCreate) SetNotNilUpdatedAt(value *time.Time) *EmployeeConfigCreate {
  1997. if value != nil {
  1998. return ec.SetUpdatedAt(*value)
  1999. }
  2000. return ec
  2001. }
  2002. // set field if value's pointer is not nil.
  2003. func (ec *EmployeeConfigUpdate) SetNotNilDeletedAt(value *time.Time) *EmployeeConfigUpdate {
  2004. if value != nil {
  2005. return ec.SetDeletedAt(*value)
  2006. }
  2007. return ec
  2008. }
  2009. // set field if value's pointer is not nil.
  2010. func (ec *EmployeeConfigUpdateOne) SetNotNilDeletedAt(value *time.Time) *EmployeeConfigUpdateOne {
  2011. if value != nil {
  2012. return ec.SetDeletedAt(*value)
  2013. }
  2014. return ec
  2015. }
  2016. // set field if value's pointer is not nil.
  2017. func (ec *EmployeeConfigCreate) SetNotNilDeletedAt(value *time.Time) *EmployeeConfigCreate {
  2018. if value != nil {
  2019. return ec.SetDeletedAt(*value)
  2020. }
  2021. return ec
  2022. }
  2023. // set field if value's pointer is not nil.
  2024. func (ec *EmployeeConfigUpdate) SetNotNilStype(value *string) *EmployeeConfigUpdate {
  2025. if value != nil {
  2026. return ec.SetStype(*value)
  2027. }
  2028. return ec
  2029. }
  2030. // set field if value's pointer is not nil.
  2031. func (ec *EmployeeConfigUpdateOne) SetNotNilStype(value *string) *EmployeeConfigUpdateOne {
  2032. if value != nil {
  2033. return ec.SetStype(*value)
  2034. }
  2035. return ec
  2036. }
  2037. // set field if value's pointer is not nil.
  2038. func (ec *EmployeeConfigCreate) SetNotNilStype(value *string) *EmployeeConfigCreate {
  2039. if value != nil {
  2040. return ec.SetStype(*value)
  2041. }
  2042. return ec
  2043. }
  2044. // set field if value's pointer is not nil.
  2045. func (ec *EmployeeConfigUpdate) SetNotNilTitle(value *string) *EmployeeConfigUpdate {
  2046. if value != nil {
  2047. return ec.SetTitle(*value)
  2048. }
  2049. return ec
  2050. }
  2051. // set field if value's pointer is not nil.
  2052. func (ec *EmployeeConfigUpdateOne) SetNotNilTitle(value *string) *EmployeeConfigUpdateOne {
  2053. if value != nil {
  2054. return ec.SetTitle(*value)
  2055. }
  2056. return ec
  2057. }
  2058. // set field if value's pointer is not nil.
  2059. func (ec *EmployeeConfigCreate) SetNotNilTitle(value *string) *EmployeeConfigCreate {
  2060. if value != nil {
  2061. return ec.SetTitle(*value)
  2062. }
  2063. return ec
  2064. }
  2065. // set field if value's pointer is not nil.
  2066. func (ec *EmployeeConfigUpdate) SetNotNilPhoto(value *string) *EmployeeConfigUpdate {
  2067. if value != nil {
  2068. return ec.SetPhoto(*value)
  2069. }
  2070. return ec
  2071. }
  2072. // set field if value's pointer is not nil.
  2073. func (ec *EmployeeConfigUpdateOne) SetNotNilPhoto(value *string) *EmployeeConfigUpdateOne {
  2074. if value != nil {
  2075. return ec.SetPhoto(*value)
  2076. }
  2077. return ec
  2078. }
  2079. // set field if value's pointer is not nil.
  2080. func (ec *EmployeeConfigCreate) SetNotNilPhoto(value *string) *EmployeeConfigCreate {
  2081. if value != nil {
  2082. return ec.SetPhoto(*value)
  2083. }
  2084. return ec
  2085. }
  2086. // set field if value's pointer is not nil.
  2087. func (ec *EmployeeConfigUpdate) SetNotNilOrganizationID(value *uint64) *EmployeeConfigUpdate {
  2088. if value != nil {
  2089. return ec.SetOrganizationID(*value)
  2090. }
  2091. return ec
  2092. }
  2093. // set field if value's pointer is not nil.
  2094. func (ec *EmployeeConfigUpdateOne) SetNotNilOrganizationID(value *uint64) *EmployeeConfigUpdateOne {
  2095. if value != nil {
  2096. return ec.SetOrganizationID(*value)
  2097. }
  2098. return ec
  2099. }
  2100. // set field if value's pointer is not nil.
  2101. func (ec *EmployeeConfigCreate) SetNotNilOrganizationID(value *uint64) *EmployeeConfigCreate {
  2102. if value != nil {
  2103. return ec.SetOrganizationID(*value)
  2104. }
  2105. return ec
  2106. }
  2107. // set field if value's pointer is not nil.
  2108. func (l *LabelUpdate) SetNotNilUpdatedAt(value *time.Time) *LabelUpdate {
  2109. if value != nil {
  2110. return l.SetUpdatedAt(*value)
  2111. }
  2112. return l
  2113. }
  2114. // set field if value's pointer is not nil.
  2115. func (l *LabelUpdateOne) SetNotNilUpdatedAt(value *time.Time) *LabelUpdateOne {
  2116. if value != nil {
  2117. return l.SetUpdatedAt(*value)
  2118. }
  2119. return l
  2120. }
  2121. // set field if value's pointer is not nil.
  2122. func (l *LabelCreate) SetNotNilUpdatedAt(value *time.Time) *LabelCreate {
  2123. if value != nil {
  2124. return l.SetUpdatedAt(*value)
  2125. }
  2126. return l
  2127. }
  2128. // set field if value's pointer is not nil.
  2129. func (l *LabelUpdate) SetNotNilStatus(value *uint8) *LabelUpdate {
  2130. if value != nil {
  2131. return l.SetStatus(*value)
  2132. }
  2133. return l
  2134. }
  2135. // set field if value's pointer is not nil.
  2136. func (l *LabelUpdateOne) SetNotNilStatus(value *uint8) *LabelUpdateOne {
  2137. if value != nil {
  2138. return l.SetStatus(*value)
  2139. }
  2140. return l
  2141. }
  2142. // set field if value's pointer is not nil.
  2143. func (l *LabelCreate) SetNotNilStatus(value *uint8) *LabelCreate {
  2144. if value != nil {
  2145. return l.SetStatus(*value)
  2146. }
  2147. return l
  2148. }
  2149. // set field if value's pointer is not nil.
  2150. func (l *LabelUpdate) SetNotNilType(value *int) *LabelUpdate {
  2151. if value != nil {
  2152. return l.SetType(*value)
  2153. }
  2154. return l
  2155. }
  2156. // set field if value's pointer is not nil.
  2157. func (l *LabelUpdateOne) SetNotNilType(value *int) *LabelUpdateOne {
  2158. if value != nil {
  2159. return l.SetType(*value)
  2160. }
  2161. return l
  2162. }
  2163. // set field if value's pointer is not nil.
  2164. func (l *LabelCreate) SetNotNilType(value *int) *LabelCreate {
  2165. if value != nil {
  2166. return l.SetType(*value)
  2167. }
  2168. return l
  2169. }
  2170. // set field if value's pointer is not nil.
  2171. func (l *LabelUpdate) SetNotNilName(value *string) *LabelUpdate {
  2172. if value != nil {
  2173. return l.SetName(*value)
  2174. }
  2175. return l
  2176. }
  2177. // set field if value's pointer is not nil.
  2178. func (l *LabelUpdateOne) SetNotNilName(value *string) *LabelUpdateOne {
  2179. if value != nil {
  2180. return l.SetName(*value)
  2181. }
  2182. return l
  2183. }
  2184. // set field if value's pointer is not nil.
  2185. func (l *LabelCreate) SetNotNilName(value *string) *LabelCreate {
  2186. if value != nil {
  2187. return l.SetName(*value)
  2188. }
  2189. return l
  2190. }
  2191. // set field if value's pointer is not nil.
  2192. func (l *LabelUpdate) SetNotNilFrom(value *int) *LabelUpdate {
  2193. if value != nil {
  2194. return l.SetFrom(*value)
  2195. }
  2196. return l
  2197. }
  2198. // set field if value's pointer is not nil.
  2199. func (l *LabelUpdateOne) SetNotNilFrom(value *int) *LabelUpdateOne {
  2200. if value != nil {
  2201. return l.SetFrom(*value)
  2202. }
  2203. return l
  2204. }
  2205. // set field if value's pointer is not nil.
  2206. func (l *LabelCreate) SetNotNilFrom(value *int) *LabelCreate {
  2207. if value != nil {
  2208. return l.SetFrom(*value)
  2209. }
  2210. return l
  2211. }
  2212. // set field if value's pointer is not nil.
  2213. func (l *LabelUpdate) SetNotNilMode(value *int) *LabelUpdate {
  2214. if value != nil {
  2215. return l.SetMode(*value)
  2216. }
  2217. return l
  2218. }
  2219. // set field if value's pointer is not nil.
  2220. func (l *LabelUpdateOne) SetNotNilMode(value *int) *LabelUpdateOne {
  2221. if value != nil {
  2222. return l.SetMode(*value)
  2223. }
  2224. return l
  2225. }
  2226. // set field if value's pointer is not nil.
  2227. func (l *LabelCreate) SetNotNilMode(value *int) *LabelCreate {
  2228. if value != nil {
  2229. return l.SetMode(*value)
  2230. }
  2231. return l
  2232. }
  2233. // set field if value's pointer is not nil.
  2234. func (l *LabelUpdate) SetNotNilConditions(value *string) *LabelUpdate {
  2235. if value != nil {
  2236. return l.SetConditions(*value)
  2237. }
  2238. return l
  2239. }
  2240. // set field if value's pointer is not nil.
  2241. func (l *LabelUpdateOne) SetNotNilConditions(value *string) *LabelUpdateOne {
  2242. if value != nil {
  2243. return l.SetConditions(*value)
  2244. }
  2245. return l
  2246. }
  2247. // set field if value's pointer is not nil.
  2248. func (l *LabelCreate) SetNotNilConditions(value *string) *LabelCreate {
  2249. if value != nil {
  2250. return l.SetConditions(*value)
  2251. }
  2252. return l
  2253. }
  2254. // set field if value's pointer is not nil.
  2255. func (l *LabelUpdate) SetNotNilOrganizationID(value *uint64) *LabelUpdate {
  2256. if value != nil {
  2257. return l.SetOrganizationID(*value)
  2258. }
  2259. return l
  2260. }
  2261. // set field if value's pointer is not nil.
  2262. func (l *LabelUpdateOne) SetNotNilOrganizationID(value *uint64) *LabelUpdateOne {
  2263. if value != nil {
  2264. return l.SetOrganizationID(*value)
  2265. }
  2266. return l
  2267. }
  2268. // set field if value's pointer is not nil.
  2269. func (l *LabelCreate) SetNotNilOrganizationID(value *uint64) *LabelCreate {
  2270. if value != nil {
  2271. return l.SetOrganizationID(*value)
  2272. }
  2273. return l
  2274. }
  2275. // set field if value's pointer is not nil.
  2276. func (lr *LabelRelationshipUpdate) SetNotNilUpdatedAt(value *time.Time) *LabelRelationshipUpdate {
  2277. if value != nil {
  2278. return lr.SetUpdatedAt(*value)
  2279. }
  2280. return lr
  2281. }
  2282. // set field if value's pointer is not nil.
  2283. func (lr *LabelRelationshipUpdateOne) SetNotNilUpdatedAt(value *time.Time) *LabelRelationshipUpdateOne {
  2284. if value != nil {
  2285. return lr.SetUpdatedAt(*value)
  2286. }
  2287. return lr
  2288. }
  2289. // set field if value's pointer is not nil.
  2290. func (lr *LabelRelationshipCreate) SetNotNilUpdatedAt(value *time.Time) *LabelRelationshipCreate {
  2291. if value != nil {
  2292. return lr.SetUpdatedAt(*value)
  2293. }
  2294. return lr
  2295. }
  2296. // set field if value's pointer is not nil.
  2297. func (lr *LabelRelationshipUpdate) SetNotNilStatus(value *uint8) *LabelRelationshipUpdate {
  2298. if value != nil {
  2299. return lr.SetStatus(*value)
  2300. }
  2301. return lr
  2302. }
  2303. // set field if value's pointer is not nil.
  2304. func (lr *LabelRelationshipUpdateOne) SetNotNilStatus(value *uint8) *LabelRelationshipUpdateOne {
  2305. if value != nil {
  2306. return lr.SetStatus(*value)
  2307. }
  2308. return lr
  2309. }
  2310. // set field if value's pointer is not nil.
  2311. func (lr *LabelRelationshipCreate) SetNotNilStatus(value *uint8) *LabelRelationshipCreate {
  2312. if value != nil {
  2313. return lr.SetStatus(*value)
  2314. }
  2315. return lr
  2316. }
  2317. // set field if value's pointer is not nil.
  2318. func (lr *LabelRelationshipUpdate) SetNotNilDeletedAt(value *time.Time) *LabelRelationshipUpdate {
  2319. if value != nil {
  2320. return lr.SetDeletedAt(*value)
  2321. }
  2322. return lr
  2323. }
  2324. // set field if value's pointer is not nil.
  2325. func (lr *LabelRelationshipUpdateOne) SetNotNilDeletedAt(value *time.Time) *LabelRelationshipUpdateOne {
  2326. if value != nil {
  2327. return lr.SetDeletedAt(*value)
  2328. }
  2329. return lr
  2330. }
  2331. // set field if value's pointer is not nil.
  2332. func (lr *LabelRelationshipCreate) SetNotNilDeletedAt(value *time.Time) *LabelRelationshipCreate {
  2333. if value != nil {
  2334. return lr.SetDeletedAt(*value)
  2335. }
  2336. return lr
  2337. }
  2338. // set field if value's pointer is not nil.
  2339. func (lr *LabelRelationshipUpdate) SetNotNilLabelID(value *uint64) *LabelRelationshipUpdate {
  2340. if value != nil {
  2341. return lr.SetLabelID(*value)
  2342. }
  2343. return lr
  2344. }
  2345. // set field if value's pointer is not nil.
  2346. func (lr *LabelRelationshipUpdateOne) SetNotNilLabelID(value *uint64) *LabelRelationshipUpdateOne {
  2347. if value != nil {
  2348. return lr.SetLabelID(*value)
  2349. }
  2350. return lr
  2351. }
  2352. // set field if value's pointer is not nil.
  2353. func (lr *LabelRelationshipCreate) SetNotNilLabelID(value *uint64) *LabelRelationshipCreate {
  2354. if value != nil {
  2355. return lr.SetLabelID(*value)
  2356. }
  2357. return lr
  2358. }
  2359. // set field if value's pointer is not nil.
  2360. func (lr *LabelRelationshipUpdate) SetNotNilContactID(value *uint64) *LabelRelationshipUpdate {
  2361. if value != nil {
  2362. return lr.SetContactID(*value)
  2363. }
  2364. return lr
  2365. }
  2366. // set field if value's pointer is not nil.
  2367. func (lr *LabelRelationshipUpdateOne) SetNotNilContactID(value *uint64) *LabelRelationshipUpdateOne {
  2368. if value != nil {
  2369. return lr.SetContactID(*value)
  2370. }
  2371. return lr
  2372. }
  2373. // set field if value's pointer is not nil.
  2374. func (lr *LabelRelationshipCreate) SetNotNilContactID(value *uint64) *LabelRelationshipCreate {
  2375. if value != nil {
  2376. return lr.SetContactID(*value)
  2377. }
  2378. return lr
  2379. }
  2380. // set field if value's pointer is not nil.
  2381. func (lr *LabelRelationshipUpdate) SetNotNilOrganizationID(value *uint64) *LabelRelationshipUpdate {
  2382. if value != nil {
  2383. return lr.SetOrganizationID(*value)
  2384. }
  2385. return lr
  2386. }
  2387. // set field if value's pointer is not nil.
  2388. func (lr *LabelRelationshipUpdateOne) SetNotNilOrganizationID(value *uint64) *LabelRelationshipUpdateOne {
  2389. if value != nil {
  2390. return lr.SetOrganizationID(*value)
  2391. }
  2392. return lr
  2393. }
  2394. // set field if value's pointer is not nil.
  2395. func (lr *LabelRelationshipCreate) SetNotNilOrganizationID(value *uint64) *LabelRelationshipCreate {
  2396. if value != nil {
  2397. return lr.SetOrganizationID(*value)
  2398. }
  2399. return lr
  2400. }
  2401. // set field if value's pointer is not nil.
  2402. func (m *MessageUpdate) SetNotNilWxWxid(value *string) *MessageUpdate {
  2403. if value != nil {
  2404. return m.SetWxWxid(*value)
  2405. }
  2406. return m
  2407. }
  2408. // set field if value's pointer is not nil.
  2409. func (m *MessageUpdateOne) SetNotNilWxWxid(value *string) *MessageUpdateOne {
  2410. if value != nil {
  2411. return m.SetWxWxid(*value)
  2412. }
  2413. return m
  2414. }
  2415. // set field if value's pointer is not nil.
  2416. func (m *MessageCreate) SetNotNilWxWxid(value *string) *MessageCreate {
  2417. if value != nil {
  2418. return m.SetWxWxid(*value)
  2419. }
  2420. return m
  2421. }
  2422. // set field if value's pointer is not nil.
  2423. func (m *MessageUpdate) SetNotNilWxid(value *string) *MessageUpdate {
  2424. if value != nil {
  2425. return m.SetWxid(*value)
  2426. }
  2427. return m
  2428. }
  2429. // set field if value's pointer is not nil.
  2430. func (m *MessageUpdateOne) SetNotNilWxid(value *string) *MessageUpdateOne {
  2431. if value != nil {
  2432. return m.SetWxid(*value)
  2433. }
  2434. return m
  2435. }
  2436. // set field if value's pointer is not nil.
  2437. func (m *MessageCreate) SetNotNilWxid(value *string) *MessageCreate {
  2438. if value != nil {
  2439. return m.SetWxid(*value)
  2440. }
  2441. return m
  2442. }
  2443. // set field if value's pointer is not nil.
  2444. func (m *MessageUpdate) SetNotNilContent(value *string) *MessageUpdate {
  2445. if value != nil {
  2446. return m.SetContent(*value)
  2447. }
  2448. return m
  2449. }
  2450. // set field if value's pointer is not nil.
  2451. func (m *MessageUpdateOne) SetNotNilContent(value *string) *MessageUpdateOne {
  2452. if value != nil {
  2453. return m.SetContent(*value)
  2454. }
  2455. return m
  2456. }
  2457. // set field if value's pointer is not nil.
  2458. func (m *MessageCreate) SetNotNilContent(value *string) *MessageCreate {
  2459. if value != nil {
  2460. return m.SetContent(*value)
  2461. }
  2462. return m
  2463. }
  2464. // set field if value's pointer is not nil.
  2465. func (mr *MessageRecordsUpdate) SetNotNilUpdatedAt(value *time.Time) *MessageRecordsUpdate {
  2466. if value != nil {
  2467. return mr.SetUpdatedAt(*value)
  2468. }
  2469. return mr
  2470. }
  2471. // set field if value's pointer is not nil.
  2472. func (mr *MessageRecordsUpdateOne) SetNotNilUpdatedAt(value *time.Time) *MessageRecordsUpdateOne {
  2473. if value != nil {
  2474. return mr.SetUpdatedAt(*value)
  2475. }
  2476. return mr
  2477. }
  2478. // set field if value's pointer is not nil.
  2479. func (mr *MessageRecordsCreate) SetNotNilUpdatedAt(value *time.Time) *MessageRecordsCreate {
  2480. if value != nil {
  2481. return mr.SetUpdatedAt(*value)
  2482. }
  2483. return mr
  2484. }
  2485. // set field if value's pointer is not nil.
  2486. func (mr *MessageRecordsUpdate) SetNotNilStatus(value *uint8) *MessageRecordsUpdate {
  2487. if value != nil {
  2488. return mr.SetStatus(*value)
  2489. }
  2490. return mr
  2491. }
  2492. // set field if value's pointer is not nil.
  2493. func (mr *MessageRecordsUpdateOne) SetNotNilStatus(value *uint8) *MessageRecordsUpdateOne {
  2494. if value != nil {
  2495. return mr.SetStatus(*value)
  2496. }
  2497. return mr
  2498. }
  2499. // set field if value's pointer is not nil.
  2500. func (mr *MessageRecordsCreate) SetNotNilStatus(value *uint8) *MessageRecordsCreate {
  2501. if value != nil {
  2502. return mr.SetStatus(*value)
  2503. }
  2504. return mr
  2505. }
  2506. // set field if value's pointer is not nil.
  2507. func (mr *MessageRecordsUpdate) SetNotNilBotWxid(value *string) *MessageRecordsUpdate {
  2508. if value != nil {
  2509. return mr.SetBotWxid(*value)
  2510. }
  2511. return mr
  2512. }
  2513. // set field if value's pointer is not nil.
  2514. func (mr *MessageRecordsUpdateOne) SetNotNilBotWxid(value *string) *MessageRecordsUpdateOne {
  2515. if value != nil {
  2516. return mr.SetBotWxid(*value)
  2517. }
  2518. return mr
  2519. }
  2520. // set field if value's pointer is not nil.
  2521. func (mr *MessageRecordsCreate) SetNotNilBotWxid(value *string) *MessageRecordsCreate {
  2522. if value != nil {
  2523. return mr.SetBotWxid(*value)
  2524. }
  2525. return mr
  2526. }
  2527. // set field if value's pointer is not nil.
  2528. func (mr *MessageRecordsUpdate) SetNotNilContactID(value *uint64) *MessageRecordsUpdate {
  2529. if value != nil {
  2530. return mr.SetContactID(*value)
  2531. }
  2532. return mr
  2533. }
  2534. // set field if value's pointer is not nil.
  2535. func (mr *MessageRecordsUpdateOne) SetNotNilContactID(value *uint64) *MessageRecordsUpdateOne {
  2536. if value != nil {
  2537. return mr.SetContactID(*value)
  2538. }
  2539. return mr
  2540. }
  2541. // set field if value's pointer is not nil.
  2542. func (mr *MessageRecordsCreate) SetNotNilContactID(value *uint64) *MessageRecordsCreate {
  2543. if value != nil {
  2544. return mr.SetContactID(*value)
  2545. }
  2546. return mr
  2547. }
  2548. // set field if value's pointer is not nil.
  2549. func (mr *MessageRecordsUpdate) SetNotNilContactType(value *int) *MessageRecordsUpdate {
  2550. if value != nil {
  2551. return mr.SetContactType(*value)
  2552. }
  2553. return mr
  2554. }
  2555. // set field if value's pointer is not nil.
  2556. func (mr *MessageRecordsUpdateOne) SetNotNilContactType(value *int) *MessageRecordsUpdateOne {
  2557. if value != nil {
  2558. return mr.SetContactType(*value)
  2559. }
  2560. return mr
  2561. }
  2562. // set field if value's pointer is not nil.
  2563. func (mr *MessageRecordsCreate) SetNotNilContactType(value *int) *MessageRecordsCreate {
  2564. if value != nil {
  2565. return mr.SetContactType(*value)
  2566. }
  2567. return mr
  2568. }
  2569. // set field if value's pointer is not nil.
  2570. func (mr *MessageRecordsUpdate) SetNotNilContactWxid(value *string) *MessageRecordsUpdate {
  2571. if value != nil {
  2572. return mr.SetContactWxid(*value)
  2573. }
  2574. return mr
  2575. }
  2576. // set field if value's pointer is not nil.
  2577. func (mr *MessageRecordsUpdateOne) SetNotNilContactWxid(value *string) *MessageRecordsUpdateOne {
  2578. if value != nil {
  2579. return mr.SetContactWxid(*value)
  2580. }
  2581. return mr
  2582. }
  2583. // set field if value's pointer is not nil.
  2584. func (mr *MessageRecordsCreate) SetNotNilContactWxid(value *string) *MessageRecordsCreate {
  2585. if value != nil {
  2586. return mr.SetContactWxid(*value)
  2587. }
  2588. return mr
  2589. }
  2590. // set field if value's pointer is not nil.
  2591. func (mr *MessageRecordsUpdate) SetNotNilContentType(value *int) *MessageRecordsUpdate {
  2592. if value != nil {
  2593. return mr.SetContentType(*value)
  2594. }
  2595. return mr
  2596. }
  2597. // set field if value's pointer is not nil.
  2598. func (mr *MessageRecordsUpdateOne) SetNotNilContentType(value *int) *MessageRecordsUpdateOne {
  2599. if value != nil {
  2600. return mr.SetContentType(*value)
  2601. }
  2602. return mr
  2603. }
  2604. // set field if value's pointer is not nil.
  2605. func (mr *MessageRecordsCreate) SetNotNilContentType(value *int) *MessageRecordsCreate {
  2606. if value != nil {
  2607. return mr.SetContentType(*value)
  2608. }
  2609. return mr
  2610. }
  2611. // set field if value's pointer is not nil.
  2612. func (mr *MessageRecordsUpdate) SetNotNilContent(value *string) *MessageRecordsUpdate {
  2613. if value != nil {
  2614. return mr.SetContent(*value)
  2615. }
  2616. return mr
  2617. }
  2618. // set field if value's pointer is not nil.
  2619. func (mr *MessageRecordsUpdateOne) SetNotNilContent(value *string) *MessageRecordsUpdateOne {
  2620. if value != nil {
  2621. return mr.SetContent(*value)
  2622. }
  2623. return mr
  2624. }
  2625. // set field if value's pointer is not nil.
  2626. func (mr *MessageRecordsCreate) SetNotNilContent(value *string) *MessageRecordsCreate {
  2627. if value != nil {
  2628. return mr.SetContent(*value)
  2629. }
  2630. return mr
  2631. }
  2632. // set field if value's pointer is not nil.
  2633. func (mr *MessageRecordsUpdate) SetNotNilMeta(value *custom_types.Meta) *MessageRecordsUpdate {
  2634. if value != nil {
  2635. return mr.SetMeta(*value)
  2636. }
  2637. return mr
  2638. }
  2639. // set field if value's pointer is not nil.
  2640. func (mr *MessageRecordsUpdateOne) SetNotNilMeta(value *custom_types.Meta) *MessageRecordsUpdateOne {
  2641. if value != nil {
  2642. return mr.SetMeta(*value)
  2643. }
  2644. return mr
  2645. }
  2646. // set field if value's pointer is not nil.
  2647. func (mr *MessageRecordsCreate) SetNotNilMeta(value *custom_types.Meta) *MessageRecordsCreate {
  2648. if value != nil {
  2649. return mr.SetMeta(*value)
  2650. }
  2651. return mr
  2652. }
  2653. // set field if value's pointer is not nil.
  2654. func (mr *MessageRecordsUpdate) SetNotNilErrorDetail(value *string) *MessageRecordsUpdate {
  2655. if value != nil {
  2656. return mr.SetErrorDetail(*value)
  2657. }
  2658. return mr
  2659. }
  2660. // set field if value's pointer is not nil.
  2661. func (mr *MessageRecordsUpdateOne) SetNotNilErrorDetail(value *string) *MessageRecordsUpdateOne {
  2662. if value != nil {
  2663. return mr.SetErrorDetail(*value)
  2664. }
  2665. return mr
  2666. }
  2667. // set field if value's pointer is not nil.
  2668. func (mr *MessageRecordsCreate) SetNotNilErrorDetail(value *string) *MessageRecordsCreate {
  2669. if value != nil {
  2670. return mr.SetErrorDetail(*value)
  2671. }
  2672. return mr
  2673. }
  2674. // set field if value's pointer is not nil.
  2675. func (mr *MessageRecordsUpdate) SetNotNilSendTime(value *time.Time) *MessageRecordsUpdate {
  2676. if value != nil {
  2677. return mr.SetSendTime(*value)
  2678. }
  2679. return mr
  2680. }
  2681. // set field if value's pointer is not nil.
  2682. func (mr *MessageRecordsUpdateOne) SetNotNilSendTime(value *time.Time) *MessageRecordsUpdateOne {
  2683. if value != nil {
  2684. return mr.SetSendTime(*value)
  2685. }
  2686. return mr
  2687. }
  2688. // set field if value's pointer is not nil.
  2689. func (mr *MessageRecordsCreate) SetNotNilSendTime(value *time.Time) *MessageRecordsCreate {
  2690. if value != nil {
  2691. return mr.SetSendTime(*value)
  2692. }
  2693. return mr
  2694. }
  2695. // set field if value's pointer is not nil.
  2696. func (mr *MessageRecordsUpdate) SetNotNilSourceType(value *int) *MessageRecordsUpdate {
  2697. if value != nil {
  2698. return mr.SetSourceType(*value)
  2699. }
  2700. return mr
  2701. }
  2702. // set field if value's pointer is not nil.
  2703. func (mr *MessageRecordsUpdateOne) SetNotNilSourceType(value *int) *MessageRecordsUpdateOne {
  2704. if value != nil {
  2705. return mr.SetSourceType(*value)
  2706. }
  2707. return mr
  2708. }
  2709. // set field if value's pointer is not nil.
  2710. func (mr *MessageRecordsCreate) SetNotNilSourceType(value *int) *MessageRecordsCreate {
  2711. if value != nil {
  2712. return mr.SetSourceType(*value)
  2713. }
  2714. return mr
  2715. }
  2716. // set field if value's pointer is not nil.
  2717. func (mr *MessageRecordsUpdate) SetNotNilSourceID(value *uint64) *MessageRecordsUpdate {
  2718. if value != nil {
  2719. return mr.SetSourceID(*value)
  2720. }
  2721. return mr
  2722. }
  2723. // set field if value's pointer is not nil.
  2724. func (mr *MessageRecordsUpdateOne) SetNotNilSourceID(value *uint64) *MessageRecordsUpdateOne {
  2725. if value != nil {
  2726. return mr.SetSourceID(*value)
  2727. }
  2728. return mr
  2729. }
  2730. // set field if value's pointer is not nil.
  2731. func (mr *MessageRecordsCreate) SetNotNilSourceID(value *uint64) *MessageRecordsCreate {
  2732. if value != nil {
  2733. return mr.SetSourceID(*value)
  2734. }
  2735. return mr
  2736. }
  2737. // set field if value's pointer is not nil.
  2738. func (mr *MessageRecordsUpdate) SetNotNilSubSourceID(value *uint64) *MessageRecordsUpdate {
  2739. if value != nil {
  2740. return mr.SetSubSourceID(*value)
  2741. }
  2742. return mr
  2743. }
  2744. // set field if value's pointer is not nil.
  2745. func (mr *MessageRecordsUpdateOne) SetNotNilSubSourceID(value *uint64) *MessageRecordsUpdateOne {
  2746. if value != nil {
  2747. return mr.SetSubSourceID(*value)
  2748. }
  2749. return mr
  2750. }
  2751. // set field if value's pointer is not nil.
  2752. func (mr *MessageRecordsCreate) SetNotNilSubSourceID(value *uint64) *MessageRecordsCreate {
  2753. if value != nil {
  2754. return mr.SetSubSourceID(*value)
  2755. }
  2756. return mr
  2757. }
  2758. // set field if value's pointer is not nil.
  2759. func (mr *MessageRecordsUpdate) SetNotNilOrganizationID(value *uint64) *MessageRecordsUpdate {
  2760. if value != nil {
  2761. return mr.SetOrganizationID(*value)
  2762. }
  2763. return mr
  2764. }
  2765. // set field if value's pointer is not nil.
  2766. func (mr *MessageRecordsUpdateOne) SetNotNilOrganizationID(value *uint64) *MessageRecordsUpdateOne {
  2767. if value != nil {
  2768. return mr.SetOrganizationID(*value)
  2769. }
  2770. return mr
  2771. }
  2772. // set field if value's pointer is not nil.
  2773. func (mr *MessageRecordsCreate) SetNotNilOrganizationID(value *uint64) *MessageRecordsCreate {
  2774. if value != nil {
  2775. return mr.SetOrganizationID(*value)
  2776. }
  2777. return mr
  2778. }
  2779. // set field if value's pointer is not nil.
  2780. func (m *MsgUpdate) SetNotNilUpdatedAt(value *time.Time) *MsgUpdate {
  2781. if value != nil {
  2782. return m.SetUpdatedAt(*value)
  2783. }
  2784. return m
  2785. }
  2786. // set field if value's pointer is not nil.
  2787. func (m *MsgUpdateOne) SetNotNilUpdatedAt(value *time.Time) *MsgUpdateOne {
  2788. if value != nil {
  2789. return m.SetUpdatedAt(*value)
  2790. }
  2791. return m
  2792. }
  2793. // set field if value's pointer is not nil.
  2794. func (m *MsgCreate) SetNotNilUpdatedAt(value *time.Time) *MsgCreate {
  2795. if value != nil {
  2796. return m.SetUpdatedAt(*value)
  2797. }
  2798. return m
  2799. }
  2800. // set field if value's pointer is not nil.
  2801. func (m *MsgUpdate) SetNotNilDeletedAt(value *time.Time) *MsgUpdate {
  2802. if value != nil {
  2803. return m.SetDeletedAt(*value)
  2804. }
  2805. return m
  2806. }
  2807. // set field if value's pointer is not nil.
  2808. func (m *MsgUpdateOne) SetNotNilDeletedAt(value *time.Time) *MsgUpdateOne {
  2809. if value != nil {
  2810. return m.SetDeletedAt(*value)
  2811. }
  2812. return m
  2813. }
  2814. // set field if value's pointer is not nil.
  2815. func (m *MsgCreate) SetNotNilDeletedAt(value *time.Time) *MsgCreate {
  2816. if value != nil {
  2817. return m.SetDeletedAt(*value)
  2818. }
  2819. return m
  2820. }
  2821. // set field if value's pointer is not nil.
  2822. func (m *MsgUpdate) SetNotNilStatus(value *uint8) *MsgUpdate {
  2823. if value != nil {
  2824. return m.SetStatus(*value)
  2825. }
  2826. return m
  2827. }
  2828. // set field if value's pointer is not nil.
  2829. func (m *MsgUpdateOne) SetNotNilStatus(value *uint8) *MsgUpdateOne {
  2830. if value != nil {
  2831. return m.SetStatus(*value)
  2832. }
  2833. return m
  2834. }
  2835. // set field if value's pointer is not nil.
  2836. func (m *MsgCreate) SetNotNilStatus(value *uint8) *MsgCreate {
  2837. if value != nil {
  2838. return m.SetStatus(*value)
  2839. }
  2840. return m
  2841. }
  2842. // set field if value's pointer is not nil.
  2843. func (m *MsgUpdate) SetNotNilFromwxid(value *string) *MsgUpdate {
  2844. if value != nil {
  2845. return m.SetFromwxid(*value)
  2846. }
  2847. return m
  2848. }
  2849. // set field if value's pointer is not nil.
  2850. func (m *MsgUpdateOne) SetNotNilFromwxid(value *string) *MsgUpdateOne {
  2851. if value != nil {
  2852. return m.SetFromwxid(*value)
  2853. }
  2854. return m
  2855. }
  2856. // set field if value's pointer is not nil.
  2857. func (m *MsgCreate) SetNotNilFromwxid(value *string) *MsgCreate {
  2858. if value != nil {
  2859. return m.SetFromwxid(*value)
  2860. }
  2861. return m
  2862. }
  2863. // set field if value's pointer is not nil.
  2864. func (m *MsgUpdate) SetNotNilToid(value *string) *MsgUpdate {
  2865. if value != nil {
  2866. return m.SetToid(*value)
  2867. }
  2868. return m
  2869. }
  2870. // set field if value's pointer is not nil.
  2871. func (m *MsgUpdateOne) SetNotNilToid(value *string) *MsgUpdateOne {
  2872. if value != nil {
  2873. return m.SetToid(*value)
  2874. }
  2875. return m
  2876. }
  2877. // set field if value's pointer is not nil.
  2878. func (m *MsgCreate) SetNotNilToid(value *string) *MsgCreate {
  2879. if value != nil {
  2880. return m.SetToid(*value)
  2881. }
  2882. return m
  2883. }
  2884. // set field if value's pointer is not nil.
  2885. func (m *MsgUpdate) SetNotNilMsgtype(value *int32) *MsgUpdate {
  2886. if value != nil {
  2887. return m.SetMsgtype(*value)
  2888. }
  2889. return m
  2890. }
  2891. // set field if value's pointer is not nil.
  2892. func (m *MsgUpdateOne) SetNotNilMsgtype(value *int32) *MsgUpdateOne {
  2893. if value != nil {
  2894. return m.SetMsgtype(*value)
  2895. }
  2896. return m
  2897. }
  2898. // set field if value's pointer is not nil.
  2899. func (m *MsgCreate) SetNotNilMsgtype(value *int32) *MsgCreate {
  2900. if value != nil {
  2901. return m.SetMsgtype(*value)
  2902. }
  2903. return m
  2904. }
  2905. // set field if value's pointer is not nil.
  2906. func (m *MsgUpdate) SetNotNilMsg(value *string) *MsgUpdate {
  2907. if value != nil {
  2908. return m.SetMsg(*value)
  2909. }
  2910. return m
  2911. }
  2912. // set field if value's pointer is not nil.
  2913. func (m *MsgUpdateOne) SetNotNilMsg(value *string) *MsgUpdateOne {
  2914. if value != nil {
  2915. return m.SetMsg(*value)
  2916. }
  2917. return m
  2918. }
  2919. // set field if value's pointer is not nil.
  2920. func (m *MsgCreate) SetNotNilMsg(value *string) *MsgCreate {
  2921. if value != nil {
  2922. return m.SetMsg(*value)
  2923. }
  2924. return m
  2925. }
  2926. // set field if value's pointer is not nil.
  2927. func (m *MsgUpdate) SetNotNilBatchNo(value *string) *MsgUpdate {
  2928. if value != nil {
  2929. return m.SetBatchNo(*value)
  2930. }
  2931. return m
  2932. }
  2933. // set field if value's pointer is not nil.
  2934. func (m *MsgUpdateOne) SetNotNilBatchNo(value *string) *MsgUpdateOne {
  2935. if value != nil {
  2936. return m.SetBatchNo(*value)
  2937. }
  2938. return m
  2939. }
  2940. // set field if value's pointer is not nil.
  2941. func (m *MsgCreate) SetNotNilBatchNo(value *string) *MsgCreate {
  2942. if value != nil {
  2943. return m.SetBatchNo(*value)
  2944. }
  2945. return m
  2946. }
  2947. // set field if value's pointer is not nil.
  2948. func (s *ServerUpdate) SetNotNilUpdatedAt(value *time.Time) *ServerUpdate {
  2949. if value != nil {
  2950. return s.SetUpdatedAt(*value)
  2951. }
  2952. return s
  2953. }
  2954. // set field if value's pointer is not nil.
  2955. func (s *ServerUpdateOne) SetNotNilUpdatedAt(value *time.Time) *ServerUpdateOne {
  2956. if value != nil {
  2957. return s.SetUpdatedAt(*value)
  2958. }
  2959. return s
  2960. }
  2961. // set field if value's pointer is not nil.
  2962. func (s *ServerCreate) SetNotNilUpdatedAt(value *time.Time) *ServerCreate {
  2963. if value != nil {
  2964. return s.SetUpdatedAt(*value)
  2965. }
  2966. return s
  2967. }
  2968. // set field if value's pointer is not nil.
  2969. func (s *ServerUpdate) SetNotNilStatus(value *uint8) *ServerUpdate {
  2970. if value != nil {
  2971. return s.SetStatus(*value)
  2972. }
  2973. return s
  2974. }
  2975. // set field if value's pointer is not nil.
  2976. func (s *ServerUpdateOne) SetNotNilStatus(value *uint8) *ServerUpdateOne {
  2977. if value != nil {
  2978. return s.SetStatus(*value)
  2979. }
  2980. return s
  2981. }
  2982. // set field if value's pointer is not nil.
  2983. func (s *ServerCreate) SetNotNilStatus(value *uint8) *ServerCreate {
  2984. if value != nil {
  2985. return s.SetStatus(*value)
  2986. }
  2987. return s
  2988. }
  2989. // set field if value's pointer is not nil.
  2990. func (s *ServerUpdate) SetNotNilDeletedAt(value *time.Time) *ServerUpdate {
  2991. if value != nil {
  2992. return s.SetDeletedAt(*value)
  2993. }
  2994. return s
  2995. }
  2996. // set field if value's pointer is not nil.
  2997. func (s *ServerUpdateOne) SetNotNilDeletedAt(value *time.Time) *ServerUpdateOne {
  2998. if value != nil {
  2999. return s.SetDeletedAt(*value)
  3000. }
  3001. return s
  3002. }
  3003. // set field if value's pointer is not nil.
  3004. func (s *ServerCreate) SetNotNilDeletedAt(value *time.Time) *ServerCreate {
  3005. if value != nil {
  3006. return s.SetDeletedAt(*value)
  3007. }
  3008. return s
  3009. }
  3010. // set field if value's pointer is not nil.
  3011. func (s *ServerUpdate) SetNotNilName(value *string) *ServerUpdate {
  3012. if value != nil {
  3013. return s.SetName(*value)
  3014. }
  3015. return s
  3016. }
  3017. // set field if value's pointer is not nil.
  3018. func (s *ServerUpdateOne) SetNotNilName(value *string) *ServerUpdateOne {
  3019. if value != nil {
  3020. return s.SetName(*value)
  3021. }
  3022. return s
  3023. }
  3024. // set field if value's pointer is not nil.
  3025. func (s *ServerCreate) SetNotNilName(value *string) *ServerCreate {
  3026. if value != nil {
  3027. return s.SetName(*value)
  3028. }
  3029. return s
  3030. }
  3031. // set field if value's pointer is not nil.
  3032. func (s *ServerUpdate) SetNotNilPublicIP(value *string) *ServerUpdate {
  3033. if value != nil {
  3034. return s.SetPublicIP(*value)
  3035. }
  3036. return s
  3037. }
  3038. // set field if value's pointer is not nil.
  3039. func (s *ServerUpdateOne) SetNotNilPublicIP(value *string) *ServerUpdateOne {
  3040. if value != nil {
  3041. return s.SetPublicIP(*value)
  3042. }
  3043. return s
  3044. }
  3045. // set field if value's pointer is not nil.
  3046. func (s *ServerCreate) SetNotNilPublicIP(value *string) *ServerCreate {
  3047. if value != nil {
  3048. return s.SetPublicIP(*value)
  3049. }
  3050. return s
  3051. }
  3052. // set field if value's pointer is not nil.
  3053. func (s *ServerUpdate) SetNotNilPrivateIP(value *string) *ServerUpdate {
  3054. if value != nil {
  3055. return s.SetPrivateIP(*value)
  3056. }
  3057. return s
  3058. }
  3059. // set field if value's pointer is not nil.
  3060. func (s *ServerUpdateOne) SetNotNilPrivateIP(value *string) *ServerUpdateOne {
  3061. if value != nil {
  3062. return s.SetPrivateIP(*value)
  3063. }
  3064. return s
  3065. }
  3066. // set field if value's pointer is not nil.
  3067. func (s *ServerCreate) SetNotNilPrivateIP(value *string) *ServerCreate {
  3068. if value != nil {
  3069. return s.SetPrivateIP(*value)
  3070. }
  3071. return s
  3072. }
  3073. // set field if value's pointer is not nil.
  3074. func (s *ServerUpdate) SetNotNilAdminPort(value *string) *ServerUpdate {
  3075. if value != nil {
  3076. return s.SetAdminPort(*value)
  3077. }
  3078. return s
  3079. }
  3080. // set field if value's pointer is not nil.
  3081. func (s *ServerUpdateOne) SetNotNilAdminPort(value *string) *ServerUpdateOne {
  3082. if value != nil {
  3083. return s.SetAdminPort(*value)
  3084. }
  3085. return s
  3086. }
  3087. // set field if value's pointer is not nil.
  3088. func (s *ServerCreate) SetNotNilAdminPort(value *string) *ServerCreate {
  3089. if value != nil {
  3090. return s.SetAdminPort(*value)
  3091. }
  3092. return s
  3093. }
  3094. // set field if value's pointer is not nil.
  3095. func (sn *SopNodeUpdate) SetNotNilUpdatedAt(value *time.Time) *SopNodeUpdate {
  3096. if value != nil {
  3097. return sn.SetUpdatedAt(*value)
  3098. }
  3099. return sn
  3100. }
  3101. // set field if value's pointer is not nil.
  3102. func (sn *SopNodeUpdateOne) SetNotNilUpdatedAt(value *time.Time) *SopNodeUpdateOne {
  3103. if value != nil {
  3104. return sn.SetUpdatedAt(*value)
  3105. }
  3106. return sn
  3107. }
  3108. // set field if value's pointer is not nil.
  3109. func (sn *SopNodeCreate) SetNotNilUpdatedAt(value *time.Time) *SopNodeCreate {
  3110. if value != nil {
  3111. return sn.SetUpdatedAt(*value)
  3112. }
  3113. return sn
  3114. }
  3115. // set field if value's pointer is not nil.
  3116. func (sn *SopNodeUpdate) SetNotNilStatus(value *uint8) *SopNodeUpdate {
  3117. if value != nil {
  3118. return sn.SetStatus(*value)
  3119. }
  3120. return sn
  3121. }
  3122. // set field if value's pointer is not nil.
  3123. func (sn *SopNodeUpdateOne) SetNotNilStatus(value *uint8) *SopNodeUpdateOne {
  3124. if value != nil {
  3125. return sn.SetStatus(*value)
  3126. }
  3127. return sn
  3128. }
  3129. // set field if value's pointer is not nil.
  3130. func (sn *SopNodeCreate) SetNotNilStatus(value *uint8) *SopNodeCreate {
  3131. if value != nil {
  3132. return sn.SetStatus(*value)
  3133. }
  3134. return sn
  3135. }
  3136. // set field if value's pointer is not nil.
  3137. func (sn *SopNodeUpdate) SetNotNilDeletedAt(value *time.Time) *SopNodeUpdate {
  3138. if value != nil {
  3139. return sn.SetDeletedAt(*value)
  3140. }
  3141. return sn
  3142. }
  3143. // set field if value's pointer is not nil.
  3144. func (sn *SopNodeUpdateOne) SetNotNilDeletedAt(value *time.Time) *SopNodeUpdateOne {
  3145. if value != nil {
  3146. return sn.SetDeletedAt(*value)
  3147. }
  3148. return sn
  3149. }
  3150. // set field if value's pointer is not nil.
  3151. func (sn *SopNodeCreate) SetNotNilDeletedAt(value *time.Time) *SopNodeCreate {
  3152. if value != nil {
  3153. return sn.SetDeletedAt(*value)
  3154. }
  3155. return sn
  3156. }
  3157. // set field if value's pointer is not nil.
  3158. func (sn *SopNodeUpdate) SetNotNilStageID(value *uint64) *SopNodeUpdate {
  3159. if value != nil {
  3160. return sn.SetStageID(*value)
  3161. }
  3162. return sn
  3163. }
  3164. // set field if value's pointer is not nil.
  3165. func (sn *SopNodeUpdateOne) SetNotNilStageID(value *uint64) *SopNodeUpdateOne {
  3166. if value != nil {
  3167. return sn.SetStageID(*value)
  3168. }
  3169. return sn
  3170. }
  3171. // set field if value's pointer is not nil.
  3172. func (sn *SopNodeCreate) SetNotNilStageID(value *uint64) *SopNodeCreate {
  3173. if value != nil {
  3174. return sn.SetStageID(*value)
  3175. }
  3176. return sn
  3177. }
  3178. // set field if value's pointer is not nil.
  3179. func (sn *SopNodeUpdate) SetNotNilParentID(value *uint64) *SopNodeUpdate {
  3180. if value != nil {
  3181. return sn.SetParentID(*value)
  3182. }
  3183. return sn
  3184. }
  3185. // set field if value's pointer is not nil.
  3186. func (sn *SopNodeUpdateOne) SetNotNilParentID(value *uint64) *SopNodeUpdateOne {
  3187. if value != nil {
  3188. return sn.SetParentID(*value)
  3189. }
  3190. return sn
  3191. }
  3192. // set field if value's pointer is not nil.
  3193. func (sn *SopNodeCreate) SetNotNilParentID(value *uint64) *SopNodeCreate {
  3194. if value != nil {
  3195. return sn.SetParentID(*value)
  3196. }
  3197. return sn
  3198. }
  3199. // set field if value's pointer is not nil.
  3200. func (sn *SopNodeUpdate) SetNotNilName(value *string) *SopNodeUpdate {
  3201. if value != nil {
  3202. return sn.SetName(*value)
  3203. }
  3204. return sn
  3205. }
  3206. // set field if value's pointer is not nil.
  3207. func (sn *SopNodeUpdateOne) SetNotNilName(value *string) *SopNodeUpdateOne {
  3208. if value != nil {
  3209. return sn.SetName(*value)
  3210. }
  3211. return sn
  3212. }
  3213. // set field if value's pointer is not nil.
  3214. func (sn *SopNodeCreate) SetNotNilName(value *string) *SopNodeCreate {
  3215. if value != nil {
  3216. return sn.SetName(*value)
  3217. }
  3218. return sn
  3219. }
  3220. // set field if value's pointer is not nil.
  3221. func (sn *SopNodeUpdate) SetNotNilConditionType(value *int) *SopNodeUpdate {
  3222. if value != nil {
  3223. return sn.SetConditionType(*value)
  3224. }
  3225. return sn
  3226. }
  3227. // set field if value's pointer is not nil.
  3228. func (sn *SopNodeUpdateOne) SetNotNilConditionType(value *int) *SopNodeUpdateOne {
  3229. if value != nil {
  3230. return sn.SetConditionType(*value)
  3231. }
  3232. return sn
  3233. }
  3234. // set field if value's pointer is not nil.
  3235. func (sn *SopNodeCreate) SetNotNilConditionType(value *int) *SopNodeCreate {
  3236. if value != nil {
  3237. return sn.SetConditionType(*value)
  3238. }
  3239. return sn
  3240. }
  3241. // set field if value's pointer is not nil.
  3242. func (sn *SopNodeUpdate) SetNotNilConditionList(value []string) *SopNodeUpdate {
  3243. if value != nil {
  3244. return sn.SetConditionList(value)
  3245. }
  3246. return sn
  3247. }
  3248. // set field if value's pointer is not nil.
  3249. func (sn *SopNodeUpdateOne) SetNotNilConditionList(value []string) *SopNodeUpdateOne {
  3250. if value != nil {
  3251. return sn.SetConditionList(value)
  3252. }
  3253. return sn
  3254. }
  3255. // set field if value's pointer is not nil.
  3256. func (sn *SopNodeCreate) SetNotNilConditionList(value []string) *SopNodeCreate {
  3257. if value != nil {
  3258. return sn.SetConditionList(value)
  3259. }
  3260. return sn
  3261. }
  3262. // set field if value's pointer is not nil.
  3263. func (sn *SopNodeUpdate) SetNotNilNoReplyCondition(value *uint64) *SopNodeUpdate {
  3264. if value != nil {
  3265. return sn.SetNoReplyCondition(*value)
  3266. }
  3267. return sn
  3268. }
  3269. // set field if value's pointer is not nil.
  3270. func (sn *SopNodeUpdateOne) SetNotNilNoReplyCondition(value *uint64) *SopNodeUpdateOne {
  3271. if value != nil {
  3272. return sn.SetNoReplyCondition(*value)
  3273. }
  3274. return sn
  3275. }
  3276. // set field if value's pointer is not nil.
  3277. func (sn *SopNodeCreate) SetNotNilNoReplyCondition(value *uint64) *SopNodeCreate {
  3278. if value != nil {
  3279. return sn.SetNoReplyCondition(*value)
  3280. }
  3281. return sn
  3282. }
  3283. // set field if value's pointer is not nil.
  3284. func (sn *SopNodeUpdate) SetNotNilNoReplyUnit(value *string) *SopNodeUpdate {
  3285. if value != nil {
  3286. return sn.SetNoReplyUnit(*value)
  3287. }
  3288. return sn
  3289. }
  3290. // set field if value's pointer is not nil.
  3291. func (sn *SopNodeUpdateOne) SetNotNilNoReplyUnit(value *string) *SopNodeUpdateOne {
  3292. if value != nil {
  3293. return sn.SetNoReplyUnit(*value)
  3294. }
  3295. return sn
  3296. }
  3297. // set field if value's pointer is not nil.
  3298. func (sn *SopNodeCreate) SetNotNilNoReplyUnit(value *string) *SopNodeCreate {
  3299. if value != nil {
  3300. return sn.SetNoReplyUnit(*value)
  3301. }
  3302. return sn
  3303. }
  3304. // set field if value's pointer is not nil.
  3305. func (sn *SopNodeUpdate) SetNotNilActionMessage(value []custom_types.Action) *SopNodeUpdate {
  3306. if value != nil {
  3307. return sn.SetActionMessage(value)
  3308. }
  3309. return sn
  3310. }
  3311. // set field if value's pointer is not nil.
  3312. func (sn *SopNodeUpdateOne) SetNotNilActionMessage(value []custom_types.Action) *SopNodeUpdateOne {
  3313. if value != nil {
  3314. return sn.SetActionMessage(value)
  3315. }
  3316. return sn
  3317. }
  3318. // set field if value's pointer is not nil.
  3319. func (sn *SopNodeCreate) SetNotNilActionMessage(value []custom_types.Action) *SopNodeCreate {
  3320. if value != nil {
  3321. return sn.SetActionMessage(value)
  3322. }
  3323. return sn
  3324. }
  3325. // set field if value's pointer is not nil.
  3326. func (sn *SopNodeUpdate) SetNotNilActionLabelAdd(value []uint64) *SopNodeUpdate {
  3327. if value != nil {
  3328. return sn.SetActionLabelAdd(value)
  3329. }
  3330. return sn
  3331. }
  3332. // set field if value's pointer is not nil.
  3333. func (sn *SopNodeUpdateOne) SetNotNilActionLabelAdd(value []uint64) *SopNodeUpdateOne {
  3334. if value != nil {
  3335. return sn.SetActionLabelAdd(value)
  3336. }
  3337. return sn
  3338. }
  3339. // set field if value's pointer is not nil.
  3340. func (sn *SopNodeCreate) SetNotNilActionLabelAdd(value []uint64) *SopNodeCreate {
  3341. if value != nil {
  3342. return sn.SetActionLabelAdd(value)
  3343. }
  3344. return sn
  3345. }
  3346. // set field if value's pointer is not nil.
  3347. func (sn *SopNodeUpdate) SetNotNilActionLabelDel(value []uint64) *SopNodeUpdate {
  3348. if value != nil {
  3349. return sn.SetActionLabelDel(value)
  3350. }
  3351. return sn
  3352. }
  3353. // set field if value's pointer is not nil.
  3354. func (sn *SopNodeUpdateOne) SetNotNilActionLabelDel(value []uint64) *SopNodeUpdateOne {
  3355. if value != nil {
  3356. return sn.SetActionLabelDel(value)
  3357. }
  3358. return sn
  3359. }
  3360. // set field if value's pointer is not nil.
  3361. func (sn *SopNodeCreate) SetNotNilActionLabelDel(value []uint64) *SopNodeCreate {
  3362. if value != nil {
  3363. return sn.SetActionLabelDel(value)
  3364. }
  3365. return sn
  3366. }
  3367. // set field if value's pointer is not nil.
  3368. func (sn *SopNodeUpdate) SetNotNilActionForward(value **custom_types.ActionForward) *SopNodeUpdate {
  3369. if value != nil {
  3370. return sn.SetActionForward(*value)
  3371. }
  3372. return sn
  3373. }
  3374. // set field if value's pointer is not nil.
  3375. func (sn *SopNodeUpdateOne) SetNotNilActionForward(value **custom_types.ActionForward) *SopNodeUpdateOne {
  3376. if value != nil {
  3377. return sn.SetActionForward(*value)
  3378. }
  3379. return sn
  3380. }
  3381. // set field if value's pointer is not nil.
  3382. func (sn *SopNodeCreate) SetNotNilActionForward(value **custom_types.ActionForward) *SopNodeCreate {
  3383. if value != nil {
  3384. return sn.SetActionForward(*value)
  3385. }
  3386. return sn
  3387. }
  3388. // set field if value's pointer is not nil.
  3389. func (ss *SopStageUpdate) SetNotNilUpdatedAt(value *time.Time) *SopStageUpdate {
  3390. if value != nil {
  3391. return ss.SetUpdatedAt(*value)
  3392. }
  3393. return ss
  3394. }
  3395. // set field if value's pointer is not nil.
  3396. func (ss *SopStageUpdateOne) SetNotNilUpdatedAt(value *time.Time) *SopStageUpdateOne {
  3397. if value != nil {
  3398. return ss.SetUpdatedAt(*value)
  3399. }
  3400. return ss
  3401. }
  3402. // set field if value's pointer is not nil.
  3403. func (ss *SopStageCreate) SetNotNilUpdatedAt(value *time.Time) *SopStageCreate {
  3404. if value != nil {
  3405. return ss.SetUpdatedAt(*value)
  3406. }
  3407. return ss
  3408. }
  3409. // set field if value's pointer is not nil.
  3410. func (ss *SopStageUpdate) SetNotNilStatus(value *uint8) *SopStageUpdate {
  3411. if value != nil {
  3412. return ss.SetStatus(*value)
  3413. }
  3414. return ss
  3415. }
  3416. // set field if value's pointer is not nil.
  3417. func (ss *SopStageUpdateOne) SetNotNilStatus(value *uint8) *SopStageUpdateOne {
  3418. if value != nil {
  3419. return ss.SetStatus(*value)
  3420. }
  3421. return ss
  3422. }
  3423. // set field if value's pointer is not nil.
  3424. func (ss *SopStageCreate) SetNotNilStatus(value *uint8) *SopStageCreate {
  3425. if value != nil {
  3426. return ss.SetStatus(*value)
  3427. }
  3428. return ss
  3429. }
  3430. // set field if value's pointer is not nil.
  3431. func (ss *SopStageUpdate) SetNotNilDeletedAt(value *time.Time) *SopStageUpdate {
  3432. if value != nil {
  3433. return ss.SetDeletedAt(*value)
  3434. }
  3435. return ss
  3436. }
  3437. // set field if value's pointer is not nil.
  3438. func (ss *SopStageUpdateOne) SetNotNilDeletedAt(value *time.Time) *SopStageUpdateOne {
  3439. if value != nil {
  3440. return ss.SetDeletedAt(*value)
  3441. }
  3442. return ss
  3443. }
  3444. // set field if value's pointer is not nil.
  3445. func (ss *SopStageCreate) SetNotNilDeletedAt(value *time.Time) *SopStageCreate {
  3446. if value != nil {
  3447. return ss.SetDeletedAt(*value)
  3448. }
  3449. return ss
  3450. }
  3451. // set field if value's pointer is not nil.
  3452. func (ss *SopStageUpdate) SetNotNilTaskID(value *uint64) *SopStageUpdate {
  3453. if value != nil {
  3454. return ss.SetTaskID(*value)
  3455. }
  3456. return ss
  3457. }
  3458. // set field if value's pointer is not nil.
  3459. func (ss *SopStageUpdateOne) SetNotNilTaskID(value *uint64) *SopStageUpdateOne {
  3460. if value != nil {
  3461. return ss.SetTaskID(*value)
  3462. }
  3463. return ss
  3464. }
  3465. // set field if value's pointer is not nil.
  3466. func (ss *SopStageCreate) SetNotNilTaskID(value *uint64) *SopStageCreate {
  3467. if value != nil {
  3468. return ss.SetTaskID(*value)
  3469. }
  3470. return ss
  3471. }
  3472. // set field if value's pointer is not nil.
  3473. func (ss *SopStageUpdate) SetNotNilName(value *string) *SopStageUpdate {
  3474. if value != nil {
  3475. return ss.SetName(*value)
  3476. }
  3477. return ss
  3478. }
  3479. // set field if value's pointer is not nil.
  3480. func (ss *SopStageUpdateOne) SetNotNilName(value *string) *SopStageUpdateOne {
  3481. if value != nil {
  3482. return ss.SetName(*value)
  3483. }
  3484. return ss
  3485. }
  3486. // set field if value's pointer is not nil.
  3487. func (ss *SopStageCreate) SetNotNilName(value *string) *SopStageCreate {
  3488. if value != nil {
  3489. return ss.SetName(*value)
  3490. }
  3491. return ss
  3492. }
  3493. // set field if value's pointer is not nil.
  3494. func (ss *SopStageUpdate) SetNotNilConditionType(value *int) *SopStageUpdate {
  3495. if value != nil {
  3496. return ss.SetConditionType(*value)
  3497. }
  3498. return ss
  3499. }
  3500. // set field if value's pointer is not nil.
  3501. func (ss *SopStageUpdateOne) SetNotNilConditionType(value *int) *SopStageUpdateOne {
  3502. if value != nil {
  3503. return ss.SetConditionType(*value)
  3504. }
  3505. return ss
  3506. }
  3507. // set field if value's pointer is not nil.
  3508. func (ss *SopStageCreate) SetNotNilConditionType(value *int) *SopStageCreate {
  3509. if value != nil {
  3510. return ss.SetConditionType(*value)
  3511. }
  3512. return ss
  3513. }
  3514. // set field if value's pointer is not nil.
  3515. func (ss *SopStageUpdate) SetNotNilConditionOperator(value *int) *SopStageUpdate {
  3516. if value != nil {
  3517. return ss.SetConditionOperator(*value)
  3518. }
  3519. return ss
  3520. }
  3521. // set field if value's pointer is not nil.
  3522. func (ss *SopStageUpdateOne) SetNotNilConditionOperator(value *int) *SopStageUpdateOne {
  3523. if value != nil {
  3524. return ss.SetConditionOperator(*value)
  3525. }
  3526. return ss
  3527. }
  3528. // set field if value's pointer is not nil.
  3529. func (ss *SopStageCreate) SetNotNilConditionOperator(value *int) *SopStageCreate {
  3530. if value != nil {
  3531. return ss.SetConditionOperator(*value)
  3532. }
  3533. return ss
  3534. }
  3535. // set field if value's pointer is not nil.
  3536. func (ss *SopStageUpdate) SetNotNilConditionList(value []custom_types.Condition) *SopStageUpdate {
  3537. if value != nil {
  3538. return ss.SetConditionList(value)
  3539. }
  3540. return ss
  3541. }
  3542. // set field if value's pointer is not nil.
  3543. func (ss *SopStageUpdateOne) SetNotNilConditionList(value []custom_types.Condition) *SopStageUpdateOne {
  3544. if value != nil {
  3545. return ss.SetConditionList(value)
  3546. }
  3547. return ss
  3548. }
  3549. // set field if value's pointer is not nil.
  3550. func (ss *SopStageCreate) SetNotNilConditionList(value []custom_types.Condition) *SopStageCreate {
  3551. if value != nil {
  3552. return ss.SetConditionList(value)
  3553. }
  3554. return ss
  3555. }
  3556. // set field if value's pointer is not nil.
  3557. func (ss *SopStageUpdate) SetNotNilActionMessage(value []custom_types.Action) *SopStageUpdate {
  3558. if value != nil {
  3559. return ss.SetActionMessage(value)
  3560. }
  3561. return ss
  3562. }
  3563. // set field if value's pointer is not nil.
  3564. func (ss *SopStageUpdateOne) SetNotNilActionMessage(value []custom_types.Action) *SopStageUpdateOne {
  3565. if value != nil {
  3566. return ss.SetActionMessage(value)
  3567. }
  3568. return ss
  3569. }
  3570. // set field if value's pointer is not nil.
  3571. func (ss *SopStageCreate) SetNotNilActionMessage(value []custom_types.Action) *SopStageCreate {
  3572. if value != nil {
  3573. return ss.SetActionMessage(value)
  3574. }
  3575. return ss
  3576. }
  3577. // set field if value's pointer is not nil.
  3578. func (ss *SopStageUpdate) SetNotNilActionLabelAdd(value []uint64) *SopStageUpdate {
  3579. if value != nil {
  3580. return ss.SetActionLabelAdd(value)
  3581. }
  3582. return ss
  3583. }
  3584. // set field if value's pointer is not nil.
  3585. func (ss *SopStageUpdateOne) SetNotNilActionLabelAdd(value []uint64) *SopStageUpdateOne {
  3586. if value != nil {
  3587. return ss.SetActionLabelAdd(value)
  3588. }
  3589. return ss
  3590. }
  3591. // set field if value's pointer is not nil.
  3592. func (ss *SopStageCreate) SetNotNilActionLabelAdd(value []uint64) *SopStageCreate {
  3593. if value != nil {
  3594. return ss.SetActionLabelAdd(value)
  3595. }
  3596. return ss
  3597. }
  3598. // set field if value's pointer is not nil.
  3599. func (ss *SopStageUpdate) SetNotNilActionLabelDel(value []uint64) *SopStageUpdate {
  3600. if value != nil {
  3601. return ss.SetActionLabelDel(value)
  3602. }
  3603. return ss
  3604. }
  3605. // set field if value's pointer is not nil.
  3606. func (ss *SopStageUpdateOne) SetNotNilActionLabelDel(value []uint64) *SopStageUpdateOne {
  3607. if value != nil {
  3608. return ss.SetActionLabelDel(value)
  3609. }
  3610. return ss
  3611. }
  3612. // set field if value's pointer is not nil.
  3613. func (ss *SopStageCreate) SetNotNilActionLabelDel(value []uint64) *SopStageCreate {
  3614. if value != nil {
  3615. return ss.SetActionLabelDel(value)
  3616. }
  3617. return ss
  3618. }
  3619. // set field if value's pointer is not nil.
  3620. func (ss *SopStageUpdate) SetNotNilActionForward(value **custom_types.ActionForward) *SopStageUpdate {
  3621. if value != nil {
  3622. return ss.SetActionForward(*value)
  3623. }
  3624. return ss
  3625. }
  3626. // set field if value's pointer is not nil.
  3627. func (ss *SopStageUpdateOne) SetNotNilActionForward(value **custom_types.ActionForward) *SopStageUpdateOne {
  3628. if value != nil {
  3629. return ss.SetActionForward(*value)
  3630. }
  3631. return ss
  3632. }
  3633. // set field if value's pointer is not nil.
  3634. func (ss *SopStageCreate) SetNotNilActionForward(value **custom_types.ActionForward) *SopStageCreate {
  3635. if value != nil {
  3636. return ss.SetActionForward(*value)
  3637. }
  3638. return ss
  3639. }
  3640. // set field if value's pointer is not nil.
  3641. func (ss *SopStageUpdate) SetNotNilIndexSort(value *int) *SopStageUpdate {
  3642. if value != nil {
  3643. return ss.SetIndexSort(*value)
  3644. }
  3645. return ss
  3646. }
  3647. // set field if value's pointer is not nil.
  3648. func (ss *SopStageUpdateOne) SetNotNilIndexSort(value *int) *SopStageUpdateOne {
  3649. if value != nil {
  3650. return ss.SetIndexSort(*value)
  3651. }
  3652. return ss
  3653. }
  3654. // set field if value's pointer is not nil.
  3655. func (ss *SopStageCreate) SetNotNilIndexSort(value *int) *SopStageCreate {
  3656. if value != nil {
  3657. return ss.SetIndexSort(*value)
  3658. }
  3659. return ss
  3660. }
  3661. // set field if value's pointer is not nil.
  3662. func (st *SopTaskUpdate) SetNotNilUpdatedAt(value *time.Time) *SopTaskUpdate {
  3663. if value != nil {
  3664. return st.SetUpdatedAt(*value)
  3665. }
  3666. return st
  3667. }
  3668. // set field if value's pointer is not nil.
  3669. func (st *SopTaskUpdateOne) SetNotNilUpdatedAt(value *time.Time) *SopTaskUpdateOne {
  3670. if value != nil {
  3671. return st.SetUpdatedAt(*value)
  3672. }
  3673. return st
  3674. }
  3675. // set field if value's pointer is not nil.
  3676. func (st *SopTaskCreate) SetNotNilUpdatedAt(value *time.Time) *SopTaskCreate {
  3677. if value != nil {
  3678. return st.SetUpdatedAt(*value)
  3679. }
  3680. return st
  3681. }
  3682. // set field if value's pointer is not nil.
  3683. func (st *SopTaskUpdate) SetNotNilStatus(value *uint8) *SopTaskUpdate {
  3684. if value != nil {
  3685. return st.SetStatus(*value)
  3686. }
  3687. return st
  3688. }
  3689. // set field if value's pointer is not nil.
  3690. func (st *SopTaskUpdateOne) SetNotNilStatus(value *uint8) *SopTaskUpdateOne {
  3691. if value != nil {
  3692. return st.SetStatus(*value)
  3693. }
  3694. return st
  3695. }
  3696. // set field if value's pointer is not nil.
  3697. func (st *SopTaskCreate) SetNotNilStatus(value *uint8) *SopTaskCreate {
  3698. if value != nil {
  3699. return st.SetStatus(*value)
  3700. }
  3701. return st
  3702. }
  3703. // set field if value's pointer is not nil.
  3704. func (st *SopTaskUpdate) SetNotNilDeletedAt(value *time.Time) *SopTaskUpdate {
  3705. if value != nil {
  3706. return st.SetDeletedAt(*value)
  3707. }
  3708. return st
  3709. }
  3710. // set field if value's pointer is not nil.
  3711. func (st *SopTaskUpdateOne) SetNotNilDeletedAt(value *time.Time) *SopTaskUpdateOne {
  3712. if value != nil {
  3713. return st.SetDeletedAt(*value)
  3714. }
  3715. return st
  3716. }
  3717. // set field if value's pointer is not nil.
  3718. func (st *SopTaskCreate) SetNotNilDeletedAt(value *time.Time) *SopTaskCreate {
  3719. if value != nil {
  3720. return st.SetDeletedAt(*value)
  3721. }
  3722. return st
  3723. }
  3724. // set field if value's pointer is not nil.
  3725. func (st *SopTaskUpdate) SetNotNilName(value *string) *SopTaskUpdate {
  3726. if value != nil {
  3727. return st.SetName(*value)
  3728. }
  3729. return st
  3730. }
  3731. // set field if value's pointer is not nil.
  3732. func (st *SopTaskUpdateOne) SetNotNilName(value *string) *SopTaskUpdateOne {
  3733. if value != nil {
  3734. return st.SetName(*value)
  3735. }
  3736. return st
  3737. }
  3738. // set field if value's pointer is not nil.
  3739. func (st *SopTaskCreate) SetNotNilName(value *string) *SopTaskCreate {
  3740. if value != nil {
  3741. return st.SetName(*value)
  3742. }
  3743. return st
  3744. }
  3745. // set field if value's pointer is not nil.
  3746. func (st *SopTaskUpdate) SetNotNilBotWxidList(value []string) *SopTaskUpdate {
  3747. if value != nil {
  3748. return st.SetBotWxidList(value)
  3749. }
  3750. return st
  3751. }
  3752. // set field if value's pointer is not nil.
  3753. func (st *SopTaskUpdateOne) SetNotNilBotWxidList(value []string) *SopTaskUpdateOne {
  3754. if value != nil {
  3755. return st.SetBotWxidList(value)
  3756. }
  3757. return st
  3758. }
  3759. // set field if value's pointer is not nil.
  3760. func (st *SopTaskCreate) SetNotNilBotWxidList(value []string) *SopTaskCreate {
  3761. if value != nil {
  3762. return st.SetBotWxidList(value)
  3763. }
  3764. return st
  3765. }
  3766. // set field if value's pointer is not nil.
  3767. func (st *SopTaskUpdate) SetNotNilType(value *int) *SopTaskUpdate {
  3768. if value != nil {
  3769. return st.SetType(*value)
  3770. }
  3771. return st
  3772. }
  3773. // set field if value's pointer is not nil.
  3774. func (st *SopTaskUpdateOne) SetNotNilType(value *int) *SopTaskUpdateOne {
  3775. if value != nil {
  3776. return st.SetType(*value)
  3777. }
  3778. return st
  3779. }
  3780. // set field if value's pointer is not nil.
  3781. func (st *SopTaskCreate) SetNotNilType(value *int) *SopTaskCreate {
  3782. if value != nil {
  3783. return st.SetType(*value)
  3784. }
  3785. return st
  3786. }
  3787. // set field if value's pointer is not nil.
  3788. func (st *SopTaskUpdate) SetNotNilPlanStartTime(value *time.Time) *SopTaskUpdate {
  3789. if value != nil {
  3790. return st.SetPlanStartTime(*value)
  3791. }
  3792. return st
  3793. }
  3794. // set field if value's pointer is not nil.
  3795. func (st *SopTaskUpdateOne) SetNotNilPlanStartTime(value *time.Time) *SopTaskUpdateOne {
  3796. if value != nil {
  3797. return st.SetPlanStartTime(*value)
  3798. }
  3799. return st
  3800. }
  3801. // set field if value's pointer is not nil.
  3802. func (st *SopTaskCreate) SetNotNilPlanStartTime(value *time.Time) *SopTaskCreate {
  3803. if value != nil {
  3804. return st.SetPlanStartTime(*value)
  3805. }
  3806. return st
  3807. }
  3808. // set field if value's pointer is not nil.
  3809. func (st *SopTaskUpdate) SetNotNilPlanEndTime(value *time.Time) *SopTaskUpdate {
  3810. if value != nil {
  3811. return st.SetPlanEndTime(*value)
  3812. }
  3813. return st
  3814. }
  3815. // set field if value's pointer is not nil.
  3816. func (st *SopTaskUpdateOne) SetNotNilPlanEndTime(value *time.Time) *SopTaskUpdateOne {
  3817. if value != nil {
  3818. return st.SetPlanEndTime(*value)
  3819. }
  3820. return st
  3821. }
  3822. // set field if value's pointer is not nil.
  3823. func (st *SopTaskCreate) SetNotNilPlanEndTime(value *time.Time) *SopTaskCreate {
  3824. if value != nil {
  3825. return st.SetPlanEndTime(*value)
  3826. }
  3827. return st
  3828. }
  3829. // set field if value's pointer is not nil.
  3830. func (st *SopTaskUpdate) SetNotNilCreatorID(value *string) *SopTaskUpdate {
  3831. if value != nil {
  3832. return st.SetCreatorID(*value)
  3833. }
  3834. return st
  3835. }
  3836. // set field if value's pointer is not nil.
  3837. func (st *SopTaskUpdateOne) SetNotNilCreatorID(value *string) *SopTaskUpdateOne {
  3838. if value != nil {
  3839. return st.SetCreatorID(*value)
  3840. }
  3841. return st
  3842. }
  3843. // set field if value's pointer is not nil.
  3844. func (st *SopTaskCreate) SetNotNilCreatorID(value *string) *SopTaskCreate {
  3845. if value != nil {
  3846. return st.SetCreatorID(*value)
  3847. }
  3848. return st
  3849. }
  3850. // set field if value's pointer is not nil.
  3851. func (st *SopTaskUpdate) SetNotNilOrganizationID(value *uint64) *SopTaskUpdate {
  3852. if value != nil {
  3853. return st.SetOrganizationID(*value)
  3854. }
  3855. return st
  3856. }
  3857. // set field if value's pointer is not nil.
  3858. func (st *SopTaskUpdateOne) SetNotNilOrganizationID(value *uint64) *SopTaskUpdateOne {
  3859. if value != nil {
  3860. return st.SetOrganizationID(*value)
  3861. }
  3862. return st
  3863. }
  3864. // set field if value's pointer is not nil.
  3865. func (st *SopTaskCreate) SetNotNilOrganizationID(value *uint64) *SopTaskCreate {
  3866. if value != nil {
  3867. return st.SetOrganizationID(*value)
  3868. }
  3869. return st
  3870. }
  3871. // set field if value's pointer is not nil.
  3872. func (t *TokenUpdate) SetNotNilUpdatedAt(value *time.Time) *TokenUpdate {
  3873. if value != nil {
  3874. return t.SetUpdatedAt(*value)
  3875. }
  3876. return t
  3877. }
  3878. // set field if value's pointer is not nil.
  3879. func (t *TokenUpdateOne) SetNotNilUpdatedAt(value *time.Time) *TokenUpdateOne {
  3880. if value != nil {
  3881. return t.SetUpdatedAt(*value)
  3882. }
  3883. return t
  3884. }
  3885. // set field if value's pointer is not nil.
  3886. func (t *TokenCreate) SetNotNilUpdatedAt(value *time.Time) *TokenCreate {
  3887. if value != nil {
  3888. return t.SetUpdatedAt(*value)
  3889. }
  3890. return t
  3891. }
  3892. // set field if value's pointer is not nil.
  3893. func (t *TokenUpdate) SetNotNilDeletedAt(value *time.Time) *TokenUpdate {
  3894. if value != nil {
  3895. return t.SetDeletedAt(*value)
  3896. }
  3897. return t
  3898. }
  3899. // set field if value's pointer is not nil.
  3900. func (t *TokenUpdateOne) SetNotNilDeletedAt(value *time.Time) *TokenUpdateOne {
  3901. if value != nil {
  3902. return t.SetDeletedAt(*value)
  3903. }
  3904. return t
  3905. }
  3906. // set field if value's pointer is not nil.
  3907. func (t *TokenCreate) SetNotNilDeletedAt(value *time.Time) *TokenCreate {
  3908. if value != nil {
  3909. return t.SetDeletedAt(*value)
  3910. }
  3911. return t
  3912. }
  3913. // set field if value's pointer is not nil.
  3914. func (t *TokenUpdate) SetNotNilExpireAt(value *time.Time) *TokenUpdate {
  3915. if value != nil {
  3916. return t.SetExpireAt(*value)
  3917. }
  3918. return t
  3919. }
  3920. // set field if value's pointer is not nil.
  3921. func (t *TokenUpdateOne) SetNotNilExpireAt(value *time.Time) *TokenUpdateOne {
  3922. if value != nil {
  3923. return t.SetExpireAt(*value)
  3924. }
  3925. return t
  3926. }
  3927. // set field if value's pointer is not nil.
  3928. func (t *TokenCreate) SetNotNilExpireAt(value *time.Time) *TokenCreate {
  3929. if value != nil {
  3930. return t.SetExpireAt(*value)
  3931. }
  3932. return t
  3933. }
  3934. // set field if value's pointer is not nil.
  3935. func (t *TokenUpdate) SetNotNilToken(value *string) *TokenUpdate {
  3936. if value != nil {
  3937. return t.SetToken(*value)
  3938. }
  3939. return t
  3940. }
  3941. // set field if value's pointer is not nil.
  3942. func (t *TokenUpdateOne) SetNotNilToken(value *string) *TokenUpdateOne {
  3943. if value != nil {
  3944. return t.SetToken(*value)
  3945. }
  3946. return t
  3947. }
  3948. // set field if value's pointer is not nil.
  3949. func (t *TokenCreate) SetNotNilToken(value *string) *TokenCreate {
  3950. if value != nil {
  3951. return t.SetToken(*value)
  3952. }
  3953. return t
  3954. }
  3955. // set field if value's pointer is not nil.
  3956. func (t *TokenUpdate) SetNotNilMAC(value *string) *TokenUpdate {
  3957. if value != nil {
  3958. return t.SetMAC(*value)
  3959. }
  3960. return t
  3961. }
  3962. // set field if value's pointer is not nil.
  3963. func (t *TokenUpdateOne) SetNotNilMAC(value *string) *TokenUpdateOne {
  3964. if value != nil {
  3965. return t.SetMAC(*value)
  3966. }
  3967. return t
  3968. }
  3969. // set field if value's pointer is not nil.
  3970. func (t *TokenCreate) SetNotNilMAC(value *string) *TokenCreate {
  3971. if value != nil {
  3972. return t.SetMAC(*value)
  3973. }
  3974. return t
  3975. }
  3976. // set field if value's pointer is not nil.
  3977. func (t *TutorialUpdate) SetNotNilUpdatedAt(value *time.Time) *TutorialUpdate {
  3978. if value != nil {
  3979. return t.SetUpdatedAt(*value)
  3980. }
  3981. return t
  3982. }
  3983. // set field if value's pointer is not nil.
  3984. func (t *TutorialUpdateOne) SetNotNilUpdatedAt(value *time.Time) *TutorialUpdateOne {
  3985. if value != nil {
  3986. return t.SetUpdatedAt(*value)
  3987. }
  3988. return t
  3989. }
  3990. // set field if value's pointer is not nil.
  3991. func (t *TutorialCreate) SetNotNilUpdatedAt(value *time.Time) *TutorialCreate {
  3992. if value != nil {
  3993. return t.SetUpdatedAt(*value)
  3994. }
  3995. return t
  3996. }
  3997. // set field if value's pointer is not nil.
  3998. func (t *TutorialUpdate) SetNotNilDeletedAt(value *time.Time) *TutorialUpdate {
  3999. if value != nil {
  4000. return t.SetDeletedAt(*value)
  4001. }
  4002. return t
  4003. }
  4004. // set field if value's pointer is not nil.
  4005. func (t *TutorialUpdateOne) SetNotNilDeletedAt(value *time.Time) *TutorialUpdateOne {
  4006. if value != nil {
  4007. return t.SetDeletedAt(*value)
  4008. }
  4009. return t
  4010. }
  4011. // set field if value's pointer is not nil.
  4012. func (t *TutorialCreate) SetNotNilDeletedAt(value *time.Time) *TutorialCreate {
  4013. if value != nil {
  4014. return t.SetDeletedAt(*value)
  4015. }
  4016. return t
  4017. }
  4018. // set field if value's pointer is not nil.
  4019. func (t *TutorialUpdate) SetNotNilEmployeeID(value *uint64) *TutorialUpdate {
  4020. if value != nil {
  4021. return t.SetEmployeeID(*value)
  4022. }
  4023. return t
  4024. }
  4025. // set field if value's pointer is not nil.
  4026. func (t *TutorialUpdateOne) SetNotNilEmployeeID(value *uint64) *TutorialUpdateOne {
  4027. if value != nil {
  4028. return t.SetEmployeeID(*value)
  4029. }
  4030. return t
  4031. }
  4032. // set field if value's pointer is not nil.
  4033. func (t *TutorialCreate) SetNotNilEmployeeID(value *uint64) *TutorialCreate {
  4034. if value != nil {
  4035. return t.SetEmployeeID(*value)
  4036. }
  4037. return t
  4038. }
  4039. // set field if value's pointer is not nil.
  4040. func (t *TutorialUpdate) SetNotNilIndex(value *int) *TutorialUpdate {
  4041. if value != nil {
  4042. return t.SetIndex(*value)
  4043. }
  4044. return t
  4045. }
  4046. // set field if value's pointer is not nil.
  4047. func (t *TutorialUpdateOne) SetNotNilIndex(value *int) *TutorialUpdateOne {
  4048. if value != nil {
  4049. return t.SetIndex(*value)
  4050. }
  4051. return t
  4052. }
  4053. // set field if value's pointer is not nil.
  4054. func (t *TutorialCreate) SetNotNilIndex(value *int) *TutorialCreate {
  4055. if value != nil {
  4056. return t.SetIndex(*value)
  4057. }
  4058. return t
  4059. }
  4060. // set field if value's pointer is not nil.
  4061. func (t *TutorialUpdate) SetNotNilTitle(value *string) *TutorialUpdate {
  4062. if value != nil {
  4063. return t.SetTitle(*value)
  4064. }
  4065. return t
  4066. }
  4067. // set field if value's pointer is not nil.
  4068. func (t *TutorialUpdateOne) SetNotNilTitle(value *string) *TutorialUpdateOne {
  4069. if value != nil {
  4070. return t.SetTitle(*value)
  4071. }
  4072. return t
  4073. }
  4074. // set field if value's pointer is not nil.
  4075. func (t *TutorialCreate) SetNotNilTitle(value *string) *TutorialCreate {
  4076. if value != nil {
  4077. return t.SetTitle(*value)
  4078. }
  4079. return t
  4080. }
  4081. // set field if value's pointer is not nil.
  4082. func (t *TutorialUpdate) SetNotNilContent(value *string) *TutorialUpdate {
  4083. if value != nil {
  4084. return t.SetContent(*value)
  4085. }
  4086. return t
  4087. }
  4088. // set field if value's pointer is not nil.
  4089. func (t *TutorialUpdateOne) SetNotNilContent(value *string) *TutorialUpdateOne {
  4090. if value != nil {
  4091. return t.SetContent(*value)
  4092. }
  4093. return t
  4094. }
  4095. // set field if value's pointer is not nil.
  4096. func (t *TutorialCreate) SetNotNilContent(value *string) *TutorialCreate {
  4097. if value != nil {
  4098. return t.SetContent(*value)
  4099. }
  4100. return t
  4101. }
  4102. // set field if value's pointer is not nil.
  4103. func (t *TutorialUpdate) SetNotNilOrganizationID(value *uint64) *TutorialUpdate {
  4104. if value != nil {
  4105. return t.SetOrganizationID(*value)
  4106. }
  4107. return t
  4108. }
  4109. // set field if value's pointer is not nil.
  4110. func (t *TutorialUpdateOne) SetNotNilOrganizationID(value *uint64) *TutorialUpdateOne {
  4111. if value != nil {
  4112. return t.SetOrganizationID(*value)
  4113. }
  4114. return t
  4115. }
  4116. // set field if value's pointer is not nil.
  4117. func (t *TutorialCreate) SetNotNilOrganizationID(value *uint64) *TutorialCreate {
  4118. if value != nil {
  4119. return t.SetOrganizationID(*value)
  4120. }
  4121. return t
  4122. }
  4123. // set field if value's pointer is not nil.
  4124. func (we *WorkExperienceUpdate) SetNotNilUpdatedAt(value *time.Time) *WorkExperienceUpdate {
  4125. if value != nil {
  4126. return we.SetUpdatedAt(*value)
  4127. }
  4128. return we
  4129. }
  4130. // set field if value's pointer is not nil.
  4131. func (we *WorkExperienceUpdateOne) SetNotNilUpdatedAt(value *time.Time) *WorkExperienceUpdateOne {
  4132. if value != nil {
  4133. return we.SetUpdatedAt(*value)
  4134. }
  4135. return we
  4136. }
  4137. // set field if value's pointer is not nil.
  4138. func (we *WorkExperienceCreate) SetNotNilUpdatedAt(value *time.Time) *WorkExperienceCreate {
  4139. if value != nil {
  4140. return we.SetUpdatedAt(*value)
  4141. }
  4142. return we
  4143. }
  4144. // set field if value's pointer is not nil.
  4145. func (we *WorkExperienceUpdate) SetNotNilDeletedAt(value *time.Time) *WorkExperienceUpdate {
  4146. if value != nil {
  4147. return we.SetDeletedAt(*value)
  4148. }
  4149. return we
  4150. }
  4151. // set field if value's pointer is not nil.
  4152. func (we *WorkExperienceUpdateOne) SetNotNilDeletedAt(value *time.Time) *WorkExperienceUpdateOne {
  4153. if value != nil {
  4154. return we.SetDeletedAt(*value)
  4155. }
  4156. return we
  4157. }
  4158. // set field if value's pointer is not nil.
  4159. func (we *WorkExperienceCreate) SetNotNilDeletedAt(value *time.Time) *WorkExperienceCreate {
  4160. if value != nil {
  4161. return we.SetDeletedAt(*value)
  4162. }
  4163. return we
  4164. }
  4165. // set field if value's pointer is not nil.
  4166. func (we *WorkExperienceUpdate) SetNotNilEmployeeID(value *uint64) *WorkExperienceUpdate {
  4167. if value != nil {
  4168. return we.SetEmployeeID(*value)
  4169. }
  4170. return we
  4171. }
  4172. // set field if value's pointer is not nil.
  4173. func (we *WorkExperienceUpdateOne) SetNotNilEmployeeID(value *uint64) *WorkExperienceUpdateOne {
  4174. if value != nil {
  4175. return we.SetEmployeeID(*value)
  4176. }
  4177. return we
  4178. }
  4179. // set field if value's pointer is not nil.
  4180. func (we *WorkExperienceCreate) SetNotNilEmployeeID(value *uint64) *WorkExperienceCreate {
  4181. if value != nil {
  4182. return we.SetEmployeeID(*value)
  4183. }
  4184. return we
  4185. }
  4186. // set field if value's pointer is not nil.
  4187. func (we *WorkExperienceUpdate) SetNotNilStartDate(value *time.Time) *WorkExperienceUpdate {
  4188. if value != nil {
  4189. return we.SetStartDate(*value)
  4190. }
  4191. return we
  4192. }
  4193. // set field if value's pointer is not nil.
  4194. func (we *WorkExperienceUpdateOne) SetNotNilStartDate(value *time.Time) *WorkExperienceUpdateOne {
  4195. if value != nil {
  4196. return we.SetStartDate(*value)
  4197. }
  4198. return we
  4199. }
  4200. // set field if value's pointer is not nil.
  4201. func (we *WorkExperienceCreate) SetNotNilStartDate(value *time.Time) *WorkExperienceCreate {
  4202. if value != nil {
  4203. return we.SetStartDate(*value)
  4204. }
  4205. return we
  4206. }
  4207. // set field if value's pointer is not nil.
  4208. func (we *WorkExperienceUpdate) SetNotNilEndDate(value *time.Time) *WorkExperienceUpdate {
  4209. if value != nil {
  4210. return we.SetEndDate(*value)
  4211. }
  4212. return we
  4213. }
  4214. // set field if value's pointer is not nil.
  4215. func (we *WorkExperienceUpdateOne) SetNotNilEndDate(value *time.Time) *WorkExperienceUpdateOne {
  4216. if value != nil {
  4217. return we.SetEndDate(*value)
  4218. }
  4219. return we
  4220. }
  4221. // set field if value's pointer is not nil.
  4222. func (we *WorkExperienceCreate) SetNotNilEndDate(value *time.Time) *WorkExperienceCreate {
  4223. if value != nil {
  4224. return we.SetEndDate(*value)
  4225. }
  4226. return we
  4227. }
  4228. // set field if value's pointer is not nil.
  4229. func (we *WorkExperienceUpdate) SetNotNilCompany(value *string) *WorkExperienceUpdate {
  4230. if value != nil {
  4231. return we.SetCompany(*value)
  4232. }
  4233. return we
  4234. }
  4235. // set field if value's pointer is not nil.
  4236. func (we *WorkExperienceUpdateOne) SetNotNilCompany(value *string) *WorkExperienceUpdateOne {
  4237. if value != nil {
  4238. return we.SetCompany(*value)
  4239. }
  4240. return we
  4241. }
  4242. // set field if value's pointer is not nil.
  4243. func (we *WorkExperienceCreate) SetNotNilCompany(value *string) *WorkExperienceCreate {
  4244. if value != nil {
  4245. return we.SetCompany(*value)
  4246. }
  4247. return we
  4248. }
  4249. // set field if value's pointer is not nil.
  4250. func (we *WorkExperienceUpdate) SetNotNilExperience(value *string) *WorkExperienceUpdate {
  4251. if value != nil {
  4252. return we.SetExperience(*value)
  4253. }
  4254. return we
  4255. }
  4256. // set field if value's pointer is not nil.
  4257. func (we *WorkExperienceUpdateOne) SetNotNilExperience(value *string) *WorkExperienceUpdateOne {
  4258. if value != nil {
  4259. return we.SetExperience(*value)
  4260. }
  4261. return we
  4262. }
  4263. // set field if value's pointer is not nil.
  4264. func (we *WorkExperienceCreate) SetNotNilExperience(value *string) *WorkExperienceCreate {
  4265. if value != nil {
  4266. return we.SetExperience(*value)
  4267. }
  4268. return we
  4269. }
  4270. // set field if value's pointer is not nil.
  4271. func (we *WorkExperienceUpdate) SetNotNilOrganizationID(value *uint64) *WorkExperienceUpdate {
  4272. if value != nil {
  4273. return we.SetOrganizationID(*value)
  4274. }
  4275. return we
  4276. }
  4277. // set field if value's pointer is not nil.
  4278. func (we *WorkExperienceUpdateOne) SetNotNilOrganizationID(value *uint64) *WorkExperienceUpdateOne {
  4279. if value != nil {
  4280. return we.SetOrganizationID(*value)
  4281. }
  4282. return we
  4283. }
  4284. // set field if value's pointer is not nil.
  4285. func (we *WorkExperienceCreate) SetNotNilOrganizationID(value *uint64) *WorkExperienceCreate {
  4286. if value != nil {
  4287. return we.SetOrganizationID(*value)
  4288. }
  4289. return we
  4290. }
  4291. // set field if value's pointer is not nil.
  4292. func (w *WxUpdate) SetNotNilUpdatedAt(value *time.Time) *WxUpdate {
  4293. if value != nil {
  4294. return w.SetUpdatedAt(*value)
  4295. }
  4296. return w
  4297. }
  4298. // set field if value's pointer is not nil.
  4299. func (w *WxUpdateOne) SetNotNilUpdatedAt(value *time.Time) *WxUpdateOne {
  4300. if value != nil {
  4301. return w.SetUpdatedAt(*value)
  4302. }
  4303. return w
  4304. }
  4305. // set field if value's pointer is not nil.
  4306. func (w *WxCreate) SetNotNilUpdatedAt(value *time.Time) *WxCreate {
  4307. if value != nil {
  4308. return w.SetUpdatedAt(*value)
  4309. }
  4310. return w
  4311. }
  4312. // set field if value's pointer is not nil.
  4313. func (w *WxUpdate) SetNotNilStatus(value *uint8) *WxUpdate {
  4314. if value != nil {
  4315. return w.SetStatus(*value)
  4316. }
  4317. return w
  4318. }
  4319. // set field if value's pointer is not nil.
  4320. func (w *WxUpdateOne) SetNotNilStatus(value *uint8) *WxUpdateOne {
  4321. if value != nil {
  4322. return w.SetStatus(*value)
  4323. }
  4324. return w
  4325. }
  4326. // set field if value's pointer is not nil.
  4327. func (w *WxCreate) SetNotNilStatus(value *uint8) *WxCreate {
  4328. if value != nil {
  4329. return w.SetStatus(*value)
  4330. }
  4331. return w
  4332. }
  4333. // set field if value's pointer is not nil.
  4334. func (w *WxUpdate) SetNotNilDeletedAt(value *time.Time) *WxUpdate {
  4335. if value != nil {
  4336. return w.SetDeletedAt(*value)
  4337. }
  4338. return w
  4339. }
  4340. // set field if value's pointer is not nil.
  4341. func (w *WxUpdateOne) SetNotNilDeletedAt(value *time.Time) *WxUpdateOne {
  4342. if value != nil {
  4343. return w.SetDeletedAt(*value)
  4344. }
  4345. return w
  4346. }
  4347. // set field if value's pointer is not nil.
  4348. func (w *WxCreate) SetNotNilDeletedAt(value *time.Time) *WxCreate {
  4349. if value != nil {
  4350. return w.SetDeletedAt(*value)
  4351. }
  4352. return w
  4353. }
  4354. // set field if value's pointer is not nil.
  4355. func (w *WxUpdate) SetNotNilServerID(value *uint64) *WxUpdate {
  4356. if value != nil {
  4357. return w.SetServerID(*value)
  4358. }
  4359. return w
  4360. }
  4361. // set field if value's pointer is not nil.
  4362. func (w *WxUpdateOne) SetNotNilServerID(value *uint64) *WxUpdateOne {
  4363. if value != nil {
  4364. return w.SetServerID(*value)
  4365. }
  4366. return w
  4367. }
  4368. // set field if value's pointer is not nil.
  4369. func (w *WxCreate) SetNotNilServerID(value *uint64) *WxCreate {
  4370. if value != nil {
  4371. return w.SetServerID(*value)
  4372. }
  4373. return w
  4374. }
  4375. // set field if value's pointer is not nil.
  4376. func (w *WxUpdate) SetNotNilPort(value *string) *WxUpdate {
  4377. if value != nil {
  4378. return w.SetPort(*value)
  4379. }
  4380. return w
  4381. }
  4382. // set field if value's pointer is not nil.
  4383. func (w *WxUpdateOne) SetNotNilPort(value *string) *WxUpdateOne {
  4384. if value != nil {
  4385. return w.SetPort(*value)
  4386. }
  4387. return w
  4388. }
  4389. // set field if value's pointer is not nil.
  4390. func (w *WxCreate) SetNotNilPort(value *string) *WxCreate {
  4391. if value != nil {
  4392. return w.SetPort(*value)
  4393. }
  4394. return w
  4395. }
  4396. // set field if value's pointer is not nil.
  4397. func (w *WxUpdate) SetNotNilProcessID(value *string) *WxUpdate {
  4398. if value != nil {
  4399. return w.SetProcessID(*value)
  4400. }
  4401. return w
  4402. }
  4403. // set field if value's pointer is not nil.
  4404. func (w *WxUpdateOne) SetNotNilProcessID(value *string) *WxUpdateOne {
  4405. if value != nil {
  4406. return w.SetProcessID(*value)
  4407. }
  4408. return w
  4409. }
  4410. // set field if value's pointer is not nil.
  4411. func (w *WxCreate) SetNotNilProcessID(value *string) *WxCreate {
  4412. if value != nil {
  4413. return w.SetProcessID(*value)
  4414. }
  4415. return w
  4416. }
  4417. // set field if value's pointer is not nil.
  4418. func (w *WxUpdate) SetNotNilCallback(value *string) *WxUpdate {
  4419. if value != nil {
  4420. return w.SetCallback(*value)
  4421. }
  4422. return w
  4423. }
  4424. // set field if value's pointer is not nil.
  4425. func (w *WxUpdateOne) SetNotNilCallback(value *string) *WxUpdateOne {
  4426. if value != nil {
  4427. return w.SetCallback(*value)
  4428. }
  4429. return w
  4430. }
  4431. // set field if value's pointer is not nil.
  4432. func (w *WxCreate) SetNotNilCallback(value *string) *WxCreate {
  4433. if value != nil {
  4434. return w.SetCallback(*value)
  4435. }
  4436. return w
  4437. }
  4438. // set field if value's pointer is not nil.
  4439. func (w *WxUpdate) SetNotNilWxid(value *string) *WxUpdate {
  4440. if value != nil {
  4441. return w.SetWxid(*value)
  4442. }
  4443. return w
  4444. }
  4445. // set field if value's pointer is not nil.
  4446. func (w *WxUpdateOne) SetNotNilWxid(value *string) *WxUpdateOne {
  4447. if value != nil {
  4448. return w.SetWxid(*value)
  4449. }
  4450. return w
  4451. }
  4452. // set field if value's pointer is not nil.
  4453. func (w *WxCreate) SetNotNilWxid(value *string) *WxCreate {
  4454. if value != nil {
  4455. return w.SetWxid(*value)
  4456. }
  4457. return w
  4458. }
  4459. // set field if value's pointer is not nil.
  4460. func (w *WxUpdate) SetNotNilAccount(value *string) *WxUpdate {
  4461. if value != nil {
  4462. return w.SetAccount(*value)
  4463. }
  4464. return w
  4465. }
  4466. // set field if value's pointer is not nil.
  4467. func (w *WxUpdateOne) SetNotNilAccount(value *string) *WxUpdateOne {
  4468. if value != nil {
  4469. return w.SetAccount(*value)
  4470. }
  4471. return w
  4472. }
  4473. // set field if value's pointer is not nil.
  4474. func (w *WxCreate) SetNotNilAccount(value *string) *WxCreate {
  4475. if value != nil {
  4476. return w.SetAccount(*value)
  4477. }
  4478. return w
  4479. }
  4480. // set field if value's pointer is not nil.
  4481. func (w *WxUpdate) SetNotNilNickname(value *string) *WxUpdate {
  4482. if value != nil {
  4483. return w.SetNickname(*value)
  4484. }
  4485. return w
  4486. }
  4487. // set field if value's pointer is not nil.
  4488. func (w *WxUpdateOne) SetNotNilNickname(value *string) *WxUpdateOne {
  4489. if value != nil {
  4490. return w.SetNickname(*value)
  4491. }
  4492. return w
  4493. }
  4494. // set field if value's pointer is not nil.
  4495. func (w *WxCreate) SetNotNilNickname(value *string) *WxCreate {
  4496. if value != nil {
  4497. return w.SetNickname(*value)
  4498. }
  4499. return w
  4500. }
  4501. // set field if value's pointer is not nil.
  4502. func (w *WxUpdate) SetNotNilTel(value *string) *WxUpdate {
  4503. if value != nil {
  4504. return w.SetTel(*value)
  4505. }
  4506. return w
  4507. }
  4508. // set field if value's pointer is not nil.
  4509. func (w *WxUpdateOne) SetNotNilTel(value *string) *WxUpdateOne {
  4510. if value != nil {
  4511. return w.SetTel(*value)
  4512. }
  4513. return w
  4514. }
  4515. // set field if value's pointer is not nil.
  4516. func (w *WxCreate) SetNotNilTel(value *string) *WxCreate {
  4517. if value != nil {
  4518. return w.SetTel(*value)
  4519. }
  4520. return w
  4521. }
  4522. // set field if value's pointer is not nil.
  4523. func (w *WxUpdate) SetNotNilHeadBig(value *string) *WxUpdate {
  4524. if value != nil {
  4525. return w.SetHeadBig(*value)
  4526. }
  4527. return w
  4528. }
  4529. // set field if value's pointer is not nil.
  4530. func (w *WxUpdateOne) SetNotNilHeadBig(value *string) *WxUpdateOne {
  4531. if value != nil {
  4532. return w.SetHeadBig(*value)
  4533. }
  4534. return w
  4535. }
  4536. // set field if value's pointer is not nil.
  4537. func (w *WxCreate) SetNotNilHeadBig(value *string) *WxCreate {
  4538. if value != nil {
  4539. return w.SetHeadBig(*value)
  4540. }
  4541. return w
  4542. }
  4543. // set field if value's pointer is not nil.
  4544. func (w *WxUpdate) SetNotNilOrganizationID(value *uint64) *WxUpdate {
  4545. if value != nil {
  4546. return w.SetOrganizationID(*value)
  4547. }
  4548. return w
  4549. }
  4550. // set field if value's pointer is not nil.
  4551. func (w *WxUpdateOne) SetNotNilOrganizationID(value *uint64) *WxUpdateOne {
  4552. if value != nil {
  4553. return w.SetOrganizationID(*value)
  4554. }
  4555. return w
  4556. }
  4557. // set field if value's pointer is not nil.
  4558. func (w *WxCreate) SetNotNilOrganizationID(value *uint64) *WxCreate {
  4559. if value != nil {
  4560. return w.SetOrganizationID(*value)
  4561. }
  4562. return w
  4563. }
  4564. // set field if value's pointer is not nil.
  4565. func (w *WxUpdate) SetNotNilAgentID(value *uint64) *WxUpdate {
  4566. if value != nil {
  4567. return w.SetAgentID(*value)
  4568. }
  4569. return w
  4570. }
  4571. // set field if value's pointer is not nil.
  4572. func (w *WxUpdateOne) SetNotNilAgentID(value *uint64) *WxUpdateOne {
  4573. if value != nil {
  4574. return w.SetAgentID(*value)
  4575. }
  4576. return w
  4577. }
  4578. // set field if value's pointer is not nil.
  4579. func (w *WxCreate) SetNotNilAgentID(value *uint64) *WxCreate {
  4580. if value != nil {
  4581. return w.SetAgentID(*value)
  4582. }
  4583. return w
  4584. }
  4585. // set field if value's pointer is not nil.
  4586. func (w *WxUpdate) SetNotNilAPIBase(value *string) *WxUpdate {
  4587. if value != nil {
  4588. return w.SetAPIBase(*value)
  4589. }
  4590. return w
  4591. }
  4592. // set field if value's pointer is not nil.
  4593. func (w *WxUpdateOne) SetNotNilAPIBase(value *string) *WxUpdateOne {
  4594. if value != nil {
  4595. return w.SetAPIBase(*value)
  4596. }
  4597. return w
  4598. }
  4599. // set field if value's pointer is not nil.
  4600. func (w *WxCreate) SetNotNilAPIBase(value *string) *WxCreate {
  4601. if value != nil {
  4602. return w.SetAPIBase(*value)
  4603. }
  4604. return w
  4605. }
  4606. // set field if value's pointer is not nil.
  4607. func (w *WxUpdate) SetNotNilAPIKey(value *string) *WxUpdate {
  4608. if value != nil {
  4609. return w.SetAPIKey(*value)
  4610. }
  4611. return w
  4612. }
  4613. // set field if value's pointer is not nil.
  4614. func (w *WxUpdateOne) SetNotNilAPIKey(value *string) *WxUpdateOne {
  4615. if value != nil {
  4616. return w.SetAPIKey(*value)
  4617. }
  4618. return w
  4619. }
  4620. // set field if value's pointer is not nil.
  4621. func (w *WxCreate) SetNotNilAPIKey(value *string) *WxCreate {
  4622. if value != nil {
  4623. return w.SetAPIKey(*value)
  4624. }
  4625. return w
  4626. }
  4627. // set field if value's pointer is not nil.
  4628. func (w *WxUpdate) SetNotNilAllowList(value []string) *WxUpdate {
  4629. if value != nil {
  4630. return w.SetAllowList(value)
  4631. }
  4632. return w
  4633. }
  4634. // set field if value's pointer is not nil.
  4635. func (w *WxUpdateOne) SetNotNilAllowList(value []string) *WxUpdateOne {
  4636. if value != nil {
  4637. return w.SetAllowList(value)
  4638. }
  4639. return w
  4640. }
  4641. // set field if value's pointer is not nil.
  4642. func (w *WxCreate) SetNotNilAllowList(value []string) *WxCreate {
  4643. if value != nil {
  4644. return w.SetAllowList(value)
  4645. }
  4646. return w
  4647. }
  4648. // set field if value's pointer is not nil.
  4649. func (w *WxUpdate) SetNotNilGroupAllowList(value []string) *WxUpdate {
  4650. if value != nil {
  4651. return w.SetGroupAllowList(value)
  4652. }
  4653. return w
  4654. }
  4655. // set field if value's pointer is not nil.
  4656. func (w *WxUpdateOne) SetNotNilGroupAllowList(value []string) *WxUpdateOne {
  4657. if value != nil {
  4658. return w.SetGroupAllowList(value)
  4659. }
  4660. return w
  4661. }
  4662. // set field if value's pointer is not nil.
  4663. func (w *WxCreate) SetNotNilGroupAllowList(value []string) *WxCreate {
  4664. if value != nil {
  4665. return w.SetGroupAllowList(value)
  4666. }
  4667. return w
  4668. }
  4669. // set field if value's pointer is not nil.
  4670. func (w *WxUpdate) SetNotNilBlockList(value []string) *WxUpdate {
  4671. if value != nil {
  4672. return w.SetBlockList(value)
  4673. }
  4674. return w
  4675. }
  4676. // set field if value's pointer is not nil.
  4677. func (w *WxUpdateOne) SetNotNilBlockList(value []string) *WxUpdateOne {
  4678. if value != nil {
  4679. return w.SetBlockList(value)
  4680. }
  4681. return w
  4682. }
  4683. // set field if value's pointer is not nil.
  4684. func (w *WxCreate) SetNotNilBlockList(value []string) *WxCreate {
  4685. if value != nil {
  4686. return w.SetBlockList(value)
  4687. }
  4688. return w
  4689. }
  4690. // set field if value's pointer is not nil.
  4691. func (w *WxUpdate) SetNotNilGroupBlockList(value []string) *WxUpdate {
  4692. if value != nil {
  4693. return w.SetGroupBlockList(value)
  4694. }
  4695. return w
  4696. }
  4697. // set field if value's pointer is not nil.
  4698. func (w *WxUpdateOne) SetNotNilGroupBlockList(value []string) *WxUpdateOne {
  4699. if value != nil {
  4700. return w.SetGroupBlockList(value)
  4701. }
  4702. return w
  4703. }
  4704. // set field if value's pointer is not nil.
  4705. func (w *WxCreate) SetNotNilGroupBlockList(value []string) *WxCreate {
  4706. if value != nil {
  4707. return w.SetGroupBlockList(value)
  4708. }
  4709. return w
  4710. }
  4711. // set field if value's pointer is not nil.
  4712. func (wc *WxCardUpdate) SetNotNilUpdatedAt(value *time.Time) *WxCardUpdate {
  4713. if value != nil {
  4714. return wc.SetUpdatedAt(*value)
  4715. }
  4716. return wc
  4717. }
  4718. // set field if value's pointer is not nil.
  4719. func (wc *WxCardUpdateOne) SetNotNilUpdatedAt(value *time.Time) *WxCardUpdateOne {
  4720. if value != nil {
  4721. return wc.SetUpdatedAt(*value)
  4722. }
  4723. return wc
  4724. }
  4725. // set field if value's pointer is not nil.
  4726. func (wc *WxCardCreate) SetNotNilUpdatedAt(value *time.Time) *WxCardCreate {
  4727. if value != nil {
  4728. return wc.SetUpdatedAt(*value)
  4729. }
  4730. return wc
  4731. }
  4732. // set field if value's pointer is not nil.
  4733. func (wc *WxCardUpdate) SetNotNilDeletedAt(value *time.Time) *WxCardUpdate {
  4734. if value != nil {
  4735. return wc.SetDeletedAt(*value)
  4736. }
  4737. return wc
  4738. }
  4739. // set field if value's pointer is not nil.
  4740. func (wc *WxCardUpdateOne) SetNotNilDeletedAt(value *time.Time) *WxCardUpdateOne {
  4741. if value != nil {
  4742. return wc.SetDeletedAt(*value)
  4743. }
  4744. return wc
  4745. }
  4746. // set field if value's pointer is not nil.
  4747. func (wc *WxCardCreate) SetNotNilDeletedAt(value *time.Time) *WxCardCreate {
  4748. if value != nil {
  4749. return wc.SetDeletedAt(*value)
  4750. }
  4751. return wc
  4752. }
  4753. // set field if value's pointer is not nil.
  4754. func (wc *WxCardUpdate) SetNotNilUserID(value *uint64) *WxCardUpdate {
  4755. if value != nil {
  4756. return wc.SetUserID(*value)
  4757. }
  4758. return wc
  4759. }
  4760. // set field if value's pointer is not nil.
  4761. func (wc *WxCardUpdateOne) SetNotNilUserID(value *uint64) *WxCardUpdateOne {
  4762. if value != nil {
  4763. return wc.SetUserID(*value)
  4764. }
  4765. return wc
  4766. }
  4767. // set field if value's pointer is not nil.
  4768. func (wc *WxCardCreate) SetNotNilUserID(value *uint64) *WxCardCreate {
  4769. if value != nil {
  4770. return wc.SetUserID(*value)
  4771. }
  4772. return wc
  4773. }
  4774. // set field if value's pointer is not nil.
  4775. func (wc *WxCardUpdate) SetNotNilWxUserID(value *uint64) *WxCardUpdate {
  4776. if value != nil {
  4777. return wc.SetWxUserID(*value)
  4778. }
  4779. return wc
  4780. }
  4781. // set field if value's pointer is not nil.
  4782. func (wc *WxCardUpdateOne) SetNotNilWxUserID(value *uint64) *WxCardUpdateOne {
  4783. if value != nil {
  4784. return wc.SetWxUserID(*value)
  4785. }
  4786. return wc
  4787. }
  4788. // set field if value's pointer is not nil.
  4789. func (wc *WxCardCreate) SetNotNilWxUserID(value *uint64) *WxCardCreate {
  4790. if value != nil {
  4791. return wc.SetWxUserID(*value)
  4792. }
  4793. return wc
  4794. }
  4795. // set field if value's pointer is not nil.
  4796. func (wc *WxCardUpdate) SetNotNilAvatar(value *string) *WxCardUpdate {
  4797. if value != nil {
  4798. return wc.SetAvatar(*value)
  4799. }
  4800. return wc
  4801. }
  4802. // set field if value's pointer is not nil.
  4803. func (wc *WxCardUpdateOne) SetNotNilAvatar(value *string) *WxCardUpdateOne {
  4804. if value != nil {
  4805. return wc.SetAvatar(*value)
  4806. }
  4807. return wc
  4808. }
  4809. // set field if value's pointer is not nil.
  4810. func (wc *WxCardCreate) SetNotNilAvatar(value *string) *WxCardCreate {
  4811. if value != nil {
  4812. return wc.SetAvatar(*value)
  4813. }
  4814. return wc
  4815. }
  4816. // set field if value's pointer is not nil.
  4817. func (wc *WxCardUpdate) SetNotNilLogo(value *string) *WxCardUpdate {
  4818. if value != nil {
  4819. return wc.SetLogo(*value)
  4820. }
  4821. return wc
  4822. }
  4823. // set field if value's pointer is not nil.
  4824. func (wc *WxCardUpdateOne) SetNotNilLogo(value *string) *WxCardUpdateOne {
  4825. if value != nil {
  4826. return wc.SetLogo(*value)
  4827. }
  4828. return wc
  4829. }
  4830. // set field if value's pointer is not nil.
  4831. func (wc *WxCardCreate) SetNotNilLogo(value *string) *WxCardCreate {
  4832. if value != nil {
  4833. return wc.SetLogo(*value)
  4834. }
  4835. return wc
  4836. }
  4837. // set field if value's pointer is not nil.
  4838. func (wc *WxCardUpdate) SetNotNilName(value *string) *WxCardUpdate {
  4839. if value != nil {
  4840. return wc.SetName(*value)
  4841. }
  4842. return wc
  4843. }
  4844. // set field if value's pointer is not nil.
  4845. func (wc *WxCardUpdateOne) SetNotNilName(value *string) *WxCardUpdateOne {
  4846. if value != nil {
  4847. return wc.SetName(*value)
  4848. }
  4849. return wc
  4850. }
  4851. // set field if value's pointer is not nil.
  4852. func (wc *WxCardCreate) SetNotNilName(value *string) *WxCardCreate {
  4853. if value != nil {
  4854. return wc.SetName(*value)
  4855. }
  4856. return wc
  4857. }
  4858. // set field if value's pointer is not nil.
  4859. func (wc *WxCardUpdate) SetNotNilCompany(value *string) *WxCardUpdate {
  4860. if value != nil {
  4861. return wc.SetCompany(*value)
  4862. }
  4863. return wc
  4864. }
  4865. // set field if value's pointer is not nil.
  4866. func (wc *WxCardUpdateOne) SetNotNilCompany(value *string) *WxCardUpdateOne {
  4867. if value != nil {
  4868. return wc.SetCompany(*value)
  4869. }
  4870. return wc
  4871. }
  4872. // set field if value's pointer is not nil.
  4873. func (wc *WxCardCreate) SetNotNilCompany(value *string) *WxCardCreate {
  4874. if value != nil {
  4875. return wc.SetCompany(*value)
  4876. }
  4877. return wc
  4878. }
  4879. // set field if value's pointer is not nil.
  4880. func (wc *WxCardUpdate) SetNotNilAddress(value *string) *WxCardUpdate {
  4881. if value != nil {
  4882. return wc.SetAddress(*value)
  4883. }
  4884. return wc
  4885. }
  4886. // set field if value's pointer is not nil.
  4887. func (wc *WxCardUpdateOne) SetNotNilAddress(value *string) *WxCardUpdateOne {
  4888. if value != nil {
  4889. return wc.SetAddress(*value)
  4890. }
  4891. return wc
  4892. }
  4893. // set field if value's pointer is not nil.
  4894. func (wc *WxCardCreate) SetNotNilAddress(value *string) *WxCardCreate {
  4895. if value != nil {
  4896. return wc.SetAddress(*value)
  4897. }
  4898. return wc
  4899. }
  4900. // set field if value's pointer is not nil.
  4901. func (wc *WxCardUpdate) SetNotNilPhone(value *string) *WxCardUpdate {
  4902. if value != nil {
  4903. return wc.SetPhone(*value)
  4904. }
  4905. return wc
  4906. }
  4907. // set field if value's pointer is not nil.
  4908. func (wc *WxCardUpdateOne) SetNotNilPhone(value *string) *WxCardUpdateOne {
  4909. if value != nil {
  4910. return wc.SetPhone(*value)
  4911. }
  4912. return wc
  4913. }
  4914. // set field if value's pointer is not nil.
  4915. func (wc *WxCardCreate) SetNotNilPhone(value *string) *WxCardCreate {
  4916. if value != nil {
  4917. return wc.SetPhone(*value)
  4918. }
  4919. return wc
  4920. }
  4921. // set field if value's pointer is not nil.
  4922. func (wc *WxCardUpdate) SetNotNilOfficialAccount(value *string) *WxCardUpdate {
  4923. if value != nil {
  4924. return wc.SetOfficialAccount(*value)
  4925. }
  4926. return wc
  4927. }
  4928. // set field if value's pointer is not nil.
  4929. func (wc *WxCardUpdateOne) SetNotNilOfficialAccount(value *string) *WxCardUpdateOne {
  4930. if value != nil {
  4931. return wc.SetOfficialAccount(*value)
  4932. }
  4933. return wc
  4934. }
  4935. // set field if value's pointer is not nil.
  4936. func (wc *WxCardCreate) SetNotNilOfficialAccount(value *string) *WxCardCreate {
  4937. if value != nil {
  4938. return wc.SetOfficialAccount(*value)
  4939. }
  4940. return wc
  4941. }
  4942. // set field if value's pointer is not nil.
  4943. func (wc *WxCardUpdate) SetNotNilWechatAccount(value *string) *WxCardUpdate {
  4944. if value != nil {
  4945. return wc.SetWechatAccount(*value)
  4946. }
  4947. return wc
  4948. }
  4949. // set field if value's pointer is not nil.
  4950. func (wc *WxCardUpdateOne) SetNotNilWechatAccount(value *string) *WxCardUpdateOne {
  4951. if value != nil {
  4952. return wc.SetWechatAccount(*value)
  4953. }
  4954. return wc
  4955. }
  4956. // set field if value's pointer is not nil.
  4957. func (wc *WxCardCreate) SetNotNilWechatAccount(value *string) *WxCardCreate {
  4958. if value != nil {
  4959. return wc.SetWechatAccount(*value)
  4960. }
  4961. return wc
  4962. }
  4963. // set field if value's pointer is not nil.
  4964. func (wc *WxCardUpdate) SetNotNilEmail(value *string) *WxCardUpdate {
  4965. if value != nil {
  4966. return wc.SetEmail(*value)
  4967. }
  4968. return wc
  4969. }
  4970. // set field if value's pointer is not nil.
  4971. func (wc *WxCardUpdateOne) SetNotNilEmail(value *string) *WxCardUpdateOne {
  4972. if value != nil {
  4973. return wc.SetEmail(*value)
  4974. }
  4975. return wc
  4976. }
  4977. // set field if value's pointer is not nil.
  4978. func (wc *WxCardCreate) SetNotNilEmail(value *string) *WxCardCreate {
  4979. if value != nil {
  4980. return wc.SetEmail(*value)
  4981. }
  4982. return wc
  4983. }
  4984. // set field if value's pointer is not nil.
  4985. func (wc *WxCardUpdate) SetNotNilAPIBase(value *string) *WxCardUpdate {
  4986. if value != nil {
  4987. return wc.SetAPIBase(*value)
  4988. }
  4989. return wc
  4990. }
  4991. // set field if value's pointer is not nil.
  4992. func (wc *WxCardUpdateOne) SetNotNilAPIBase(value *string) *WxCardUpdateOne {
  4993. if value != nil {
  4994. return wc.SetAPIBase(*value)
  4995. }
  4996. return wc
  4997. }
  4998. // set field if value's pointer is not nil.
  4999. func (wc *WxCardCreate) SetNotNilAPIBase(value *string) *WxCardCreate {
  5000. if value != nil {
  5001. return wc.SetAPIBase(*value)
  5002. }
  5003. return wc
  5004. }
  5005. // set field if value's pointer is not nil.
  5006. func (wc *WxCardUpdate) SetNotNilAPIKey(value *string) *WxCardUpdate {
  5007. if value != nil {
  5008. return wc.SetAPIKey(*value)
  5009. }
  5010. return wc
  5011. }
  5012. // set field if value's pointer is not nil.
  5013. func (wc *WxCardUpdateOne) SetNotNilAPIKey(value *string) *WxCardUpdateOne {
  5014. if value != nil {
  5015. return wc.SetAPIKey(*value)
  5016. }
  5017. return wc
  5018. }
  5019. // set field if value's pointer is not nil.
  5020. func (wc *WxCardCreate) SetNotNilAPIKey(value *string) *WxCardCreate {
  5021. if value != nil {
  5022. return wc.SetAPIKey(*value)
  5023. }
  5024. return wc
  5025. }
  5026. // set field if value's pointer is not nil.
  5027. func (wc *WxCardUpdate) SetNotNilAiInfo(value *string) *WxCardUpdate {
  5028. if value != nil {
  5029. return wc.SetAiInfo(*value)
  5030. }
  5031. return wc
  5032. }
  5033. // set field if value's pointer is not nil.
  5034. func (wc *WxCardUpdateOne) SetNotNilAiInfo(value *string) *WxCardUpdateOne {
  5035. if value != nil {
  5036. return wc.SetAiInfo(*value)
  5037. }
  5038. return wc
  5039. }
  5040. // set field if value's pointer is not nil.
  5041. func (wc *WxCardCreate) SetNotNilAiInfo(value *string) *WxCardCreate {
  5042. if value != nil {
  5043. return wc.SetAiInfo(*value)
  5044. }
  5045. return wc
  5046. }
  5047. // set field if value's pointer is not nil.
  5048. func (wc *WxCardUpdate) SetNotNilIntro(value *string) *WxCardUpdate {
  5049. if value != nil {
  5050. return wc.SetIntro(*value)
  5051. }
  5052. return wc
  5053. }
  5054. // set field if value's pointer is not nil.
  5055. func (wc *WxCardUpdateOne) SetNotNilIntro(value *string) *WxCardUpdateOne {
  5056. if value != nil {
  5057. return wc.SetIntro(*value)
  5058. }
  5059. return wc
  5060. }
  5061. // set field if value's pointer is not nil.
  5062. func (wc *WxCardCreate) SetNotNilIntro(value *string) *WxCardCreate {
  5063. if value != nil {
  5064. return wc.SetIntro(*value)
  5065. }
  5066. return wc
  5067. }
  5068. // set field if value's pointer is not nil.
  5069. func (wcu *WxCardUserUpdate) SetNotNilUpdatedAt(value *time.Time) *WxCardUserUpdate {
  5070. if value != nil {
  5071. return wcu.SetUpdatedAt(*value)
  5072. }
  5073. return wcu
  5074. }
  5075. // set field if value's pointer is not nil.
  5076. func (wcu *WxCardUserUpdateOne) SetNotNilUpdatedAt(value *time.Time) *WxCardUserUpdateOne {
  5077. if value != nil {
  5078. return wcu.SetUpdatedAt(*value)
  5079. }
  5080. return wcu
  5081. }
  5082. // set field if value's pointer is not nil.
  5083. func (wcu *WxCardUserCreate) SetNotNilUpdatedAt(value *time.Time) *WxCardUserCreate {
  5084. if value != nil {
  5085. return wcu.SetUpdatedAt(*value)
  5086. }
  5087. return wcu
  5088. }
  5089. // set field if value's pointer is not nil.
  5090. func (wcu *WxCardUserUpdate) SetNotNilDeletedAt(value *time.Time) *WxCardUserUpdate {
  5091. if value != nil {
  5092. return wcu.SetDeletedAt(*value)
  5093. }
  5094. return wcu
  5095. }
  5096. // set field if value's pointer is not nil.
  5097. func (wcu *WxCardUserUpdateOne) SetNotNilDeletedAt(value *time.Time) *WxCardUserUpdateOne {
  5098. if value != nil {
  5099. return wcu.SetDeletedAt(*value)
  5100. }
  5101. return wcu
  5102. }
  5103. // set field if value's pointer is not nil.
  5104. func (wcu *WxCardUserCreate) SetNotNilDeletedAt(value *time.Time) *WxCardUserCreate {
  5105. if value != nil {
  5106. return wcu.SetDeletedAt(*value)
  5107. }
  5108. return wcu
  5109. }
  5110. // set field if value's pointer is not nil.
  5111. func (wcu *WxCardUserUpdate) SetNotNilWxid(value *string) *WxCardUserUpdate {
  5112. if value != nil {
  5113. return wcu.SetWxid(*value)
  5114. }
  5115. return wcu
  5116. }
  5117. // set field if value's pointer is not nil.
  5118. func (wcu *WxCardUserUpdateOne) SetNotNilWxid(value *string) *WxCardUserUpdateOne {
  5119. if value != nil {
  5120. return wcu.SetWxid(*value)
  5121. }
  5122. return wcu
  5123. }
  5124. // set field if value's pointer is not nil.
  5125. func (wcu *WxCardUserCreate) SetNotNilWxid(value *string) *WxCardUserCreate {
  5126. if value != nil {
  5127. return wcu.SetWxid(*value)
  5128. }
  5129. return wcu
  5130. }
  5131. // set field if value's pointer is not nil.
  5132. func (wcu *WxCardUserUpdate) SetNotNilAccount(value *string) *WxCardUserUpdate {
  5133. if value != nil {
  5134. return wcu.SetAccount(*value)
  5135. }
  5136. return wcu
  5137. }
  5138. // set field if value's pointer is not nil.
  5139. func (wcu *WxCardUserUpdateOne) SetNotNilAccount(value *string) *WxCardUserUpdateOne {
  5140. if value != nil {
  5141. return wcu.SetAccount(*value)
  5142. }
  5143. return wcu
  5144. }
  5145. // set field if value's pointer is not nil.
  5146. func (wcu *WxCardUserCreate) SetNotNilAccount(value *string) *WxCardUserCreate {
  5147. if value != nil {
  5148. return wcu.SetAccount(*value)
  5149. }
  5150. return wcu
  5151. }
  5152. // set field if value's pointer is not nil.
  5153. func (wcu *WxCardUserUpdate) SetNotNilAvatar(value *string) *WxCardUserUpdate {
  5154. if value != nil {
  5155. return wcu.SetAvatar(*value)
  5156. }
  5157. return wcu
  5158. }
  5159. // set field if value's pointer is not nil.
  5160. func (wcu *WxCardUserUpdateOne) SetNotNilAvatar(value *string) *WxCardUserUpdateOne {
  5161. if value != nil {
  5162. return wcu.SetAvatar(*value)
  5163. }
  5164. return wcu
  5165. }
  5166. // set field if value's pointer is not nil.
  5167. func (wcu *WxCardUserCreate) SetNotNilAvatar(value *string) *WxCardUserCreate {
  5168. if value != nil {
  5169. return wcu.SetAvatar(*value)
  5170. }
  5171. return wcu
  5172. }
  5173. // set field if value's pointer is not nil.
  5174. func (wcu *WxCardUserUpdate) SetNotNilNickname(value *string) *WxCardUserUpdate {
  5175. if value != nil {
  5176. return wcu.SetNickname(*value)
  5177. }
  5178. return wcu
  5179. }
  5180. // set field if value's pointer is not nil.
  5181. func (wcu *WxCardUserUpdateOne) SetNotNilNickname(value *string) *WxCardUserUpdateOne {
  5182. if value != nil {
  5183. return wcu.SetNickname(*value)
  5184. }
  5185. return wcu
  5186. }
  5187. // set field if value's pointer is not nil.
  5188. func (wcu *WxCardUserCreate) SetNotNilNickname(value *string) *WxCardUserCreate {
  5189. if value != nil {
  5190. return wcu.SetNickname(*value)
  5191. }
  5192. return wcu
  5193. }
  5194. // set field if value's pointer is not nil.
  5195. func (wcu *WxCardUserUpdate) SetNotNilRemark(value *string) *WxCardUserUpdate {
  5196. if value != nil {
  5197. return wcu.SetRemark(*value)
  5198. }
  5199. return wcu
  5200. }
  5201. // set field if value's pointer is not nil.
  5202. func (wcu *WxCardUserUpdateOne) SetNotNilRemark(value *string) *WxCardUserUpdateOne {
  5203. if value != nil {
  5204. return wcu.SetRemark(*value)
  5205. }
  5206. return wcu
  5207. }
  5208. // set field if value's pointer is not nil.
  5209. func (wcu *WxCardUserCreate) SetNotNilRemark(value *string) *WxCardUserCreate {
  5210. if value != nil {
  5211. return wcu.SetRemark(*value)
  5212. }
  5213. return wcu
  5214. }
  5215. // set field if value's pointer is not nil.
  5216. func (wcu *WxCardUserUpdate) SetNotNilPhone(value *string) *WxCardUserUpdate {
  5217. if value != nil {
  5218. return wcu.SetPhone(*value)
  5219. }
  5220. return wcu
  5221. }
  5222. // set field if value's pointer is not nil.
  5223. func (wcu *WxCardUserUpdateOne) SetNotNilPhone(value *string) *WxCardUserUpdateOne {
  5224. if value != nil {
  5225. return wcu.SetPhone(*value)
  5226. }
  5227. return wcu
  5228. }
  5229. // set field if value's pointer is not nil.
  5230. func (wcu *WxCardUserCreate) SetNotNilPhone(value *string) *WxCardUserCreate {
  5231. if value != nil {
  5232. return wcu.SetPhone(*value)
  5233. }
  5234. return wcu
  5235. }
  5236. // set field if value's pointer is not nil.
  5237. func (wcu *WxCardUserUpdate) SetNotNilOpenID(value *string) *WxCardUserUpdate {
  5238. if value != nil {
  5239. return wcu.SetOpenID(*value)
  5240. }
  5241. return wcu
  5242. }
  5243. // set field if value's pointer is not nil.
  5244. func (wcu *WxCardUserUpdateOne) SetNotNilOpenID(value *string) *WxCardUserUpdateOne {
  5245. if value != nil {
  5246. return wcu.SetOpenID(*value)
  5247. }
  5248. return wcu
  5249. }
  5250. // set field if value's pointer is not nil.
  5251. func (wcu *WxCardUserCreate) SetNotNilOpenID(value *string) *WxCardUserCreate {
  5252. if value != nil {
  5253. return wcu.SetOpenID(*value)
  5254. }
  5255. return wcu
  5256. }
  5257. // set field if value's pointer is not nil.
  5258. func (wcu *WxCardUserUpdate) SetNotNilUnionID(value *string) *WxCardUserUpdate {
  5259. if value != nil {
  5260. return wcu.SetUnionID(*value)
  5261. }
  5262. return wcu
  5263. }
  5264. // set field if value's pointer is not nil.
  5265. func (wcu *WxCardUserUpdateOne) SetNotNilUnionID(value *string) *WxCardUserUpdateOne {
  5266. if value != nil {
  5267. return wcu.SetUnionID(*value)
  5268. }
  5269. return wcu
  5270. }
  5271. // set field if value's pointer is not nil.
  5272. func (wcu *WxCardUserCreate) SetNotNilUnionID(value *string) *WxCardUserCreate {
  5273. if value != nil {
  5274. return wcu.SetUnionID(*value)
  5275. }
  5276. return wcu
  5277. }
  5278. // set field if value's pointer is not nil.
  5279. func (wcu *WxCardUserUpdate) SetNotNilSessionKey(value *string) *WxCardUserUpdate {
  5280. if value != nil {
  5281. return wcu.SetSessionKey(*value)
  5282. }
  5283. return wcu
  5284. }
  5285. // set field if value's pointer is not nil.
  5286. func (wcu *WxCardUserUpdateOne) SetNotNilSessionKey(value *string) *WxCardUserUpdateOne {
  5287. if value != nil {
  5288. return wcu.SetSessionKey(*value)
  5289. }
  5290. return wcu
  5291. }
  5292. // set field if value's pointer is not nil.
  5293. func (wcu *WxCardUserCreate) SetNotNilSessionKey(value *string) *WxCardUserCreate {
  5294. if value != nil {
  5295. return wcu.SetSessionKey(*value)
  5296. }
  5297. return wcu
  5298. }
  5299. // set field if value's pointer is not nil.
  5300. func (wcu *WxCardUserUpdate) SetNotNilIsVip(value *int) *WxCardUserUpdate {
  5301. if value != nil {
  5302. return wcu.SetIsVip(*value)
  5303. }
  5304. return wcu
  5305. }
  5306. // set field if value's pointer is not nil.
  5307. func (wcu *WxCardUserUpdateOne) SetNotNilIsVip(value *int) *WxCardUserUpdateOne {
  5308. if value != nil {
  5309. return wcu.SetIsVip(*value)
  5310. }
  5311. return wcu
  5312. }
  5313. // set field if value's pointer is not nil.
  5314. func (wcu *WxCardUserCreate) SetNotNilIsVip(value *int) *WxCardUserCreate {
  5315. if value != nil {
  5316. return wcu.SetIsVip(*value)
  5317. }
  5318. return wcu
  5319. }
  5320. // set field if value's pointer is not nil.
  5321. func (wcv *WxCardVisitUpdate) SetNotNilUpdatedAt(value *time.Time) *WxCardVisitUpdate {
  5322. if value != nil {
  5323. return wcv.SetUpdatedAt(*value)
  5324. }
  5325. return wcv
  5326. }
  5327. // set field if value's pointer is not nil.
  5328. func (wcv *WxCardVisitUpdateOne) SetNotNilUpdatedAt(value *time.Time) *WxCardVisitUpdateOne {
  5329. if value != nil {
  5330. return wcv.SetUpdatedAt(*value)
  5331. }
  5332. return wcv
  5333. }
  5334. // set field if value's pointer is not nil.
  5335. func (wcv *WxCardVisitCreate) SetNotNilUpdatedAt(value *time.Time) *WxCardVisitCreate {
  5336. if value != nil {
  5337. return wcv.SetUpdatedAt(*value)
  5338. }
  5339. return wcv
  5340. }
  5341. // set field if value's pointer is not nil.
  5342. func (wcv *WxCardVisitUpdate) SetNotNilDeletedAt(value *time.Time) *WxCardVisitUpdate {
  5343. if value != nil {
  5344. return wcv.SetDeletedAt(*value)
  5345. }
  5346. return wcv
  5347. }
  5348. // set field if value's pointer is not nil.
  5349. func (wcv *WxCardVisitUpdateOne) SetNotNilDeletedAt(value *time.Time) *WxCardVisitUpdateOne {
  5350. if value != nil {
  5351. return wcv.SetDeletedAt(*value)
  5352. }
  5353. return wcv
  5354. }
  5355. // set field if value's pointer is not nil.
  5356. func (wcv *WxCardVisitCreate) SetNotNilDeletedAt(value *time.Time) *WxCardVisitCreate {
  5357. if value != nil {
  5358. return wcv.SetDeletedAt(*value)
  5359. }
  5360. return wcv
  5361. }
  5362. // set field if value's pointer is not nil.
  5363. func (wcv *WxCardVisitUpdate) SetNotNilUserID(value *uint64) *WxCardVisitUpdate {
  5364. if value != nil {
  5365. return wcv.SetUserID(*value)
  5366. }
  5367. return wcv
  5368. }
  5369. // set field if value's pointer is not nil.
  5370. func (wcv *WxCardVisitUpdateOne) SetNotNilUserID(value *uint64) *WxCardVisitUpdateOne {
  5371. if value != nil {
  5372. return wcv.SetUserID(*value)
  5373. }
  5374. return wcv
  5375. }
  5376. // set field if value's pointer is not nil.
  5377. func (wcv *WxCardVisitCreate) SetNotNilUserID(value *uint64) *WxCardVisitCreate {
  5378. if value != nil {
  5379. return wcv.SetUserID(*value)
  5380. }
  5381. return wcv
  5382. }
  5383. // set field if value's pointer is not nil.
  5384. func (wcv *WxCardVisitUpdate) SetNotNilBotID(value *uint64) *WxCardVisitUpdate {
  5385. if value != nil {
  5386. return wcv.SetBotID(*value)
  5387. }
  5388. return wcv
  5389. }
  5390. // set field if value's pointer is not nil.
  5391. func (wcv *WxCardVisitUpdateOne) SetNotNilBotID(value *uint64) *WxCardVisitUpdateOne {
  5392. if value != nil {
  5393. return wcv.SetBotID(*value)
  5394. }
  5395. return wcv
  5396. }
  5397. // set field if value's pointer is not nil.
  5398. func (wcv *WxCardVisitCreate) SetNotNilBotID(value *uint64) *WxCardVisitCreate {
  5399. if value != nil {
  5400. return wcv.SetBotID(*value)
  5401. }
  5402. return wcv
  5403. }
  5404. // set field if value's pointer is not nil.
  5405. func (wcv *WxCardVisitUpdate) SetNotNilBotType(value *uint8) *WxCardVisitUpdate {
  5406. if value != nil {
  5407. return wcv.SetBotType(*value)
  5408. }
  5409. return wcv
  5410. }
  5411. // set field if value's pointer is not nil.
  5412. func (wcv *WxCardVisitUpdateOne) SetNotNilBotType(value *uint8) *WxCardVisitUpdateOne {
  5413. if value != nil {
  5414. return wcv.SetBotType(*value)
  5415. }
  5416. return wcv
  5417. }
  5418. // set field if value's pointer is not nil.
  5419. func (wcv *WxCardVisitCreate) SetNotNilBotType(value *uint8) *WxCardVisitCreate {
  5420. if value != nil {
  5421. return wcv.SetBotType(*value)
  5422. }
  5423. return wcv
  5424. }