...
|
...
|
@@ -19,19 +19,13 @@ func (controller *NoticeSettingController) NoticeSettingList() { |
|
|
controller.returnPageListData(cnt, data, err, noticeSettingListQuery.PageNumber)
|
|
|
}
|
|
|
|
|
|
func (controller *NoticeSettingController) NoticeSettingProfile() {
|
|
|
noticeSettingService := service.NewNoticeSettingService(nil)
|
|
|
noticeSettingProfileQuery := &query.NoticeSettingProfileQuery{}
|
|
|
noticeSettingProfileQuery.Operator = controller.GetOperator()
|
|
|
data, err := noticeSettingService.NoticeSettingProfile(noticeSettingProfileQuery)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *NoticeSettingController) NoticeSettingUpdate() {
|
|
|
noticeSettingService := service.NewNoticeSettingService(nil)
|
|
|
noticeSettingUpdateCommand := &command.NoticeSettingUpdateCommand{}
|
|
|
settingId := controller.GetString(":settingId")
|
|
|
controller.Unmarshal(noticeSettingUpdateCommand)
|
|
|
noticeSettingUpdateCommand.Operator = controller.GetOperator()
|
|
|
noticeSettingUpdateCommand.NoticeSettingId = settingId
|
|
|
data, err := noticeSettingService.NoticeSettingUpdate(noticeSettingUpdateCommand)
|
|
|
controller.Response(data, err)
|
|
|
}
|
...
|
...
|
@@ -44,3 +38,23 @@ func (controller *NoticeSettingController) NoticeSettingAdd() { |
|
|
data, err := noticeSettingService.NoticeSettingAdd(noticeSettingAddCommand)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *NoticeSettingController) NoticeSettingProfile() {
|
|
|
noticeSettingService := service.NewNoticeSettingService(nil)
|
|
|
p := &query.NoticeSettingProfileQuery{
|
|
|
Operator: controller.GetOperator(),
|
|
|
}
|
|
|
data, err := noticeSettingService.NoticeSettingProfile(p)
|
|
|
controller.Response(data, err)
|
|
|
}
|
|
|
|
|
|
func (controller *NoticeSettingController) NoticeSettingGet() {
|
|
|
noticeSettingService := service.NewNoticeSettingService(nil)
|
|
|
queryParm := &query.NoticeSettingGetQuery{
|
|
|
Operator: controller.GetOperator(),
|
|
|
}
|
|
|
settingId := controller.GetString(":settingId")
|
|
|
queryParm.NoticeSettingId = settingId
|
|
|
data, err := noticeSettingService.NoticeSettingGet(queryParm)
|
|
|
controller.Response(data, err)
|
|
|
} |
...
|
...
|
|