190 lines
4.4 KiB
C#
190 lines
4.4 KiB
C#
using KJD_Web.BLL.BXX;
|
|
using KJD_Web.Utils;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Web;
|
|
using System.Web.Services;
|
|
using System.Web.Http;
|
|
|
|
namespace KJD_Web.Controllers.BXX
|
|
{
|
|
[RoutePrefix("bxx_user")]
|
|
[Route("{action}")]
|
|
public class BXXUserController : AsmxApiController
|
|
{
|
|
public IHttpActionResult user_login()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXUserManage().CheckUserLogin(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult get_package_sign()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXUserManage().GetPackageSign(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult change_password()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXUserManage().ChangePassword(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult get_sub_user()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXUserManage().GetSubUser(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult update_sub_user()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXUserManage().UpdateSubUser(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult add_sub_user()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXUserManage().AddSubUser(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult delete_user()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXUserManage().DelUser(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult get_all_user()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXUserManage().GetAllUser(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult update_user()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXUserManage().UpdateUser(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult add_user()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXUserManage().AddUser(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult update_scm121_cookie()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXUserManage().UpdateScm121Cookie(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult get_scm121_cookie()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXUserManage().GetScm121Cookie(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
//AddBuyer
|
|
public IHttpActionResult add_buyer()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXUserManage().AddBuyer(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult mdy_buyer()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXUserManage().MdyBuyer(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult mdy_buyer_cookie()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXUserManage().MdyBuyerCookie(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult get_buyer()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXUserManage().GetBuyer(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult del_buyer()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new BXXUserManage().DelBuyer(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
}
|
|
}
|