12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- (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 }
- })
- },
- add:function (data){
- return $http({
- url:config.server + 'api/my/add_dream',
- method:"post",
- data:data
- })
- },
- recharge:function(money){
- return $http({
- url:config.server + "api/my/recharge?money="+money,
- 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
- })
- },
- myMes:function(){
- return $http({
- url:config.server + "api/my/persona",
- method:"get"
- })
- },
- myIndex:function(){
- return $http({
- url:config.server + "api/my/index",
- method:"get"
- })
- },
- toprofile:function(){
- return $http({
- url:config.server + "api/my/persona",
- method:"get"
- })
- },
- myMaterial:function(){
- return $http({
- url:config.server + "api/my/edit_user_info",
- method:"get"
- })
- },
- saveMaterial:function(data){
- return $http({
- url:config.server + "api/my/update_user_info",
- method:"post",
- data:data
- })
- }
- };
- }]);
- })(angular.module('app.services'));
|