模型重构
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Yi.Framework.ApiMicroservice.Controllers
|
||||
{
|
||||
[Route("api/[controller]/[action")]
|
||||
[ApiController]
|
||||
public class VisitController : ControllerBase
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -14,8 +14,7 @@ namespace Yi.Framework.Model.Models
|
||||
|
||||
|
||||
|
||||
public ICollection<menu> children { get; set; }
|
||||
public IList<menu> children { get; set; }
|
||||
public mould mould { get; set; }
|
||||
public ICollection<role> roles { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,6 +10,5 @@ namespace Yi.Framework.Model.Models
|
||||
{
|
||||
public string mould_name { get; set; }
|
||||
public string url { get; set; }
|
||||
//public menu menu { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,7 +12,6 @@ namespace Yi.Framework.Model.Models
|
||||
public string introduce { get; set; }
|
||||
|
||||
|
||||
public ICollection<menu> menus { get; set; }
|
||||
public ICollection<user> users { get; set; }
|
||||
public IList<menu> menus { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace Yi.Framework.Model.Models
|
||||
public int? phone { get; set; }
|
||||
|
||||
|
||||
public ICollection<role> roles { get; set; }
|
||||
public IList<role> roles { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user