// ${functionName}
export interface ${ClassName} {
    #foreach ($column in $columns)
        #if(!$table.isSuperColumn($column.javaField))
            #if($column.javaType == 'Long' || $column.javaType == 'Integer' || $column.javaType == 'int' || $column.javaType == 'long')
                    $column.javaField?: number
            #elseif($column.javaType == 'Date' || $column.javaType == 'DateTime')
                    $column.javaField?: string
            #elseif($column.javaType == 'Boolean' || $column.javaType == 'boolean')
                    $column.javaField?: boolean
            #elseif($column.javaType == 'Double' || $column.javaType == 'Float' || $column.javaType == 'double' || $column.javaType == 'float')
                    $column.javaField?: number
            #else
                    $column.javaField?: string
            #end
        #end
    #end
    #if($table.sub)
            ${subclassName}List?: ${subClassName}[]
    #end
}

// ${functionName}查询参数
export interface ${ClassName}Query {
    #foreach ($column in $columns)
        #if(!$table.isSuperColumn($column.javaField) && $column.list)
            #if($column.javaType == 'Long' || $column.javaType == 'Integer' || $column.javaType == 'int' || $column.javaType == 'long')
                    $column.javaField?: number
            #elseif($column.javaType == 'Date' || $column.javaType == 'DateTime')
                #if($column.javaField.toLowerCase().contains('time') || $column.javaField.toLowerCase().contains('date'))
                    begin${column.javaField.substring(0,1).toUpperCase()}${column.javaField.substring(1)}?: string
                    end${column.javaField.substring(0,1).toUpperCase()}${column.javaField.substring(1)}?: string
                #else
                        $column.javaField?: string
                #end
            #elseif($column.javaType == 'Boolean' || $column.javaType == 'boolean')
                    $column.javaField?: boolean
            #elseif($column.javaType == 'Double' || $column.javaType == 'Float' || $column.javaType == 'double' || $column.javaType == 'float')
                    $column.javaField?: number
            #else
                    $column.javaField?: string
            #end
        #end
    #end
    beginDate?: string
    endDate?: string
    pageIndex?: number
    pageSize?: number
}
