上一页 1 2 3 4 5 6 ··· 18 下一页
摘要: 当你不想修改源码,又想在控件中新增自己参数的时候,你就可以这么干 1 /** @odoo-module */ 2 import { Order, Orderline } from "@point_of_sale/app/store/models"; 3 import { patch } from " 阅读全文
posted @ 2024-03-29 09:12 看一百次夜空里的深蓝 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 1 package helper 2 3 import ( 4 "database/sql/driver" 5 "encoding/json" 6 "fmt" 7 "time" 8 ) 9 10 const CUS_TIME_FORMAT = "2006-01-02 15:04:05" 11 12 阅读全文
posted @ 2024-03-13 14:35 看一百次夜空里的深蓝 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 分页(两次查询) -- 查询总计数量 SELECT COUNT(*) AS TotalCount FROM YourTable WHERE conditions; -- 分页查询 SELECT YourColumns FROM YourTable WHERE conditions ORDER BY 阅读全文
posted @ 2024-03-06 14:57 看一百次夜空里的深蓝 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 一、简单介绍: 当我们设计数据库时,经常会遇到实体之间的关系。这些关系通常可以分为三种类型:many-to-many(多对多)、many-to-one(多对一)和one-to-many(一对多)。 Many-to-Many (多对多): 意义:多对多关系表示一个实体可以与多个其他实体相关联,同时这些 阅读全文
posted @ 2024-03-06 14:44 看一百次夜空里的深蓝 阅读(783) 评论(0) 推荐(0) 编辑
摘要: 常用的注释用法: @title: 指定 API 的标题。 @description: 对 API 的简要描述。 @version: API 的版本号。 @termsOfService: API 的使用条款。 @contact: API 的联系方式,例如邮箱。 @license: API 的许可证信息 阅读全文
posted @ 2024-02-24 15:47 看一百次夜空里的深蓝 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 当使用 GORM 进行数据库模型映射时,可以使用多种标签来定义字段的行为。以下是一些常用的 GORM 标签: gorm:"primary_key": 定义字段作为模型的主键。 gorm:"column:<column_name>": 指定字段在数据库表中的列名。 gorm:"type:<data_t 阅读全文
posted @ 2024-02-22 16:51 看一百次夜空里的深蓝 阅读(1182) 评论(0) 推荐(0) 编辑
摘要: 你需要自己处理log部分 package main import ( "crypto/md5" "fmt" "go-admin/log" "os" "path/filepath" "time" "github.com/fsnotify/fsnotify" ) type FileChangeCallb 阅读全文
posted @ 2024-01-11 09:06 看一百次夜空里的深蓝 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 1 import cv2 2 import numpy as np 3 import matplotlib.pyplot as plt 4 5 # 读取图像并转换为灰度图像 6 image = cv2.imread('./a.jpg') 7 gray = cv2.cvtColor(image, cv 阅读全文
posted @ 2023-12-30 11:20 看一百次夜空里的深蓝 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 1 import cv2 2 import numpy as np 3 import matplotlib.pyplot as plt 4 5 # 读取图像并转换为灰度图像 6 image = cv2.imread('./a.jpg') 7 gray = cv2.cvtColor(image, cv 阅读全文
posted @ 2023-12-30 11:18 看一百次夜空里的深蓝 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 要在Ubuntu上访问Windows共享,可以通过以下步骤进行设置: 确保Windows共享设置正确: 共享文件夹:在Windows上选择要共享的文件夹,并确保它已共享。右键点击文件夹,选择“属性”,然后进入“共享”选项卡,设置共享选项和权限。 网络发现和共享:确保Windows上的网络发现和文件共 阅读全文
posted @ 2023-12-27 15:51 看一百次夜空里的深蓝 阅读(1208) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 18 下一页
点击右上角即可分享
微信分享提示