dcAlarmListModel.go 613 B

123456789101112131415161718192021222324
  1. package model
  2. import "github.com/zeromicro/go-zero/core/stores/sqlx"
  3. var _ DcAlarmListModel = (*customDcAlarmListModel)(nil)
  4. type (
  5. // DcAlarmListModel is an interface to be customized, add more methods here,
  6. // and implement the added methods in customDcAlarmListModel.
  7. DcAlarmListModel interface {
  8. dcAlarmListModel
  9. }
  10. customDcAlarmListModel struct {
  11. *defaultDcAlarmListModel
  12. }
  13. )
  14. // NewDcAlarmListModel returns a model for the database table.
  15. func NewDcAlarmListModel(conn sqlx.SqlConn) DcAlarmListModel {
  16. return &customDcAlarmListModel{
  17. defaultDcAlarmListModel: newDcAlarmListModel(conn),
  18. }
  19. }