set_not_nil.go 256 KB

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