feat(app): update

This commit is contained in:
Yangtao
2025-11-19 14:24:13 +08:00
parent 1eac66d7fd
commit 0c34585649
329 changed files with 10760 additions and 281 deletions

44
pkg/dto/admin/user.go Normal file
View File

@ -0,0 +1,44 @@
package dto_admin
import "errors"
type AdjustmentNobilityRequest struct {
UserId string
ExpValue int32
OutId string
BizType string
}
func (param AdjustmentNobilityRequest) Check() (err error) {
if len(param.UserId) == 0 {
err = errors.New("UserId不能为空")
return
}
if param.ExpValue == 0 {
err = errors.New("ExpValue不能为空")
return
}
if len(param.OutId) == 0 {
err = errors.New("OutId不能为空")
return
}
if len(param.BizType) == 0 {
err = errors.New("BizType不能为空")
return
}
return
}
type AddInnerUserRequest struct {
UserId string
}
func (param AddInnerUserRequest) Check() (err error) {
if len(param.UserId) == 0 {
err = errors.New("UserId不能为空")
return
}
return err
}