mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 00:10:25 +08:00 
			
		
		
		
	feat: dbms新增支持工单流程审批
This commit is contained in:
		@@ -13,6 +13,7 @@ import (
 | 
			
		||||
	"mayfly-go/pkg/model"
 | 
			
		||||
	"mayfly-go/pkg/req"
 | 
			
		||||
	"mayfly-go/pkg/utils/collx"
 | 
			
		||||
	"mayfly-go/pkg/utils/conv"
 | 
			
		||||
	"mayfly-go/pkg/utils/cryptox"
 | 
			
		||||
	"strconv"
 | 
			
		||||
	"strings"
 | 
			
		||||
@@ -119,13 +120,29 @@ func (a *Account) UpdateAccount(rc *req.Ctx) {
 | 
			
		||||
 | 
			
		||||
// @router /accounts [get]
 | 
			
		||||
func (a *Account) Accounts(rc *req.Ctx) {
 | 
			
		||||
	condition := &entity.Account{}
 | 
			
		||||
	condition := &entity.AccountQuery{}
 | 
			
		||||
	condition.Username = rc.Query("username")
 | 
			
		||||
	condition.Name = rc.Query("name")
 | 
			
		||||
	res, err := a.AccountApp.GetPageList(condition, rc.GetPageParam(), new([]vo.AccountManageVO))
 | 
			
		||||
	biz.ErrIsNil(err)
 | 
			
		||||
	rc.ResData = res
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (a *Account) SimpleAccounts(rc *req.Ctx) {
 | 
			
		||||
	condition := &entity.AccountQuery{}
 | 
			
		||||
	condition.Username = rc.Query("username")
 | 
			
		||||
	condition.Name = rc.Query("name")
 | 
			
		||||
	idsStr := rc.Query("ids")
 | 
			
		||||
	if idsStr != "" {
 | 
			
		||||
		condition.Ids = collx.ArrayMap[string, uint64](strings.Split(idsStr, ","), func(val string) uint64 {
 | 
			
		||||
			return uint64(conv.Str2Int(val, 0))
 | 
			
		||||
		})
 | 
			
		||||
	}
 | 
			
		||||
	res, err := a.AccountApp.GetPageList(condition, rc.GetPageParam(), new([]vo.SimpleAccountVO))
 | 
			
		||||
	biz.ErrIsNil(err)
 | 
			
		||||
	rc.ResData = res
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// @router /accounts
 | 
			
		||||
func (a *Account) SaveAccount(rc *req.Ctx) {
 | 
			
		||||
	form := &form.AccountCreateForm{}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user