project_message_dao.go 427 B

1234567891011121314151617181920212223
  1. /*
  2. * @description:消息推送
  3. * @Author: LanJianRong
  4. * @Date: 2021-01-26 14:40:06
  5. * @FilePath: \construction_management\dao\project_message.go
  6. */
  7. package dao
  8. import (
  9. "github.com/go-xorm/xorm"
  10. )
  11. //数据库操作引擎
  12. type ProjectMessageDao struct {
  13. engine *xorm.Engine
  14. }
  15. //获得一个DAO对象
  16. func NewProjectMessageDao(engine *xorm.Engine) *ProjectMessageDao {
  17. return &ProjectMessageDao{
  18. engine: engine,
  19. }
  20. }