Giter Site home page Giter Site logo

quick-fill-app's Introduction

缓存集合

// 当前登录用户的基本信息
userInfo: {}, 	
// 账户信息
accountInfo: {
	account: ""
	password: ""
}

// 推荐学校列表
recommandObj: {	
	highRisk: [],
	lowRisk: [],
	safe: [],
	steady: []	
},

// 志愿池
choicePool: [{}]

// 专业树
professionTree: []

// 评测结果
valuateResult: {
	content: [],
	title: ""
}

用户登录

简要描述

用户登录接口,对登录账号密码校验,返回登录状态,200状态码为登录成功呢,并返回cookie记录登录状态

URL

  • /common/login

请求方式

  • get

请求示例

请求参数

参数名 必须 类型 说明
name string 用户id
password string 密码(大于6, 小于32)

请求示例

返回示例

{
    "id": 1,
    "user_id": "17621871016",
    "user_ps": "",
    "score": 100,
    "rank": 0,
    "province": "",
    "vip": 1,
    "subject": "1",
    "city": "",
    "school": "",
    "class": "",
    "change_times": 3,
    "valuating": "",
    "valuating_result": "",
    "evaluating": "",
    "evaluating_result": "",
    "create_time": "2020-05-19 17:46:58"
}


//cookie: 
//X-TOKEN=Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjE3NjIxODcxMDE2IiwibWFwX2RpY3QiOnsiaWQiOiIxNzYyMTg3MTAxNiIsInByb3ZpbmNlIjoiIiwicmFuayI6MCwic2NvcmUiOjEwMCwic3ViamVjdCI6IjEiLCJ2aXAiOjF9LCJleHAiOjE1OTAwMzA5MTUsImlhdCI6MTU4OTk0NDUxNSwiaXNzIjoiMTc2MjE4NzEwMTYifQ.3J49q_7Nh0GmTKsbcKCIf9ClRvC_NLjPbndEAatGXXE; path=/; domain=127.0.0.1; Expires=Tue, 19 Jan 2038 03:14:07 GMT;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.