Files
servicebase/pkg/dto/request/SetChildModeRequest.go
2025-11-19 14:24:13 +08:00

25 lines
379 B
Go

package request
import "errors"
type SetChildModeRequest struct {
BaseRequest
Password string
}
// 签名验证
func (request *SetChildModeRequest) CheckParameter() (err error) {
if len(request.AccessToken) == 0 {
err = errors.New("AccessToken不能为空")
return
}
if len(request.Password) == 0 {
err = errors.New("Password不能为空")
return
}
return
}