test
This commit is contained in:
@@ -364,4 +364,18 @@ def create_log(db: Session, error:schemas.ErrorCreate):
|
||||
|
||||
def get_kintoneformat(db: Session):
|
||||
formats = db.query(models.KintoneFormat).order_by(models.KintoneFormat.id).all()
|
||||
return formats
|
||||
return formats
|
||||
|
||||
def create_operationlog(db: Session, log: schemas.OperationCreate):
|
||||
db_log = models.OperationLog(
|
||||
tenantid=log.tenantid,
|
||||
domainurl=log.domainurl,
|
||||
userid = log.userid,
|
||||
operation = log.operation,
|
||||
function = log.function,
|
||||
detail = log.detail
|
||||
)
|
||||
db.add(db_log)
|
||||
db.commit()
|
||||
db.refresh(db_log)
|
||||
return db_log
|
||||
Reference in New Issue
Block a user