chore: 初始开源发布

iotlcm-onelink-mock:OneLink 挡板服务(本地测试替身)。

- Go module 迁移至 git.5iot.com/iotlcm-public/iotlcm-onelink-mock
- 修复同毫秒内多次生成卡导致 ICCID/IMSI 唯一约束冲突
- 补 Apache-2.0 LICENSE,README 重写并新增 docs/deploy.md
- 移除内部部署资产(CI 触发器 / 镜像推送脚本 / 指定环境部署文档)
- 测试凭据改为 demo_appid / demo_password,真实手机号与内网 IP 脱敏
- 统一 LF 行尾并加 .gitattributes
This commit is contained in:
MiFaZhan
2026-10-22 15:08:27 +08:00
commit 4e2cd43a55
61 changed files with 10417 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// MockCardGroup is the golang structure for table mock_card_group.
type MockCardGroup struct {
Id int `json:"id" orm:"id" description:""` //
Name string `json:"name" orm:"name" description:""` //
CreatedAt string `json:"createdAt" orm:"created_at" description:""` //
UpdatedAt string `json:"updatedAt" orm:"updated_at" description:""` //
}
+19
View File
@@ -0,0 +1,19 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// MockOrder is the golang structure for table mock_order.
type MockOrder struct {
Id int `json:"id" orm:"id" description:""` //
OrderNum string `json:"orderNum" orm:"order_num" description:""` //
Msisdn string `json:"msisdn" orm:"msisdn" description:""` //
Iccid string `json:"iccid" orm:"iccid" description:""` //
Imsi string `json:"imsi" orm:"imsi" description:""` //
Type string `json:"type" orm:"type" description:""` //
OperType string `json:"operType" orm:"oper_type" description:""` //
ApnName string `json:"apnName" orm:"apn_name" description:""` //
Status string `json:"status" orm:"status" description:""` //
CreatedAt string `json:"createdAt" orm:"created_at" description:""` //
}
+64
View File
@@ -0,0 +1,64 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// MockTSimCard is the golang structure for table mock_t_sim_card.
type MockTSimCard struct {
Id int `json:"id" orm:"id" description:""` //
GroupId int `json:"groupId" orm:"group_id" description:""` //
Msisdn string `json:"msisdn" orm:"msisdn" description:""` //
Iccid string `json:"iccid" orm:"iccid" description:""` //
Imsi string `json:"imsi" orm:"imsi" description:""` //
Imei string `json:"imei" orm:"imei" description:""` //
Remark string `json:"remark" orm:"remark" description:""` //
Carrier string `json:"carrier" orm:"carrier" description:""` //
PackageCode string `json:"packageCode" orm:"package_code" description:""` //
PackageName string `json:"packageName" orm:"package_name" description:""` //
PackageStatus int `json:"packageStatus" orm:"package_status" description:""` //
PackageTotalFlowMb float32 `json:"packageTotalFlowMb" orm:"package_total_flow_mb" description:""` //
IsFlowPool int `json:"isFlowPool" orm:"is_flow_pool" description:""` //
CardStatus string `json:"cardStatus" orm:"card_status" description:""` //
LastChangeDate string `json:"lastChangeDate" orm:"last_change_date" description:""` //
StopReason string `json:"stopReason" orm:"stop_reason" description:""` //
FrozenStatus string `json:"frozenStatus" orm:"frozen_status" description:""` //
FrozenReason string `json:"frozenReason" orm:"frozen_reason" description:""` //
FrozenOperTime string `json:"frozenOperTime" orm:"frozen_oper_time" description:""` //
OpenDate string `json:"openDate" orm:"open_date" description:""` //
ActiveDate string `json:"activeDate" orm:"active_date" description:""` //
OnOffStatus string `json:"onOffStatus" orm:"on_off_status" description:""` //
SessionStatus string `json:"sessionStatus" orm:"session_status" description:""` //
ApnId string `json:"apnId" orm:"apn_id" description:""` //
SessionIpv4 string `json:"sessionIpv4" orm:"session_ipv4" description:""` //
SessionIpv6Prefix string `json:"sessionIpv6Prefix" orm:"session_ipv6_prefix" description:""` //
SessionIpv6 string `json:"sessionIpv6" orm:"session_ipv6" description:""` //
SessionCreateDate string `json:"sessionCreateDate" orm:"session_create_date" description:""` //
Rat string `json:"rat" orm:"rat" description:""` //
ApnListJson string `json:"apnListJson" orm:"apn_list_json" description:""` //
ApnUsageJson string `json:"apnUsageJson" orm:"apn_usage_json" description:""` //
PrimaryApnName string `json:"primaryApnName" orm:"primary_apn_name" description:""` //
PrimaryApnStatus string `json:"primaryApnStatus" orm:"primary_apn_status" description:""` //
PrimaryApnUsageKb float32 `json:"primaryApnUsageKb" orm:"primary_apn_usage_kb" description:""` //
PrimaryApnUsageBytes int `json:"primaryApnUsageBytes" orm:"primary_apn_usage_bytes" description:""` //
PccCode string `json:"pccCode" orm:"pcc_code" description:""` //
PccUsageKb float32 `json:"pccUsageKb" orm:"pcc_usage_kb" description:""` //
CurrentMonthUsageKb float32 `json:"currentMonthUsageKb" orm:"current_month_usage_kb" description:""` //
PoolUsageBytes int `json:"poolUsageBytes" orm:"pool_usage_bytes" description:""` //
DailyUsageKb float32 `json:"dailyUsageKb" orm:"daily_usage_kb" description:""` //
MonthlyUsageKb float32 `json:"monthlyUsageKb" orm:"monthly_usage_kb" description:""` //
DailyQueryDate string `json:"dailyQueryDate" orm:"daily_query_date" description:""` //
MonthlyQueryMonth string `json:"monthlyQueryMonth" orm:"monthly_query_month" description:""` //
MonthlyDeadline string `json:"monthlyDeadline" orm:"monthly_deadline" description:""` //
GrowthPerMinuteKb float32 `json:"growthPerMinuteKb" orm:"growth_per_minute_kb" description:""` //
AutoGrowthEnabled int `json:"autoGrowthEnabled" orm:"auto_growth_enabled" description:""` //
LastUsageUpdateTime string `json:"lastUsageUpdateTime" orm:"last_usage_update_time" description:""` //
CardBindStatus string `json:"cardBindStatus" orm:"card_bind_status" description:""` //
RegionLimitStatus string `json:"regionLimitStatus" orm:"region_limit_status" description:""` //
AreaRestrictType string `json:"areaRestrictType" orm:"area_restrict_type" description:""` //
RestrictedArea string `json:"restrictedArea" orm:"restricted_area" description:""` //
Exported int `json:"exported" orm:"exported" description:""` //
ExportCheckedAt string `json:"exportCheckedAt" orm:"export_checked_at" description:""` //
CreatedAt string `json:"createdAt" orm:"created_at" description:""` //
UpdatedAt string `json:"updatedAt" orm:"updated_at" description:""` //
}