作业五 身份认证(Assignment 5 identity authentication)

(1)APP功能

此APP为实现校园内部的快递查询服务,因此设置一下功能

1)对于用户而言,需查询快递信息,及时获取取件码。

2)对于快递员而言,需要及时更新快递信息,并对取件人身份进行验证。

3)对于快递服务平台而言,需要保障快递一对一无遗漏,确保取件身份与快递信息相符合。

(2)交互过程

1)用户与快递员需登录快递服务平台进行查询:

A->C:account||password

B->C:account||password

2)快递服务平台处理后分别给用户和快递员发送取件码和快递信息

C->A:code

C->B:info

3)用户与快递员交互,提供快递员取件码,快递员与平台交互,核对快递信息

A->B:code

B->A:code

A->B:Res(核验是否成功)

————————

(1) App function

This app is to realize the Express query service inside the campus, so set the following functions

1) For users, they need to query the express information and obtain the pick-up code in time.

2) For couriers, it is necessary to update the express information in time and verify the identity of the receiver.

3) For the express service platform, it is necessary to ensure that there is no omission of express one-to-one, and ensure that the identity of pick-up is consistent with the express information.

(2) Interactive process

1) Users and couriers need to log in to the express service platform to query:

A->C:account||password

B->C:account||password

2) After processing, the express service platform sends pick-up code and express information to users and couriers respectively

C->A:code

C->B:info

3) The user interacts with the courier, provides the courier pick-up code, and the courier interacts with the platform to check the courier information

A->B:code

B->A:code

A-> B: Res (successful verification)