123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- (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 }
- })
- },
- recharge:function(money){
- return $http({
- url:config.server + "api/my/recharge?coin="+money,
- method:"post"
- })
- },
- 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",
- 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"
- })
- },
- myInfo:function(){
- return $http({
- url:config.server + "api/my/show",
- method:"get"
- })
- },
- toprofile:function(){
- return $http({
- url:config.server + "api/my/persona",
- method:"get"
- })
- },
- myMaterial:function(){
- return $http({
- url:config.server + "api/my/update",
- method:"get"
- })
- },
- saveMaterial:function(data){
- return $http({
- url:config.server + "api/my/update",
- method:"post",
- data:data
- })
- },
- attention:function(){
- return $http({
- url:config.server + "api/my/care",
- method:"get"
- })
- },
- toMyUserDetail:function(id){
- return $http({
- url:config.server + "api/user/show?user_id=" + id ,
- method:"get"
- })
- },
- addAccount:function(data){
- return $http({
- url:config.server + "api/my/bank/create",
- method:"post",
- data:data
- })
- },
- showAccount:function(){
- return $http({
- url:config.server + "api/my/bank/list",
- method:"get"
- })
- },
- destroyAccount:function(id){
- return $http({
- url:config.server + "api/my/bank/delete?id=" + id ,
- method:"get"
- })
- },
- withdraw:function(data){
- return $http({
- url:config.server + "api/my/cash",
- method:"post",
- data:data
- })
- },
- contact:function(data){
- return $http({
- url:config.server + "api/my/suggest",
- method:"post",
- data:data
- })
- },
- payExplain:function(){
- return $http({
- url:config.server + "api/my/pay/article",
- method:"get"
- })
- },
- addQrcode:function(data){
- return $http({
- url:config.server + "api/my/bank/img",
- method:"post",
- data:data
- })
- },
- aboutMiao:function(){
- return $http({
- url:config.server + "api/my/miao",
- method:"get"
- })
- },
- messageInfo:function(){
- return $http({
- url:config.server + "api/my/info",
- method:"get"
- })
- },
- notRead:function(){
- return $http({
- url:config.server + "api/my/read",
- method:"get"
- })
- },
- letter:function(){
- return $http({
- url:config.server + "api/my/letter",
- method:"get"
- })
- }
- };
- }]);
- })(angular.module('app.services'));
|