* refactor codes to remove structs and depend them on code.gitea.io/gitea/modules/structs * fix testing