/** * Created by wisestone on 2018-05-29. */ 'use strict'; define([ 'app' ], function (app) { app.factory("Notice", ['$http', '$log', function ($http, $log) { return { find : function (conditions) { return $http.post("notice/find", conditions).then(function (response) { $log.debug("공지사항 목록 데이터 : ", response); return response; }); }, add : function (conditions) { return $http.post("notice/add", conditions).then(function (response) { $log.debug("공지사항 생성 결과 : ", response); return response; }); }, send : function (conditions) { return $http.post("notice/send", conditions).then(function (response) { $log.debug("메세지 발송 결과 : ", response); return response; }); }, modify : function (conditions) { return $http.post("notice/modify", conditions).then(function (response) { $log.debug("공지사항 수정 결과 : ", response); return response; }); }, detail : function (conditions) { return $http.post("notice/detail", conditions).then(function (response) { $log.debug("공지사항 상세 데이터 : ", response); return response; }); }, remove : function (conditions) { return $http.post("notice/remove", conditions).then(function (response) { $log.debug("공지사항 삭제 결과 : ", response); return response; }); } } } ]); });