Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

查询我参与的项目和我管理的项目。 #300

Open
Darkone0 opened this issue Mar 17, 2020 · 4 comments
Open

查询我参与的项目和我管理的项目。 #300

Darkone0 opened this issue Mar 17, 2020 · 4 comments
Labels
2.0 webserver webserver task

Comments

@Darkone0
Copy link
Contributor

Darkone0 commented Mar 17, 2020

API:GET: /v1/my/projects/join

{"projects" : 
	[
		{
			“projectID” : int ,
			“projectName” : string ,
			“projectCoverUrl” : string,
			“memberList” : [
				{
					userID : int,
					userName : string,
					HeadShotUrl : string,
				}
			]

		},

	]
}

API:GET: /v1/my/projects/manage

{"projects" : 
	[
		{
			“projectID” : int ,
			“projectName” : string ,
			“projectCoverUrl” : string,
			“memberList” : [
				{
					userID : int,
					userName : string,
					HeadShotUrl : string,
				}
			]

		},

	]
}
@Darkone0 Darkone0 added webserver webserver task 2.0 labels Mar 17, 2020
@anaana35
Copy link
Contributor

let me fix

@anaana35
Copy link
Contributor

  1. 通过userid从数据库中查询参加的项目
  2. 对每个获取的项目,查询参与项目的全部用户
  3. 对我管理的项目,通过用户在该项目中的权限进行筛选

@Darkone0
Copy link
Contributor Author

第1步之前应该先从cookie中的jwt中获取已登录用户的id,但是这个函数还没有实现,你可以先写注释当做已经完成,等这个函数补上以后再完整这部分功能

@Darkone0
Copy link
Contributor Author

其他的就没有问题了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.0 webserver webserver task
Projects
None yet
Development

No branches or pull requests

2 participants