set_not_nil.go 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893
  1. // Code generated by ent, DO NOT EDIT.
  2. package ent
  3. import "time"
  4. // set field if value's pointer is not nil.
  5. func (c *ContactUpdate) SetNotNilUpdatedAt(value *time.Time) *ContactUpdate {
  6. if value != nil {
  7. return c.SetUpdatedAt(*value)
  8. }
  9. return c
  10. }
  11. // set field if value's pointer is not nil.
  12. func (c *ContactUpdateOne) SetNotNilUpdatedAt(value *time.Time) *ContactUpdateOne {
  13. if value != nil {
  14. return c.SetUpdatedAt(*value)
  15. }
  16. return c
  17. }
  18. // set field if value's pointer is not nil.
  19. func (c *ContactCreate) SetNotNilUpdatedAt(value *time.Time) *ContactCreate {
  20. if value != nil {
  21. return c.SetUpdatedAt(*value)
  22. }
  23. return c
  24. }
  25. // set field if value's pointer is not nil.
  26. func (c *ContactUpdate) SetNotNilStatus(value *uint8) *ContactUpdate {
  27. if value != nil {
  28. return c.SetStatus(*value)
  29. }
  30. return c
  31. }
  32. // set field if value's pointer is not nil.
  33. func (c *ContactUpdateOne) SetNotNilStatus(value *uint8) *ContactUpdateOne {
  34. if value != nil {
  35. return c.SetStatus(*value)
  36. }
  37. return c
  38. }
  39. // set field if value's pointer is not nil.
  40. func (c *ContactCreate) SetNotNilStatus(value *uint8) *ContactCreate {
  41. if value != nil {
  42. return c.SetStatus(*value)
  43. }
  44. return c
  45. }
  46. // set field if value's pointer is not nil.
  47. func (c *ContactUpdate) SetNotNilDeletedAt(value *time.Time) *ContactUpdate {
  48. if value != nil {
  49. return c.SetDeletedAt(*value)
  50. }
  51. return c
  52. }
  53. // set field if value's pointer is not nil.
  54. func (c *ContactUpdateOne) SetNotNilDeletedAt(value *time.Time) *ContactUpdateOne {
  55. if value != nil {
  56. return c.SetDeletedAt(*value)
  57. }
  58. return c
  59. }
  60. // set field if value's pointer is not nil.
  61. func (c *ContactCreate) SetNotNilDeletedAt(value *time.Time) *ContactCreate {
  62. if value != nil {
  63. return c.SetDeletedAt(*value)
  64. }
  65. return c
  66. }
  67. // set field if value's pointer is not nil.
  68. func (c *ContactUpdate) SetNotNilWxWxid(value *string) *ContactUpdate {
  69. if value != nil {
  70. return c.SetWxWxid(*value)
  71. }
  72. return c
  73. }
  74. // set field if value's pointer is not nil.
  75. func (c *ContactUpdateOne) SetNotNilWxWxid(value *string) *ContactUpdateOne {
  76. if value != nil {
  77. return c.SetWxWxid(*value)
  78. }
  79. return c
  80. }
  81. // set field if value's pointer is not nil.
  82. func (c *ContactCreate) SetNotNilWxWxid(value *string) *ContactCreate {
  83. if value != nil {
  84. return c.SetWxWxid(*value)
  85. }
  86. return c
  87. }
  88. // set field if value's pointer is not nil.
  89. func (c *ContactUpdate) SetNotNilType(value *int) *ContactUpdate {
  90. if value != nil {
  91. return c.SetType(*value)
  92. }
  93. return c
  94. }
  95. // set field if value's pointer is not nil.
  96. func (c *ContactUpdateOne) SetNotNilType(value *int) *ContactUpdateOne {
  97. if value != nil {
  98. return c.SetType(*value)
  99. }
  100. return c
  101. }
  102. // set field if value's pointer is not nil.
  103. func (c *ContactCreate) SetNotNilType(value *int) *ContactCreate {
  104. if value != nil {
  105. return c.SetType(*value)
  106. }
  107. return c
  108. }
  109. // set field if value's pointer is not nil.
  110. func (c *ContactUpdate) SetNotNilWxid(value *string) *ContactUpdate {
  111. if value != nil {
  112. return c.SetWxid(*value)
  113. }
  114. return c
  115. }
  116. // set field if value's pointer is not nil.
  117. func (c *ContactUpdateOne) SetNotNilWxid(value *string) *ContactUpdateOne {
  118. if value != nil {
  119. return c.SetWxid(*value)
  120. }
  121. return c
  122. }
  123. // set field if value's pointer is not nil.
  124. func (c *ContactCreate) SetNotNilWxid(value *string) *ContactCreate {
  125. if value != nil {
  126. return c.SetWxid(*value)
  127. }
  128. return c
  129. }
  130. // set field if value's pointer is not nil.
  131. func (c *ContactUpdate) SetNotNilAccount(value *string) *ContactUpdate {
  132. if value != nil {
  133. return c.SetAccount(*value)
  134. }
  135. return c
  136. }
  137. // set field if value's pointer is not nil.
  138. func (c *ContactUpdateOne) SetNotNilAccount(value *string) *ContactUpdateOne {
  139. if value != nil {
  140. return c.SetAccount(*value)
  141. }
  142. return c
  143. }
  144. // set field if value's pointer is not nil.
  145. func (c *ContactCreate) SetNotNilAccount(value *string) *ContactCreate {
  146. if value != nil {
  147. return c.SetAccount(*value)
  148. }
  149. return c
  150. }
  151. // set field if value's pointer is not nil.
  152. func (c *ContactUpdate) SetNotNilNickname(value *string) *ContactUpdate {
  153. if value != nil {
  154. return c.SetNickname(*value)
  155. }
  156. return c
  157. }
  158. // set field if value's pointer is not nil.
  159. func (c *ContactUpdateOne) SetNotNilNickname(value *string) *ContactUpdateOne {
  160. if value != nil {
  161. return c.SetNickname(*value)
  162. }
  163. return c
  164. }
  165. // set field if value's pointer is not nil.
  166. func (c *ContactCreate) SetNotNilNickname(value *string) *ContactCreate {
  167. if value != nil {
  168. return c.SetNickname(*value)
  169. }
  170. return c
  171. }
  172. // set field if value's pointer is not nil.
  173. func (c *ContactUpdate) SetNotNilMarkname(value *string) *ContactUpdate {
  174. if value != nil {
  175. return c.SetMarkname(*value)
  176. }
  177. return c
  178. }
  179. // set field if value's pointer is not nil.
  180. func (c *ContactUpdateOne) SetNotNilMarkname(value *string) *ContactUpdateOne {
  181. if value != nil {
  182. return c.SetMarkname(*value)
  183. }
  184. return c
  185. }
  186. // set field if value's pointer is not nil.
  187. func (c *ContactCreate) SetNotNilMarkname(value *string) *ContactCreate {
  188. if value != nil {
  189. return c.SetMarkname(*value)
  190. }
  191. return c
  192. }
  193. // set field if value's pointer is not nil.
  194. func (c *ContactUpdate) SetNotNilHeadimg(value *string) *ContactUpdate {
  195. if value != nil {
  196. return c.SetHeadimg(*value)
  197. }
  198. return c
  199. }
  200. // set field if value's pointer is not nil.
  201. func (c *ContactUpdateOne) SetNotNilHeadimg(value *string) *ContactUpdateOne {
  202. if value != nil {
  203. return c.SetHeadimg(*value)
  204. }
  205. return c
  206. }
  207. // set field if value's pointer is not nil.
  208. func (c *ContactCreate) SetNotNilHeadimg(value *string) *ContactCreate {
  209. if value != nil {
  210. return c.SetHeadimg(*value)
  211. }
  212. return c
  213. }
  214. // set field if value's pointer is not nil.
  215. func (c *ContactUpdate) SetNotNilSex(value *int) *ContactUpdate {
  216. if value != nil {
  217. return c.SetSex(*value)
  218. }
  219. return c
  220. }
  221. // set field if value's pointer is not nil.
  222. func (c *ContactUpdateOne) SetNotNilSex(value *int) *ContactUpdateOne {
  223. if value != nil {
  224. return c.SetSex(*value)
  225. }
  226. return c
  227. }
  228. // set field if value's pointer is not nil.
  229. func (c *ContactCreate) SetNotNilSex(value *int) *ContactCreate {
  230. if value != nil {
  231. return c.SetSex(*value)
  232. }
  233. return c
  234. }
  235. // set field if value's pointer is not nil.
  236. func (c *ContactUpdate) SetNotNilStarrole(value *string) *ContactUpdate {
  237. if value != nil {
  238. return c.SetStarrole(*value)
  239. }
  240. return c
  241. }
  242. // set field if value's pointer is not nil.
  243. func (c *ContactUpdateOne) SetNotNilStarrole(value *string) *ContactUpdateOne {
  244. if value != nil {
  245. return c.SetStarrole(*value)
  246. }
  247. return c
  248. }
  249. // set field if value's pointer is not nil.
  250. func (c *ContactCreate) SetNotNilStarrole(value *string) *ContactCreate {
  251. if value != nil {
  252. return c.SetStarrole(*value)
  253. }
  254. return c
  255. }
  256. // set field if value's pointer is not nil.
  257. func (c *ContactUpdate) SetNotNilDontseeit(value *int) *ContactUpdate {
  258. if value != nil {
  259. return c.SetDontseeit(*value)
  260. }
  261. return c
  262. }
  263. // set field if value's pointer is not nil.
  264. func (c *ContactUpdateOne) SetNotNilDontseeit(value *int) *ContactUpdateOne {
  265. if value != nil {
  266. return c.SetDontseeit(*value)
  267. }
  268. return c
  269. }
  270. // set field if value's pointer is not nil.
  271. func (c *ContactCreate) SetNotNilDontseeit(value *int) *ContactCreate {
  272. if value != nil {
  273. return c.SetDontseeit(*value)
  274. }
  275. return c
  276. }
  277. // set field if value's pointer is not nil.
  278. func (c *ContactUpdate) SetNotNilDontseeme(value *int) *ContactUpdate {
  279. if value != nil {
  280. return c.SetDontseeme(*value)
  281. }
  282. return c
  283. }
  284. // set field if value's pointer is not nil.
  285. func (c *ContactUpdateOne) SetNotNilDontseeme(value *int) *ContactUpdateOne {
  286. if value != nil {
  287. return c.SetDontseeme(*value)
  288. }
  289. return c
  290. }
  291. // set field if value's pointer is not nil.
  292. func (c *ContactCreate) SetNotNilDontseeme(value *int) *ContactCreate {
  293. if value != nil {
  294. return c.SetDontseeme(*value)
  295. }
  296. return c
  297. }
  298. // set field if value's pointer is not nil.
  299. func (c *ContactUpdate) SetNotNilLag(value *string) *ContactUpdate {
  300. if value != nil {
  301. return c.SetLag(*value)
  302. }
  303. return c
  304. }
  305. // set field if value's pointer is not nil.
  306. func (c *ContactUpdateOne) SetNotNilLag(value *string) *ContactUpdateOne {
  307. if value != nil {
  308. return c.SetLag(*value)
  309. }
  310. return c
  311. }
  312. // set field if value's pointer is not nil.
  313. func (c *ContactCreate) SetNotNilLag(value *string) *ContactCreate {
  314. if value != nil {
  315. return c.SetLag(*value)
  316. }
  317. return c
  318. }
  319. // set field if value's pointer is not nil.
  320. func (c *ContactUpdate) SetNotNilGid(value *string) *ContactUpdate {
  321. if value != nil {
  322. return c.SetGid(*value)
  323. }
  324. return c
  325. }
  326. // set field if value's pointer is not nil.
  327. func (c *ContactUpdateOne) SetNotNilGid(value *string) *ContactUpdateOne {
  328. if value != nil {
  329. return c.SetGid(*value)
  330. }
  331. return c
  332. }
  333. // set field if value's pointer is not nil.
  334. func (c *ContactCreate) SetNotNilGid(value *string) *ContactCreate {
  335. if value != nil {
  336. return c.SetGid(*value)
  337. }
  338. return c
  339. }
  340. // set field if value's pointer is not nil.
  341. func (c *ContactUpdate) SetNotNilGname(value *string) *ContactUpdate {
  342. if value != nil {
  343. return c.SetGname(*value)
  344. }
  345. return c
  346. }
  347. // set field if value's pointer is not nil.
  348. func (c *ContactUpdateOne) SetNotNilGname(value *string) *ContactUpdateOne {
  349. if value != nil {
  350. return c.SetGname(*value)
  351. }
  352. return c
  353. }
  354. // set field if value's pointer is not nil.
  355. func (c *ContactCreate) SetNotNilGname(value *string) *ContactCreate {
  356. if value != nil {
  357. return c.SetGname(*value)
  358. }
  359. return c
  360. }
  361. // set field if value's pointer is not nil.
  362. func (c *ContactUpdate) SetNotNilV3(value *string) *ContactUpdate {
  363. if value != nil {
  364. return c.SetV3(*value)
  365. }
  366. return c
  367. }
  368. // set field if value's pointer is not nil.
  369. func (c *ContactUpdateOne) SetNotNilV3(value *string) *ContactUpdateOne {
  370. if value != nil {
  371. return c.SetV3(*value)
  372. }
  373. return c
  374. }
  375. // set field if value's pointer is not nil.
  376. func (c *ContactCreate) SetNotNilV3(value *string) *ContactCreate {
  377. if value != nil {
  378. return c.SetV3(*value)
  379. }
  380. return c
  381. }
  382. // set field if value's pointer is not nil.
  383. func (s *ServerUpdate) SetNotNilUpdatedAt(value *time.Time) *ServerUpdate {
  384. if value != nil {
  385. return s.SetUpdatedAt(*value)
  386. }
  387. return s
  388. }
  389. // set field if value's pointer is not nil.
  390. func (s *ServerUpdateOne) SetNotNilUpdatedAt(value *time.Time) *ServerUpdateOne {
  391. if value != nil {
  392. return s.SetUpdatedAt(*value)
  393. }
  394. return s
  395. }
  396. // set field if value's pointer is not nil.
  397. func (s *ServerCreate) SetNotNilUpdatedAt(value *time.Time) *ServerCreate {
  398. if value != nil {
  399. return s.SetUpdatedAt(*value)
  400. }
  401. return s
  402. }
  403. // set field if value's pointer is not nil.
  404. func (s *ServerUpdate) SetNotNilStatus(value *uint8) *ServerUpdate {
  405. if value != nil {
  406. return s.SetStatus(*value)
  407. }
  408. return s
  409. }
  410. // set field if value's pointer is not nil.
  411. func (s *ServerUpdateOne) SetNotNilStatus(value *uint8) *ServerUpdateOne {
  412. if value != nil {
  413. return s.SetStatus(*value)
  414. }
  415. return s
  416. }
  417. // set field if value's pointer is not nil.
  418. func (s *ServerCreate) SetNotNilStatus(value *uint8) *ServerCreate {
  419. if value != nil {
  420. return s.SetStatus(*value)
  421. }
  422. return s
  423. }
  424. // set field if value's pointer is not nil.
  425. func (s *ServerUpdate) SetNotNilDeletedAt(value *time.Time) *ServerUpdate {
  426. if value != nil {
  427. return s.SetDeletedAt(*value)
  428. }
  429. return s
  430. }
  431. // set field if value's pointer is not nil.
  432. func (s *ServerUpdateOne) SetNotNilDeletedAt(value *time.Time) *ServerUpdateOne {
  433. if value != nil {
  434. return s.SetDeletedAt(*value)
  435. }
  436. return s
  437. }
  438. // set field if value's pointer is not nil.
  439. func (s *ServerCreate) SetNotNilDeletedAt(value *time.Time) *ServerCreate {
  440. if value != nil {
  441. return s.SetDeletedAt(*value)
  442. }
  443. return s
  444. }
  445. // set field if value's pointer is not nil.
  446. func (s *ServerUpdate) SetNotNilName(value *string) *ServerUpdate {
  447. if value != nil {
  448. return s.SetName(*value)
  449. }
  450. return s
  451. }
  452. // set field if value's pointer is not nil.
  453. func (s *ServerUpdateOne) SetNotNilName(value *string) *ServerUpdateOne {
  454. if value != nil {
  455. return s.SetName(*value)
  456. }
  457. return s
  458. }
  459. // set field if value's pointer is not nil.
  460. func (s *ServerCreate) SetNotNilName(value *string) *ServerCreate {
  461. if value != nil {
  462. return s.SetName(*value)
  463. }
  464. return s
  465. }
  466. // set field if value's pointer is not nil.
  467. func (s *ServerUpdate) SetNotNilPublicIP(value *string) *ServerUpdate {
  468. if value != nil {
  469. return s.SetPublicIP(*value)
  470. }
  471. return s
  472. }
  473. // set field if value's pointer is not nil.
  474. func (s *ServerUpdateOne) SetNotNilPublicIP(value *string) *ServerUpdateOne {
  475. if value != nil {
  476. return s.SetPublicIP(*value)
  477. }
  478. return s
  479. }
  480. // set field if value's pointer is not nil.
  481. func (s *ServerCreate) SetNotNilPublicIP(value *string) *ServerCreate {
  482. if value != nil {
  483. return s.SetPublicIP(*value)
  484. }
  485. return s
  486. }
  487. // set field if value's pointer is not nil.
  488. func (s *ServerUpdate) SetNotNilPrivateIP(value *string) *ServerUpdate {
  489. if value != nil {
  490. return s.SetPrivateIP(*value)
  491. }
  492. return s
  493. }
  494. // set field if value's pointer is not nil.
  495. func (s *ServerUpdateOne) SetNotNilPrivateIP(value *string) *ServerUpdateOne {
  496. if value != nil {
  497. return s.SetPrivateIP(*value)
  498. }
  499. return s
  500. }
  501. // set field if value's pointer is not nil.
  502. func (s *ServerCreate) SetNotNilPrivateIP(value *string) *ServerCreate {
  503. if value != nil {
  504. return s.SetPrivateIP(*value)
  505. }
  506. return s
  507. }
  508. // set field if value's pointer is not nil.
  509. func (s *ServerUpdate) SetNotNilAdminPort(value *string) *ServerUpdate {
  510. if value != nil {
  511. return s.SetAdminPort(*value)
  512. }
  513. return s
  514. }
  515. // set field if value's pointer is not nil.
  516. func (s *ServerUpdateOne) SetNotNilAdminPort(value *string) *ServerUpdateOne {
  517. if value != nil {
  518. return s.SetAdminPort(*value)
  519. }
  520. return s
  521. }
  522. // set field if value's pointer is not nil.
  523. func (s *ServerCreate) SetNotNilAdminPort(value *string) *ServerCreate {
  524. if value != nil {
  525. return s.SetAdminPort(*value)
  526. }
  527. return s
  528. }
  529. // set field if value's pointer is not nil.
  530. func (w *WxUpdate) SetNotNilUpdatedAt(value *time.Time) *WxUpdate {
  531. if value != nil {
  532. return w.SetUpdatedAt(*value)
  533. }
  534. return w
  535. }
  536. // set field if value's pointer is not nil.
  537. func (w *WxUpdateOne) SetNotNilUpdatedAt(value *time.Time) *WxUpdateOne {
  538. if value != nil {
  539. return w.SetUpdatedAt(*value)
  540. }
  541. return w
  542. }
  543. // set field if value's pointer is not nil.
  544. func (w *WxCreate) SetNotNilUpdatedAt(value *time.Time) *WxCreate {
  545. if value != nil {
  546. return w.SetUpdatedAt(*value)
  547. }
  548. return w
  549. }
  550. // set field if value's pointer is not nil.
  551. func (w *WxUpdate) SetNotNilStatus(value *uint8) *WxUpdate {
  552. if value != nil {
  553. return w.SetStatus(*value)
  554. }
  555. return w
  556. }
  557. // set field if value's pointer is not nil.
  558. func (w *WxUpdateOne) SetNotNilStatus(value *uint8) *WxUpdateOne {
  559. if value != nil {
  560. return w.SetStatus(*value)
  561. }
  562. return w
  563. }
  564. // set field if value's pointer is not nil.
  565. func (w *WxCreate) SetNotNilStatus(value *uint8) *WxCreate {
  566. if value != nil {
  567. return w.SetStatus(*value)
  568. }
  569. return w
  570. }
  571. // set field if value's pointer is not nil.
  572. func (w *WxUpdate) SetNotNilDeletedAt(value *time.Time) *WxUpdate {
  573. if value != nil {
  574. return w.SetDeletedAt(*value)
  575. }
  576. return w
  577. }
  578. // set field if value's pointer is not nil.
  579. func (w *WxUpdateOne) SetNotNilDeletedAt(value *time.Time) *WxUpdateOne {
  580. if value != nil {
  581. return w.SetDeletedAt(*value)
  582. }
  583. return w
  584. }
  585. // set field if value's pointer is not nil.
  586. func (w *WxCreate) SetNotNilDeletedAt(value *time.Time) *WxCreate {
  587. if value != nil {
  588. return w.SetDeletedAt(*value)
  589. }
  590. return w
  591. }
  592. // set field if value's pointer is not nil.
  593. func (w *WxUpdate) SetNotNilServerID(value *uint64) *WxUpdate {
  594. if value != nil {
  595. return w.SetServerID(*value)
  596. }
  597. return w
  598. }
  599. // set field if value's pointer is not nil.
  600. func (w *WxUpdateOne) SetNotNilServerID(value *uint64) *WxUpdateOne {
  601. if value != nil {
  602. return w.SetServerID(*value)
  603. }
  604. return w
  605. }
  606. // set field if value's pointer is not nil.
  607. func (w *WxCreate) SetNotNilServerID(value *uint64) *WxCreate {
  608. if value != nil {
  609. return w.SetServerID(*value)
  610. }
  611. return w
  612. }
  613. // set field if value's pointer is not nil.
  614. func (w *WxUpdate) SetNotNilPort(value *string) *WxUpdate {
  615. if value != nil {
  616. return w.SetPort(*value)
  617. }
  618. return w
  619. }
  620. // set field if value's pointer is not nil.
  621. func (w *WxUpdateOne) SetNotNilPort(value *string) *WxUpdateOne {
  622. if value != nil {
  623. return w.SetPort(*value)
  624. }
  625. return w
  626. }
  627. // set field if value's pointer is not nil.
  628. func (w *WxCreate) SetNotNilPort(value *string) *WxCreate {
  629. if value != nil {
  630. return w.SetPort(*value)
  631. }
  632. return w
  633. }
  634. // set field if value's pointer is not nil.
  635. func (w *WxUpdate) SetNotNilProcessID(value *string) *WxUpdate {
  636. if value != nil {
  637. return w.SetProcessID(*value)
  638. }
  639. return w
  640. }
  641. // set field if value's pointer is not nil.
  642. func (w *WxUpdateOne) SetNotNilProcessID(value *string) *WxUpdateOne {
  643. if value != nil {
  644. return w.SetProcessID(*value)
  645. }
  646. return w
  647. }
  648. // set field if value's pointer is not nil.
  649. func (w *WxCreate) SetNotNilProcessID(value *string) *WxCreate {
  650. if value != nil {
  651. return w.SetProcessID(*value)
  652. }
  653. return w
  654. }
  655. // set field if value's pointer is not nil.
  656. func (w *WxUpdate) SetNotNilCallback(value *string) *WxUpdate {
  657. if value != nil {
  658. return w.SetCallback(*value)
  659. }
  660. return w
  661. }
  662. // set field if value's pointer is not nil.
  663. func (w *WxUpdateOne) SetNotNilCallback(value *string) *WxUpdateOne {
  664. if value != nil {
  665. return w.SetCallback(*value)
  666. }
  667. return w
  668. }
  669. // set field if value's pointer is not nil.
  670. func (w *WxCreate) SetNotNilCallback(value *string) *WxCreate {
  671. if value != nil {
  672. return w.SetCallback(*value)
  673. }
  674. return w
  675. }
  676. // set field if value's pointer is not nil.
  677. func (w *WxUpdate) SetNotNilWxid(value *string) *WxUpdate {
  678. if value != nil {
  679. return w.SetWxid(*value)
  680. }
  681. return w
  682. }
  683. // set field if value's pointer is not nil.
  684. func (w *WxUpdateOne) SetNotNilWxid(value *string) *WxUpdateOne {
  685. if value != nil {
  686. return w.SetWxid(*value)
  687. }
  688. return w
  689. }
  690. // set field if value's pointer is not nil.
  691. func (w *WxCreate) SetNotNilWxid(value *string) *WxCreate {
  692. if value != nil {
  693. return w.SetWxid(*value)
  694. }
  695. return w
  696. }
  697. // set field if value's pointer is not nil.
  698. func (w *WxUpdate) SetNotNilAccount(value *string) *WxUpdate {
  699. if value != nil {
  700. return w.SetAccount(*value)
  701. }
  702. return w
  703. }
  704. // set field if value's pointer is not nil.
  705. func (w *WxUpdateOne) SetNotNilAccount(value *string) *WxUpdateOne {
  706. if value != nil {
  707. return w.SetAccount(*value)
  708. }
  709. return w
  710. }
  711. // set field if value's pointer is not nil.
  712. func (w *WxCreate) SetNotNilAccount(value *string) *WxCreate {
  713. if value != nil {
  714. return w.SetAccount(*value)
  715. }
  716. return w
  717. }
  718. // set field if value's pointer is not nil.
  719. func (w *WxUpdate) SetNotNilNickname(value *string) *WxUpdate {
  720. if value != nil {
  721. return w.SetNickname(*value)
  722. }
  723. return w
  724. }
  725. // set field if value's pointer is not nil.
  726. func (w *WxUpdateOne) SetNotNilNickname(value *string) *WxUpdateOne {
  727. if value != nil {
  728. return w.SetNickname(*value)
  729. }
  730. return w
  731. }
  732. // set field if value's pointer is not nil.
  733. func (w *WxCreate) SetNotNilNickname(value *string) *WxCreate {
  734. if value != nil {
  735. return w.SetNickname(*value)
  736. }
  737. return w
  738. }
  739. // set field if value's pointer is not nil.
  740. func (w *WxUpdate) SetNotNilTel(value *string) *WxUpdate {
  741. if value != nil {
  742. return w.SetTel(*value)
  743. }
  744. return w
  745. }
  746. // set field if value's pointer is not nil.
  747. func (w *WxUpdateOne) SetNotNilTel(value *string) *WxUpdateOne {
  748. if value != nil {
  749. return w.SetTel(*value)
  750. }
  751. return w
  752. }
  753. // set field if value's pointer is not nil.
  754. func (w *WxCreate) SetNotNilTel(value *string) *WxCreate {
  755. if value != nil {
  756. return w.SetTel(*value)
  757. }
  758. return w
  759. }
  760. // set field if value's pointer is not nil.
  761. func (w *WxUpdate) SetNotNilHeadBig(value *string) *WxUpdate {
  762. if value != nil {
  763. return w.SetHeadBig(*value)
  764. }
  765. return w
  766. }
  767. // set field if value's pointer is not nil.
  768. func (w *WxUpdateOne) SetNotNilHeadBig(value *string) *WxUpdateOne {
  769. if value != nil {
  770. return w.SetHeadBig(*value)
  771. }
  772. return w
  773. }
  774. // set field if value's pointer is not nil.
  775. func (w *WxCreate) SetNotNilHeadBig(value *string) *WxCreate {
  776. if value != nil {
  777. return w.SetHeadBig(*value)
  778. }
  779. return w
  780. }