19 lines
278 B
Go
19 lines
278 B
Go
package inner
|
|
|
|
import "errors"
|
|
|
|
type GetVipConfigRequest struct {
|
|
VipLevel string
|
|
}
|
|
|
|
// 参数合法性检验
|
|
func (request *GetVipConfigRequest) CheckParameter() (err error) {
|
|
|
|
if len(request.VipLevel) == 0 {
|
|
err = errors.New("VipLevel不能为空")
|
|
return
|
|
}
|
|
|
|
return
|
|
}
|