add bulk users
This commit is contained in:
@@ -14,6 +14,8 @@ type UserHandler interface {
|
||||
ListTitles(c *gin.Context)
|
||||
GetActiveUsersForMention(c *gin.Context)
|
||||
BulkCreateUsers(c *gin.Context)
|
||||
BulkCreateUsersAsync(c *gin.Context)
|
||||
GetBulkJobStatus(c *gin.Context)
|
||||
}
|
||||
|
||||
type FileHandler interface {
|
||||
|
||||
@@ -82,6 +82,8 @@ func (r *Router) addAppRoutes(rg *gin.Engine) {
|
||||
{
|
||||
users.GET("", r.userHandler.ListUsers)
|
||||
users.POST("/bulk", r.userHandler.BulkCreateUsers)
|
||||
users.POST("/bulk/async", r.userHandler.BulkCreateUsersAsync)
|
||||
users.GET("/bulk/job/:jobId", r.userHandler.GetBulkJobStatus)
|
||||
users.GET("/profile", r.userHandler.GetProfile)
|
||||
users.PUT("/profile", r.userHandler.UpdateProfile)
|
||||
users.PUT(":id/password", r.userHandler.ChangePassword)
|
||||
|
||||
Reference in New Issue
Block a user