...
|
...
|
@@ -159,6 +159,13 @@ func (controller *ColumnSettingController) ResetColumn() { |
|
|
controller.ServeJSON()
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @Author SteveChan
|
|
|
* @Description // 获取栏目列表
|
|
|
* @Date 14:03 2021/2/1
|
|
|
* @Param
|
|
|
* @return
|
|
|
**/
|
|
|
func (controller *ColumnSettingController) ListColumnSetting() {
|
|
|
columnSettingService := service.NewColumnSettingService(nil)
|
|
|
listColumnSettingQuery := &query.ListColumnSettingQuery{}
|
...
|
...
|
@@ -176,3 +183,23 @@ func (controller *ColumnSettingController) ListColumnSetting() { |
|
|
controller.Data["json"] = response
|
|
|
controller.ServeJSON()
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @Author SteveChan
|
|
|
* @Description //返回默认栏目设置
|
|
|
* @Date 14:06 2021/2/1
|
|
|
* @Param
|
|
|
* @return
|
|
|
**/
|
|
|
func (controller *ColumnSettingController) ListDefaultColumnSetting() {
|
|
|
data := map[string]interface{}{
|
|
|
"orderBaseColumns": map[string]interface{}{
|
|
|
"selected": domain.DefaultColumns,
|
|
|
"unselected": domain.DefaultInvalidColumns,
|
|
|
},
|
|
|
}
|
|
|
var response utils.JsonResponse
|
|
|
response = utils.ResponseData(controller.Ctx, data)
|
|
|
controller.Data["json"] = response
|
|
|
controller.ServeJSON()
|
|
|
} |
...
|
...
|
|