1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- (function (app) {
- app.factory('myService', ['$http', 'config', "util", function ($http, config, util) {
- return {
- setPassword: function (password) {
- return $http({
- url: config.server + '/api/auth/password',
- method: "post",
- data: { password: password }
- })
- },
-
- reset:function(data){
- return $http({
- url:config.server + "api/auth/avatar",
- method:"post",
- data:data
- })
- },
- recharge:function(){
- return $http({
- url:config.server + "api/my/recharge",
- method:"get"
- })
- },
- setting:function(){
- return $http({
- url:config.server + "api/my/setting",
- method:"get"
- })
- },
- systemInfo:function(){
- return $http({
- url:config.server + "api/my/system_info",
- method:"get"
- })
- },
- replyMy:function(){
- return $http({
- url:config.server + "api/my/reply_my",
- method:"get"
- })
- },
- collect:function(){
- return $http({
- url:config.server + "api/my/collection",
- method:"get"
- })
- },
- myDream:function(){
- return $http({
- url:config.server + "api/my/dream",
- method:"get"
- })
- },
- myReplay:function(data){
- return $http({
- url: config.server + '/api/my/my_reply',
- method: "post",
- data: data
- })
- },
- userMes:function(data){
- return $http({
- url:config.server + "api/user/index/",
- method:"get",
- data:data
- })
- },
- myIndex:function(){
- return $http({
- url:config.server + "api/my/index",
- method:"get"
- })
- },
- toprofile:function(){
- return $http({
- url:config.server + "api/my/persona",
- method:"get"
- })
- }
- };
- }]);
- })(angular.module('app.services'));
|