20 lines
636 B
C#
20 lines
636 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Yi.Framework.Template.Abstract;
|
|
using Yi.Framework.Template.Const;
|
|
|
|
namespace Yi.Framework.Template.Provider.Site
|
|
{
|
|
public class ApiTemplateProvider : ProgramTemplateProvider
|
|
{
|
|
public ApiTemplateProvider(string modelName, string entityName) : base(modelName, entityName)
|
|
{
|
|
BuildPath = $@"..\..\..\Code_Site\src\api\{TemplateConst.LowerModelName}\{TemplateConst.LowerEntityName}Api.js";
|
|
TemplatePath = $@"..\..\..\Template\Site\ApiTemplate.txt";
|
|
}
|
|
}
|
|
}
|