This commit is contained in:
桀尼龟 2025-06-13 14:00:31 +08:00
parent 4698331512
commit 503ff1af90
4 changed files with 1109 additions and 1082 deletions

File diff suppressed because it is too large Load Diff

View File

@ -156,6 +156,8 @@ message UserListRequest{
int32 auditStatus = 7;
uint64 page = 8;
uint64 pageSize = 9;
string blurNameTel = 10;
repeated int64 ids = 11;
}
message UserInfoResponse{
uint64 id = 1;

View File

@ -1,7 +1,7 @@
// Code generated by protoc-gen-go-triple. DO NOT EDIT.
// versions:
// - protoc-gen-go-triple v1.0.8
// - protoc v6.30.0--rc2
// - protoc v4.24.0--rc1
// source: api/accountFiee/accountFiee.proto
package accountFiee

View File

@ -650,6 +650,9 @@ func (a *AccountFieeProvider) UserList(ctx context.Context, in *account.UserList
if in.Domain != "" {
modelObj.Where("domain = ? ", in.Domain)
}
if len(in.Ids) != 0 {
modelObj.Where("user.id in (?) ", in.Ids)
}
if in.SubNum != "" {
modelObj.Where("sub_num like ? ", "%"+in.SubNum+"%")
}
@ -670,6 +673,9 @@ func (a *AccountFieeProvider) UserList(ctx context.Context, in *account.UserList
if in.Sex != "" {
modelObj.Where("RealName.sex = ?", in.Sex)
}
if in.BlurNameTel != "" {
modelObj.Where("RealName.name like ? or tel_num like ? ", "%"+in.BlurNameTel+"%", "%"+in.BlurNameTel+"%")
}
modelObj.Count(&count)
if in.Page > 0 && in.PageSize > 0 {
modelObj.Limit(int(in.PageSize)).Offset(page.GetOffset(in.Page, in.PageSize))
@ -766,8 +772,8 @@ func (a *AccountFieeProvider) GenerateSliderCaptcha(_ context.Context, in *accou
utils.CutByTemplate(canvasImage, blockImage, blockWidth, blockHeight, blockX, blockY)
fmt.Println("1---", 0)
fmt.Println("2---", blockY)
fmt.Println("2---", blockX)
fmt.Println("2---Y", blockY)
fmt.Println("2---X", blockX)
// 生成UUID
nonceStr := fmt.Sprintf("%x", rand2.New(rand2.NewSource(time.Now().UnixNano())).Uint64())