Assign users to roles via role_user and drop unused social media and light-mode fields.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
26
docs/docs.go
26
docs/docs.go
@@ -7455,9 +7455,6 @@ const docTemplate = `{
|
||||
"lastName": {
|
||||
"type": "string"
|
||||
},
|
||||
"lightMode": {
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -7470,28 +7467,11 @@ const docTemplate = `{
|
||||
"role": {
|
||||
"type": "string"
|
||||
},
|
||||
"socialMedia": {
|
||||
"$ref": "#/definitions/user.SocialMedia"
|
||||
},
|
||||
"username": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"user.SocialMedia": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"facebook": {
|
||||
"type": "string"
|
||||
},
|
||||
"instagram": {
|
||||
"type": "string"
|
||||
},
|
||||
"telegram": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"user.UpdateUserDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -7515,9 +7495,6 @@ const docTemplate = `{
|
||||
"lastName": {
|
||||
"type": "string"
|
||||
},
|
||||
"lightMode": {
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -7527,9 +7504,6 @@ const docTemplate = `{
|
||||
"role": {
|
||||
"type": "string"
|
||||
},
|
||||
"socialMedia": {
|
||||
"$ref": "#/definitions/user.SocialMedia"
|
||||
},
|
||||
"username": {
|
||||
"type": "string"
|
||||
}
|
||||
|
||||
@@ -7449,9 +7449,6 @@
|
||||
"lastName": {
|
||||
"type": "string"
|
||||
},
|
||||
"lightMode": {
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -7464,28 +7461,11 @@
|
||||
"role": {
|
||||
"type": "string"
|
||||
},
|
||||
"socialMedia": {
|
||||
"$ref": "#/definitions/user.SocialMedia"
|
||||
},
|
||||
"username": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"user.SocialMedia": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"facebook": {
|
||||
"type": "string"
|
||||
},
|
||||
"instagram": {
|
||||
"type": "string"
|
||||
},
|
||||
"telegram": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"user.UpdateUserDTO": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -7509,9 +7489,6 @@
|
||||
"lastName": {
|
||||
"type": "string"
|
||||
},
|
||||
"lightMode": {
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
@@ -7521,9 +7498,6 @@
|
||||
"role": {
|
||||
"type": "string"
|
||||
},
|
||||
"socialMedia": {
|
||||
"$ref": "#/definitions/user.SocialMedia"
|
||||
},
|
||||
"username": {
|
||||
"type": "string"
|
||||
}
|
||||
|
||||
@@ -1202,8 +1202,6 @@ definitions:
|
||||
type: string
|
||||
lastName:
|
||||
type: string
|
||||
lightMode:
|
||||
type: integer
|
||||
name:
|
||||
type: string
|
||||
password:
|
||||
@@ -1212,8 +1210,6 @@ definitions:
|
||||
type: string
|
||||
role:
|
||||
type: string
|
||||
socialMedia:
|
||||
$ref: '#/definitions/user.SocialMedia'
|
||||
username:
|
||||
type: string
|
||||
required:
|
||||
@@ -1222,15 +1218,6 @@ definitions:
|
||||
- password
|
||||
- username
|
||||
type: object
|
||||
user.SocialMedia:
|
||||
properties:
|
||||
facebook:
|
||||
type: string
|
||||
instagram:
|
||||
type: string
|
||||
telegram:
|
||||
type: string
|
||||
type: object
|
||||
user.UpdateUserDTO:
|
||||
properties:
|
||||
active:
|
||||
@@ -1243,16 +1230,12 @@ definitions:
|
||||
type: string
|
||||
lastName:
|
||||
type: string
|
||||
lightMode:
|
||||
type: integer
|
||||
name:
|
||||
type: string
|
||||
phone:
|
||||
type: string
|
||||
role:
|
||||
type: string
|
||||
socialMedia:
|
||||
$ref: '#/definitions/user.SocialMedia'
|
||||
username:
|
||||
type: string
|
||||
required:
|
||||
|
||||
Reference in New Issue
Block a user