[MM-34076] Add Plugin API User custom status (#17435)
* add missing client for custom user status * add custom user status plugin api * update based on feedback review * add GetCustomStatus * update interfaces
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0a3e7f4d55
Коммит
bb5a74a42b
@@ -2918,6 +2918,22 @@ func (_m *API) RemoveTeamIcon(teamID string) *model.AppError {
|
||||
return r0
|
||||
}
|
||||
|
||||
// RemoveUserCustomStatus provides a mock function with given fields: userID
|
||||
func (_m *API) RemoveUserCustomStatus(userID string) *model.AppError {
|
||||
ret := _m.Called(userID)
|
||||
|
||||
var r0 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(string) *model.AppError); ok {
|
||||
r0 = rf(userID)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.AppError)
|
||||
}
|
||||
}
|
||||
|
||||
return r0
|
||||
}
|
||||
|
||||
// RequestTrialLicense provides a mock function with given fields: requesterID, users, termsAccepted, receiveEmailsAccepted
|
||||
func (_m *API) RequestTrialLicense(requesterID string, users int, termsAccepted bool, receiveEmailsAccepted bool) *model.AppError {
|
||||
ret := _m.Called(requesterID, users, termsAccepted, receiveEmailsAccepted)
|
||||
@@ -3531,6 +3547,22 @@ func (_m *API) UpdateUserActive(userID string, active bool) *model.AppError {
|
||||
return r0
|
||||
}
|
||||
|
||||
// UpdateUserCustomStatus provides a mock function with given fields: userID, customStatus
|
||||
func (_m *API) UpdateUserCustomStatus(userID string, customStatus *model.CustomStatus) *model.AppError {
|
||||
ret := _m.Called(userID, customStatus)
|
||||
|
||||
var r0 *model.AppError
|
||||
if rf, ok := ret.Get(0).(func(string, *model.CustomStatus) *model.AppError); ok {
|
||||
r0 = rf(userID, customStatus)
|
||||
} else {
|
||||
if ret.Get(0) != nil {
|
||||
r0 = ret.Get(0).(*model.AppError)
|
||||
}
|
||||
}
|
||||
|
||||
return r0
|
||||
}
|
||||
|
||||
// UpdateUserStatus provides a mock function with given fields: userID, status
|
||||
func (_m *API) UpdateUserStatus(userID string, status string) (*model.Status, *model.AppError) {
|
||||
ret := _m.Called(userID, status)
|
||||
|
||||
Ссылка в новой задаче
Block a user