139 lines
3.2 KiB
C#
139 lines
3.2 KiB
C#
using KJD_Web.BLL;
|
|
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
|
|
{
|
|
[RoutePrefix("user")]
|
|
[Route("{action}")]
|
|
public class UserController : AsmxApiController
|
|
{
|
|
public IHttpActionResult user_login()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new UserManage().CheckUserLogin(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult get_package_sign()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new UserManage().GetPackageSign(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult is_get_return_package()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new UserManage().IsGetReturnPackage(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult change_password()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new UserManage().ChangePassword(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult get_sub_user()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new UserManage().GetSubUser(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult update_sub_user()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new UserManage().UpdateSubUser(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult add_sub_user()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new UserManage().AddSubUser(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult delete_user()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new UserManage().DelUser(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult get_all_user()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new UserManage().GetAllUser(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult update_user()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new UserManage().UpdateUser(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult add_user()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new UserManage().AddUser(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
|
|
public IHttpActionResult get_user_amount()
|
|
{
|
|
string jsontext = GetRequestJsonString();
|
|
|
|
var result = jsontext;
|
|
result = new UserManage().GetUserAmount(jsontext);
|
|
|
|
return JsonString(result);
|
|
}
|
|
}
|
|
}
|