chore: 增加 User 获取所属角色的接口
parent
6969884bd9
commit
d339fe9e4e
|
@ -614,7 +614,7 @@ namespace LeanCloud {
|
|||
|
||||
public Task<IEnumerable<AVRole>> GetRolesAsync() {
|
||||
AVQuery<AVRole> query = new AVQuery<AVRole>();
|
||||
query.WhereRelatedTo(this, "users");
|
||||
query.WhereEqualTo("users", this);
|
||||
return query.FindAsync();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue