{% extends "view/admin/ext_admin.html" %} {% block extadmin %} 附件管理 {{controller.meta_title}} 接口标识 英文字母.比如 你的标识是biaoshi那么请求接口就是 /ext/attachment/adminfile/upload?type=biaoshi 表单name值 默认为file,不需要留给留空 描述 {{data.description}} 200字以内 水印 禁用 开启 开启后图片类型文件将添加水印 路径 文件相对于服务器的路径,有默认值,不需要请留空 类型 图片 文件 接口的类型 后台图片接口地址:/ext/attachment/adminfile/uploadpic?type=接口标识 后台文件接口地址:/ext/attachment/adminfile/upload?type=接口标识 前台图片接口地址:/ext/attachment/homefile/uploadpic?type=接口标识 前台文件接口地址:/ext/attachment/homefile/upload?type=接口标识 接口返回规则 {{data.rule}} 输入接口返回规则,必填 ,${id}图片id${url}图片地址,${name}图片名称,默认接口只返回 id {%if data.id%} {%endif%} 保存 返回 {% endblock %}
biaoshi
/ext/attachment/adminfile/upload?type=biaoshi
file
/ext/attachment/adminfile/uploadpic?type=接口标识
/ext/attachment/adminfile/upload?type=接口标识
/ext/attachment/homefile/uploadpic?type=接口标识
/ext/attachment/homefile/upload?type=接口标识
${id}
${url}
${name}