Refine the directory structure of this project.

This commit is contained in:
zicla
2019-04-24 19:36:10 +08:00
parent a353ff1303
commit daa5847859
22 changed files with 517 additions and 415 deletions

View File

@ -1,5 +1,7 @@
package rest
import "tank/rest/util"
const (
MATTER_ROOT = "root"
MATTER_CACHE = "cache"
@ -36,7 +38,7 @@ func (this *Matter) AbsolutePath() string {
// 获取该Matter的MimeType
func (this *Matter) MimeType() string {
return GetMimeType(GetExtension(this.Name))
return util.GetMimeType(util.GetExtension(this.Name))
}