rework of hubs
This commit is contained in:
@@ -8,16 +8,16 @@ import (
|
||||
"go-socket/packages/config"
|
||||
)
|
||||
|
||||
type postType uint8
|
||||
type requestType uint8
|
||||
|
||||
const (
|
||||
normal postType = iota
|
||||
normal requestType = iota
|
||||
file
|
||||
avatar
|
||||
profileBg
|
||||
)
|
||||
|
||||
func validCheckWithResponseOnFail(response *http.ResponseWriter, request *http.Request, pt postType) bool {
|
||||
func validCheckWithResponseOnFail(response *http.ResponseWriter, request *http.Request, pt requestType) bool {
|
||||
var maxSize int64
|
||||
switch pt {
|
||||
case file:
|
||||
|
||||
Reference in New Issue
Block a user