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

View File

@ -0,0 +1,47 @@
package request
import "errors"
type SearchRequest struct {
BaseRequest
InputNo string
}
// 参数合法性检验
func (request *SearchRequest) CheckParameter() (err error) {
if len(request.AccessToken) == 0 {
err = errors.New("AccessToken不能为空")
return
}
if len(request.InputNo) == 0 {
err = errors.New("InputNo不能为空")
return
}
return
}
// 新搜索对象
type SearchV2Request struct {
BaseRequest
Keyword string // 关键词
TypeCode string // 搜索类型 1=人 2=聊天室
}
// 参数合法性检验
func (request *SearchV2Request) CheckParameter() (err error) {
if len(request.AccessToken) == 0 {
err = errors.New("AccessToken不能为空")
return
}
if len(request.Keyword) == 0 {
err = errors.New("InputNo不能为空")
return
}
return
}