POST api/User/SignIn

用户登录接口函数

Request Information

URI Parameters

None.

Body Parameters

UserLoginInput
NameDescriptionTypeAdditional information
UserName

手机号/网校号/邮箱

string

None.

Password

密码

string

None.

PushID

极光推送的ID

string

None.

Client

硬件型号

string

None.

UnitID

单位ID 公版为空值

globally unique identifier

None.

Token

签名

string

None.

SessionID

会话ID

globally unique identifier

None.

TimeStamp

时间戳

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "Password": "sample string 2",
  "PushID": "sample string 3",
  "Client": "sample string 4",
  "UnitID": "6276f290-b7f3-487d-8541-c1e32f0b7ee5",
  "Token": "sample string 5",
  "SessionID": "1706f86e-0907-4264-8f71-ed9dd948ac25",
  "TimeStamp": 6
}

Response Information

Resource Description

UserLoginOutput
NameDescriptionTypeAdditional information
SessionID

用户会话ID

globally unique identifier

None.

UserNumb

用户编号

string

None.

UserType

用户类型

UserType

None.

Mobile

手机号

string

None.

UserName

真实姓名

string

None.

UnitID

单位编号

globally unique identifier

None.

UnitUserType

网校用户类型[位运算值 会员 = 1,管理员 = 2,站长 = 4]

integer

None.

UnitAccount

网校域名

string

None.

UnitName

网校名称

string

None.

IsManager

是否站长

boolean

None.

AreaID

地区信息

string

None.

GradeID

年级信息

Grade

None.

PostName

用户职务

string

None.

SubjectID

年级科目对应编号

string

None.

Gender

性别 1男 0女 -1未知

integer

None.

BirthDay

生日

string

None.

Signature

签名档 不超过100的长度

string

None.

Privileges

模块权限

UserLoginOutputPrivileges

None.

EncryptKey

加密码--善见加密码usernumb|unitid

string

None.

AppItems

发现菜单

Collection of UserLoginAppItem

None.

Response Formats

application/json, text/json

Sample:
{
  "SessionID": "8558634e-4755-488b-bddf-9c59614f03db",
  "UserNumb": "sample string 2",
  "UserType": 10,
  "Mobile": "sample string 3",
  "UserName": "sample string 4",
  "UnitID": "08fadcd2-6c9a-4d51-962d-c58a52abc247",
  "UnitUserType": 6,
  "UnitAccount": "sample string 7",
  "UnitName": "sample string 8",
  "IsManager": true,
  "AreaID": "sample string 10",
  "GradeID": 1,
  "PostName": "sample string 11",
  "SubjectID": "sample string 12",
  "Gender": 13,
  "BirthDay": "sample string 14",
  "Signature": "sample string 15",
  "Privileges": {
    "UserManage": true,
    "ClassManage": true,
    "ArticleManage": true,
    "CommentManage": true,
    "LocSignManage": true,
    "LocSign": true,
    "UnitNotiesManage": true,
    "StatisticManage": true
  },
  "EncryptKey": "sample string 16",
  "AppItems": [
    {
      "Ico": "sample string 1",
      "Title": "sample string 2",
      "Url": "sample string 3"
    },
    {
      "Ico": "sample string 1",
      "Title": "sample string 2",
      "Url": "sample string 3"
    }
  ]
}