/** * Created by wisestone on 2018-05-28. */ 'use strict'; define([ 'app' ], function (app) { app.factory("CustomField", ['$http', '$log', function ($http, $log) { return { find : function (conditions) { return $http.post("customField/find", conditions).then(function (response) { $log.debug("사용자 정의 필드 목록 데이터 : ", response); return response; }); }, add : function (conditions) { return $http.post("customField/add", conditions).then(function (response) { $log.debug("사용자 정의 필드 생성 결과 : ", response); return response; }); }, modify : function (conditions) { return $http.post("customField/modify", conditions).then(function (response) { $log.debug("사용자 정의 필드 수정 결과 : ", response); return response; }); }, detail : function (conditions) { return $http.post("customField/detail", conditions).then(function (response) { $log.debug("사용자 정의 필드 상세 데이터 : ", response); return response; }); }, remove : function (conditions) { return $http.post("customField/remove", conditions).then(function (response) { $log.debug("사용자 정의 필드 삭제 결과 : ", response); return response; }); } } } ]); });