Gh 9610 add plugin api for update user active method (#9854)
* wip * wip * After running make plugin-mocks * Add TestUpdateUserActive and run make pluginapi * Adding plugin_api_test.go * Better formatting of code using gofmt * Fix tests and run make pluginapi * Specify the minimum server version on the comments * Include more tests as per the CR * Fix tests * Checking err.Id intsead of err & Removed comments and trailing spaces * wip * Fix tests as per CR and spaces * Make changes to tests as per CR
Этот коммит содержится в:
коммит произвёл
Jesse Hallam
родитель
febc5115fd
Коммит
11059b0251
@@ -102,6 +102,11 @@ type API interface {
|
||||
// The status parameter can be: "online", "away", "dnd", or "offline".
|
||||
UpdateUserStatus(userId, status string) (*model.Status, *model.AppError)
|
||||
|
||||
// UpdateUserActive deactivates or reactivates an user.
|
||||
//
|
||||
// Minimum server version: 5.8
|
||||
UpdateUserActive(userId string, active bool) *model.AppError
|
||||
|
||||
// GetUsersInChannel returns a page of users in a channel. Page counting starts at 0.
|
||||
// The sortBy parameter can be: "username" or "status".
|
||||
//
|
||||
|
||||
Ссылка в новой задаче
Block a user