|
@@ -33,6 +33,14 @@ func (this *MyChartClassifyController) List(c *gin.Context) {
|
|
|
return
|
|
|
}
|
|
|
respList := make([]*responseModel.MyChartClassifyItem, 0)
|
|
|
+ // 新增一个默认分类
|
|
|
+ respList = append(respList, &responseModel.MyChartClassifyItem{
|
|
|
+ MyChartClassifyID: -1,
|
|
|
+ MyChartClassifyName: "未分类",
|
|
|
+ Sort: -1,
|
|
|
+ UserID: userId,
|
|
|
+ CreateTime: utils.TimeTransferString(utils.FormatDateTime, time.Now().Local()),
|
|
|
+ })
|
|
|
for i := range list {
|
|
|
respList = append(respList, &responseModel.MyChartClassifyItem{
|
|
|
MyChartClassifyID: list[i].MyChartClassifyID,
|