Fosi Fossil Service
Small teams. Open source. Built on Fossil.

IaC / SwiftFlow

High-performance WMS with wave picking, smart routing, and real-time inventory visibility.

Public | Owner: IaC | Default branch: trunk | Last update: 2026-10-23 14:37

Artifact 99e702af5f1b39386d36fc26d355ff6d6fa82e1b2e2ffaa3a7749964d507ad32:


pub type ApiSession {
  ApiSession(s: String, tok: String, cookie: String)
}

pub type ApiError {
  HttpError(status: Int, body: String)
  NetworkError(message: String)
  JsonError(message: String)
  AuthExpired(message: String)
  ApiFailure(message: String)
  UrlParseError
}

pub type QlWarehouse {
  QlWarehouse(
    id: Int,
    code: String,
    fullname: String,
    easycode: String,
  )
}

pub type GoodsItem {
  GoodsItem(
    id: Int,
    code: String,
    name: String,
    barcode: String,
    unit: String,
    spec: String,
    shelf_life: String,
    shelf_life_days: Int,
    position_code: String,
    disabled: Bool,
    is_category: Bool,
    modified_at: String,
    created_at: String,
  )
}

pub type Page(item) {
  Page(items: List(item), total: Int)
}

pub type SalesOrderItem {
  SalesOrderItem(
    bill_detail_id: Int,
    sku_id: Int,
    goods_code: String,
    goods_name: String,
    barcode: String,
    spec: String,
    package_qty: Float,
    package_unit: String,
    base_qty: Float,
    base_unit: String,
    price: Float,
    total_money: Float,
    position_code: String,
    area_code: String,
  )
}

pub type SalesOrderSummary {
  SalesOrderSummary(
    bill_id: Int,
    bill_code: String,
    customer_name: String,
    contact_person: String,
    phone: String,
    warehouse_name: String,
    warehouse_id: Int,
    bill_date: String,
    status: Int,
    status_name: String,
    total_qty: Float,
    total_money: Float,
    remark: String,
  )
}

pub type SalesOrder {
  SalesOrder(
    bill_id: Int,
    bill_code: String,
    customer_name: String,
    contact_person: String,
    phone: String,
    warehouse_name: String,
    warehouse_id: Int,
    bill_date: String,
    status: Int,
    status_name: String,
    total_qty: Float,
    total_money: Float,
    remark: String,
    items: List(SalesOrderItem),
  )
}

pub type PurchaseOrderItem {
  PurchaseOrderItem(
    bill_detail_id: Int,
    sku_id: Int,
    goods_code: String,
    goods_name: String,
    barcode: String,
    spec: String,
    package_qty: Float,
    package_unit: String,
    base_qty: Float,
    base_unit: String,
    price: Float,
    total_money: Float,
    position_code: String,
    area_code: String,
  )
}

pub type PurchaseOrderSummary {
  PurchaseOrderSummary(
    bill_id: Int,
    bill_code: String,
    supplier_name: String,
    contact_person: String,
    phone: String,
    warehouse_name: String,
    warehouse_id: Int,
    bill_date: String,
    status: Int,
    status_name: String,
    total_qty: Float,
    total_money: Float,
    remark: String,
    ifred: Int,
  )
}

pub type PurchaseOrder {
  PurchaseOrder(
    bill_id: Int,
    bill_code: String,
    supplier_name: String,
    contact_person: String,
    phone: String,
    warehouse_name: String,
    warehouse_id: Int,
    bill_date: String,
    status: Int,
    status_name: String,
    total_qty: Float,
    total_money: Float,
    remark: String,
    items: List(PurchaseOrderItem),
  )
}

pub type RawEnvelope {
  RawEnvelope(
    response_type: String,
    msg: String,
    product_version: String,
  )
}

pub type LoginResult {
  LoginResult(
    success: Bool,
    company_name: String,
    agent_real_name: String,
    token: String,
    sign: String,
    msg: String,
  )
}

Clone

You can clone this repository with the following command:

fossil clone https://fosi.dev/IaC/SwiftFlow

Contribute

The best way to contribute is through e-mail. See the project documentation for more details.