feat(app): update
This commit is contained in:
18
pkg/dto/inner/GetVipConfigRequest.go
Normal file
18
pkg/dto/inner/GetVipConfigRequest.go
Normal file
@ -0,0 +1,18 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user