| 123456789101112131415161718192021222324252627282930 |
- define([ 'ngResource' ], function() {
- angular.module('adminNewsService', [ 'ngResource' ]).factory('adminNews', ['$resource', 'BaseService', function($resource, BaseService) {
- var rootPath = BaseService.getRootPath();
- return $resource('webMessage', {}, {
- /**
- * 分页获取消息
- */
- getNewsList: {
- url: rootPath + '/webMessage/page',
- method:'GET'
- },
- /**
- * 获取未读消息数量
- */
- unreadCount: {
- url: rootPath + '/webMessage/count/unread',
- method:'GET'
- },
- /**
- * 跳转消息详情页
- */
- read: {
- url: rootPath + '/webMessage/read',
- method:'POST'
- }
- });
- }])
- });
|