2023-12-21 22:17:40 +08:00
|
|
|
package consts
|
|
|
|
|
|
|
|
// root
|
2024-03-12 12:06:45 +08:00
|
|
|
const RootPath = "/Users/PC/Desktop/service/"
|
2023-12-21 22:17:40 +08:00
|
|
|
|
|
|
|
const ExcelPath = "codecreate/resource/EntityDefine.xlsx"
|
|
|
|
|
|
|
|
const TemplateRootPath = "codecreate/template/"
|
|
|
|
|
|
|
|
// in
|
|
|
|
const ControllerCenterInPath = RootPath + TemplateRootPath + "controller_center.txt"
|
|
|
|
|
|
|
|
const ControllerInPath = RootPath + TemplateRootPath + "controller.txt"
|
|
|
|
|
|
|
|
const EntityInPath = RootPath + TemplateRootPath + "entity.txt"
|
|
|
|
|
|
|
|
const ErrCodeInPath = RootPath + TemplateRootPath + "errcode.txt"
|
|
|
|
|
|
|
|
const IdGeneratorInPath = RootPath + TemplateRootPath + "idgenerator.txt"
|
|
|
|
|
|
|
|
const MongoInPath = RootPath + TemplateRootPath + "mongo.txt"
|
|
|
|
|
|
|
|
const ProtoInPath = RootPath + TemplateRootPath + "proto.txt"
|
|
|
|
|
|
|
|
const ServiceCenterInPath = RootPath + TemplateRootPath + "service_center.txt"
|
|
|
|
|
|
|
|
const ServiceInPath = RootPath + TemplateRootPath + "service.txt"
|
|
|
|
|
|
|
|
// out
|
|
|
|
const ControllerOutPath = "app/mix/controller/"
|
|
|
|
|
|
|
|
const ControllerCenterOutPath = "app/mix/controller/"
|
|
|
|
|
|
|
|
const ServiceOutPath = "app/mix/service/logic/"
|
|
|
|
|
|
|
|
const ServiceCenterOutPath = "app/mix/service/"
|
|
|
|
|
|
|
|
const EntityOutPath = "dbstruct/"
|
|
|
|
|
|
|
|
const ErrcodeOutPath = "api/errcode/"
|
|
|
|
|
|
|
|
const IdgeneratorOutPath = "library/idgenerator/"
|
|
|
|
|
|
|
|
const MongoOutPath = "app/mix/dao/"
|
|
|
|
|
|
|
|
const ProtoOutPath = "api/proto/"
|
|
|
|
|
|
|
|
// placeholder
|
|
|
|
const EntityNamePlaceHolder = "#{EntityName}"
|
|
|
|
|
|
|
|
const EntityCNNamePlaceHolder = "#{EntityCNName}"
|
|
|
|
|
|
|
|
const ModuleNamePlaceHolder = "#{moduleName}"
|
|
|
|
|
|
|
|
const ErrCodeSeqPlaceHolder = "#{ErrCodeSeq}"
|
|
|
|
|
|
|
|
const EntityDefinationPlaceHolder = "#{EntityDefination}"
|