Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenEntLogic ¶
func GenEntLogic(g *GenEntLogicContext) error
GenEntLogic generates the ent CRUD logic files of the rpc service.
func GenProtoData ¶
Types ¶
type GenEntLogicContext ¶
type GenEntLogicContext struct { Schema string Output string ServiceName string ProjectName string Style string ProtoFieldStyle string ModelName string Multiple bool SearchKeyNum int ModuleName string GroupName string UseUUID bool UseI18n bool ProtoOut string ImportPrefix string Overwrite bool IdType string // default is empty, if ID belongs types of Uint64 and string, use other base message HasCreated bool // If true means have created and updated field }
func (GenEntLogicContext) Validate ¶
func (g GenEntLogicContext) Validate() error
type RpcLogicData ¶
func GenCRUDData ¶
func GenCRUDData(g *GenEntLogicContext, projectCtx *ctx.ProjectContext, schema *load.Schema) []*RpcLogicData
Click to show internal directories.
Click to hide internal directories.