28 lines
820 B
Go
28 lines
820 B
Go
package app_server
|
|
|
|
import (
|
|
editionDao "git.rosy.net.cn/jx-print/dao"
|
|
editionModel "git.rosy.net.cn/jx-print/model/app_model"
|
|
)
|
|
|
|
type PrintNotice struct {
|
|
}
|
|
|
|
var PrintNoticeServer = new(PrintNotice)
|
|
|
|
func (p PrintNotice) AddPrintNotice(param *editionModel.AddOrUpdatePrintNotice) error {
|
|
return editionDao.PrintNoticeDao.AddNotice(param)
|
|
}
|
|
|
|
func (p PrintNotice) UpdatePrintNotice(param *editionModel.AddOrUpdatePrintNotice) error {
|
|
return editionDao.PrintNoticeDao.UpdateNotice(param)
|
|
}
|
|
|
|
func (p PrintNotice) DeletePrintNotice(param *editionModel.DeletePrintNotice) error {
|
|
return editionDao.PrintNoticeDao.DeletePrintNotice(param.Id)
|
|
}
|
|
|
|
func (p PrintNotice) QueryPrintNotice(param *editionModel.QueryPrintNotice) ([]*editionModel.PrintNotice, error) {
|
|
return editionDao.PrintNoticeDao.SelectPrintNotice(param)
|
|
}
|