MCPcopy Create free account

hub / github.com/Ember-Moth/ppanel / functions

Functions1,586 in github.com/Ember-Moth/ppanel

↓ 3 callersFunctionmulti_password_verify
使用多种算法验证密码。 支持的算法: - `"md5"`:简单 MD5 哈希 - `"sha256"`:简单 SHA-256 哈希 - `"md5salt"`:MD5(密码 + 盐值) - `"sha256salt"`:SHA-256(密码 + 盐值),由 SSPanel 使用 - `"defau
crates/password/src/lib.rs:133
↓ 3 callersFunctionnew_sender
( platform: &str, config: &str, site_name: &str, )
crates/email/src/sender.rs:23
↓ 3 callersMethodnormalize
(&mut self)
src/repository/subscribe/mod.rs:18
↓ 3 callersFunctionrandom_state
Generate a random 8-character alphanumeric state token (mirrors Go `random.KeyNew`).
src/service/auth/oauth/o_auth_login_service.rs:117
↓ 3 callersMethodreset_by_cycle
(&self, reset_cycle: i64, now_ms: i64, now_ts: i64, label: &str)
src/queue/service/traffic.rs:46
↓ 3 callersMethodupdate
(&self, data: &email::worker::TaskInfo)
src/queue/service/email.rs:229
↓ 3 callersMethodupdate_node
(&self, data: &Node)
src/repository/node/pg.rs:97
↓ 3 callersMethodupdate_ticket_status
( &self, id: i64, user_id: i64, status: i16, )
src/repository/ticket/pg.rs:166
↓ 3 callersMethodupdate_value_by_category_key
( &self, category: &str, key: &str, value: &str, )
src/repository/system/pg.rs:71
↓ 3 callersMethodupsert_user_auth_method
( &self, data: &AuthMethods, )
src/repository/user/pg.rs:407
↓ 3 callersFunctionverify
Verify a Turnstile challenge token. - `secret` — site secret key from Cloudflare dashboard - `token` — value of `cf-turnstile-response` submitted by
crates/turnstile/src/lib.rs:30
↓ 2 callersFunctionadd_cors_headers
(headers: &mut axum::http::HeaderMap, origin: Option<&str>)
src/middleware/cors_middleware.rs:27
↓ 2 callersFunctionadd_months
(from: chrono::DateTime<Utc>, amount: i64)
src/queue/service/order.rs:268
↓ 2 callersFunctionadd_time
(unit: &str, amount: i64, from: chrono::DateTime<Utc>)
src/queue/service/order.rs:257
↓ 2 callersMethodadd_worker
(&self, id: i64)
crates/email/src/manager.rs:47
↓ 2 callersMethodapply_commission
(&self, user: &User, order: &Order, commission_type: i32)
src/queue/service/order.rs:185
↓ 2 callersFunctionbind_failed
Bind failure message.
src/service/telegram/template.rs:40
↓ 2 callersFunctionbuild_dsn
(cfg: &DatabaseConfig)
src/db.rs:42
↓ 2 callersMethodcreate
( &self, user_id: i64, req: CreateUserTicketRequest, )
src/service/public/ticket/create_user_ticket_service.rs:25
↓ 2 callersMethodcreate_sign
(&self, params: &BTreeMap<&str, String>)
crates/payment/src/epay.rs:52
↓ 2 callersFunctiondatetime_from_ms
(timestamp_ms: i64)
src/queue/service/order.rs:250
↓ 2 callersFunctionday_end
(ts: i64)
src/repository/order/pg.rs:22
↓ 2 callersFunctionday_end
(ts: i64)
src/repository/order/mysql.rs:22
↓ 2 callersFunctiondecode_payload
(task: &Task)
src/queue/handler/order.rs:29
↓ 2 callersMethoddelete_device
(&self, id: i64)
src/repository/user/pg.rs:478
↓ 2 callersMethoddelete_user_auth_methods
( &self, user_id: i64, platform: &str, )
src/repository/user/pg.rs:319
↓ 2 callersFunctiondetect_dialect
(cfg: &DatabaseConfig)
src/db.rs:67
↓ 2 callersFunctionemail_recipient_sql_mysql
(filter: &EmailRecipientFilter, select_expr: &str)
src/repository/user/mysql.rs:1286
↓ 2 callersMethodenqueue_json
Enqueue a task with a JSON-serialisable payload for immediate processing.
src/queue/client.rs:45
↓ 2 callersFunctionensureScheme
(scheme, dsn string)
tools/migrate/migrate/migrate.go:124
↓ 2 callersFunctionentity_to_dto
(s: Subscribe)
src/service/admin/subscribe/get_subscribe_details_service.rs:27
↓ 2 callersMethodfind_available_methods
(&self)
src/repository/payment/pg.rs:94
↓ 2 callersMethodfind_follows_by_ticket
(&self, ticket_id: i64)
src/repository/ticket/pg.rs:78
↓ 2 callersMethodfind_one_by_category_key
( &self, category: &str, key: &str, )
src/repository/system/pg.rs:88
↓ 2 callersMethodfind_one_by_refer_code
(&self, refer_code: &str)
src/repository/user/pg.rs:689
↓ 2 callersMethodfind_one_device_by_identifier
( &self, identifier: &str, )
src/repository/user/pg.rs:451
↓ 2 callersMethodfind_one_subscribe_details_by_id
( &self, id: i64, )
src/repository/user/pg.rs:213
↓ 2 callersMethodfind_subscribes_by_ids
( &self, ids: &[i64], )
src/repository/user/pg.rs:755
↓ 2 callersFunctiongenerate_invite_code
()
src/migration.rs:259
↓ 2 callersMethodget_int
(&self, key: &str)
src/cache.rs:93
↓ 2 callersFunctionget_supported_platforms
()
crates/email/src/platform.rs:39
↓ 2 callersMethodhandle_subscribe
Generate subscription content. `ua` — User-Agent header `token` — subscribe token from URL path `host` — Host header (for subscribe_url) `params`
src/service/subscribe/subscribe_service.rs:44
↓ 2 callersFunctionhash_password_pbkdf2
PBKDF2-SHA512 matching Go's format: `$pbkdf2-sha512${salt_hex}${hash_hex}` Iteration count is intentionally 100** to stay byte-compatible with the Go
src/migration.rs:255
↓ 2 callersMethodincr
(&self, key: &str)
src/cache.rs:76
↓ 2 callersFunctioninsert_batch
( pg: &PgPool, schema: &str, table: &str, _col_names: &[String], pg_cols: &str, batch:
tools/mysql2postgres/src/main.rs:401
↓ 2 callersFunctionjson_to_gtmpl
(v: serde_json::Value)
src/adapter/mod.rs:214
↓ 2 callersMethodmark_subscribes_finished
( &self, ids: &[i64], status: i16, finished_at: i64, )
src/repository/user/pg.rs:876
↓ 2 callersFunctionmd5_encode
计算输入字符串的 MD5 哈希值。 # 参数 `s` - 输入字符串 `uppercase` - 若为 true 则返回大写十六进制,否则返回小写 # 示例 ``` let hash = password::md5_encode("hello", false); assert_eq!(hash,
crates/password/src/lib.rs:102
↓ 2 callersFunctionparse_set
(s: &str)
tools/mysql2postgres/src/main.rs:201
↓ 2 callersFunctionplaceholder_user
(server_id: i64, protocol: &str, secret: &str)
src/service/server/get_server_user_list_service.rs:156
↓ 2 callersMethodpurchase
Create a new subscription purchase order for `user_id`.
src/service/public/order/purchase_service.rs:45
↓ 2 callersMethodquery_affiliate_list
( &self, referer_id: i64, page: i64, size: i64, )
src/repository/user/pg.rs:731
↓ 2 callersMethodquery_device_list
( &self, user_id: i64, )
src/repository/user/pg.rs:486
↓ 2 callersMethodquery_task_list
( &self, filter: &TaskFilter, )
src/repository/task/pg.rs:88
↓ 2 callersMethodquery_ticket_list
( &self, page: i64, size: i64, user_id: i64, status: Option<i16>,
src/repository/ticket/pg.rs:94
↓ 2 callersMethodregister
Record a successful registration. Go counterpart: `userRegisterLogic`, `telephoneRegister`.
src/service/telemetry.rs:77
↓ 2 callersFunctionreportVersion
(m *gomigrate.Migrate)
tools/migrate/cmd/migrate/main.go:119
↓ 2 callersMethodreset
( &self, req: ResetPasswordRequest, )
src/service/auth/reset_password_service.rs:31
↓ 2 callersMethodsend_code
( &self, req: SendSmsCodeRequest, )
src/service/common/send_sms_code_service.rs:33
↓ 2 callersMethodsend_notification_email
(&self, subscribe_id: i64, user_id: i64, kind: &str)
src/queue/service/subscription.rs:117
↓ 2 callersMethodshutdown
(&mut self)
src/queue/mod.rs:52
↓ 2 callersFunctionsubscribe_filter_sql_mysql
(filter: &SubscribeFilter, head: &str)
src/repository/user/mysql.rs:1257
↓ 2 callersFunctionsubscribe_filter_sql_pg
(filter: &SubscribeFilter, head: &str)
src/repository/user/pg.rs:1276
↓ 2 callersFunctionto_dto
(t: &Task)
src/service/admin/marketing/query_quota_task_list_service.rs:34
↓ 2 callersMethodto_yuan_string
(&self)
crates/payment/src/types.rs:19
↓ 2 callersMethodtop_servers_traffic_by_day
( &self, date: i64, limit: i64, )
src/repository/traffic/pg.rs:147
↓ 2 callersMethodupdate_device
(&self, data: &Device)
src/repository/user/pg.rs:461
↓ 2 callersMethodupdate_order_status
(&self, order_no: &str, status: i16)
src/repository/order/pg.rs:175
↓ 2 callersMethodupdate_server
(&self, data: &Server)
src/repository/node/pg.rs:43
↓ 2 callersMethodupdate_status
(&self, id: i64, status: i16)
src/repository/task/pg.rs:71
↓ 2 callersMethodvalidate_state
(&self, provider: &str, state: &str)
src/service/auth/oauth/o_auth_login_get_token_service.rs:340
↓ 1 callersMethodactivate_balance_recharge
(&self, order: &Order)
src/queue/service/order.rs:133
↓ 1 callersMethodactivate_new_subscription
(&self, order: &Order)
src/queue/service/order.rs:70
↓ 1 callersFunctionactivate_order
( task: Task, repos: Arc<Repositories>, config: Arc<Config>, )
src/queue/handler/order.rs:9
↓ 1 callersMethodactivate_pending_subscribes_by_subscribe_id
( &self, subscribe_id: i64, )
src/repository/user/pg.rs:955
↓ 1 callersMethodactivate_renewal
(&self, order: &Order)
src/queue/service/order.rs:80
↓ 1 callersMethodactivate_traffic_reset
(&self, order: &Order)
src/queue/service/order.rs:111
↓ 1 callersMethodactivate_trial
(&self, user_id: i64)
src/service/auth/device_login_service.rs:107
↓ 1 callersMethodactivate_trial
(&self, user_id: i64)
src/service/auth/telephone_user_register_service.rs:147
↓ 1 callersMethodactivate_trial
(&self, user_id: i64)
src/service/auth/user_register_service.rs:163
↓ 1 callersMethodactivate_trial
(&self, user_id: i64)
src/service/auth/oauth/o_auth_login_get_token_service.rs:298
↓ 1 callersFunctionadd_time
(unit: &str, amount: i64, from: chrono::DateTime<Utc>)
src/service/auth/device_login_service.rs:130
↓ 1 callersFunctionadd_time
(unit: &str, amount: i64, from: chrono::DateTime<Utc>)
src/service/auth/telephone_user_register_service.rs:170
↓ 1 callersFunctionadd_time
(unit: &str, amount: i64, from: chrono::DateTime<Utc>)
src/service/auth/user_register_service.rs:189
↓ 1 callersFunctionadd_time
(unit: &str, amount: i64, from: chrono::DateTime<Utc>)
src/service/auth/oauth/o_auth_login_get_token_service.rs:353
↓ 1 callersMethodallow
Check and increment the counter for `key`. Returns `Ok(true)` if the request is within quota, `Ok(false)` if over.
src/middleware/rate_limit_middleware.rs:81
↓ 1 callersMethodapple
(&self, req: &OAthLoginRequest)
src/service/auth/oauth/o_auth_login_service.rs:69
↓ 1 callersFunctionapply_node_row
(c: &mut NodeConfig, row: &System)
src/service/admin/system/get_node_config_service.rs:38
↓ 1 callersMethodbatch_delete
(&self, ids: &[i64])
src/repository/coupon/pg.rs:148
↓ 1 callersMethodbatch_delete_group
(&self, ids: &[i64])
src/repository/subscribe/pg.rs:138
↓ 1 callersMethodbatch_delete_users
(&self, ids: &[i64])
src/repository/user/pg.rs:706
↓ 1 callersFunctionbatch_email
(task: Task, repos: Arc<Repositories>, config: Arc<Config>)
src/queue/handler/email.rs:17
↓ 1 callersMethodbind_o_auth
( &self, _user_id: i64, req: BindOAuthRequest, )
src/service/public/user/bind_o_auth_service.rs:20
↓ 1 callersMethodbind_o_auth_callback
( &self, user_id: i64, req: BindOAuthCallbackRequest, )
src/service/public/user/bind_o_auth_callback_service.rs:21
↓ 1 callersFunctionbind_success
Successful bind message.
src/service/telegram/template.rs:35
↓ 1 callersMethodbind_telegram
( &self, user_id: i64, )
src/service/public/user/bind_telegram_service.rs:19
↓ 1 callersFunctionbuild_detail
Project the repository row into the public-facing `OrderDetail` DTO. Mirrors Go's `tool.DeepCopy(&orderInfo, item)` followed by `orderInfo.Commission
src/service/public/order/query_order_list_service.rs:63
↓ 1 callersFunctionbuild_plans
(mysql: &MySqlPool, pg: &PgPool, args: &Args)
tools/mysql2postgres/src/main.rs:155
↓ 1 callersMethodcallback
Returns the redirect URL the browser should be sent to. Go behaviour: look up "telegram:<state>" in Redis to find the original redirect URL, then red
src/service/auth/oauth/apple_login_callback_service.rs:32
↓ 1 callersFunctioncheck_string
(data: &AuthData)
crates/oauth/src/telegram.rs:23
← previousnext →101–200 of 1,586, ranked by callers