feat: update user levels, articles, and magazine files
This commit is contained in:
parent
429e551010
commit
6358c16412
|
|
@ -23,6 +23,8 @@ type Articles struct {
|
||||||
OldId *uint `json:"old_id" gorm:"type:int4"`
|
OldId *uint `json:"old_id" gorm:"type:int4"`
|
||||||
IsPublish *bool `json:"is_publish" gorm:"type:bool;default:false"`
|
IsPublish *bool `json:"is_publish" gorm:"type:bool;default:false"`
|
||||||
PublishedAt *time.Time `json:"published_at" gorm:"type:timestamp"`
|
PublishedAt *time.Time `json:"published_at" gorm:"type:timestamp"`
|
||||||
|
IsDraft *bool `json:"is_draft" gorm:"type:bool;default:false"`
|
||||||
|
DraftedAt *time.Time `json:"drafted_at" gorm:"type:timestamp"`
|
||||||
IsActive *bool `json:"is_active" gorm:"type:bool;default:true"`
|
IsActive *bool `json:"is_active" gorm:"type:bool;default:true"`
|
||||||
CreatedAt time.Time `json:"created_at" gorm:"default:now()"`
|
CreatedAt time.Time `json:"created_at" gorm:"default:now()"`
|
||||||
UpdatedAt time.Time `json:"updated_at" gorm:"default:now()"`
|
UpdatedAt time.Time `json:"updated_at" gorm:"default:now()"`
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ type UserLevels struct {
|
||||||
Name string `json:"name" gorm:"type:varchar"`
|
Name string `json:"name" gorm:"type:varchar"`
|
||||||
AliasName string `json:"alias_name" gorm:"type:varchar"`
|
AliasName string `json:"alias_name" gorm:"type:varchar"`
|
||||||
LevelNumber int `json:"level_number" gorm:"type:int4"`
|
LevelNumber int `json:"level_number" gorm:"type:int4"`
|
||||||
ParentLevelId int `json:"parent_level_id" gorm:"type:int4"`
|
ParentLevelId *int `json:"parent_level_id" gorm:"type:int4"`
|
||||||
ProvinceId *int `json:"province_id" gorm:"type:int4"`
|
ProvinceId *int `json:"province_id" gorm:"type:int4"`
|
||||||
Group *string `json:"group" gorm:"type:varchar"`
|
Group *string `json:"group" gorm:"type:varchar"`
|
||||||
IsActive *bool `json:"is_active" gorm:"type:bool"`
|
IsActive *bool `json:"is_active" gorm:"type:bool"`
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,7 @@ func (_i *articlesController) All(c *fiber.Ctx) error {
|
||||||
TypeId: c.Query("typeId"),
|
TypeId: c.Query("typeId"),
|
||||||
StatusId: c.Query("statusId"),
|
StatusId: c.Query("statusId"),
|
||||||
IsPublish: c.Query("isPublish"),
|
IsPublish: c.Query("isPublish"),
|
||||||
|
IsDraft: c.Query("isDraft"),
|
||||||
}
|
}
|
||||||
req := reqContext.ToParamRequest()
|
req := reqContext.ToParamRequest()
|
||||||
req.Pagination = paginate
|
req.Pagination = paginate
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,9 @@ func (_i *articlesRepository) GetAll(req request.ArticlesQueryRequest) (articles
|
||||||
if req.IsPublish != nil {
|
if req.IsPublish != nil {
|
||||||
query = query.Where("is_publish = ?", req.IsPublish)
|
query = query.Where("is_publish = ?", req.IsPublish)
|
||||||
}
|
}
|
||||||
|
if req.IsDraft != nil {
|
||||||
|
query = query.Where("is_draft = ?", req.IsDraft)
|
||||||
|
}
|
||||||
if req.StatusId != nil {
|
if req.StatusId != nil {
|
||||||
query = query.Where("status_id = ?", req.StatusId)
|
query = query.Where("status_id = ?", req.StatusId)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ type ArticlesQueryRequest struct {
|
||||||
CreatedById *int `json:"createdById"`
|
CreatedById *int `json:"createdById"`
|
||||||
StatusId *int `json:"statusId"`
|
StatusId *int `json:"statusId"`
|
||||||
IsPublish *bool `json:"isPublish"`
|
IsPublish *bool `json:"isPublish"`
|
||||||
|
IsDraft *bool `json:"isDraft"`
|
||||||
Pagination *paginator.Pagination `json:"pagination"`
|
Pagination *paginator.Pagination `json:"pagination"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -32,6 +33,8 @@ type ArticlesCreateRequest struct {
|
||||||
TypeId int `json:"typeId" validate:"required"`
|
TypeId int `json:"typeId" validate:"required"`
|
||||||
Tags string `json:"tags" validate:"required"`
|
Tags string `json:"tags" validate:"required"`
|
||||||
AiArticleId *int `json:"aiArticleId"`
|
AiArticleId *int `json:"aiArticleId"`
|
||||||
|
IsPublish *bool `json:"isPublish"`
|
||||||
|
IsDraft *bool `json:"isDraft"`
|
||||||
OldId *uint `json:"oldId"`
|
OldId *uint `json:"oldId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -44,6 +47,8 @@ func (req ArticlesCreateRequest) ToEntity() *entity.Articles {
|
||||||
TypeId: req.TypeId,
|
TypeId: req.TypeId,
|
||||||
Tags: req.Tags,
|
Tags: req.Tags,
|
||||||
AiArticleId: req.AiArticleId,
|
AiArticleId: req.AiArticleId,
|
||||||
|
IsPublish: req.IsPublish,
|
||||||
|
IsDraft: req.IsDraft,
|
||||||
OldId: req.OldId,
|
OldId: req.OldId,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -58,6 +63,8 @@ type ArticlesUpdateRequest struct {
|
||||||
Tags string `json:"tags" validate:"required"`
|
Tags string `json:"tags" validate:"required"`
|
||||||
CreatedById *uint `json:"createdById"`
|
CreatedById *uint `json:"createdById"`
|
||||||
AiArticleId *int `json:"aiArticleId"`
|
AiArticleId *int `json:"aiArticleId"`
|
||||||
|
IsPublish *bool `json:"isPublish"`
|
||||||
|
IsDraft *bool `json:"isDraft"`
|
||||||
StatusId *int `json:"statusId"`
|
StatusId *int `json:"statusId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -72,6 +79,8 @@ func (req ArticlesUpdateRequest) ToEntity() *entity.Articles {
|
||||||
Tags: req.Tags,
|
Tags: req.Tags,
|
||||||
StatusId: req.StatusId,
|
StatusId: req.StatusId,
|
||||||
AiArticleId: req.AiArticleId,
|
AiArticleId: req.AiArticleId,
|
||||||
|
IsPublish: req.IsPublish,
|
||||||
|
IsDraft: req.IsDraft,
|
||||||
UpdatedAt: time.Now(),
|
UpdatedAt: time.Now(),
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -85,6 +94,8 @@ func (req ArticlesUpdateRequest) ToEntity() *entity.Articles {
|
||||||
StatusId: req.StatusId,
|
StatusId: req.StatusId,
|
||||||
CreatedById: req.CreatedById,
|
CreatedById: req.CreatedById,
|
||||||
AiArticleId: req.AiArticleId,
|
AiArticleId: req.AiArticleId,
|
||||||
|
IsPublish: req.IsPublish,
|
||||||
|
IsDraft: req.IsDraft,
|
||||||
UpdatedAt: time.Now(),
|
UpdatedAt: time.Now(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -98,6 +109,7 @@ type ArticlesQueryRequestContext struct {
|
||||||
Tags string `json:"tags"`
|
Tags string `json:"tags"`
|
||||||
CreatedById string `json:"createdById"`
|
CreatedById string `json:"createdById"`
|
||||||
IsPublish string `json:"isPublish"`
|
IsPublish string `json:"isPublish"`
|
||||||
|
IsDraft string `json:"isDraft"`
|
||||||
StatusId string `json:"statusId"`
|
StatusId string `json:"statusId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -131,6 +143,12 @@ func (req ArticlesQueryRequestContext) ToParamRequest() ArticlesQueryRequest {
|
||||||
request.IsPublish = &isPublish
|
request.IsPublish = &isPublish
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if isDraftStr := req.IsDraft; isDraftStr != "" {
|
||||||
|
isDraft, err := strconv.ParseBool(isDraftStr)
|
||||||
|
if err == nil {
|
||||||
|
request.IsDraft = &isDraft
|
||||||
|
}
|
||||||
|
}
|
||||||
if statusIdStr := req.StatusId; statusIdStr != "" {
|
if statusIdStr := req.StatusId; statusIdStr != "" {
|
||||||
statusId, err := strconv.Atoi(statusIdStr)
|
statusId, err := strconv.Atoi(statusIdStr)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
|
|
||||||
|
|
@ -116,6 +116,26 @@ func (_i *articlesService) Save(req request.ArticlesCreateRequest, authToken str
|
||||||
createdBy := utilSvc.GetUserInfo(_i.Log, _i.UsersRepo, authToken)
|
createdBy := utilSvc.GetUserInfo(_i.Log, _i.UsersRepo, authToken)
|
||||||
newReq.CreatedById = &createdBy.ID
|
newReq.CreatedById = &createdBy.ID
|
||||||
|
|
||||||
|
isDraft := true
|
||||||
|
if req.IsDraft == &isDraft {
|
||||||
|
draftedAt := time.Now()
|
||||||
|
newReq.IsDraft = &isDraft
|
||||||
|
newReq.DraftedAt = &draftedAt
|
||||||
|
isPublishFalse := false
|
||||||
|
newReq.IsPublish = &isPublishFalse
|
||||||
|
newReq.PublishedAt = nil
|
||||||
|
}
|
||||||
|
|
||||||
|
isPublish := true
|
||||||
|
if req.IsPublish == &isPublish {
|
||||||
|
publishedAt := time.Now()
|
||||||
|
newReq.IsPublish = &isPublish
|
||||||
|
newReq.PublishedAt = &publishedAt
|
||||||
|
isDraftFalse := false
|
||||||
|
newReq.IsDraft = &isDraftFalse
|
||||||
|
newReq.DraftedAt = nil
|
||||||
|
}
|
||||||
|
|
||||||
saveArticleRes, err := _i.Repo.Create(newReq)
|
saveArticleRes, err := _i.Repo.Create(newReq)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,12 @@ import (
|
||||||
res "go-humas-be/app/module/magazine_files/response"
|
res "go-humas-be/app/module/magazine_files/response"
|
||||||
)
|
)
|
||||||
|
|
||||||
func MagazineFilesResponseMapper(magazineFilesReq *entity.MagazineFiles) (magazineFilesRes *res.MagazineFilesResponse) {
|
func MagazineFilesResponseMapper(magazineFilesReq *entity.MagazineFiles, host string) (magazineFilesRes *res.MagazineFilesResponse) {
|
||||||
|
fileUrl := host + "/magazine-files/viewer/"
|
||||||
|
if magazineFilesReq.FileName != nil {
|
||||||
|
fileUrl += *magazineFilesReq.FileName
|
||||||
|
}
|
||||||
|
|
||||||
if magazineFilesReq != nil {
|
if magazineFilesReq != nil {
|
||||||
magazineFilesRes = &res.MagazineFilesResponse{
|
magazineFilesRes = &res.MagazineFilesResponse{
|
||||||
ID: magazineFilesReq.ID,
|
ID: magazineFilesReq.ID,
|
||||||
|
|
@ -14,7 +19,7 @@ func MagazineFilesResponseMapper(magazineFilesReq *entity.MagazineFiles) (magazi
|
||||||
MagazineId: magazineFilesReq.MagazineId,
|
MagazineId: magazineFilesReq.MagazineId,
|
||||||
DownloadCount: magazineFilesReq.DownloadCount,
|
DownloadCount: magazineFilesReq.DownloadCount,
|
||||||
FilePath: magazineFilesReq.FilePath,
|
FilePath: magazineFilesReq.FilePath,
|
||||||
FileUrl: magazineFilesReq.FileUrl,
|
FileUrl: &fileUrl,
|
||||||
FileName: magazineFilesReq.FileName,
|
FileName: magazineFilesReq.FileName,
|
||||||
FileAlt: magazineFilesReq.FileAlt,
|
FileAlt: magazineFilesReq.FileAlt,
|
||||||
WidthPixel: magazineFilesReq.WidthPixel,
|
WidthPixel: magazineFilesReq.WidthPixel,
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ import (
|
||||||
"go-humas-be/app/module/magazine_files/repository"
|
"go-humas-be/app/module/magazine_files/repository"
|
||||||
"go-humas-be/app/module/magazine_files/request"
|
"go-humas-be/app/module/magazine_files/request"
|
||||||
"go-humas-be/app/module/magazine_files/response"
|
"go-humas-be/app/module/magazine_files/response"
|
||||||
|
config "go-humas-be/config/config"
|
||||||
minioStorage "go-humas-be/config/config"
|
minioStorage "go-humas-be/config/config"
|
||||||
"go-humas-be/utils/paginator"
|
"go-humas-be/utils/paginator"
|
||||||
"io"
|
"io"
|
||||||
|
|
@ -25,6 +26,7 @@ import (
|
||||||
type magazineFilesService struct {
|
type magazineFilesService struct {
|
||||||
Repo repository.MagazineFilesRepository
|
Repo repository.MagazineFilesRepository
|
||||||
Log zerolog.Logger
|
Log zerolog.Logger
|
||||||
|
Cfg *config.Config
|
||||||
MinioStorage *minioStorage.MinioStorage
|
MinioStorage *minioStorage.MinioStorage
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -39,11 +41,12 @@ type MagazineFilesService interface {
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewMagazineFilesService init MagazineFilesService
|
// NewMagazineFilesService init MagazineFilesService
|
||||||
func NewMagazineFilesService(repo repository.MagazineFilesRepository, log zerolog.Logger, minioStorage *minioStorage.MinioStorage) MagazineFilesService {
|
func NewMagazineFilesService(repo repository.MagazineFilesRepository, log zerolog.Logger, cfg *config.Config, minioStorage *minioStorage.MinioStorage) MagazineFilesService {
|
||||||
|
|
||||||
return &magazineFilesService{
|
return &magazineFilesService{
|
||||||
Repo: repo,
|
Repo: repo,
|
||||||
Log: log,
|
Log: log,
|
||||||
|
Cfg: cfg,
|
||||||
MinioStorage: minioStorage,
|
MinioStorage: minioStorage,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -54,11 +57,10 @@ func (_i *magazineFilesService) All(req request.MagazineFilesQueryRequest) (maga
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
host := _i.Cfg.App.Domain
|
||||||
for _, result := range results {
|
for _, result := range results {
|
||||||
magazineFiless = append(magazineFiless, mapper.MagazineFilesResponseMapper(result))
|
magazineFiless = append(magazineFiless, mapper.MagazineFilesResponseMapper(result, host))
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -67,8 +69,8 @@ func (_i *magazineFilesService) Show(id uint) (magazineFiles *response.MagazineF
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
host := _i.Cfg.App.Domain
|
||||||
return mapper.MagazineFilesResponseMapper(result), nil
|
return mapper.MagazineFilesResponseMapper(result, host), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (_i *magazineFilesService) Save(c *fiber.Ctx, id uint, title string, description string) (err error) {
|
func (_i *magazineFilesService) Save(c *fiber.Ctx, id uint, title string, description string) (err error) {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ func MagazinesResponseMapper(magazinesReq *entity.Magazines, magazineFilesRepo m
|
||||||
var magazineFilesArr []*magazineFilesResponse.MagazineFilesResponse
|
var magazineFilesArr []*magazineFilesResponse.MagazineFilesResponse
|
||||||
if magazineFiles != nil && len(magazineFiles) > 0 {
|
if magazineFiles != nil && len(magazineFiles) > 0 {
|
||||||
for _, result := range magazineFiles {
|
for _, result := range magazineFiles {
|
||||||
magazineFilesArr = append(magazineFilesArr, magazineFilesMapper.MagazineFilesResponseMapper(result))
|
magazineFilesArr = append(magazineFilesArr, magazineFilesMapper.MagazineFilesResponseMapper(result, host))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ type UserLevelsCreateRequest struct {
|
||||||
Name string `json:"name" validate:"required"`
|
Name string `json:"name" validate:"required"`
|
||||||
AliasName string `json:"aliasName" validate:"required"`
|
AliasName string `json:"aliasName" validate:"required"`
|
||||||
LevelNumber int `json:"levelNumber" validate:"required"`
|
LevelNumber int `json:"levelNumber" validate:"required"`
|
||||||
ParentLevelId int `json:"parentLevelId" validate:"required"`
|
ParentLevelId *int `json:"parentLevelId"`
|
||||||
ProvinceId *int `json:"provinceId"`
|
ProvinceId *int `json:"provinceId"`
|
||||||
IsActive *bool `json:"isActive"`
|
IsActive *bool `json:"isActive"`
|
||||||
}
|
}
|
||||||
|
|
@ -43,7 +43,7 @@ type UserLevelsUpdateRequest struct {
|
||||||
Name string `json:"name" validate:"required"`
|
Name string `json:"name" validate:"required"`
|
||||||
AliasName string `json:"aliasName" validate:"required"`
|
AliasName string `json:"aliasName" validate:"required"`
|
||||||
LevelNumber int `json:"levelNumber" validate:"required"`
|
LevelNumber int `json:"levelNumber" validate:"required"`
|
||||||
ParentLevelId int `json:"parentLevelId" validate:"required"`
|
ParentLevelId *int `json:"parentLevelId"`
|
||||||
ProvinceId *int `json:"provinceId"`
|
ProvinceId *int `json:"provinceId"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ type UserLevelsResponse struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
AliasName string `json:"aliasName"`
|
AliasName string `json:"aliasName"`
|
||||||
LevelNumber int `json:"levelNumber"`
|
LevelNumber int `json:"levelNumber"`
|
||||||
ParentLevelId int `json:"parentLevelId"`
|
ParentLevelId *int `json:"parentLevelId"`
|
||||||
ProvinceId *int `json:"provinceId"`
|
ProvinceId *int `json:"provinceId"`
|
||||||
IsActive *bool `json:"isActive"`
|
IsActive *bool `json:"isActive"`
|
||||||
CreatedAt time.Time `json:"createdAt"`
|
CreatedAt time.Time `json:"createdAt"`
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ admin-password = "P@ssw0rd.1"
|
||||||
[smtp]
|
[smtp]
|
||||||
host = "smtp-app.polri.go.id"
|
host = "smtp-app.polri.go.id"
|
||||||
port = 465
|
port = 465
|
||||||
username = "multipool.divhumas@polri.go.id"
|
username = "webhumas.divhumas@polri.go.id"
|
||||||
password = "wkjs0XzoCQ0axsYW"
|
password = "z0VfYLbaghPc"
|
||||||
from-address = "multipool.divhumas@polri.go.id"
|
from-address = "webhumas.divhumas@polri.go.id"
|
||||||
from-name = "APLIKASI MULTIPOOL DIVHUMAS POLRI"
|
from-name = "APLIKASI WEB HUMAS DIVHUMAS POLRI"
|
||||||
|
|
@ -1819,6 +1819,11 @@ const docTemplate = `{
|
||||||
"name": "description",
|
"name": "description",
|
||||||
"in": "query"
|
"in": "query"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "boolean",
|
||||||
|
"name": "isDraft",
|
||||||
|
"in": "query"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"name": "isPublish",
|
"name": "isPublish",
|
||||||
|
|
@ -7157,6 +7162,12 @@ const docTemplate = `{
|
||||||
"htmlDescription": {
|
"htmlDescription": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"isDraft": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"isPublish": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"oldId": {
|
"oldId": {
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
|
|
@ -7201,6 +7212,12 @@ const docTemplate = `{
|
||||||
"htmlDescription": {
|
"htmlDescription": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"isDraft": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"isPublish": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"slug": {
|
"slug": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
|
@ -7477,8 +7494,7 @@ const docTemplate = `{
|
||||||
"required": [
|
"required": [
|
||||||
"aliasName",
|
"aliasName",
|
||||||
"levelNumber",
|
"levelNumber",
|
||||||
"name",
|
"name"
|
||||||
"parentLevelId"
|
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"aliasName": {
|
"aliasName": {
|
||||||
|
|
@ -7506,8 +7522,7 @@ const docTemplate = `{
|
||||||
"required": [
|
"required": [
|
||||||
"aliasName",
|
"aliasName",
|
||||||
"levelNumber",
|
"levelNumber",
|
||||||
"name",
|
"name"
|
||||||
"parentLevelId"
|
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"aliasName": {
|
"aliasName": {
|
||||||
|
|
|
||||||
|
|
@ -1808,6 +1808,11 @@
|
||||||
"name": "description",
|
"name": "description",
|
||||||
"in": "query"
|
"in": "query"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"type": "boolean",
|
||||||
|
"name": "isDraft",
|
||||||
|
"in": "query"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"name": "isPublish",
|
"name": "isPublish",
|
||||||
|
|
@ -7146,6 +7151,12 @@
|
||||||
"htmlDescription": {
|
"htmlDescription": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"isDraft": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"isPublish": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"oldId": {
|
"oldId": {
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
|
|
@ -7190,6 +7201,12 @@
|
||||||
"htmlDescription": {
|
"htmlDescription": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"isDraft": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"isPublish": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"slug": {
|
"slug": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
|
@ -7466,8 +7483,7 @@
|
||||||
"required": [
|
"required": [
|
||||||
"aliasName",
|
"aliasName",
|
||||||
"levelNumber",
|
"levelNumber",
|
||||||
"name",
|
"name"
|
||||||
"parentLevelId"
|
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"aliasName": {
|
"aliasName": {
|
||||||
|
|
@ -7495,8 +7511,7 @@
|
||||||
"required": [
|
"required": [
|
||||||
"aliasName",
|
"aliasName",
|
||||||
"levelNumber",
|
"levelNumber",
|
||||||
"name",
|
"name"
|
||||||
"parentLevelId"
|
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"aliasName": {
|
"aliasName": {
|
||||||
|
|
|
||||||
|
|
@ -196,6 +196,10 @@ definitions:
|
||||||
type: string
|
type: string
|
||||||
htmlDescription:
|
htmlDescription:
|
||||||
type: string
|
type: string
|
||||||
|
isDraft:
|
||||||
|
type: boolean
|
||||||
|
isPublish:
|
||||||
|
type: boolean
|
||||||
oldId:
|
oldId:
|
||||||
type: integer
|
type: integer
|
||||||
slug:
|
slug:
|
||||||
|
|
@ -227,6 +231,10 @@ definitions:
|
||||||
type: string
|
type: string
|
||||||
htmlDescription:
|
htmlDescription:
|
||||||
type: string
|
type: string
|
||||||
|
isDraft:
|
||||||
|
type: boolean
|
||||||
|
isPublish:
|
||||||
|
type: boolean
|
||||||
slug:
|
slug:
|
||||||
type: string
|
type: string
|
||||||
statusId:
|
statusId:
|
||||||
|
|
@ -438,7 +446,6 @@ definitions:
|
||||||
- aliasName
|
- aliasName
|
||||||
- levelNumber
|
- levelNumber
|
||||||
- name
|
- name
|
||||||
- parentLevelId
|
|
||||||
type: object
|
type: object
|
||||||
request.UserLevelsUpdateRequest:
|
request.UserLevelsUpdateRequest:
|
||||||
properties:
|
properties:
|
||||||
|
|
@ -456,7 +463,6 @@ definitions:
|
||||||
- aliasName
|
- aliasName
|
||||||
- levelNumber
|
- levelNumber
|
||||||
- name
|
- name
|
||||||
- parentLevelId
|
|
||||||
type: object
|
type: object
|
||||||
request.UserLogin:
|
request.UserLogin:
|
||||||
properties:
|
properties:
|
||||||
|
|
@ -1876,6 +1882,9 @@ paths:
|
||||||
- in: query
|
- in: query
|
||||||
name: description
|
name: description
|
||||||
type: string
|
type: string
|
||||||
|
- in: query
|
||||||
|
name: isDraft
|
||||||
|
type: boolean
|
||||||
- in: query
|
- in: query
|
||||||
name: isPublish
|
name: isPublish
|
||||||
type: boolean
|
type: boolean
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue