ops_delivery_project.go 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY.
  3. // ==========================================================================
  4. package internal
  5. import (
  6. "context"
  7. "dashoo.cn/opms_parent/app/model/opsdev"
  8. "database/sql"
  9. "github.com/gogf/gf/database/gdb"
  10. "github.com/gogf/gf/frame/g"
  11. "github.com/gogf/gf/frame/gmvc"
  12. "time"
  13. )
  14. // OpsDeliveryProjectDao is the manager for logic model data accessing
  15. // and custom defined data operations functions management.
  16. type OpsDeliveryProjectDao struct {
  17. gmvc.M
  18. DB gdb.DB
  19. Table string
  20. Columns opsDeliveryProjectColumns
  21. }
  22. // OpsDeliveryProjectColumns defines and stores column names for table ops_delivery_project.
  23. type opsDeliveryProjectColumns struct {
  24. Id string // 主键
  25. ProjectName string // 项目名称
  26. ProjectStatus string // 项目状态(10 待交付 20 交付中 30 暂停 40交付完成 50 验收 90作废)
  27. ContractId string // 合同ID
  28. ContractNo string // 合同编号
  29. CustId string // 客户ID
  30. CustName string // 客户名称
  31. ProductLine string // 产品线(10 Biobank 20 LIMS 30 CellLbank 40MCS )
  32. DeliveryUserId string // 交付负责人ID
  33. DeliveryUserName string // 交付负责人
  34. SalesUserId string // 销售ID
  35. SalesUserName string // 销售
  36. DeliveryNode string // 交付节点(10内部启动会 15 外部启动会 20 制定计划 30项目实施 40完成部署 50试运行 60交付完成)
  37. InternalKickoffTime string // 内部启动会时间
  38. ExternalKickoffTime string // 外部启动会时间
  39. DeliveryPlanSubmitTime string // 交付计划提交时间
  40. DeploymentTime string // 部署时间
  41. TrialRunTime string // 试运行时间
  42. GoLiveTime string // 上线时间
  43. Attribute1 string // 增强字段1
  44. Attribute2 string // 增强字段2
  45. Attribute3 string // 增强字段3
  46. Attribute4 string // 增强字段4
  47. Attribute5 string // 增强字段5
  48. Attribute6 string // 增强字段6
  49. Attribute7 string // 增强字段7
  50. Attribute8 string // 增强字段8
  51. Attribute9 string // 增强字段9
  52. Remark string // 备注
  53. CreatedBy string // 创建者
  54. CreatedName string // 创建人
  55. CreatedTime string // 创建时间
  56. UpdatedBy string // 更新者
  57. UpdatedName string // 更新人
  58. UpdatedTime string // 更新时间
  59. DeletedTime string // 删除时间
  60. }
  61. var (
  62. // OpsDeliveryProject is globally public accessible object for table ops_delivery_project operations.
  63. OpsDeliveryProject = OpsDeliveryProjectDao{
  64. M: g.DB("default").Model("ops_delivery_project").Safe(),
  65. DB: g.DB("default"),
  66. Table: "ops_delivery_project",
  67. Columns: opsDeliveryProjectColumns{
  68. Id: "id",
  69. ProjectName: "project_name",
  70. ProjectStatus: "project_status",
  71. ContractId: "contract_id",
  72. ContractNo: "contract_no",
  73. CustId: "cust_id",
  74. CustName: "cust_name",
  75. ProductLine: "product_line",
  76. DeliveryUserId: "delivery_user_id",
  77. DeliveryUserName: "delivery_user_name",
  78. SalesUserId: "sales_user_id",
  79. SalesUserName: "sales_user_name",
  80. DeliveryNode: "delivery_node",
  81. InternalKickoffTime: "internal_kickoff_time",
  82. ExternalKickoffTime: "external_kickoff_time",
  83. DeliveryPlanSubmitTime: "delivery_plan_submit_time",
  84. DeploymentTime: "deployment_time",
  85. TrialRunTime: "trial_run_time",
  86. GoLiveTime: "go_live_time",
  87. Attribute1: "attribute1",
  88. Attribute2: "attribute2",
  89. Attribute3: "attribute3",
  90. Attribute4: "attribute4",
  91. Attribute5: "attribute5",
  92. Attribute6: "attribute6",
  93. Attribute7: "attribute7",
  94. Attribute8: "attribute8",
  95. Attribute9: "attribute9",
  96. Remark: "remark",
  97. CreatedBy: "created_by",
  98. CreatedName: "created_name",
  99. CreatedTime: "created_time",
  100. UpdatedBy: "updated_by",
  101. UpdatedName: "updated_name",
  102. UpdatedTime: "updated_time",
  103. DeletedTime: "deleted_time",
  104. },
  105. }
  106. )
  107. func NewOpsDeliveryProjectDao(tenant string) OpsDeliveryProjectDao {
  108. var dao OpsDeliveryProjectDao
  109. dao = OpsDeliveryProjectDao{
  110. M: g.DB(tenant).Model("ops_delivery_project").Safe(),
  111. DB: g.DB(tenant),
  112. Table: "ops_delivery_project",
  113. Columns: opsDeliveryProjectColumns{
  114. Id: "id",
  115. ProjectName: "project_name",
  116. ProjectStatus: "project_status",
  117. ContractId: "contract_id",
  118. ContractNo: "contract_no",
  119. CustId: "cust_id",
  120. CustName: "cust_name",
  121. ProductLine: "product_line",
  122. DeliveryUserId: "delivery_user_id",
  123. DeliveryUserName: "delivery_user_name",
  124. SalesUserId: "sales_user_id",
  125. SalesUserName: "sales_user_name",
  126. DeliveryNode: "delivery_node",
  127. InternalKickoffTime: "internal_kickoff_time",
  128. ExternalKickoffTime: "external_kickoff_time",
  129. DeliveryPlanSubmitTime: "delivery_plan_submit_time",
  130. DeploymentTime: "deployment_time",
  131. TrialRunTime: "trial_run_time",
  132. GoLiveTime: "go_live_time",
  133. Attribute1: "attribute1",
  134. Attribute2: "attribute2",
  135. Attribute3: "attribute3",
  136. Attribute4: "attribute4",
  137. Attribute5: "attribute5",
  138. Attribute6: "attribute6",
  139. Attribute7: "attribute7",
  140. Attribute8: "attribute8",
  141. Attribute9: "attribute9",
  142. Remark: "remark",
  143. CreatedBy: "created_by",
  144. CreatedName: "created_name",
  145. CreatedTime: "created_time",
  146. UpdatedBy: "updated_by",
  147. UpdatedName: "updated_name",
  148. UpdatedTime: "updated_time",
  149. DeletedTime: "deleted_time",
  150. },
  151. }
  152. return dao
  153. }
  154. // Ctx is a chaining function, which creates and returns a new DB that is a shallow copy
  155. // of current DB object and with given context in it.
  156. // Note that this returned DB object can be used only once, so do not assign it to
  157. // a global or package variable for long using.
  158. func (d *OpsDeliveryProjectDao) Ctx(ctx context.Context) *OpsDeliveryProjectDao {
  159. return &OpsDeliveryProjectDao{M: d.M.Ctx(ctx)}
  160. }
  161. // As sets an alias name for current table.
  162. func (d *OpsDeliveryProjectDao) As(as string) *OpsDeliveryProjectDao {
  163. return &OpsDeliveryProjectDao{M: d.M.As(as)}
  164. }
  165. // TX sets the transaction for current operation.
  166. func (d *OpsDeliveryProjectDao) TX(tx *gdb.TX) *OpsDeliveryProjectDao {
  167. return &OpsDeliveryProjectDao{M: d.M.TX(tx)}
  168. }
  169. // Master marks the following operation on master node.
  170. func (d *OpsDeliveryProjectDao) Master() *OpsDeliveryProjectDao {
  171. return &OpsDeliveryProjectDao{M: d.M.Master()}
  172. }
  173. // Slave marks the following operation on slave node.
  174. // Note that it makes sense only if there's any slave node configured.
  175. func (d *OpsDeliveryProjectDao) Slave() *OpsDeliveryProjectDao {
  176. return &OpsDeliveryProjectDao{M: d.M.Slave()}
  177. }
  178. // Args sets custom arguments for model operation.
  179. func (d *OpsDeliveryProjectDao) Args(args ...interface{}) *OpsDeliveryProjectDao {
  180. return &OpsDeliveryProjectDao{M: d.M.Args(args...)}
  181. }
  182. // LeftJoin does "LEFT JOIN ... ON ..." statement on the model.
  183. // The parameter <table> can be joined table and its joined condition,
  184. // and also with its alias name, like:
  185. // Table("user").LeftJoin("user_detail", "user_detail.uid=user.uid")
  186. // Table("user", "u").LeftJoin("user_detail", "ud", "ud.uid=u.uid")
  187. func (d *OpsDeliveryProjectDao) LeftJoin(table ...string) *OpsDeliveryProjectDao {
  188. return &OpsDeliveryProjectDao{M: d.M.LeftJoin(table...)}
  189. }
  190. // RightJoin does "RIGHT JOIN ... ON ..." statement on the model.
  191. // The parameter <table> can be joined table and its joined condition,
  192. // and also with its alias name, like:
  193. // Table("user").RightJoin("user_detail", "user_detail.uid=user.uid")
  194. // Table("user", "u").RightJoin("user_detail", "ud", "ud.uid=u.uid")
  195. func (d *OpsDeliveryProjectDao) RightJoin(table ...string) *OpsDeliveryProjectDao {
  196. return &OpsDeliveryProjectDao{M: d.M.RightJoin(table...)}
  197. }
  198. // InnerJoin does "INNER JOIN ... ON ..." statement on the model.
  199. // The parameter <table> can be joined table and its joined condition,
  200. // and also with its alias name, like:
  201. // Table("user").InnerJoin("user_detail", "user_detail.uid=user.uid")
  202. // Table("user", "u").InnerJoin("user_detail", "ud", "ud.uid=u.uid")
  203. func (d *OpsDeliveryProjectDao) InnerJoin(table ...string) *OpsDeliveryProjectDao {
  204. return &OpsDeliveryProjectDao{M: d.M.InnerJoin(table...)}
  205. }
  206. // Fields sets the operation fields of the model, multiple fields joined using char ','.
  207. // The parameter <fieldNamesOrMapStruct> can be type of string/map/*map/struct/*struct.
  208. func (d *OpsDeliveryProjectDao) Fields(fieldNamesOrMapStruct ...interface{}) *OpsDeliveryProjectDao {
  209. return &OpsDeliveryProjectDao{M: d.M.Fields(fieldNamesOrMapStruct...)}
  210. }
  211. // FieldsEx sets the excluded operation fields of the model, multiple fields joined using char ','.
  212. // The parameter <fieldNamesOrMapStruct> can be type of string/map/*map/struct/*struct.
  213. func (d *OpsDeliveryProjectDao) FieldsEx(fieldNamesOrMapStruct ...interface{}) *OpsDeliveryProjectDao {
  214. return &OpsDeliveryProjectDao{M: d.M.FieldsEx(fieldNamesOrMapStruct...)}
  215. }
  216. // Option sets the extra operation option for the model.
  217. func (d *OpsDeliveryProjectDao) Option(option int) *OpsDeliveryProjectDao {
  218. return &OpsDeliveryProjectDao{M: d.M.Option(option)}
  219. }
  220. // OmitEmpty sets OPTION_OMITEMPTY option for the model, which automatically filers
  221. // the data and where attributes for empty values.
  222. func (d *OpsDeliveryProjectDao) OmitEmpty() *OpsDeliveryProjectDao {
  223. return &OpsDeliveryProjectDao{M: d.M.OmitEmpty()}
  224. }
  225. // Filter marks filtering the fields which does not exist in the fields of the operated table.
  226. func (d *OpsDeliveryProjectDao) Filter() *OpsDeliveryProjectDao {
  227. return &OpsDeliveryProjectDao{M: d.M.Filter()}
  228. }
  229. // Where sets the condition statement for the model. The parameter <where> can be type of
  230. // string/map/gmap/slice/struct/*struct, etc. Note that, if it's called more than one times,
  231. // multiple conditions will be joined into where statement using "AND".
  232. // Eg:
  233. // Where("uid=10000")
  234. // Where("uid", 10000)
  235. // Where("money>? AND name like ?", 99999, "vip_%")
  236. // Where("uid", 1).Where("name", "john")
  237. // Where("status IN (?)", g.Slice{1,2,3})
  238. // Where("age IN(?,?)", 18, 50)
  239. // Where(User{ Id : 1, UserName : "john"})
  240. func (d *OpsDeliveryProjectDao) Where(where interface{}, args ...interface{}) *OpsDeliveryProjectDao {
  241. return &OpsDeliveryProjectDao{M: d.M.Where(where, args...)}
  242. }
  243. // WherePri does the same logic as M.Where except that if the parameter <where>
  244. // is a single condition like int/string/float/slice, it treats the condition as the primary
  245. // key value. That is, if primary key is "id" and given <where> parameter as "123", the
  246. // WherePri function treats the condition as "id=123", but M.Where treats the condition
  247. // as string "123".
  248. func (d *OpsDeliveryProjectDao) WherePri(where interface{}, args ...interface{}) *OpsDeliveryProjectDao {
  249. return &OpsDeliveryProjectDao{M: d.M.WherePri(where, args...)}
  250. }
  251. // And adds "AND" condition to the where statement.
  252. func (d *OpsDeliveryProjectDao) And(where interface{}, args ...interface{}) *OpsDeliveryProjectDao {
  253. return &OpsDeliveryProjectDao{M: d.M.And(where, args...)}
  254. }
  255. // Or adds "OR" condition to the where statement.
  256. func (d *OpsDeliveryProjectDao) Or(where interface{}, args ...interface{}) *OpsDeliveryProjectDao {
  257. return &OpsDeliveryProjectDao{M: d.M.Or(where, args...)}
  258. }
  259. // Group sets the "GROUP BY" statement for the model.
  260. func (d *OpsDeliveryProjectDao) Group(groupBy string) *OpsDeliveryProjectDao {
  261. return &OpsDeliveryProjectDao{M: d.M.Group(groupBy)}
  262. }
  263. // Order sets the "ORDER BY" statement for the model.
  264. func (d *OpsDeliveryProjectDao) Order(orderBy ...string) *OpsDeliveryProjectDao {
  265. return &OpsDeliveryProjectDao{M: d.M.Order(orderBy...)}
  266. }
  267. // Limit sets the "LIMIT" statement for the model.
  268. // The parameter <limit> can be either one or two number, if passed two number is passed,
  269. // it then sets "LIMIT limit[0],limit[1]" statement for the model, or else it sets "LIMIT limit[0]"
  270. // statement.
  271. func (d *OpsDeliveryProjectDao) Limit(limit ...int) *OpsDeliveryProjectDao {
  272. return &OpsDeliveryProjectDao{M: d.M.Limit(limit...)}
  273. }
  274. // Offset sets the "OFFSET" statement for the model.
  275. // It only makes sense for some databases like SQLServer, PostgreSQL, etc.
  276. func (d *OpsDeliveryProjectDao) Offset(offset int) *OpsDeliveryProjectDao {
  277. return &OpsDeliveryProjectDao{M: d.M.Offset(offset)}
  278. }
  279. // Page sets the paging number for the model.
  280. // The parameter <page> is started from 1 for paging.
  281. // Note that, it differs that the Limit function start from 0 for "LIMIT" statement.
  282. func (d *OpsDeliveryProjectDao) Page(page, limit int) *OpsDeliveryProjectDao {
  283. return &OpsDeliveryProjectDao{M: d.M.Page(page, limit)}
  284. }
  285. // Batch sets the batch operation number for the model.
  286. func (d *OpsDeliveryProjectDao) Batch(batch int) *OpsDeliveryProjectDao {
  287. return &OpsDeliveryProjectDao{M: d.M.Batch(batch)}
  288. }
  289. // Cache sets the cache feature for the model. It caches the result of the sql, which means
  290. // if there's another same sql request, it just reads and returns the result from cache, it
  291. // but not committed and executed into the database.
  292. //
  293. // If the parameter <duration> < 0, which means it clear the cache with given <name>.
  294. // If the parameter <duration> = 0, which means it never expires.
  295. // If the parameter <duration> > 0, which means it expires after <duration>.
  296. //
  297. // The optional parameter <name> is used to bind a name to the cache, which means you can later
  298. // control the cache like changing the <duration> or clearing the cache with specified <name>.
  299. //
  300. // Note that, the cache feature is disabled if the model is operating on a transaction.
  301. func (d *OpsDeliveryProjectDao) Cache(duration time.Duration, name ...string) *OpsDeliveryProjectDao {
  302. return &OpsDeliveryProjectDao{M: d.M.Cache(duration, name...)}
  303. }
  304. // Data sets the operation data for the model.
  305. // The parameter <data> can be type of string/map/gmap/slice/struct/*struct, etc.
  306. // Eg:
  307. // Data("uid=10000")
  308. // Data("uid", 10000)
  309. // Data(g.Map{"uid": 10000, "name":"john"})
  310. // Data(g.Slice{g.Map{"uid": 10000, "name":"john"}, g.Map{"uid": 20000, "name":"smith"})
  311. func (d *OpsDeliveryProjectDao) Data(data ...interface{}) *OpsDeliveryProjectDao {
  312. return &OpsDeliveryProjectDao{M: d.M.Data(data...)}
  313. }
  314. // All does "SELECT FROM ..." statement for the model.
  315. // It retrieves the records from table and returns the result as []*model.OpsDeliveryProject.
  316. // It returns nil if there's no record retrieved with the given conditions from table.
  317. //
  318. // The optional parameter <where> is the same as the parameter of M.Where function,
  319. // see M.Where.
  320. func (d *OpsDeliveryProjectDao) All(where ...interface{}) ([]*opsdev.OpsDeliveryProject, error) {
  321. all, err := d.M.All(where...)
  322. if err != nil {
  323. return nil, err
  324. }
  325. var entities []*opsdev.OpsDeliveryProject
  326. if err = all.Structs(&entities); err != nil && err != sql.ErrNoRows {
  327. return nil, err
  328. }
  329. return entities, nil
  330. }
  331. // One retrieves one record from table and returns the result as *model.OpsDeliveryProject.
  332. // It returns nil if there's no record retrieved with the given conditions from table.
  333. //
  334. // The optional parameter <where> is the same as the parameter of M.Where function,
  335. // see M.Where.
  336. func (d *OpsDeliveryProjectDao) One(where ...interface{}) (*opsdev.OpsDeliveryProject, error) {
  337. one, err := d.M.One(where...)
  338. if err != nil {
  339. return nil, err
  340. }
  341. var entity *opsdev.OpsDeliveryProject
  342. if err = one.Struct(&entity); err != nil && err != sql.ErrNoRows {
  343. return nil, err
  344. }
  345. return entity, nil
  346. }
  347. // FindOne retrieves and returns a single Record by M.WherePri and M.One.
  348. // Also see M.WherePri and M.One.
  349. func (d *OpsDeliveryProjectDao) FindOne(where ...interface{}) (*opsdev.OpsDeliveryProject, error) {
  350. one, err := d.M.FindOne(where...)
  351. if err != nil {
  352. return nil, err
  353. }
  354. var entity *opsdev.OpsDeliveryProject
  355. if err = one.Struct(&entity); err != nil && err != sql.ErrNoRows {
  356. return nil, err
  357. }
  358. return entity, nil
  359. }
  360. // FindAll retrieves and returns Result by by M.WherePri and M.All.
  361. // Also see M.WherePri and M.All.
  362. func (d *OpsDeliveryProjectDao) FindAll(where ...interface{}) ([]*opsdev.OpsDeliveryProject, error) {
  363. all, err := d.M.FindAll(where...)
  364. if err != nil {
  365. return nil, err
  366. }
  367. var entities []*opsdev.OpsDeliveryProject
  368. if err = all.Structs(&entities); err != nil && err != sql.ErrNoRows {
  369. return nil, err
  370. }
  371. return entities, nil
  372. }
  373. // Struct retrieves one record from table and converts it into given struct.
  374. // The parameter <pointer> should be type of *struct/**struct. If type **struct is given,
  375. // it can create the struct internally during converting.
  376. //
  377. // The optional parameter <where> is the same as the parameter of Model.Where function,
  378. // see Model.Where.
  379. //
  380. // Note that it returns sql.ErrNoRows if there's no record retrieved with the given conditions
  381. // from table and <pointer> is not nil.
  382. //
  383. // Eg:
  384. // user := new(User)
  385. // err := dao.User.Where("id", 1).Struct(user)
  386. //
  387. // user := (*User)(nil)
  388. // err := dao.User.Where("id", 1).Struct(&user)
  389. func (d *OpsDeliveryProjectDao) Struct(pointer interface{}, where ...interface{}) error {
  390. return d.M.Struct(pointer, where...)
  391. }
  392. // Structs retrieves records from table and converts them into given struct slice.
  393. // The parameter <pointer> should be type of *[]struct/*[]*struct. It can create and fill the struct
  394. // slice internally during converting.
  395. //
  396. // The optional parameter <where> is the same as the parameter of Model.Where function,
  397. // see Model.Where.
  398. //
  399. // Note that it returns sql.ErrNoRows if there's no record retrieved with the given conditions
  400. // from table and <pointer> is not empty.
  401. //
  402. // Eg:
  403. // users := ([]User)(nil)
  404. // err := dao.User.Structs(&users)
  405. //
  406. // users := ([]*User)(nil)
  407. // err := dao.User.Structs(&users)
  408. func (d *OpsDeliveryProjectDao) Structs(pointer interface{}, where ...interface{}) error {
  409. return d.M.Structs(pointer, where...)
  410. }
  411. // Scan automatically calls Struct or Structs function according to the type of parameter <pointer>.
  412. // It calls function Struct if <pointer> is type of *struct/**struct.
  413. // It calls function Structs if <pointer> is type of *[]struct/*[]*struct.
  414. //
  415. // The optional parameter <where> is the same as the parameter of Model.Where function,
  416. // see Model.Where.
  417. //
  418. // Note that it returns sql.ErrNoRows if there's no record retrieved and given pointer is not empty or nil.
  419. //
  420. // Eg:
  421. // user := new(User)
  422. // err := dao.User.Where("id", 1).Scan(user)
  423. //
  424. // user := (*User)(nil)
  425. // err := dao.User.Where("id", 1).Scan(&user)
  426. //
  427. // users := ([]User)(nil)
  428. // err := dao.User.Scan(&users)
  429. //
  430. // users := ([]*User)(nil)
  431. // err := dao.User.Scan(&users)
  432. func (d *OpsDeliveryProjectDao) Scan(pointer interface{}, where ...interface{}) error {
  433. return d.M.Scan(pointer, where...)
  434. }
  435. // Chunk iterates the table with given size and callback function.
  436. func (d *OpsDeliveryProjectDao) Chunk(limit int, callback func(entities []*opsdev.OpsDeliveryProject, err error) bool) {
  437. d.M.Chunk(limit, func(result gdb.Result, err error) bool {
  438. var entities []*opsdev.OpsDeliveryProject
  439. err = result.Structs(&entities)
  440. if err == sql.ErrNoRows {
  441. return false
  442. }
  443. return callback(entities, err)
  444. })
  445. }
  446. // LockUpdate sets the lock for update for current operation.
  447. func (d *OpsDeliveryProjectDao) LockUpdate() *OpsDeliveryProjectDao {
  448. return &OpsDeliveryProjectDao{M: d.M.LockUpdate()}
  449. }
  450. // LockShared sets the lock in share mode for current operation.
  451. func (d *OpsDeliveryProjectDao) LockShared() *OpsDeliveryProjectDao {
  452. return &OpsDeliveryProjectDao{M: d.M.LockShared()}
  453. }
  454. // Unscoped enables/disables the soft deleting feature.
  455. func (d *OpsDeliveryProjectDao) Unscoped() *OpsDeliveryProjectDao {
  456. return &OpsDeliveryProjectDao{M: d.M.Unscoped()}
  457. }